@tilde-nlp/ngx-common 6.1.85 → 6.1.87

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,25 +1,25 @@
1
- var R0=Object.defineProperty,bk=Object.defineProperties;var xk=Object.getOwnPropertyDescriptors;var qc=Object.getOwnPropertySymbols;var O0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable;var T0=(t,n,e)=>n in t?R0(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,x=(t,n)=>{for(var e in n||={})O0.call(n,e)&&T0(t,e,n[e]);if(qc)for(var e of qc(n))k0.call(n,e)&&T0(t,e,n[e]);return t},ne=(t,n)=>bk(t,xk(n));var Ip=(t,n)=>{var e={};for(var i in t)O0.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&qc)for(var i of qc(t))n.indexOf(i)<0&&k0.call(t,i)&&(e[i]=t[i]);return e};var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var Ck=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),wk=(t,n)=>{for(var e in n)R0(t,e,{get:n[e],enumerable:!0})};var es=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{a(e.next(l))}catch(c){r(c)}},s=l=>{try{a(e.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,n)).next())});function F0(t,n){return Object.is(t,n)}function Ee(t){let n=ht;return ht=t,n}function N0(){return ht}function Ek(){return za}function Tp(t){if(za)throw new Error("");if(ht===null)return;ht.consumerOnSignalRead(t);let n=ht.nextProducerIndex++;if(ed(ht),n<ht.producerNode.length&&ht.producerNode[n]!==t&&$a(ht)){let e=ht.producerNode[n];Jc(e,ht.producerIndexOfThis[n])}ht.producerNode[n]!==t&&(ht.producerNode[n]=t,ht.producerIndexOfThis[n]=$a(ht)?B0(t,ht,n):0),ht.producerLastReadVersion[n]=t.version}function Dk(){Yc++}function L0(t){if(!($a(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Yc)){if(!t.producerMustRecompute(t)&&!Zc(t)){t.dirty=!1,t.lastCleanEpoch=Yc;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Yc}}function P0(t){if(t.liveConsumerNode===void 0)return;let n=za;za=!0;try{for(let e of t.liveConsumerNode)e.dirty||V0(e)}finally{za=n}}function j0(){return ht?.consumerAllowSignalWrites!==!1}function V0(t){t.dirty=!0,P0(t),t.consumerMarkedDirty?.(t)}function Ha(t){return t&&(t.nextProducerIndex=0),Ee(t)}function Qc(t,n){if(Ee(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if($a(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Jc(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Zc(t){ed(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(L0(e),i!==e.version))return!0}return!1}function Xc(t){if(ed(t),$a(t))for(let n=0;n<t.producerNode.length;n++)Jc(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function B0(t,n,e){if(U0(t),t.liveConsumerNode.length===0&&z0(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=B0(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function Jc(t,n){if(U0(t),t.liveConsumerNode.length===1&&z0(t))for(let i=0;i<t.producerNode.length;i++)Jc(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];ed(r),r.producerIndexOfThis[i]=n}}function $a(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ed(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function U0(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function z0(t){return t.producerNode!==void 0}function Rp(t){let n=Object.create(Ik);n.computation=t;let e=()=>{if(L0(n),Tp(n),n.value===Kc)throw n.error;return n.value};return e[mn]=n,e}function Mk(){throw new Error}function H0(){$0()}function G0(t){$0=t}function W0(t){let n=Object.create(Y0);n.value=t;let e=()=>(Tp(n),n.value);return e[mn]=n,e}function Op(t,n){j0()||H0(),t.equal(t.value,n)||(t.value=n,Ak(t))}function q0(t,n){j0()||H0(),Op(t,n(t.value))}function Ak(t){t.version++,Dk(),P0(t),Sk?.()}function K0(t,n,e){let i=Object.create(Tk);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;let r=l=>{i.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(Xc(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Ap)}let a=()=>{if(i.fn===null)return;if(Ek())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!Zc(i))return;i.hasRun=!0;let l=Ha(i);try{i.cleanupFn(),i.cleanupFn=Ap,i.fn(r)}finally{Qc(i,l)}};return i.ref={notify:()=>V0(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[mn]:i},i.ref}var ht,za,Yc,mn,ts,Mp,Sp,Kc,Ik,$0,Sk,Y0,Ap,Tk,Q0=f(()=>{"use strict";ht=null,za=!1,Yc=1,mn=Symbol("SIGNAL");ts={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};Mp=Symbol("UNSET"),Sp=Symbol("COMPUTING"),Kc=Symbol("ERRORED"),Ik=ne(x({},ts),{value:Mp,dirty:!0,error:null,equal:F0,producerMustRecompute(t){return t.value===Mp||t.value===Sp},producerRecomputeValue(t){if(t.value===Sp)throw new Error("Detected cycle in computations.");let n=t.value;t.value=Sp;let e=Ha(t),i;try{i=t.computation()}catch(r){i=Kc,t.error=r}finally{Qc(t,e)}if(n!==Mp&&n!==Kc&&i!==Kc&&t.equal(n,i)){t.value=n;return}t.value=i,t.version++}});$0=Mk;Sk=null;Y0=ne(x({},ts),{equal:F0,value:void 0});Ap=()=>{},Tk=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Ap})});function q(t){return typeof t=="function"}var ut=f(()=>{"use strict"});function ns(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var td=f(()=>{"use strict"});var nd,Z0=f(()=>{"use strict";td();nd=ns(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
1
+ var R0=Object.defineProperty,Ck=Object.defineProperties;var wk=Object.getOwnPropertyDescriptors;var qc=Object.getOwnPropertySymbols;var O0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable;var T0=(t,n,e)=>n in t?R0(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,x=(t,n)=>{for(var e in n||={})O0.call(n,e)&&T0(t,e,n[e]);if(qc)for(var e of qc(n))k0.call(n,e)&&T0(t,e,n[e]);return t},ne=(t,n)=>Ck(t,wk(n));var Ip=(t,n)=>{var e={};for(var i in t)O0.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&qc)for(var i of qc(t))n.indexOf(i)<0&&k0.call(t,i)&&(e[i]=t[i]);return e};var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var Ek=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Dk=(t,n)=>{for(var e in n)R0(t,e,{get:n[e],enumerable:!0})};var es=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{a(e.next(l))}catch(c){r(c)}},s=l=>{try{a(e.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,n)).next())});function F0(t,n){return Object.is(t,n)}function Ee(t){let n=ht;return ht=t,n}function N0(){return ht}function Ik(){return za}function Tp(t){if(za)throw new Error("");if(ht===null)return;ht.consumerOnSignalRead(t);let n=ht.nextProducerIndex++;if(ed(ht),n<ht.producerNode.length&&ht.producerNode[n]!==t&&$a(ht)){let e=ht.producerNode[n];Jc(e,ht.producerIndexOfThis[n])}ht.producerNode[n]!==t&&(ht.producerNode[n]=t,ht.producerIndexOfThis[n]=$a(ht)?B0(t,ht,n):0),ht.producerLastReadVersion[n]=t.version}function Mk(){Yc++}function L0(t){if(!($a(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Yc)){if(!t.producerMustRecompute(t)&&!Zc(t)){t.dirty=!1,t.lastCleanEpoch=Yc;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Yc}}function P0(t){if(t.liveConsumerNode===void 0)return;let n=za;za=!0;try{for(let e of t.liveConsumerNode)e.dirty||V0(e)}finally{za=n}}function j0(){return ht?.consumerAllowSignalWrites!==!1}function V0(t){t.dirty=!0,P0(t),t.consumerMarkedDirty?.(t)}function Ha(t){return t&&(t.nextProducerIndex=0),Ee(t)}function Qc(t,n){if(Ee(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if($a(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Jc(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Zc(t){ed(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(L0(e),i!==e.version))return!0}return!1}function Xc(t){if(ed(t),$a(t))for(let n=0;n<t.producerNode.length;n++)Jc(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function B0(t,n,e){if(U0(t),t.liveConsumerNode.length===0&&z0(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=B0(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function Jc(t,n){if(U0(t),t.liveConsumerNode.length===1&&z0(t))for(let i=0;i<t.producerNode.length;i++)Jc(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];ed(r),r.producerIndexOfThis[i]=n}}function $a(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ed(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function U0(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function z0(t){return t.producerNode!==void 0}function Rp(t){let n=Object.create(Sk);n.computation=t;let e=()=>{if(L0(n),Tp(n),n.value===Kc)throw n.error;return n.value};return e[mn]=n,e}function Ak(){throw new Error}function H0(){$0()}function G0(t){$0=t}function W0(t){let n=Object.create(Y0);n.value=t;let e=()=>(Tp(n),n.value);return e[mn]=n,e}function Op(t,n){j0()||H0(),t.equal(t.value,n)||(t.value=n,Rk(t))}function q0(t,n){j0()||H0(),Op(t,n(t.value))}function Rk(t){t.version++,Mk(),P0(t),Tk?.()}function K0(t,n,e){let i=Object.create(Ok);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;let r=l=>{i.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(Xc(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Ap)}let a=()=>{if(i.fn===null)return;if(Ik())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!Zc(i))return;i.hasRun=!0;let l=Ha(i);try{i.cleanupFn(),i.cleanupFn=Ap,i.fn(r)}finally{Qc(i,l)}};return i.ref={notify:()=>V0(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[mn]:i},i.ref}var ht,za,Yc,mn,ts,Mp,Sp,Kc,Sk,$0,Tk,Y0,Ap,Ok,Q0=f(()=>{"use strict";ht=null,za=!1,Yc=1,mn=Symbol("SIGNAL");ts={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};Mp=Symbol("UNSET"),Sp=Symbol("COMPUTING"),Kc=Symbol("ERRORED"),Sk=ne(x({},ts),{value:Mp,dirty:!0,error:null,equal:F0,producerMustRecompute(t){return t.value===Mp||t.value===Sp},producerRecomputeValue(t){if(t.value===Sp)throw new Error("Detected cycle in computations.");let n=t.value;t.value=Sp;let e=Ha(t),i;try{i=t.computation()}catch(r){i=Kc,t.error=r}finally{Qc(t,e)}if(n!==Mp&&n!==Kc&&i!==Kc&&t.equal(n,i)){t.value=n;return}t.value=i,t.version++}});$0=Ak;Tk=null;Y0=ne(x({},ts),{equal:F0,value:void 0});Ap=()=>{},Ok=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Ap})});function q(t){return typeof t=="function"}var ut=f(()=>{"use strict"});function ns(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var td=f(()=>{"use strict"});var nd,Z0=f(()=>{"use strict";td();nd=ns(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
2
2
  ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=e})});function Qr(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var id=f(()=>{"use strict"});function rd(t){return t instanceof ge||t&&"closed"in t&&q(t.remove)&&q(t.add)&&q(t.unsubscribe)}function X0(t){q(t)?t():t.unsubscribe()}var ge,kp,Zr=f(()=>{"use strict";ut();Z0();id();ge=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(q(i))try{i()}catch(o){n=o instanceof nd?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{X0(o)}catch(s){n=n??[],s instanceof nd?n=[...n,...s.errors]:n.push(s)}}if(n)throw new nd(n)}}add(n){var e;if(n&&n!==this)if(this.closed)X0(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Qr(e,n)}remove(n){let{_finalizers:e}=this;e&&Qr(e,n),n instanceof t&&n._removeParent(this)}};ge.EMPTY=(()=>{let t=new ge;return t.closed=!0,t})();kp=ge.EMPTY});var Tn,Ga=f(()=>{"use strict";Tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var is,Fp=f(()=>{"use strict";is={setTimeout(t,n,...e){let{delegate:i}=is;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=is;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function od(t){is.setTimeout(()=>{let{onUnhandledError:n}=Tn;if(n)n(t);else throw t})}var Np=f(()=>{"use strict";Ga();Fp()});function Xr(){}var sd=f(()=>{"use strict"});function ex(t){return Lp("E",void 0,t)}function tx(t){return Lp("N",t,void 0)}function Lp(t,n,e){return{kind:t,value:n,error:e}}var J0,nx=f(()=>{"use strict";J0=Lp("C",void 0,void 0)});function rs(t){if(Tn.useDeprecatedSynchronousErrorHandling){let n=!Jr;if(n&&(Jr={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Jr;if(Jr=null,e)throw i}}else t()}function ix(t){Tn.useDeprecatedSynchronousErrorHandling&&Jr&&(Jr.errorThrown=!0,Jr.error=t)}var Jr,ad=f(()=>{"use strict";Ga();Jr=null});function Pp(t,n){return Rk.call(t,n)}function ld(t){Tn.useDeprecatedSynchronousErrorHandling?ix(t):od(t)}function Ok(t){throw t}function jp(t,n){let{onStoppedNotification:e}=Tn;e&&is.setTimeout(()=>e(t,n))}var eo,Rk,Vp,pi,kk,cd=f(()=>{"use strict";ut();Zr();Ga();Np();sd();nx();Fp();ad();eo=class extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,rd(n)&&n.add(this)):this.destination=kk}static create(n,e,i){return new pi(n,e,i)}next(n){this.isStopped?jp(tx(n),this):this._next(n)}error(n){this.isStopped?jp(ex(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?jp(J0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Rk=Function.prototype.bind;Vp=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){ld(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){ld(i)}else ld(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){ld(e)}}},pi=class extends eo{constructor(n,e,i){super();let r;if(q(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Tn.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Pp(n.next,o),error:n.error&&Pp(n.error,o),complete:n.complete&&Pp(n.complete,o)}):r=n}this.destination=new Vp(r)}};kk={closed:!0,next:Xr,error:Ok,complete:Xr}});var os,dd=f(()=>{"use strict";os=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function Vt(t){return t}var tr=f(()=>{"use strict"});function Bp(...t){return Up(t)}function Up(t){return t.length===0?Vt:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var zp=f(()=>{"use strict";tr()});function rx(t){var n;return(n=t??Tn.Promise)!==null&&n!==void 0?n:Promise}function Fk(t){return t&&q(t.next)&&q(t.error)&&q(t.complete)}function Nk(t){return t&&t instanceof eo||Fk(t)&&rd(t)}var Q,Tt=f(()=>{"use strict";cd();Zr();dd();zp();Ga();ut();ad();Q=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=Nk(e)?e:new pi(e,i,r);return rs(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=rx(i),new i((r,o)=>{let s=new pi({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[os](){return this}pipe(...e){return Up(e)(this)}toPromise(e){return e=rx(e),new e((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})()});function $p(t){return q(t?.lift)}function te(t){return n=>{if($p(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ke=f(()=>{"use strict";ut()});function J(t,n,e,i,r){return new Hp(t,n,e,i,r)}var Hp,Xe=f(()=>{"use strict";cd();Hp=class extends eo{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}}});function ss(){return te((t,n)=>{let e=null;t._refCount++;let i=J(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Gp=f(()=>{"use strict";Ke();Xe()});var to,ox=f(()=>{"use strict";Tt();Zr();Gp();Xe();Ke();to=class extends Q{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$p(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;let e=this.getSubject();n.add(this.source.subscribe(J(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return ss()(this)}}});var sx,ax=f(()=>{"use strict";td();sx=ns(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var R,ud,Wa=f(()=>{"use strict";Tt();Zr();ax();id();ad();R=(()=>{class t extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new ud(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new sx}next(e){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?kp:(this.currentObservers=null,o.push(e),new ge(()=>{this.currentObservers=null,Qr(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Q;return e.source=this,e}}return t.create=(n,e)=>new ud(n,e),t})(),ud=class extends R{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:kp}}});var ot,lx=f(()=>{"use strict";Wa();ot=class extends R{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}});var qa,Wp=f(()=>{"use strict";qa={now(){return(qa.delegate||Date).now()},delegate:void 0}});var no,qp=f(()=>{"use strict";Wa();Wp();no=class extends R{constructor(n=1/0,e=1/0,i=qa){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let s=e.now(),a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}});var fd,cx=f(()=>{"use strict";Zr();fd=class extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}});var Ya,dx=f(()=>{"use strict";Ya={setInterval(t,n,...e){let{delegate:i}=Ya;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=Ya;return(n?.clearInterval||clearInterval)(t)},delegate:void 0}});var as,Yp=f(()=>{"use strict";cx();dx();id();as=class extends fd{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return Ya.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&Ya.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Qr(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}});function ux(t){return t in Qp?(delete Qp[t],!0):!1}var Lk,Kp,Qp,fx,hx=f(()=>{"use strict";Lk=1,Qp={};fx={setImmediate(t){let n=Lk++;return Qp[n]=!0,Kp||(Kp=Promise.resolve()),Kp.then(()=>ux(n)&&t()),n},clearImmediate(t){ux(t)}}});var Pk,jk,Ka,px=f(()=>{"use strict";hx();({setImmediate:Pk,clearImmediate:jk}=fx),Ka={setImmediate(...t){let{delegate:n}=Ka;return(n?.setImmediate||Pk)(...t)},clearImmediate(t){let{delegate:n}=Ka;return(n?.clearImmediate||jk)(t)},delegate:void 0}});var hd,mx=f(()=>{"use strict";Yp();px();hd=class extends as{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Ka.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Ka.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}});var ls,gx=f(()=>{"use strict";Wp();ls=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};ls.now=qa.now});var cs,Zp=f(()=>{"use strict";gx();cs=class extends ls{constructor(n,e=ls.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}});var pd,vx=f(()=>{"use strict";Zp();pd=class extends cs{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}});var ds,yx=f(()=>{"use strict";mx();vx();ds=new pd(hd)});var io,_x,Qa=f(()=>{"use strict";Yp();Zp();io=new cs(as),_x=io});var Bt,Za=f(()=>{"use strict";Tt();Bt=new Q(t=>t.complete())});function md(t){return t&&q(t.schedule)}var Xp=f(()=>{"use strict";ut()});function Jp(t){return t[t.length-1]}function gd(t){return q(Jp(t))?t.pop():void 0}function zn(t){return md(Jp(t))?t.pop():void 0}function bx(t,n){return typeof Jp(t)=="number"?t.pop():n}var ro=f(()=>{"use strict";ut();Xp()});function Cx(t,n,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function xx(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function oo(t){return this instanceof oo?(this.v=t,this):new oo(t)}function wx(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(p){return function(v){return Promise.resolve(v).then(p,u)}}function a(p,v){i[p]&&(r[p]=function(_){return new Promise(function(E,I){o.push([p,_,E,I])>1||l(p,_)})},v&&(r[p]=v(r[p])))}function l(p,v){try{c(i[p](v))}catch(_){m(o[0][3],_)}}function c(p){p.value instanceof oo?Promise.resolve(p.value.v).then(d,u):m(o[0][2],p)}function d(p){l("next",p)}function u(p){l("throw",p)}function m(p,v){p(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Ex(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof xx=="function"?xx(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var em=f(()=>{"use strict"});var us,vd=f(()=>{"use strict";us=t=>t&&typeof t.length=="number"&&typeof t!="function"});function yd(t){return q(t?.then)}var tm=f(()=>{"use strict";ut()});function _d(t){return q(t[os])}var nm=f(()=>{"use strict";dd();ut()});function bd(t){return Symbol.asyncIterator&&q(t?.[Symbol.asyncIterator])}var im=f(()=>{"use strict";ut()});function xd(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var rm=f(()=>{"use strict"});function Vk(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cd,om=f(()=>{"use strict";Cd=Vk()});function wd(t){return q(t?.[Cd])}var sm=f(()=>{"use strict";om();ut()});function Ed(t){return wx(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield oo(e.read());if(r)return yield oo(void 0);yield yield oo(i)}}finally{e.releaseLock()}})}function Dd(t){return q(t?.getReader)}var Id=f(()=>{"use strict";em();ut()});function Re(t){if(t instanceof Q)return t;if(t!=null){if(_d(t))return Bk(t);if(us(t))return Uk(t);if(yd(t))return zk(t);if(bd(t))return Dx(t);if(wd(t))return $k(t);if(Dd(t))return Hk(t)}throw xd(t)}function Bk(t){return new Q(n=>{let e=t[os]();if(q(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Uk(t){return new Q(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function zk(t){return new Q(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,od)})}function $k(t){return new Q(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Dx(t){return new Q(n=>{Gk(t,n).catch(e=>n.error(e))})}function Hk(t){return Dx(Ed(t))}function Gk(t,n){var e,i,r,o;return Cx(this,void 0,void 0,function*(){try{for(e=Ex(t);i=yield e.next(),!i.done;){let s=i.value;if(n.next(s),n.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}var Rt=f(()=>{"use strict";em();vd();tm();Tt();nm();im();rm();sm();Id();ut();Np();dd()});function Gt(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}var fs=f(()=>{"use strict"});function Md(t,n=0){return te((e,i)=>{e.subscribe(J(i,r=>Gt(i,t,()=>i.next(r),n),()=>Gt(i,t,()=>i.complete(),n),r=>Gt(i,t,()=>i.error(r),n)))})}var am=f(()=>{"use strict";fs();Ke();Xe()});function Sd(t,n=0){return te((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}var lm=f(()=>{"use strict";Ke()});function Ix(t,n){return Re(t).pipe(Sd(n),Md(n))}var Mx=f(()=>{"use strict";Rt();am();lm()});function Sx(t,n){return Re(t).pipe(Sd(n),Md(n))}var Ax=f(()=>{"use strict";Rt();am();lm()});function Tx(t,n){return new Q(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}var Rx=f(()=>{"use strict";Tt()});function Ox(t,n){return new Q(e=>{let i;return Gt(e,n,()=>{i=t[Cd](),Gt(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>q(i?.return)&&i.return()})}var kx=f(()=>{"use strict";Tt();om();ut();fs()});function Ad(t,n){if(!t)throw new Error("Iterable cannot be null");return new Q(e=>{Gt(e,n,()=>{let i=t[Symbol.asyncIterator]();Gt(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}var cm=f(()=>{"use strict";Tt();fs()});function Fx(t,n){return Ad(Ed(t),n)}var Nx=f(()=>{"use strict";cm();Id()});function Lx(t,n){if(t!=null){if(_d(t))return Ix(t,n);if(us(t))return Tx(t,n);if(yd(t))return Sx(t,n);if(bd(t))return Ad(t,n);if(wd(t))return Ox(t,n);if(Dd(t))return Fx(t,n)}throw xd(t)}var Px=f(()=>{"use strict";Mx();Ax();Rx();kx();cm();nm();tm();vd();sm();im();rm();Id();Nx()});function Le(t,n){return n?Lx(t,n):Re(t)}var hs=f(()=>{"use strict";Px();Rt()});function O(...t){let n=zn(t);return Le(t,n)}var jx=f(()=>{"use strict";ro();hs()});function nr(t,n){let e=q(t)?t:()=>t,i=r=>r.error(e());return new Q(n?r=>n.schedule(i,0,r):i)}var Vx=f(()=>{"use strict";Tt();ut()});function gn(t){return!!t&&(t instanceof Q||q(t.lift)&&q(t.subscribe))}var Bx=f(()=>{"use strict";Tt();ut()});var mi,Xa=f(()=>{"use strict";td();mi=ns(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"})});function Ux(t){return t instanceof Date&&!isNaN(t)}var zx=f(()=>{"use strict"});function P(t,n){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>{i.next(t.call(n,o,r++))}))})}var ps=f(()=>{"use strict";Ke();Xe()});function qk(t,n){return Wk(n)?t(...n):t(n)}function ms(t){return P(n=>qk(t,n))}var Wk,Td=f(()=>{"use strict";ps();({isArray:Wk}=Array)});function Rd(t){if(t.length===1){let n=t[0];if(Yk(n))return{args:n,keys:null};if(Xk(n)){let e=Zk(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function Xk(t){return t&&typeof t=="object"&&Kk(t)===Qk}var Yk,Kk,Qk,Zk,dm=f(()=>{"use strict";({isArray:Yk}=Array),{getPrototypeOf:Kk,prototype:Qk,keys:Zk}=Object});function Od(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}var um=f(()=>{"use strict"});function so(...t){let n=zn(t),e=gd(t),{args:i,keys:r}=Rd(t);if(i.length===0)return Le([],n);let o=new Q(Jk(i,n,r?s=>Od(r,s):Vt));return e?o.pipe(ms(e)):o}function Jk(t,n,e=Vt){return i=>{$x(n,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)$x(n,()=>{let c=Le(t[l],n),d=!1;c.subscribe(J(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function $x(t,n,e){t?Gt(e,t,n):n()}var Hx=f(()=>{"use strict";Tt();dm();hs();tr();Td();ro();um();Xe();fs()});function Gx(t,n,e,i,r,o,s,a){let l=[],c=0,d=0,u=!1,m=()=>{u&&!l.length&&!c&&n.complete()},p=_=>c<i?v(_):l.push(_),v=_=>{o&&n.next(_),c++;let E=!1;Re(e(_,d++)).subscribe(J(n,I=>{r?.(I),o?p(I):n.next(I)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&c<i;){let I=l.shift();s?Gt(n,s,()=>v(I)):v(I)}m()}catch(I){n.error(I)}}))};return t.subscribe(J(n,p,()=>{u=!0,m()})),()=>{a?.()}}var Wx=f(()=>{"use strict";Rt();fs();Xe()});function Ue(t,n,e=1/0){return q(n)?Ue((i,r)=>P((o,s)=>n(i,o,r,s))(Re(t(i,r))),e):(typeof n=="number"&&(e=n),te((i,r)=>Gx(i,r,t,e)))}var ao=f(()=>{"use strict";ps();Rt();Ke();Wx();ut()});function ir(t=1/0){return Ue(Vt,t)}var kd=f(()=>{"use strict";ao();tr()});function qx(){return ir(1)}var Yx=f(()=>{"use strict";kd()});function Xt(...t){return qx()(Le(t,zn(t)))}var Fd=f(()=>{"use strict";Yx();ro();hs()});function Jt(t){return new Q(n=>{Re(t()).subscribe(n)})}var Kx=f(()=>{"use strict";Tt();Rt()});function lo(...t){let n=gd(t),{args:e,keys:i}=Rd(t),r=new Q(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d<s;d++){let u=!1;Re(e[d]).subscribe(J(o,m=>{u||(u=!0,c--),a[d]=m},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?Od(i,a):a),o.complete())}))}});return n?r.pipe(ms(n)):r}var Qx=f(()=>{"use strict";Tt();dm();Rt();ro();Xe();Td();um()});function gi(t,n,e,i){if(q(e)&&(i=e,e=void 0),i)return gi(t,n,e).pipe(ms(i));let[r,o]=oF(t)?tF.map(s=>a=>t[s](n,a,e)):iF(t)?eF.map(Zx(t,n)):rF(t)?nF.map(Zx(t,n)):[];if(!r&&us(t))return Ue(s=>gi(s,n,e))(Re(t));if(!r)throw new TypeError("Invalid event target");return new Q(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function Zx(t,n){return e=>i=>t[e](n,i)}function iF(t){return q(t.addListener)&&q(t.removeListener)}function rF(t){return q(t.on)&&q(t.off)}function oF(t){return q(t.addEventListener)&&q(t.removeEventListener)}var eF,tF,nF,Xx=f(()=>{"use strict";Rt();Tt();ao();vd();ut();Td();eF=["addListener","removeListener"],tF=["addEventListener","removeEventListener"],nF=["on","off"]});function Nd(t=0,n,e=_x){let i=-1;return n!=null&&(md(n)?e=n:i=n),new Q(r=>{let o=Ux(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}var fm=f(()=>{"use strict";Tt();Qa();Xp();zx()});function ft(...t){let n=zn(t),e=bx(t,1/0),i=t;return i.length?i.length===1?Re(i[0]):ir(e)(Le(i,n)):Bt}var Jx=f(()=>{"use strict";kd();Rt();Za();ro();hs()});function ue(t,n){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>t.call(n,o,r++)&&i.next(o)))})}var Ja=f(()=>{"use strict";Ke();Xe()});var eC=f(()=>{"use strict"});function tC(t){return te((n,e)=>{let i=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};n.subscribe(J(e,c=>{i=!0,r=c,o||Re(t(c)).subscribe(o=J(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}var nC=f(()=>{"use strict";Ke();Rt();Xe()});function Ld(t,n=io){return tC(()=>Nd(t,n))}var iC=f(()=>{"use strict";Qa();nC();fm()});function en(t){return te((n,e)=>{let i=null,r=!1,o;i=n.subscribe(J(e,void 0,void 0,s=>{o=Re(t(s,en(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}var hm=f(()=>{"use strict";Rt();Xe();Ke()});function rC(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(J(s,d=>{let u=c++;l=a?t(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}var oC=f(()=>{"use strict";Xe()});function Rn(t,n){return q(n)?Ue(t,n,1):Ue(t,1)}var sC=f(()=>{"use strict";ao();ut()});function vi(t,n=io){return te((e,i)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=s+t,d=n.now();if(d<c){r=this.schedule(void 0,c-d),i.add(r);return}a()}e.subscribe(J(i,c=>{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}var pm=f(()=>{"use strict";Qa();Ke();Xe()});function rr(t){return te((n,e)=>{let i=!1;n.subscribe(J(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}var Pd=f(()=>{"use strict";Ke();Xe()});function Te(t){return t<=0?()=>Bt:te((n,e)=>{let i=0;n.subscribe(J(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}var jd=f(()=>{"use strict";Za();Ke();Xe()});function aC(){return te((t,n)=>{t.subscribe(J(n,Xr))})}var lC=f(()=>{"use strict";Ke();Xe();sd()});function el(t){return P(()=>t)}var mm=f(()=>{"use strict";ps()});function gm(t,n){return n?e=>Xt(n.pipe(Te(1),aC()),e.pipe(gm(t))):Ue((e,i)=>Re(t(e,i)).pipe(Te(1),el(e)))}var cC=f(()=>{"use strict";Fd();jd();lC();mm();ao();Rt()});function Vd(t,n=io){let e=Nd(t,n);return gm(()=>e)}var dC=f(()=>{"use strict";Qa();cC();fm()});function co(t,n=Vt){return t=t??sF,te((e,i)=>{let r,o=!0;e.subscribe(J(i,s=>{let a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function sF(t,n){return t===n}var uC=f(()=>{"use strict";tr();Ke();Xe()});function Bd(t=aF){return te((n,e)=>{let i=!1;n.subscribe(J(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function aF(){return new mi}var vm=f(()=>{"use strict";Xa();Ke();Xe()});function Wt(t){return te((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}var ym=f(()=>{"use strict";Ke()});function $n(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ue((r,o)=>t(r,o,i)):Vt,Te(1),e?rr(n):Bd(()=>new mi))}var fC=f(()=>{"use strict";Xa();Ja();jd();Pd();vm();tr()});function gs(t){return t<=0?()=>Bt:te((n,e)=>{let i=[];n.subscribe(J(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}var _m=f(()=>{"use strict";Za();Ke();Xe()});function bm(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ue((r,o)=>t(r,o,i)):Vt,gs(1),e?rr(n):Bd(()=>new mi))}var hC=f(()=>{"use strict";Xa();Ja();_m();vm();Pd();tr()});function xm(t,n){return te(rC(t,n,arguments.length>=2,!0))}var pC=f(()=>{"use strict";Ke();oC()});function tl(t={}){let{connector:n=()=>new R,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,d=!1,u=!1,m=()=>{a?.unsubscribe(),a=void 0},p=()=>{m(),s=l=void 0,d=u=!1},v=()=>{let _=s;p(),_?.unsubscribe()};return te((_,E)=>{c++,!u&&!d&&m();let I=l=l??n();E.add(()=>{c--,c===0&&!u&&!d&&(a=Cm(v,r))}),I.subscribe(E),!s&&c>0&&(s=new pi({next:U=>I.next(U),error:U=>{u=!0,m(),a=Cm(p,e,U),I.error(U)},complete:()=>{d=!0,m(),a=Cm(p,i),I.complete()}}),Re(_).subscribe(s))})(o)}}function Cm(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new pi({next:()=>{i.unsubscribe(),t()}});return Re(n(...e)).subscribe(i)}var wm=f(()=>{"use strict";Rt();Wa();cd();Ke()});function uo(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,tl({connector:()=>new no(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var mC=f(()=>{"use strict";qp();wm()});function nl(t){return ue((n,e)=>t<=e)}var gC=f(()=>{"use strict";Ja()});function wt(...t){let n=zn(t);return te((e,i)=>{(n?Xt(t,e,n):Xt(t,e)).subscribe(i)})}var vC=f(()=>{"use strict";Fd();ro();Ke()});function ze(t,n){return te((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe(J(i,l=>{r?.unsubscribe();let c=0,d=o++;Re(t(l,d)).subscribe(r=J(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}var yC=f(()=>{"use strict";Rt();Ke();Xe()});function ae(t){return te((n,e)=>{Re(t).subscribe(J(e,()=>e.complete(),Xr)),!e.closed&&n.subscribe(e)})}var Em=f(()=>{"use strict";Ke();Xe();Rt();sd()});function Dm(t,n=!1){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>{let s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}var _C=f(()=>{"use strict";Ke();Xe()});function Pe(t,n,e){let i=q(t)||n||e?{next:t,error:n,complete:e}:t;return i?te((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe(J(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Vt}var Im=f(()=>{"use strict";ut();Ke();Xe();tr()});var ke=f(()=>{"use strict";Tt();ox();Wa();lx();qp();yx();Zr();zp();Bx();Xa();Hx();Fd();Kx();Qx();hs();Xx();Jx();jx();Vx();Za();eC();hm();pm();ym();ps();ao();Em();Im()});var st=f(()=>{"use strict";iC();hm();sC();pm();Pd();dC();uC();Ja();ym();fC();hC();ps();mm();kd();ao();Gp();pC();wm();mC();gC();vC();yC();jd();_m();Em();_C();Im()});function Mu(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}function pl(t){return{toString:t}.toString()}function lF(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function uw(t,n,e){return pl(()=>{let i=lF(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,d){let u=l.hasOwnProperty(Ud)?l[Ud]:Object.defineProperty(l,Ud,{value:[]})[Ud];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function $e(t){for(let n in t)if(t[n]===$e)return n;throw Error("Could not find renamed property on target object.")}function cF(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function zt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(zt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(`
4
- `);return e===-1?n:n.substring(0,e)}function Bm(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}function gr(t){return t.__forward_ref__=gr,t.toString=function(){return zt(this())},t}function Et(t){return fw(t)?t():t}function fw(t){return typeof t=="function"&&t.hasOwnProperty(dF)&&t.__forward_ref__===gr}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function N(t){return{providers:t.providers||[],imports:t.imports||[]}}function Su(t){return bC(t,pw)||bC(t,mw)}function hw(t){return Su(t)!==null}function bC(t,n){return t.hasOwnProperty(n)?t[n]:null}function uF(t){let n=t&&(t[pw]||t[mw]);return n||null}function xC(t){return t&&(t.hasOwnProperty(CC)||t.hasOwnProperty(fF))?t[CC]:null}function gw(t){return t&&!!t.\u0275providers}function ho(t){return typeof t=="string"?t:t==null?"":String(t)}function vF(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ho(t)}function yF(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S(-200,t)}function Zg(t,n){throw new S(-201,!1)}function vw(){return Um}function qt(t){let n=Um;return Um=t,n}function yw(t,n,e){let i=Su(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&xe.Optional)return null;if(n!==void 0)return n;Zg(t,"Injector")}function wF(){return xs}function or(t){let n=xs;return xs=t,n}function EF(t,n=xe.Default){if(xs===void 0)throw new S(-203,!1);return xs===null?yw(t,void 0,n):xs.get(t,n&xe.Optional?null:void 0,n)}function g(t,n=xe.Default){return(vw()||EF)(Et(t),n)}function y(t,n=xe.Default){return g(t,Au(n))}function Au(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $m(t){let n=[];for(let e=0;e<t.length;e++){let i=Et(t[e]);if(Array.isArray(i)){if(i.length===0)throw new S(900,!1);let r,o=xe.Default;for(let s=0;s<i.length;s++){let a=i[s],l=DF(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}n.push(g(r,o))}else n.push(g(i))}return n}function _w(t,n){return t[zm]=n,t.prototype[zm]=n,t}function DF(t){return t[zm]}function IF(t,n,e,i){let r=t[nu];throw n[EC]&&r.unshift(n[EC]),t.message=MF(`
5
- `+t.message,r,e,i),t[bF]=r,t[nu]=null,t}function MF(t,n,e,i=null){t=t&&t.charAt(0)===`
6
- `&&t.charAt(1)==CF?t.slice(2):t;let r=zt(n);if(Array.isArray(n))r=n.map(zt).join(" -> ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):zt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(xF,`
7
- `)}`}function po(t,n){let e=t.hasOwnProperty(tu);return e?t[tu]:null}function SF(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function AF(t){return t.flat(Number.POSITIVE_INFINITY)}function Xg(t,n){t.forEach(e=>Array.isArray(e)?Xg(e,n):n(e))}function bw(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function iu(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function TF(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function RF(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Ru(t,n,e){let i=gl(t,n);return i>=0?t[i|1]=e:(i=~i,RF(t,i,n,e)),i}function Mm(t,n){let e=gl(t,n);if(e>=0)return t[e|1]}function gl(t,n){return OF(t,n,1)}function OF(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}function kF(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Hm(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{let o=r,s=e[++i];FF(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Ew(t){return t===3||t===4||t===6}function FF(t){return t.charCodeAt(0)===64}function al(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?DC(t,e,r,null,n[++i]):DC(t,e,r,null,null))}}return t}function DC(t,n,e,i,r){let o=0,s=t.length;if(n===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){if(i===null){r!==null&&(t[o+1]=r);return}else if(i===t[o+1]){t[o+2]=r;return}}o++,i!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),i!==null&&t.splice(o++,0,i),r!==null&&t.splice(o++,0,r)}function NF(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&kF(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(Jg(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function Jg(t){return t.type===4&&t.value!==Dw}function LF(t,n,e){let i=t.type===4&&!e?Dw:t.value;return n===i}function PF(t,n,e){let i=4,r=t.attrs,o=r!==null?BF(r):0,s=!1;for(let a=0;a<n.length;a++){let l=n[a];if(typeof l=="number"){if(!s&&!On(i)&&!On(l))return!1;if(s&&On(l))continue;s=!1,i=l|i&1;continue}if(!s)if(i&4){if(i=2|i&1,l!==""&&!LF(t,l,e)||l===""&&n.length===1){if(On(i))return!1;s=!0}}else if(i&8){if(r===null||!NF(t,r,l,e)){if(On(i))return!1;s=!0}}else{let c=n[++a],d=jF(l,r,Jg(t),e);if(d===-1){if(On(i))return!1;s=!0;continue}if(c!==""){let u;if(d>o?u="":u=r[d+1].toLowerCase(),i&2&&c!==u){if(On(i))return!1;s=!0}}}}return On(i)||s}function On(t){return(t&1)===0}function jF(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let s=n[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=n[++r];for(;typeof a=="string";)a=n[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return UF(n,t)}function Iw(t,n,e=!1){for(let i=0;i<n.length;i++)if(PF(t,n[i],e))return!0;return!1}function VF(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if(!(e&1))return n[e+1]}return null}function BF(t){for(let n=0;n<t.length;n++){let e=t[n];if(Ew(e))return n}return t.length}function UF(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function zF(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function IC(t,n){return t?":not("+n.trim()+")":n}function $F(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(i&2){let a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!On(s)&&(n+=IC(o,r),r=""),i=s,o=o||!On(i);e++}return r!==""&&(n+=IC(o,r)),n}function HF(t){return t.map($F).join(",")}function GF(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!On(r))break;r=o}i++}return{attrs:n,classes:e}}function re(t){return pl(()=>{let n=Tw(t),e=ne(x({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ww.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Wn.Emulated,styles:t.styles||Ut,_:null,schemas:t.schemas||null,tView:null,id:""});Rw(e);let i=t.dependencies;return e.directiveDefs=SC(i,!1),e.pipeDefs=SC(i,!0),e.id=YF(e),e})}function WF(t){return cr(t)||ev(t)}function qF(t){return t!==null}function L(t){return pl(()=>({type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function MC(t,n){if(t==null)return yi;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s,a=lr.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==lr.None?[i,a]:i,n[o]=s):e[o]=i}return e}function j(t){return pl(()=>{let n=Tw(t);return Rw(n),n})}function ks(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function cr(t){return t[hF]||null}function ev(t){return t[pF]||null}function Mw(t){return t[mF]||null}function Sw(t){let n=cr(t)||ev(t)||Mw(t);return n!==null?n.standalone:!1}function Aw(t,n){let e=t[gF]||null;if(!e&&n===!0)throw new Error(`Type ${zt(t)} does not have '\u0275mod' property.`);return e}function Tw(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||yi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:MC(t.inputs,n),outputs:MC(t.outputs),debugInfo:null}}function Rw(t){t.features?.forEach(n=>n(t))}function SC(t,n){if(!t)return null;let e=n?Mw:WF;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(qF)}function YF(t){let n=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function vl(t){return{\u0275providers:t}}function tv(...t){return{\u0275providers:Ow(!0,t),\u0275fromNgModule:!0}}function Ow(t,...n){let e=[],i=new Set,r,o=s=>{e.push(s)};return Xg(n,s=>{let a=s;Gm(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&kw(r,o),e}function kw(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];nv(r,o=>{n(o,i)})}}function Gm(t,n,e,i){if(t=Et(t),!t)return!1;let r=null,o=xC(t),s=!o&&cr(t);if(!o&&!s){let l=t.ngModule;if(o=xC(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Gm(c,n,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let c;try{Xg(o.imports,d=>{Gm(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&kw(c,n)}if(!a){let c=po(r)||(()=>new r);n({provide:r,useFactory:c,deps:Ut},r),n({provide:Cw,useValue:r,multi:!0},r),n({provide:ws,useValue:()=>g(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;nv(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function nv(t,n){for(let e of t)gw(e)&&(e=e.\u0275providers),Array.isArray(e)?nv(e,n):n(e)}function Fw(t){return t!==null&&typeof t=="object"&&KF in t}function QF(t){return!!(t&&t.useExisting)}function ZF(t){return!!(t&&t.useFactory)}function Es(t){return typeof t=="function"}function XF(t){return!!t.useClass}function iv(){return Sm===void 0&&(Sm=new ru),Sm}function Wm(t){let n=Su(t),e=n!==null?n.factory:po(t);if(e!==null)return e;if(t instanceof C)throw new S(204,!1);if(t instanceof Function)return eN(t);throw new S(204,!1)}function eN(t){if(t.length>0)throw new S(204,!1);let e=uF(t);return e!==null?()=>e.factory(t):()=>new t}function tN(t){if(Fw(t))return vs(void 0,t.useValue);{let n=Nw(t);return vs(n,Yd)}}function Nw(t,n,e){let i;if(Es(t)){let r=Et(t);return po(r)||Wm(r)}else if(Fw(t))i=()=>Et(t.useValue);else if(ZF(t))i=()=>t.useFactory(...$m(t.deps||[]));else if(QF(t))i=()=>g(Et(t.useExisting));else{let r=Et(t&&(t.useClass||t.provide));if(nN(t))i=()=>new r(...$m(t.deps));else return po(r)||Wm(r)}return i}function vs(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function nN(t){return!!t.deps}function iN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function rN(t){return typeof t=="function"||typeof t=="object"&&t instanceof C}function qm(t,n){for(let e of t)Array.isArray(e)?qm(e,n):e&&gw(e)?qm(e.\u0275providers,n):n(e)}function yn(t,n){t instanceof ll&&t.assertNotDestroyed();let e,i=or(t),r=qt(void 0);try{return n()}finally{or(i),qt(r)}}function Lw(){return vw()!==void 0||wF()!=null}function rv(t){if(!Lw())throw new S(-203,!1)}function oN(t){return typeof t=="function"}function ar(t){return Array.isArray(t)&&typeof t[jw]=="object"}function wi(t){return Array.isArray(t)&&t[jw]===!0}function ov(t){return(t.flags&4)!==0}function Fu(t){return t.componentOffset>-1}function Nu(t){return(t.flags&1)===1}function dr(t){return!!t.template}function Ym(t){return(t[Z]&512)!==0}function Vw(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}function He(){return Bw}function Bw(t){return t.type.prototype.ngOnChanges&&(t.setInput=aN),sN}function sN(){let t=zw(this),n=t?.current;if(n){let e=t.previous;if(e===yi)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function aN(t,n,e,i,r){let o=this.declaredInputs[i],s=zw(t)||lN(t,{previous:yi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new dl(c&&c.currentValue,e,l===yi),Vw(t,n,r,e)}function zw(t){return t[Uw]||null}function lN(t,n){return t[Uw]=n}function Yn(t){for(;Array.isArray(t);)t=t[Ci];return t}function Hw(t,n){return Yn(n[t])}function _n(t,n){return Yn(n[t.index])}function sv(t,n){return t.data[n]}function av(t,n){return t[n]}function vr(t,n){let e=n[t];return ar(e)?e:e[Ci]}function dN(t){return(t[Z]&4)===4}function lv(t){return(t[Z]&128)===128}function uN(t){return wi(t[Ft])}function ur(t,n){return n==null?null:t[n]}function Gw(t){t[ys]=0}function Ww(t){t[Z]&1024||(t[Z]|=1024,lv(t)&&Pu(t))}function fN(t,n){for(;t>0;)n=n[Fs],t--;return n}function Lu(t){return!!(t[Z]&9216||t[vn]?.dirty)}function Km(t){t[qn].changeDetectionScheduler?.notify(8),t[Z]&64&&(t[Z]|=1024),Lu(t)&&Pu(t)}function Pu(t){t[qn].changeDetectionScheduler?.notify(0);let n=vo(t);for(;n!==null&&!(n[Z]&8192||(n[Z]|=8192,!lv(n)));)n=vo(n)}function qw(t,n){if((t[Z]&256)===256)throw new S(911,!1);t[sr]===null&&(t[sr]=[]),t[sr].push(n)}function hN(t,n){if(t[sr]===null)return;let e=t[sr].indexOf(n);e!==-1&&t[sr].splice(e,1)}function vo(t){let n=t[Ft];return wi(n)?n[Ft]:n}function pN(){return de.lFrame.elementDepthCount}function mN(){de.lFrame.elementDepthCount++}function gN(){de.lFrame.elementDepthCount--}function Kw(){return de.bindingsEnabled}function Qw(){return de.skipHydrationRootTNode!==null}function vN(t){return de.skipHydrationRootTNode===t}function yN(){de.skipHydrationRootTNode=null}function X(){return de.lFrame.lView}function et(){return de.lFrame.tView}function ve(t){return de.lFrame.contextLView=t,t[Ot]}function ye(t){return de.lFrame.contextLView=null,t}function It(){let t=Zw();for(;t!==null&&t.type===64;)t=t.parent;return t}function Zw(){return de.lFrame.currentTNode}function _N(){let t=de.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function wo(t,n){let e=de.lFrame;e.currentTNode=t,e.isParent=n}function cv(){return de.lFrame.isParent}function dv(){de.lFrame.isParent=!1}function bN(){return de.lFrame.contextLView}function Xw(){return Yw}function RC(t){Yw=t}function Ns(){let t=de.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function xN(){return de.lFrame.bindingIndex}function CN(t){return de.lFrame.bindingIndex=t}function Eo(){return de.lFrame.bindingIndex++}function uv(t){let n=de.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function wN(){return de.lFrame.inI18n}function EN(t,n){let e=de.lFrame;e.bindingIndex=e.bindingRootIndex=t,Qm(n)}function DN(){return de.lFrame.currentDirectiveIndex}function Qm(t){de.lFrame.currentDirectiveIndex=t}function IN(t){let n=de.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function fv(){return de.lFrame.currentQueryIndex}function ju(t){de.lFrame.currentQueryIndex=t}function MN(t){let n=t[ie];return n.type===2?n.declTNode:n.type===1?t[Qt]:null}function Jw(t,n,e){if(e&xe.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&xe.Host);)if(r=MN(o),r===null||(o=o[Fs],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=de.lFrame=eE();return i.currentTNode=n,i.lView=t,!0}function hv(t){let n=eE(),e=t[ie];de.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function eE(){let t=de.lFrame,n=t===null?null:t.child;return n===null?tE(t):n}function tE(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function nE(){let t=de.lFrame;return de.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}function pv(){let t=nE();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function SN(t){return(de.lFrame.contextLView=fN(t,de.lFrame.contextLView))[Ot]}function Ei(){return de.lFrame.selectedIndex}function yo(t){de.lFrame.selectedIndex=t}function Vu(){let t=de.lFrame;return sv(t.tView,t.selectedIndex)}function Do(){de.lFrame.currentNamespace=$w}function rE(){AN()}function AN(){de.lFrame.currentNamespace=null}function TN(){return de.lFrame.currentNamespace}function Bu(){return oE}function Uu(t){oE=t}function RN(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let s=Bw(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function zu(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),d!=null&&(t.destroyHooks??=[]).push(e,d)}}function Qd(t,n,e){sE(t,n,3,e)}function Zd(t,n,e,i){(t[Z]&3)===e&&sE(t,n,e,i)}function Am(t,n){let e=t[Z];(e&3)===n&&(e&=16383,e+=1,t[Z]=e)}function sE(t,n,e,i){let r=i!==void 0?t[ys]&65535:0,o=i??-1,s=n.length-1,a=0;for(let l=r;l<s;l++)if(typeof n[l+1]=="number"){if(a=n[l],i!=null&&a>=i)break}else n[l]<0&&(t[ys]+=65536),(a<o||o==-1)&&(ON(t,e,n,l),t[ys]=(t[ys]&4294901760)+l+2),l++}function OC(t,n){Hn(4,t,n);let e=Ee(null);try{n.call(t)}finally{Ee(e),Hn(5,t,n)}}function ON(t,n,e,i){let r=e[i]<0,o=e[i+1],s=r?-e[i]:e[i],a=t[s];r?t[Z]>>14<t[ys]>>16&&(t[Z]&3)===n&&(t[Z]+=16384,OC(a,o)):OC(a,o)}function kN(t){return t instanceof _o}function FN(t){return(t.flags&8)!==0}function NN(t){return(t.flags&16)!==0}function aE(t){return t!==Cs}function lu(t){return t&32767}function LN(t){return t>>16}function cu(t,n){let e=LN(t),i=n;for(;e>0;)i=i[Fs],e--;return i}function du(t){let n=Xm;return Xm=t,n}function VN(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(rl)&&(i=e[rl]),i==null&&(i=e[rl]=jN++);let r=i&lE,o=1<<r;n.data[t+(r>>cE)]|=o}function uu(t,n){let e=dE(t,n);if(e!==-1)return e;let i=n[ie];i.firstCreatePass&&(t.injectorIndex=n.length,Rm(i.data,t),Rm(n,null),Rm(i.blueprint,null));let r=mv(t,n),o=t.injectorIndex;if(aE(r)){let s=lu(r),a=cu(r,n),l=a[ie].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Rm(t,n){t.push(0,0,0,0,0,0,0,0,n)}function dE(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function mv(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=mE(r),i===null)return Cs;if(e++,r=r[Fs],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Cs}function Jm(t,n,e){VN(t,n,e)}function BN(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(Ew(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2}}}return null}function uE(t,n,e){if(e&xe.Optional||t!==void 0)return t;Zg(n,"NodeInjector")}function fE(t,n,e,i){if(e&xe.Optional&&i===void 0&&(i=null),!(e&(xe.Self|xe.Host))){let r=t[Is],o=qt(void 0);try{return r?r.get(n,i,e&xe.Optional):yw(n,i,e&xe.Optional)}finally{qt(o)}}return uE(i,n,e)}function hE(t,n,e,i=xe.Default,r){if(t!==null){if(n[Z]&2048&&!(i&xe.Self)){let s=HN(t,n,e,i,Gn);if(s!==Gn)return s}let o=pE(t,n,e,i,Gn);if(o!==Gn)return o}return fE(n,e,i,r)}function pE(t,n,e,i,r){let o=zN(e);if(typeof o=="function"){if(!Jw(n,t,i))return i&xe.Host?uE(r,e,i):fE(n,e,i,r);try{let s;if(s=o(i),s==null&&!(i&xe.Optional))Zg(e);else return s}finally{iE()}}else if(typeof o=="number"){let s=null,a=dE(t,n),l=Cs,c=i&xe.Host?n[tn][Qt]:null;for((a===-1||i&xe.SkipSelf)&&(l=a===-1?mv(t,n):n[a+8],l===Cs||!FC(i,!1)?a=-1:(s=n[ie],a=lu(l),n=cu(l,n)));a!==-1;){let d=n[ie];if(kC(o,a,d.data)){let u=UN(a,n,e,s,i,c);if(u!==Gn)return u}l=n[a+8],l!==Cs&&FC(i,n[ie].data[a+8]===c)&&kC(o,a,n)?(s=d,a=lu(l),n=cu(l,n)):a=-1}}return r}function UN(t,n,e,i,r,o){let s=n[ie],a=s.data[t+8],l=i==null?Fu(a)&&Xm:i!=s&&(a.type&3)!==0,c=r&xe.Host&&o===a,d=Xd(a,s,e,l,c);return d!==null?bo(n,s,d,a):Gn}function Xd(t,n,e,i,r){let o=t.providerIndexes,s=n.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,d=o>>20,u=i?a:a+d,m=r?a+d:c;for(let p=u;p<m;p++){let v=s[p];if(p<l&&e===v||p>=l&&v.type===e)return p}if(r){let p=s[l];if(p&&dr(p)&&p.type===e)return l}return null}function bo(t,n,e,i){let r=t[e],o=n.data;if(kN(r)){let s=r;s.resolving&&yF(vF(o[e]));let a=du(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?qt(s.injectImpl):null,d=Jw(t,i,xe.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&RN(e,o[e],n)}finally{c!==null&&qt(c),du(a),s.resolving=!1,iE()}}return r}function zN(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(rl)?t[rl]:void 0;return typeof n=="number"?n>=0?n&lE:$N:n}function kC(t,n,e){let i=1<<t;return!!(e[n+(t>>cE)]&i)}function FC(t,n){return!(t&xe.Self)&&!(t&xe.Host&&n)}function $N(){return new fo(It(),X())}function tt(t){return pl(()=>{let n=t.prototype.constructor,e=n[tu]||eg(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[tu]||eg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function eg(t){return fw(t)?()=>{let n=eg(Et(t));return n&&n()}:po(t)}function HN(t,n,e,i,r){let o=t,s=n;for(;o!==null&&s!==null&&s[Z]&2048&&!(s[Z]&512);){let a=pE(o,s,e,i|xe.Self,Gn);if(a!==Gn)return a;let l=o.parent;if(!l){let c=s[Pw];if(c){let d=c.get(e,Gn,i);if(d!==Gn)return d}l=mE(s),s=s[Fs]}o=l}return r}function mE(t){let n=t[ie],e=n.type;return e===2?n.declTNode:e===1?t[Qt]:null}function yr(t){return BN(It(),t)}function NC(t,n=null,e=null,i){let r=gE(t,n,e,i);return r.resolveInjectorInitializers(),r}function gE(t,n=null,e=null,i,r=new Set){let o=[e||Ut,tv(t)];return i=i||(typeof t=="object"?void 0:zt(t)),new ll(o,n||iv(),i||null,r)}function Om(t){return t[WN]}function qN(){return new tg(X())}function fu(...t){}function yE(t){let n,e;function i(){t=fu;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function LC(t){return queueMicrotask(()=>t()),()=>{t=fu}}function vv(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function QN(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){yE(()=>{t.callbackScheduled=!1,ig(t),t.isCheckStableRunning=!0,vv(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),ig(t)}function ZN(t){let n=()=>{QN(t)},e=YN++;t._inner=t._inner.fork({name:"angular",properties:{[gv]:!0,[hu]:e,[hu+e]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(XN(l))return i.invokeTask(o,s,a,l);try{return PC(t),i.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),jC(t)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return PC(t),i.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!JN(l)&&n(),jC(t)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ig(t),vv(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ig(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function PC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function jC(t){t._nesting--,vv(t)}function XN(t){return _E(t,"__ignore_ng_zone__")}function JN(t){return _E(t,"__scheduler_tick__")}function _E(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function tL(){return Ls(It(),X())}function Ls(t,n){return new F(_n(t,n))}function bE(t){return t instanceof F?t.nativeElement:t}function nL(){return this._results[Symbol.iterator]()}function xE(t){return(t.flags&128)===128}function rL(){return iL++}function oL(t){CE.set(t[ku],t)}function og(t){CE.delete(t[ku])}function hr(t,n){ar(n)?(t[VC]=n[ku],oL(n)):t[VC]=n}function wE(t){return DE(t[cl])}function EE(t){return DE(t[Fn])}function DE(t){for(;t!==null&&!wi(t);)t=t[Fn];return t}function IE(t){sg=t}function ME(){if(sg!==void 0)return sg;if(typeof document<"u")return document;throw new S(210,!1)}function _v(t,n,e=!1){return cL(t,n,e)}function uL(){if(zd===void 0&&(zd=null,ol.trustedTypes))try{zd=ol.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zd}function Hu(t){return uL()?.createHTML(t)||t}function AE(){if($d===void 0&&($d=null,ol.trustedTypes))try{$d=ol.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $d}function BC(t){return AE()?.createHTML(t)||t}function UC(t){return AE()?.createScriptURL(t)||t}function bn(t){return t instanceof bi?t.changingThisBreaksApplicationSecurity:t}function Ii(t,n){let e=fL(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${dw})`)}return e===n}function fL(t){return t instanceof bi&&t.getTypeName()||null}function TE(t){return new ag(t)}function RE(t){return new lg(t)}function OE(t){return new cg(t)}function kE(t){return new dg(t)}function FE(t){return new ug(t)}function hL(t){let n=new hg(t);return pL()?new fg(n):n}function pL(){try{return!!new window.DOMParser().parseFromString(Hu(""),"text/html")}catch{return!1}}function Gu(t){return t=String(t),t.match(mL)?t:"unsafe:"+t}function Mi(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function _l(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}function wL(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function EL(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw VE(n);return n}function DL(t){let n=t.firstChild;if(n&&wL(t,n))throw VE(n);return n}function $C(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function VE(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}function HC(t){return t.replace(/&/g,"&amp;").replace(IL,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(ML,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bv(t,n){let e=null;try{Hd=Hd||hL(t);let i=n?String(n):"";e=Hd.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Hd.getInertBodyElement(i)}while(i!==o);let a=new pg().sanitizeChildren(GC(e)||e);return Hu(a)}finally{if(e){let i=GC(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function GC(t){return"content"in t&&SL(t)?t.content:null}function SL(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}function Ps(t){let n=Cv();return n?BC(n.sanitize(Mt.HTML,t)||""):Ii(t,"HTML")?BC(bn(t)):bv(ME(),ho(t))}function xv(t){let n=Cv();return n?n.sanitize(Mt.URL,t)||"":Ii(t,"URL")?bn(t):Gu(ho(t))}function AL(t){let n=Cv();if(n)return UC(n.sanitize(Mt.RESOURCE_URL,t)||"");if(Ii(t,"ResourceURL"))return UC(bn(t));throw new S(904,!1)}function TL(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?AL:xv}function BE(t,n,e){return TL(n,e)(t)}function Cv(){let t=X();return t&&t[qn].sanitizer}function FL(t){return t.replace(RL,n=>n.replace(OL,kL))}function UE(t){return t instanceof Function?t():t}function zE(t){return(t??y(De)).get(yt)==="browser"}function wv(t,n){return NL(t,n)}function _s(t,n,e,i,r){if(i!=null){let o,s=!1;wi(i)?o=i:ar(i)&&(s=!0,i=i[Ci]);let a=Yn(i);t===0&&e!==null?r==null?qE(n,e,a):pu(n,e,a,r||null,!0):t===1&&e!==null?pu(n,e,a,r||null,!0):t===2?KL(n,a,s):t===3&&n.destroyNode(a),o!=null&&ZL(n,t,o,e,r)}}function LL(t,n){return t.createText(n)}function PL(t,n,e){t.setValue(n,e)}function jL(t,n){return t.createComment(FL(n))}function $E(t,n,e){return t.createElement(n,e)}function VL(t,n){HE(t,n),n[Ci]=null,n[Qt]=null}function BL(t,n,e,i,r,o){i[Ci]=r,i[Qt]=n,Yu(t,i,e,1,r,o)}function HE(t,n){n[qn].changeDetectionScheduler?.notify(9),Yu(t,n,n[Je],2,null,null)}function UL(t){let n=t[cl];if(!n)return km(t[ie],t);for(;n;){let e=null;if(ar(n))e=n[cl];else{let i=n[kt];i&&(e=i)}if(!e){for(;n&&!n[Fn]&&n!==t;)ar(n)&&km(n[ie],n),n=n[Ft];n===null&&(n=t),ar(n)&&km(n[ie],n),e=n&&n[Fn]}n=e}}function zL(t,n,e,i){let r=kt+i,o=e.length;i>0&&(e[r-1][Fn]=n),i<o-kt?(n[Fn]=e[r],bw(e,kt+i,n)):(e.push(n),n[Fn]=null),n[Ft]=e;let s=n[mo];s!==null&&e!==s&&GE(s,n);let a=n[_i];a!==null&&a.insertView(t),Km(n),n[Z]|=128}function GE(t,n){let e=t[Ms],i=n[Ft];if(ar(i))t[Z]|=au.HasTransplantedViews;else{let r=i[Ft][tn];n[tn]!==r&&(t[Z]|=au.HasTransplantedViews)}e===null?t[Ms]=[n]:e.push(n)}function Ev(t,n){let e=t[Ms],i=e.indexOf(n);e.splice(i,1)}function ul(t,n){if(t.length<=kt)return;let e=kt+n,i=t[e];if(i){let r=i[mo];r!==null&&r!==t&&Ev(r,i),n>0&&(t[e-1][Fn]=i[Fn]);let o=iu(t,kt+n);VL(i[ie],i);let s=o[_i];s!==null&&s.detachView(o[ie]),i[Ft]=null,i[Fn]=null,i[Z]&=-129}return i}function Wu(t,n){if(!(n[Z]&256)){let e=n[Je];e.destroyNode&&Yu(t,n,e,3,null,null),UL(n)}}function km(t,n){if(n[Z]&256)return;let e=Ee(null);try{n[Z]&=-129,n[Z]|=256,n[vn]&&Xc(n[vn]),HL(t,n),$L(t,n),n[ie].type===1&&n[Je].destroy();let i=n[mo];if(i!==null&&wi(n[Ft])){i!==n[Ft]&&Ev(i,n);let r=n[_i];r!==null&&r.detachView(t)}og(n)}finally{Ee(e)}}function $L(t,n){let e=t.cleanup,i=n[ou];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[e[o+1]];e[o].call(s)}i!==null&&(n[ou]=null);let r=n[sr];if(r!==null){n[sr]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function HL(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof _o)){let o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];Hn(4,a,l);try{l.call(a)}finally{Hn(5,a,l)}}else{Hn(4,r,o);try{o.call(r)}finally{Hn(5,r,o)}}}}}function WE(t,n,e){return GL(t,n.parent,e)}function GL(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[Ci];{let{componentOffset:r}=i;if(r>-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===Wn.None||o===Wn.Emulated)return null}return _n(i,e)}}function pu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function qE(t,n,e){t.appendChild(n,e)}function WC(t,n,e,i,r){i!==null?pu(t,n,e,i,r):qE(t,n,e)}function YE(t,n){return t.parentNode(n)}function WL(t,n){return t.nextSibling(n)}function KE(t,n,e){return YL(t,n,e)}function qL(t,n,e){return t.type&40?_n(t,e):null}function qu(t,n,e,i){let r=WE(t,i,n),o=n[Je],s=i.parent||n[Qt],a=KE(s,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)WC(o,r,e[l],a,!1);else WC(o,r,e,a,!1);qC!==void 0&&qC(o,i,n,e,r)}function il(t,n){if(n!==null){let e=n.type;if(e&3)return _n(n,t);if(e&4)return mg(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return il(t,i);{let r=t[n.index];return wi(r)?mg(-1,r):Yn(r)}}else{if(e&128)return il(t,n.next);if(e&32)return wv(n,t)()||Yn(t[n.index]);{let i=QE(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=vo(t[tn]);return il(r,i)}else return il(t,n.next)}}}return null}function QE(t,n){if(n!==null){let i=t[tn][Qt],r=n.projection;return i.projection[r]}return null}function mg(t,n){let e=kt+t+1;if(e<n.length){let i=n[e],r=i[ie].firstChild;if(r!==null)return il(i,r)}return n[go]}function KL(t,n,e){t.removeChild(null,n,e)}function Dv(t,n,e,i,r,o,s){for(;e!=null;){if(e.type===128){e=e.next;continue}let a=i[e.index],l=e.type;if(s&&n===0&&(a&&hr(Yn(a),i),e.flags|=2),(e.flags&32)!==32)if(l&8)Dv(t,n,e.child,i,r,o,!1),_s(n,t,r,a,o);else if(l&32){let c=wv(e,i),d;for(;d=c();)_s(n,t,r,d,o);_s(n,t,r,a,o)}else l&16?ZE(t,n,i,e,r,o):_s(n,t,r,a,o);e=s?e.projectionNext:e.next}}function Yu(t,n,e,i,r,o){Dv(e,i,t.firstChild,n,r,o,!1)}function QL(t,n,e){let i=n[Je],r=WE(t,e,n),o=e.parent||n[Qt],s=KE(o,e,n);ZE(i,0,n,e,r,s)}function ZE(t,n,e,i,r,o){let s=e[tn],l=s[Qt].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];_s(n,t,r,d,o)}else{let c=l,d=s[Ft];xE(i)&&(c.flags|=128),Dv(t,n,c,d,r,o,!0)}}function ZL(t,n,e,i,r){let o=e[go],s=Yn(e);o!==s&&_s(n,t,i,o,r);for(let a=kt;a<e.length;a++){let l=e[a];Yu(l[ie],l,t,n,i,o)}}function XL(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:xi.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=xi.Important),t.setStyle(e,i,r,o))}}function JL(t,n,e){t.setAttribute(n,"style",e)}function XE(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function JE(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&Hm(t,n,i),r!==null&&XE(t,n,r),o!==null&&JL(t,n,o)}function w(t=1){eD(et(),X(),Ei()+t,!1)}function eD(t,n,e,i){if(!i)if((n[Z]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Qd(n,o,e)}else{let o=t.preOrderHooks;o!==null&&Zd(n,o,0,e)}yo(e)}function h(t,n=xe.Default){let e=X();if(e===null)return g(t,n);let i=It();return hE(i,e,Et(t),n)}function js(){let t="invalid";throw new Error(t)}function tD(t,n,e,i,r,o){let s=Ee(null);try{let a=null;r&lr.SignalBased&&(a=n[i][mn]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&lr.HasDecoratorInputTransform&&(o=t.inputTransforms[i].call(n,o)),t.setInput!==null?t.setInput(n,a,o,e,i):Vw(n,a,i,o)}finally{Ee(s)}}function eP(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)yo(~r);else{let o=r,s=e[++i],a=e[++i];EN(s,o);let l=n[o];a(2,l)}}}finally{yo(-1)}}function Ku(t,n,e,i,r,o,s,a,l,c,d){let u=n.blueprint.slice();return u[Ci]=r,u[Z]=i|4|128|8|64,(c!==null||t&&t[Z]&2048)&&(u[Z]|=2048),Gw(u),u[Ft]=u[Fs]=t,u[Ot]=e,u[qn]=s||t&&t[qn],u[Je]=a||t&&t[Je],u[Is]=l||t&&t[Is]||null,u[Qt]=o,u[ku]=rL(),u[Ds]=d,u[Pw]=c,u[tn]=n.type==2?t[tn]:u,u}function Vs(t,n,e,i,r){let o=t.data[n];if(o===null)o=tP(t,n,e,i,r),wN()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let s=_N();o.injectorIndex=s===null?-1:s.injectorIndex}return wo(o,!0),o}function tP(t,n,e,i,r){let o=Zw(),s=cv(),a=s?o:o&&o.parent,l=t.data[n]=aP(t,a,e,n,i,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function nD(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function iD(t,n,e,i,r){let o=Ei(),s=i&2;try{yo(-1),s&&n.length>vt&&eD(t,n,vt,!1),Hn(s?2:0,r),e(i,r)}finally{yo(o),Hn(s?3:1,r)}}function Iv(t,n,e){if(ov(n)){let i=Ee(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=e[s];a.contentQueries(1,l,s)}}}finally{Ee(i)}}}function Mv(t,n,e){Kw()&&(hP(t,n,e,_n(e,n)),(e.flags&64)===64&&sD(t,n,e))}function Sv(t,n,e=_n){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let s=i[o+1],a=s===-1?e(n,t):t[s];t[r++]=a}}}function rD(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Av(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Av(t,n,e,i,r,o,s,a,l,c,d){let u=vt+i,m=u+r,p=nP(u,m),v=typeof c=="function"?c():c;return p[ie]={type:t,blueprint:p,template:e,queries:null,viewQuery:a,declTNode:n,data:p.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:m,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:v,incompleteFirstPass:!1,ssrId:d}}function nP(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:rn);return e}function iP(t,n,e,i){let o=i.get(dL,SE)||e===Wn.ShadowDom,s=t.selectRootElement(n,o);return rP(s),s}function rP(t){oP(t)}function sP(t,n,e,i){let r=cD(n);r.push(e),t.firstCreatePass&&dD(t).push(i,r.length-1)}function aP(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Qw()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function YC(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;i??={};let a,l=lr.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?KC(i,e,c,a,l):KC(i,e,c,a)}return i}function KC(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],r!==void 0&&o.push(r)}function lP(t,n,e){let i=n.directiveStart,r=n.directiveEnd,o=t.data,s=n.attrs,a=[],l=null,c=null;for(let d=i;d<r;d++){let u=o[d],m=e?e.get(u):null,p=m?m.inputs:null,v=m?m.outputs:null;l=YC(0,u.inputs,d,l,p),c=YC(1,u.outputs,d,c,v);let _=l!==null&&s!==null&&!Jg(n)?EP(l,d,s):null;a.push(_)}l!==null&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}function cP(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Tv(t,n,e,i,r,o,s,a){let l=_n(n,e),c=n.inputs,d;!a&&c!=null&&(d=c[i])?(Ov(t,e,d,i,r),Fu(n)&&dP(e,n.index)):n.type&3?(i=cP(i),r=s!=null?s(r,n.value||"",i):r,o.setProperty(l,i,r)):n.type&12}function dP(t,n){let e=vr(n,t);e[Z]&16||(e[Z]|=64)}function Rv(t,n,e,i){if(Kw()){let r=i===null?null:{"":-1},o=mP(t,e),s,a;o===null?s=a=null:[s,a]=o,s!==null&&oD(t,n,e,s,r,a),r&&gP(e,i,r)}e.mergedAttrs=al(e.mergedAttrs,e.attrs)}function oD(t,n,e,i,r,o){for(let c=0;c<i.length;c++)Jm(uu(e,n),t,i[c].type);yP(e,t.data.length,i.length);for(let c=0;c<i.length;c++){let d=i[c];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,l=nD(t,n,i.length,null);for(let c=0;c<i.length;c++){let d=i[c];e.mergedAttrs=al(e.mergedAttrs,d.hostAttrs),_P(t,e,n,l,d),vP(l,d,r),d.contentQueries!==null&&(e.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(e.flags|=64);let u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),l++}lP(t,e,o)}function uP(t,n,e,i,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~n.index;fP(s)!=a&&s.push(a),s.push(e,i,o)}}function fP(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function hP(t,n,e,i){let r=e.directiveStart,o=e.directiveEnd;Fu(e)&&bP(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||uu(e,n),hr(i,n);let s=e.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],c=bo(n,t,a,e);if(hr(c,n),s!==null&&wP(n,a-r,c,l,e,s),dr(l)){let d=vr(e.index,n);d[Ot]=bo(n,t,a,e)}}}function sD(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,s=DN();try{yo(o);for(let a=i;a<r;a++){let l=t.data[a],c=n[a];Qm(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&pP(l,c)}}finally{yo(-1),Qm(s)}}function pP(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function mP(t,n){let e=t.directiveRegistry,i=null,r=null;if(e)for(let o=0;o<e.length;o++){let s=e[o];if(Iw(n,s.selectors,!1))if(i||(i=[]),dr(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s);let l=a.length;gg(t,n,l)}else i.unshift(s),gg(t,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return i===null?null:[i,r]}function gg(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function gP(t,n,e){if(n){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new S(-301,!1);i.push(n[r],o)}}}function vP(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;dr(n)&&(e[""]=t)}}function yP(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function _P(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=po(r.type,!0)),s=new _o(o,dr(r),h);t.blueprint[i]=s,e[i]=s,uP(t,n,i,nD(t,e,r.hostVars,rn),r)}function bP(t,n,e){let i=_n(n,t),r=rD(e),o=t[qn].rendererFactory,s=16;e.signals?s=4096:e.onPush&&(s=64);let a=Qu(t,Ku(t,r,null,s,i,n,null,o.createRenderer(i,e),null,null,null));t[n.index]=a}function xP(t,n,e,i,r,o){let s=_n(t,n);CP(n[Je],s,o,t.value,e,i,r)}function CP(t,n,e,i,r,o,s){if(o==null)t.removeAttribute(n,r,e);else{let a=s==null?ho(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function wP(t,n,e,i,r,o){let s=o[n];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],d=s[a++],u=s[a++];tD(i,e,l,c,d,u)}}function EP(t,n,e){let i=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){i===null&&(i=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===n){i.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}return i}function aD(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function lD(t,n){let e=t.contentQueries;if(e!==null){let i=Ee(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=t.data[s];ju(o),a.contentQueries(2,n[s],s)}}}finally{Ee(i)}}}function Qu(t,n){return t[cl]?t[AC][Fn]=n:t[cl]=n,t[AC]=n,n}function vg(t,n,e){ju(0);let i=Ee(null);try{n(t,e)}finally{Ee(i)}}function cD(t){return t[ou]??=[]}function dD(t){return t.cleanup??=[]}function uD(t,n){let e=t[Is],i=e?e.get(Yt,null):null;i&&i.handleError(n)}function Ov(t,n,e,i,r){for(let o=0;o<e.length;){let s=e[o++],a=e[o++],l=e[o++],c=n[s],d=t.data[s];tD(d,c,i,a,l,r)}}function fD(t,n,e){let i=Hw(n,t);PL(t[Je],i,e)}function DP(t,n){let e=vr(n,t),i=e[ie];IP(i,e);let r=e[Ci];r!==null&&e[Ds]===null&&(e[Ds]=_v(r,e[Is])),kv(i,e,e[Ot])}function IP(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function kv(t,n,e){hv(n);try{let i=t.viewQuery;i!==null&&vg(1,i,e);let r=t.template;r!==null&&iD(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[_i]?.finishViewCreation(t),t.staticContentQueries&&lD(t,n),t.staticViewQueries&&vg(2,t.viewQuery,e);let o=t.components;o!==null&&MP(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[Z]&=-5,pv()}}function MP(t,n){for(let e=0;e<n.length;e++)DP(t,n[e])}function bl(t,n,e,i){let r=Ee(null);try{let o=n.tView,a=t[Z]&4096?4096:16,l=Ku(t,o,e,a,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=t[n.index];l[mo]=c;let d=t[_i];return d!==null&&(l[_i]=d.createEmbeddedView(o)),kv(o,l,e),l}finally{Ee(r)}}function hD(t,n){let e=kt+n;if(e<t.length)return t[e]}function Ss(t,n){return!n||n.firstChild===null||xE(t)}function xl(t,n,e,i=!0){let r=n[ie];if(zL(r,n,t,e),i){let s=mg(e,t),a=n[Je],l=YE(a,t[go]);l!==null&&BL(r,t[Qt],a,n,l,s)}let o=n[Ds];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function pD(t,n){let e=ul(t,n);return e!==void 0&&Wu(e[ie],e),e}function mu(t,n,e,i,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=n[e.index];o!==null&&i.push(Yn(o)),wi(o)&&SP(o,i);let s=e.type;if(s&8)mu(t,n,e.child,i);else if(s&32){let a=wv(e,n),l;for(;l=a();)i.push(l)}else if(s&16){let a=QE(n,e);if(Array.isArray(a))i.push(...a);else{let l=vo(n[tn]);mu(l[ie],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function SP(t,n){for(let e=kt;e<t.length;e++){let i=t[e],r=i[ie].firstChild;r!==null&&mu(i[ie],i,r,n)}t[go]!==t[Ci]&&n.push(t[go])}function AP(t){return t[vn]??TP(t)}function TP(t){let n=mD.pop()??Object.create(OP);return n.lView=t,n}function RP(t){t.lView[vn]!==t&&(t.lView=null,mD.push(t))}function kP(t){let n=t[vn]??Object.create(FP);return n.lView=t,n}function gD(t){return t.type!==2}function vD(t,n=!0,e=0){let i=t[qn],r=i.rendererFactory,o=!1;o||r.begin?.();try{LP(t,e)}catch(s){throw n&&uD(t,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function LP(t,n){let e=Xw();try{RC(!0),yg(t,n);let i=0;for(;Lu(t);){if(i===NP)throw new S(103,!1);i++,yg(t,1)}}finally{RC(e)}}function PP(t,n,e,i){let r=n[Z];if((r&256)===256)return;let o=!1,s=!1;!o&&n[qn].inlineEffectRunner?.flush(),hv(n);let a=!0,l=null,c=null;o||(gD(t)?(c=AP(n),l=Ha(c)):N0()===null?(a=!1,c=kP(n),l=Ha(c)):n[vn]&&(Xc(n[vn]),n[vn]=null));try{Gw(n),CN(t.bindingStartIndex),e!==null&&iD(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Qd(n,p,null)}else{let p=t.preOrderHooks;p!==null&&Zd(n,p,0,null),Am(n,0)}if(s||jP(n),yD(n,0),t.contentQueries!==null&&lD(t,n),!o)if(d){let p=t.contentCheckHooks;p!==null&&Qd(n,p)}else{let p=t.contentHooks;p!==null&&Zd(n,p,1),Am(n,1)}eP(t,n);let u=t.components;u!==null&&bD(n,u,0);let m=t.viewQuery;if(m!==null&&vg(2,m,i),!o)if(d){let p=t.viewCheckHooks;p!==null&&Qd(n,p)}else{let p=t.viewHooks;p!==null&&Zd(n,p,2),Am(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Kd]){for(let p of n[Kd])p();n[Kd]=null}o||(n[Z]&=-73)}catch(d){throw o||Pu(n),d}finally{c!==null&&(Qc(c,l),a&&RP(c)),pv()}}function yD(t,n){for(let e=wE(t);e!==null;e=EE(e))for(let i=kt;i<e.length;i++){let r=e[i];_D(r,n)}}function jP(t){for(let n=wE(t);n!==null;n=EE(n)){if(!(n[Z]&au.HasTransplantedViews))continue;let e=n[Ms];for(let i=0;i<e.length;i++){let r=e[i];Ww(r)}}}function VP(t,n,e){let i=vr(n,t);_D(i,e)}function _D(t,n){lv(t)&&yg(t,n)}function yg(t,n){let i=t[ie],r=t[Z],o=t[vn],s=!!(n===0&&r&16);if(s||=!!(r&64&&n===0),s||=!!(r&1024),s||=!!(o?.dirty&&Zc(o)),s||=!1,o&&(o.dirty=!1),t[Z]&=-9217,s)PP(i,t,i.template,t[Ot]);else if(r&8192){yD(t,1);let a=i.components;a!==null&&bD(t,a,1)}}function bD(t,n,e){for(let i=0;i<n.length;i++)VP(t,n[i],e)}function Fv(t,n){let e=Xw()?64:1088;for(t[qn].changeDetectionScheduler?.notify(n);t;){t[Z]|=e;let i=vo(t);if(Ym(t)&&!i)return t;t=i}return null}function zP(){return Zu(It(),X())}function Zu(t,n){return t.type&4?new UP(n,t,Ls(t,n)):null}function As(t,n){return $P(t,n)}function HP(t){let n=Error(`No component factory found for ${zt(t)}.`);return n[GP]=t,n}function WP(){let t=X(),n=It(),e=vr(n.index,t);return(ar(e)?e:t)[Je]}function vu(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")o=a;else if(o==1)r=Bm(r,a);else if(o==2){let l=a,c=n[++s];i=Bm(i,l+": "+c+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function QC(t,n){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let r=t[i];if(r===void 0)continue;let o=Array.isArray(r),s=o?r[0]:r,a=o?r[1]:lr.None;n?e.push({propName:s,templateName:i,isSignal:(a&lr.SignalBased)!==0}):e.push({propName:s,templateName:i})}return e}function YP(t){let n=t.toLowerCase();return n==="svg"?$w:n==="math"?cN:null}function KP(t,n){let e=t[ie],i=vt;return t[i]=n,Vs(e,i,2,"#host",null)}function QP(t,n,e,i,r,o,s){let a=r[ie];ZP(i,t,n,s);let l=null;n!==null&&(l=_v(n,r[Is]));let c=o.rendererFactory.createRenderer(n,e),d=16;e.signals?d=4096:e.onPush&&(d=64);let u=Ku(r,rD(e),null,d,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&gg(a,t,i.length-1),Qu(r,u),r[t.index]=u}function ZP(t,n,e,i){for(let r of t)n.mergedAttrs=al(n.mergedAttrs,r.hostAttrs);n.mergedAttrs!==null&&(vu(n,n.mergedAttrs,!0),e!==null&&JE(i,e,n))}function XP(t,n,e,i,r,o){let s=It(),a=r[ie],l=_n(s,r);oD(a,r,s,e,null,i);for(let d=0;d<e.length;d++){let u=s.directiveStart+d,m=bo(r,a,u,s);hr(m,r)}sD(a,r,s),l&&hr(l,r);let c=bo(r,a,s.directiveStart+s.componentOffset,s);if(t[Ot]=r[Ot]=c,o!==null)for(let d of o)d(c,n);return Iv(a,s,r),c}function JP(t,n,e,i){if(i)Hm(t,e,["ng-version","18.2.13"]);else{let{attrs:r,classes:o}=GF(n.selectors[0]);r&&Hm(t,e,r),o&&o.length>0&&XE(t,e,o.join(" "))}}function e1(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null?Array.from(o):null)}}function t1(){let t=It();zu(X()[ie],t)}function n1(){let t=It();return ED(t,X())}function ZC(t){return t[su]}function Fm(t){return t[su]||(t[su]=[])}function ED(t,n){let e,i=n[t.index];return wi(i)?e=i:(e=aD(i,n,null,t),n[t.index]=e,Qu(n,e)),o1(e,n,t,i),new wD(e,t,n)}function r1(t,n){let e=t[Je],i=e.createComment(""),r=_n(n,t),o=YE(e,r);return pu(e,o,i,WL(e,r),!1),i}function a1(t,n,e){return s1(t,n,e)}function l1(t,n,e,i){if(t[go])return;let r;e.type&8?r=Yn(i):r=r1(n,e),t[go]=r}function c1(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function d1(t,n){return t.type&11?Ls(t,n):t.type&4?Zu(t,n):null}function u1(t,n,e,i){return e===-1?d1(n,t):e===-2?f1(t,n,i):bo(t,t[ie],e,n)}function f1(t,n,e){if(e===F)return Ls(n,t);if(e===Nt)return Zu(n,t);if(e===_t)return ED(n,t)}function DD(t,n,e,i){let r=n[_i].queries[i];if(r.matches===null){let o=t.data,s=e.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let d=o[c];a.push(u1(n,d,s[l+1],e.metadata.read))}}r.matches=a}return r.matches}function Ig(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let s=DD(t,n,r,e);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)i.push(s[a/2]);else{let c=o[a+1],d=n[-l];for(let u=kt;u<d.length;u++){let m=d[u];m[mo]===m[Ft]&&Ig(m[ie],m,c,i)}if(d[Ms]!==null){let u=d[Ms];for(let m=0;m<u.length;m++){let p=u[m];Ig(p[ie],p,c,i)}}}}}return i}function Lv(t,n){return t[_i].queries[n].queryList}function ID(t,n,e){let i=new fr((e&4)===4);return sP(t,n,i,i.destroy),(n[_i]??=new wg).queries.push(new Cg(i))-1}function h1(t,n,e){let i=et();return i.firstCreatePass&&(SD(i,new _u(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),ID(i,X(),n)}function MD(t,n,e,i){let r=et();if(r.firstCreatePass){let o=It();SD(r,new _u(n,e,i),o.index),m1(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return ID(r,X(),e)}function p1(t){return t.split(",").map(n=>n.trim())}function SD(t,n,e){t.queries===null&&(t.queries=new Eg),t.queries.track(new Dg(n,e))}function m1(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function Pv(t,n){return t.queries.getByIndex(n)}function AD(t,n){let e=t[ie],i=Pv(e,n);return i.crossesNgTemplate?Ig(e,t,n,[]):DD(e,t,i,n)}function xn(t){XC.has(t)||(XC.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Xu(t){return typeof t=="function"&&t[mn]!==void 0}function Si(t,n){xn("NgSignals");let e=W0(t),i=e[mn];return n?.equal&&(i.equal=n.equal),e.set=r=>Op(i,r),e.update=r=>q0(i,r),e.asReadonly=g1.bind(e),e}function g1(){let t=this[mn];if(t.readonlyFn===void 0){let n=()=>this();n[mn]=t,t.readonlyFn=n}return t.readonlyFn}function TD(t){return Xu(t)&&typeof t.set=="function"}function RD(t,n){let e,i=Rp(()=>{e._dirtyCounter();let r=b1(e,t);if(n&&r===void 0)throw new S(-951,!1);return r});return e=i[mn],e._dirtyCounter=Si(0),e._flatValue=void 0,i}function v1(){return RD(!0,!1)}function y1(){return RD(!0,!0)}function _1(t,n){let e=t[mn];e._lView=X(),e._queryIndex=n,e._queryList=Lv(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function b1(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[Z]&4)return n?void 0:Ut;let r=Lv(e,i),o=AD(e,i);return r.reset(o,bE),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function JC(t,n){return v1()}function x1(t,n){return y1()}function C1(t){return Object.getPrototypeOf(t.prototype).constructor}function Ce(t){let n=C1(t.type),e=!0,i=[t];for(;n;){let r;if(dr(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let s=t;s.inputs=Gd(t.inputs),s.inputTransforms=Gd(t.inputTransforms),s.declaredInputs=Gd(t.declaredInputs),s.outputs=Gd(t.outputs);let a=r.hostBindings;a&&M1(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&D1(t,l),c&&I1(t,c),w1(t,r),cF(t.outputs,r.outputs),dr(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Ce&&(e=!1)}}n=Object.getPrototypeOf(n)}E1(i)}function w1(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];if(i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],n.inputTransforms!==null)){let r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function E1(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=al(r.hostAttrs,e=al(e,r.hostAttrs))}}function Gd(t){return t===yi?{}:t===Ut?[]:t}function D1(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function I1(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function M1(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function kD(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=FD,e.hostDirectives=i?t.map(Mg):[t]):i?e.hostDirectives.unshift(...t.map(Mg)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function FD(t,n,e){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let r=i();for(let o of r)ew(Mg(o),n,e)}else ew(i,n,e)}function ew(t,n,e){let i=ev(t.directive);S1(i.declaredInputs,t.inputs),FD(i,n,e),e.set(i,t),n.push(i)}function Mg(t){return typeof t=="function"?{directive:Et(t),inputs:yi,outputs:yi}:{directive:Et(t.directive),inputs:tw(t.inputs),outputs:tw(t.outputs)}}function tw(t){if(t===void 0||t.length===0)return yi;let n={};for(let e=0;e<t.length;e+=2)n[t[e]]=t[e+1];return n}function S1(t,n){for(let e in n)if(n.hasOwnProperty(e)){let i=n[e],r=t[e];t[i]=r}}function lt(t){let n=t.inputConfig,e={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}function Ju(t,n,e=null){return new bu({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}function ND(t){return T1(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function A1(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value)}}function T1(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function ef(t,n,e){return t[n]=e}function R1(t,n){return t[n]}function nn(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function jv(t,n,e,i){let r=nn(t,n,e);return nn(t,n+1,i)||r}function O1(t,n,e,i,r){let o=jv(t,n,e,i);return nn(t,n+2,r)||o}function k1(t){return(t.flags&32)===32}function F1(t,n,e,i,r,o,s,a,l){let c=n.consts,d=Vs(n,t,4,s||null,a||null);Rv(n,e,d,ur(c,l)),zu(n,d);let u=d.tView=Av(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return n.queries!==null&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}function xu(t,n,e,i,r,o,s,a,l,c){let d=e+vt,u=n.firstCreatePass?F1(d,n,t,i,r,o,s,a,l):n.data[d];wo(u,!1);let m=N1(n,t,u,e);Bu()&&qu(n,t,m,u),hr(m,t);let p=aD(m,t,m,u);return t[d]=p,Qu(t,p),a1(p,u,t),Nu(u)&&Mv(n,t,u),l!=null&&Sv(t,u,c),u}function ee(t,n,e,i,r,o,s,a){let l=X(),c=et(),d=ur(c.consts,o);return xu(l,c,t,n,e,i,r,d,s,a),ee}function L1(t,n,e,i){return Uu(!0),n[Je].createComment("")}function Cl(t,n){!n?.injector&&rv(Cl);let e=n?.injector??y(De);return zE(e)?(xn("NgAfterRender"),PD(t,e,n,!1)):jD}function on(t,n){!n?.injector&&rv(on);let e=n?.injector??y(De);return zE(e)?(xn("NgAfterNextRender"),PD(t,e,n,!0)):jD}function P1(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function PD(t,n,e,i){let r=n.get(LD);r.impl??=n.get(Tg);let o=e?.phase??bs.MixedReadWrite,s=e?.manualCleanup!==!0?n.get($u):null,a=new Rg(r.impl,P1(t,o),i,s);return r.impl.register(a),a}function _e(t,n,e,i){let r=X(),o=Eo();if(nn(r,o,n)){let s=et(),a=Vu();xP(a,r,t,n,e,i)}return _e}function VD(t,n,e,i){return nn(t,Eo(),e)?n+ho(e)+i:rn}function j1(t,n,e,i,r,o){let s=xN(),a=jv(t,s,e,r);return uv(2),a?n+ho(e)+i+ho(r)+o:rn}function Wd(t,n){return t<<17|n<<2}function Co(t){return t>>17&32767}function V1(t){return(t&2)==2}function B1(t,n){return t&131071|n<<17}function Og(t){return t|2}function Os(t){return(t&131068)>>2}function Nm(t,n){return t&-131069|n<<2}function U1(t){return(t&1)===1}function kg(t){return t|1}function z1(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=Co(s),l=Os(s);t[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||gl(u,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let m=Co(t[a+1]);t[i+1]=Wd(m,a),m!==0&&(t[m+1]=Nm(t[m+1],i)),t[a+1]=B1(t[a+1],i)}else t[i+1]=Wd(a,0),a!==0&&(t[a+1]=Nm(t[a+1],i)),a=i;else t[i+1]=Wd(l,0),a===0?a=i:t[l+1]=Nm(t[l+1],i),l=i;c&&(t[i+1]=Og(t[i+1])),nw(t,d,i,!0),nw(t,d,i,!1),$1(n,d,t,i,o),s=Wd(a,l),o?n.classBindings=s:n.styleBindings=s}function $1(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&gl(o,n)>=0&&(e[i+1]=kg(e[i+1]))}function nw(t,n,e,i){let r=t[e+1],o=n===null,s=i?Co(r):Os(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];H1(l,n)&&(a=!0,t[s+1]=i?kg(c):Og(c)),s=i?Co(c):Os(c)}a&&(t[e+1]=i?Og(r):kg(r))}function H1(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?gl(t,n)>=0:!1}function G1(t){return t.substring(kn.key,kn.keyEnd)}function W1(t){return q1(t),BD(t,UD(t,0,kn.textEnd))}function BD(t,n){let e=kn.textEnd;return e===n?-1:(n=kn.keyEnd=Y1(t,kn.key=n,e),UD(t,n,e))}function q1(t){kn.key=0,kn.keyEnd=0,kn.value=0,kn.valueEnd=0,kn.textEnd=t.length}function UD(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Y1(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function A(t,n,e){let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!1)}return A}function Fg(t,n,e,i,r){let o=n.inputs,s=r?"class":"style";Ov(t,e,o[s],s,i)}function Mo(t,n,e){return $D(t,n,e,!1),Mo}function fe(t,n){return $D(t,n,null,!0),fe}function Ai(t){HD(ej,zD,t,!0)}function zD(t,n){for(let e=W1(n);e>=0;e=BD(n,e))Ru(t,G1(n),!0)}function $D(t,n,e,i){let r=X(),o=et(),s=uv(2);if(o.firstUpdatePass&&WD(o,t,s,i),n!==rn&&nn(r,s,n)){let a=o.data[Ei()];qD(o,a,r,r[Je],t,r[s+1]=nj(n,e),i,s)}}function HD(t,n,e,i){let r=et(),o=uv(2);r.firstUpdatePass&&WD(r,null,o,i);let s=X();if(e!==rn&&nn(s,o,e)){let a=r.data[Ei()];if(YD(a,i)&&!GD(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=Bm(l,e||"")),Fg(r,a,s,e,i)}else tj(r,a,s,s[Je],s[o+1],s[o+1]=J1(t,n,e),i,o)}}function GD(t,n){return n>=t.expandoStartIndex}function WD(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Ei()],s=GD(t,e);YD(o,i)&&n===null&&!s&&(n=!1),n=K1(r,o,n,i),z1(r,o,n,e,s,i)}}function K1(t,n,e,i){let r=IN(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=Lm(null,t,n,e,i),e=hl(e,n.attrs,i),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==r)if(e=Lm(r,t,n,e,i),o===null){let l=Q1(t,n,i);l!==void 0&&Array.isArray(l)&&(l=Lm(null,t,n,l[1],i),l=hl(l,n.attrs,i),Z1(t,n,i,l))}else o=X1(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function Q1(t,n,e){let i=e?n.classBindings:n.styleBindings;if(Os(i)!==0)return t[Co(i)]}function Z1(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Co(r)]=i}function X1(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;i=hl(i,s,e)}return hl(i,n.attrs,e)}function Lm(t,n,e,i,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=n[a],i=hl(i,o.hostAttrs,r),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),i}function hl(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let s=n[o];typeof s=="number"?r=s:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Ru(t,s,e?!0:n[++o]))}return t===void 0?null:t}function J1(t,n,e){if(e==null||e==="")return Ut;let i=[],r=bn(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else typeof r=="string"&&n(i,r);return i}function ej(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&Ru(t,i,e)}function tj(t,n,e,i,r,o,s,a){r===rn&&(r=Ut);let l=0,c=0,d=0<r.length?r[0]:null,u=0<o.length?o[0]:null;for(;d!==null||u!==null;){let m=l<r.length?r[l+1]:void 0,p=c<o.length?o[c+1]:void 0,v=null,_;d===u?(l+=2,c+=2,m!==p&&(v=u,_=p)):u===null||d!==null&&d<u?(l+=2,v=d):(c+=2,v=u,_=p),v!==null&&qD(t,n,e,i,v,_,s,a),d=l<r.length?r[l]:null,u=c<o.length?o[c]:null}}function qD(t,n,e,i,r,o,s,a){if(!(n.type&3))return;let l=t.data,c=l[a+1],d=U1(c)?iw(l,n,e,r,Os(c),s):void 0;if(!Cu(d)){Cu(o)||V1(c)&&(o=iw(l,null,e,r,a,s));let u=Hw(Ei(),e);XL(i,s,u,r,o)}}function iw(t,n,e,i,r,o){let s=n===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,u=d===null,m=e[r+1];m===rn&&(m=u?Ut:void 0);let p=u?Mm(m,i):d===i?m:void 0;if(c&&!Cu(p)&&(p=Mm(l,i)),Cu(p)&&(a=p,s))return a;let v=t[r+1];r=s?Co(v):Os(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(a=Mm(l,i))}return a}function Cu(t){return t!==void 0}function nj(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=zt(bn(t)))),t}function YD(t,n){return(t.flags&(n?8:16))!==0}function tf(t,n,e){let i=X(),r=VD(i,t,n,e);HD(Ru,zD,r,!0)}function Pm(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function ij(t,n,e){let i,r,o=0,s=t.length-1,a=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=s&&o<=l;){let c=t.at(o),d=n[o],u=Pm(o,c,o,d,e);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let m=t.at(s),p=n[l],v=Pm(s,m,l,p,e);if(v!==0){v<0&&t.updateValue(s,p),s--,l--;continue}let _=e(o,c),E=e(s,m),I=e(o,d);if(Object.is(I,E)){let U=e(l,p);Object.is(U,_)?(t.swap(o,s),t.updateValue(s,p),l--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(i??=new wu,r??=ow(t,o,s,e),Lg(t,i,o,I))t.updateValue(o,d),o++,s++;else if(r.has(I))i.set(_,t.detach(o)),s--;else{let U=t.create(o,n[o]);t.attach(o,U),o++,s++}}for(;o<=l;)rw(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=t.at(o),u=c.value,m=Pm(o,d,o,u,e);if(m!==0)m<0&&t.updateValue(o,u),o++,c=l.next();else{i??=new wu,r??=ow(t,o,s,e);let p=e(o,u);if(Lg(t,i,o,p))t.updateValue(o,u),o++,s++,c=l.next();else if(!r.has(p))t.attach(o,t.create(o,u)),o++,s++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),s--}}}for(;!c.done;)rw(t,i,e,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(l=>{t.destroy(l)})}function Lg(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function rw(t,n,e,i,r){if(Lg(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function ow(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}function nt(t,n){xn("NgControlFlow");let e=X(),i=Eo(),r=e[i]!==rn?e[i]:-1,o=r!==-1?Eu(e,vt+r):void 0,s=0;if(nn(e,i,t)){let a=Ee(null);try{if(o!==void 0&&pD(o,s),t!==-1){let l=vt+t,c=Eu(e,l),d=Bg(e[ie],l),u=As(c,d.tView.ssrId),m=bl(e,d,n,{dehydratedView:u});xl(c,m,s,Ss(d,u))}}finally{Ee(a)}}else if(o!==void 0){let a=hD(o,s);a!==void 0&&(a[Ot]=n)}}function KD(t){return t}function QD(t,n,e,i,r,o,s,a,l,c,d,u,m){xn("NgControlFlow");let p=X(),v=et(),_=l!==void 0,E=X(),I=a?s.bind(E[tn][Ot]):s,U=new jg(_,I);E[vt+t]=U,xu(p,v,t+1,n,e,i,r,ur(v.consts,o)),_&&xu(p,v,t+2,l,c,d,u,ur(v.consts,m))}function ZD(t){let n=Ee(null),e=Ei();try{let i=X(),r=i[ie],o=i[e],s=e+1,a=Eu(i,s);if(o.liveCollection===void 0){let c=Bg(r,s);o.liveCollection=new Vg(a,i,c)}else o.liveCollection.reset();let l=o.liveCollection;if(ij(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Eo(),d=l.length===0;if(nn(i,c,d)){let u=e+2,m=Eu(i,u);if(d){let p=Bg(r,u),v=As(m,p.tView.ssrId),_=bl(i,p,void 0,{dehydratedView:v});xl(m,_,0,Ss(p,v))}else pD(m,0)}}}finally{Ee(n)}}function Eu(t,n){return t[n]}function rj(t,n){return ul(t,n)}function oj(t,n){return hD(t,n)}function Bg(t,n){return sv(t,n)}function sj(t,n,e,i,r,o){let s=n.consts,a=ur(s,r),l=Vs(n,t,2,i,a);return Rv(n,e,l,ur(s,o)),l.attrs!==null&&vu(l,l.attrs,!1),l.mergedAttrs!==null&&vu(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}function D(t,n,e,i){let r=X(),o=et(),s=vt+t,a=r[Je],l=o.firstCreatePass?sj(s,o,r,n,e,i):o.data[s],c=aj(o,r,l,a,n,t);r[s]=c;let d=Nu(l);return wo(l,!0),JE(a,c,l),!k1(l)&&Bu()&&qu(o,r,c,l),pN()===0&&hr(c,r),mN(),d&&(Mv(o,r,l),Iv(o,l,r)),i!==null&&Sv(r,l),D}function T(){let t=It();cv()?dv():(t=t.parent,wo(t,!1));let n=t;vN(n)&&yN(),gN();let e=et();return e.firstCreatePass&&(zu(e,t),ov(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&FN(n)&&Fg(e,n,X(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&NN(n)&&Fg(e,n,X(),n.stylesWithoutHost,!1),T}function oe(t,n,e,i){return D(t,n,e,i),T(),oe}function lj(t,n,e,i,r){let o=n.consts,s=ur(o,i),a=Vs(n,t,8,"ng-container",s);s!==null&&vu(a,s,!0);let l=ur(o,r);return Rv(n,e,a,l),n.queries!==null&&n.queries.elementStart(n,a),a}function nf(t,n,e){let i=X(),r=et(),o=t+vt,s=r.firstCreatePass?lj(o,r,i,n,e):r.data[o];wo(s,!0);let a=cj(r,i,s,t);return i[o]=a,Bu()&&qu(r,i,a,s),hr(a,i),Nu(s)&&(Mv(r,i,s),Iv(r,s,i)),e!=null&&Sv(i,s),nf}function rf(){let t=It(),n=et();return cv()?dv():(t=t.parent,wo(t,!1)),n.firstCreatePass&&(zu(n,t),ov(t)&&n.queries.elementEnd(t)),rf}function wl(t,n,e){return nf(t,n,e),rf(),wl}function Ge(){return X()}function _r(t,n,e){let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!0)}return _r}function uj(t){typeof t=="string"&&(dj=t.toLowerCase().replace(/_/g,"-"))}function K(t,n,e,i){let r=X(),o=et(),s=It();return XD(o,r,r[Je],s,t,n,i),K}function hj(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===i){let a=n[ou],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function XD(t,n,e,i,r,o,s){let a=Nu(i),c=t.firstCreatePass&&dD(t),d=n[Ot],u=cD(n),m=!0;if(i.type&3||s){let _=_n(i,n),E=s?s(_):_,I=u.length,U=s?Me=>s(Yn(Me[i.index])):i.index,H=null;if(!s&&a&&(H=hj(t,n,r,i.index)),H!==null){let Me=H.__ngLastListenerFn__||H;Me.__ngNextListenerFn__=o,H.__ngLastListenerFn__=o,m=!1}else{o=aw(i,n,d,o),fj(_,r,o);let Me=e.listen(E,r,o);u.push(o,Me),c&&c.push(r,U,I,I+1)}}else o=aw(i,n,d,o);let p=i.outputs,v;if(m&&p!==null&&(v=p[r])){let _=v.length;if(_)for(let E=0;E<_;E+=2){let I=v[E],U=v[E+1],rt=n[I][U].subscribe(o),Oe=u.length;u.push(o,rt),c&&c.push(r,i.index,Oe,-(Oe+1))}}}function sw(t,n,e,i){let r=Ee(null);try{return Hn(6,n,e),e(i)!==!1}catch(o){return uD(t,o),!1}finally{Hn(7,n,e),Ee(r)}}function aw(t,n,e,i){return function r(o){if(o===Function)return i;let s=t.componentOffset>-1?vr(t.index,n):n;Fv(s,5);let a=sw(n,e,i,o),l=r.__ngNextListenerFn__;for(;l;)a=sw(n,e,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function $(t=1){return SN(t)}function pj(t,n){let e=null,i=VF(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue}if(i===null?Iw(t,o,!0):zF(i,o))return r}return e}function Lt(t){let n=X()[tn][Qt];if(!n.projection){let e=t?t.length:1,i=n.projection=TF(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let s=t?pj(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o)}o=o.next}}}function je(t,n=0,e,i,r,o){let s=X(),a=et(),l=i?t+1:null;l!==null&&xu(s,a,l,i,r,o,null,e);let c=Vs(a,vt+t,16,null,e||null);c.projection===null&&(c.projection=n),dv();let u=!s[Ds]||Qw();s[tn][Qt].projection[c.projection]===null&&l!==null?mj(s,a,l):u&&(c.flags&32)!==32&&QL(a,s,c)}function mj(t,n,e){let i=vt+e,r=n.data[i],o=t[i],s=As(o,r.tView.ssrId),a=bl(t,r,void 0,{dehydratedView:s});xl(o,a,0,Ss(r,s))}function $t(t,n,e,i){MD(t,n,e,i)}function Ve(t,n,e){h1(t,n,e)}function he(t){let n=X(),e=et(),i=fv();ju(i+1);let r=Pv(e,i);if(t.dirty&&dN(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=AD(n,i);t.reset(o,bE),t.notifyOnChanges()}return!0}return!1}function pe(){return Lv(X(),fv())}function JD(t,n,e,i,r){_1(n,MD(t,e,i,r))}function eI(t=1){ju(fv()+t)}function gj(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Cn(t){let n=bN();return av(n,vt+t)}function le(t,n=""){let e=X(),i=et(),r=t+vt,o=i.firstCreatePass?Vs(i,r,1,n,null):i.data[r],s=vj(i,e,o,n,t);e[r]=s,Bu()&&qu(i,e,s,o),wo(o,!1)}function pt(t){return it("",t,""),pt}function it(t,n,e){let i=X(),r=VD(i,t,n,e);return r!==rn&&fD(i,Ei(),r),it}function Vv(t,n,e,i,r){let o=X(),s=j1(o,t,n,e,i,r);return s!==rn&&fD(o,Ei(),s),Vv}function Bs(t,n,e){TD(n)&&(n=n());let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!1)}return Bs}function El(t,n){let e=TD(t);return e&&t.set(n),e}function Us(t,n){let e=X(),i=et(),r=It();return XD(i,e,e[Je],r,t,n),Us}function yj(t,n,e){let i=et();if(i.firstCreatePass){let r=dr(t);Ug(e,i.data,i.blueprint,r,!0),Ug(n,i.data,i.blueprint,r,!1)}}function Ug(t,n,e,i,r){if(t=Et(t),Array.isArray(t))for(let o=0;o<t.length;o++)Ug(t[o],n,e,i,r);else{let o=et(),s=X(),a=It(),l=Es(t)?t:Et(t.provide),c=Nw(t),d=a.providerIndexes&1048575,u=a.directiveStart,m=a.providerIndexes>>20;if(Es(t)||!t.multi){let p=new _o(c,r,h),v=Vm(l,n,r?d:d+m,u);v===-1?(Jm(uu(a,s),o,l),jm(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(p),s.push(p)):(e[v]=p,s[v]=p)}else{let p=Vm(l,n,d+m,u),v=Vm(l,n,d,d+m),_=p>=0&&e[p],E=v>=0&&e[v];if(r&&!E||!r&&!_){Jm(uu(a,s),o,l);let I=xj(r?bj:_j,e.length,r,i,c);!r&&E&&(e[v].providerFactory=I),jm(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(I),s.push(I)}else{let I=tI(e[r?v:p],c,!r&&i);jm(o,t,p>-1?p:v,I)}!r&&i&&E&&e[v].componentProviders++}}}function jm(t,n,e,i){let r=Es(n),o=XF(n);if(r||o){let l=(o?Et(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function tI(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Vm(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function _j(t,n,e,i){return zg(this.multi,[])}function bj(t,n,e,i){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=bo(e,e[ie],this.providerFactory.index,i);o=a.slice(0,s),zg(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],zg(r,o);return o}function zg(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function xj(t,n,e,i,r){let o=new _o(t,e,h);return o.multi=[],o.index=n,o.componentProviders=0,tI(o,r,i&&!e),o}function bt(t,n=[]){return e=>{e.providersResolver=(i,r)=>yj(i,r?r(t):t,n)}}function Se(t){xn("NgStandalone"),t.getStandaloneInjector=n=>n.get(Cj).getOrCreateStandaloneInjector(t)}function of(t,n,e){let i=Ns()+t,r=X();return r[i]===rn?ef(r,i,e?n.call(e):n()):R1(r,i)}function sf(t,n,e,i){return rI(X(),Ns(),t,n,e,i)}function nI(t,n,e,i,r){return oI(X(),Ns(),t,n,e,i,r)}function iI(t,n,e,i,r,o){return wj(X(),Ns(),t,n,e,i,r,o)}function Bv(t,n){let e=t[n];return e===rn?void 0:e}function rI(t,n,e,i,r,o){let s=n+e;return nn(t,s,r)?ef(t,s+1,o?i.call(o,r):i(r)):Bv(t,s+1)}function oI(t,n,e,i,r,o,s){let a=n+e;return jv(t,a,r,o)?ef(t,a+2,s?i.call(s,r,o):i(r,o)):Bv(t,a+2)}function wj(t,n,e,i,r,o,s,a){let l=n+e;return O1(t,l,r,o,s)?ef(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Bv(t,l+3)}function se(t,n){let e=et(),i,r=t+vt;e.firstCreatePass?(i=Ej(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=po(i.type,!0)),s,a=qt(h);try{let l=du(!1),c=o();return du(l),gj(e,X(),r,c),c}finally{qt(a)}}function Ej(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function be(t,n,e){let i=t+vt,r=X(),o=av(r,i);return sI(r,i)?rI(r,Ns(),n,o.transform,e,o):o.transform(e)}function So(t,n,e,i){let r=t+vt,o=X(),s=av(o,r);return sI(o,r)?oI(o,Ns(),n,s.transform,e,i,s):s.transform(e,i)}function sI(t,n){return t[ie].data[n].pure}function Ao(t,n){return Zu(t,n)}function To(t){return!!t&&typeof t.then=="function"}function lI(t){return!!t&&typeof t.subscribe=="function"}function Dj(){G0(()=>{throw new S(600,!1)})}function Ij(t){return t.isBoundToModule}function Sj(t,n,e){try{let i=e();return To(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}function Jd(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Aj(t,n,e,i){if(!e&&!Lu(t))return;vD(t,n,e&&!i?0:1)}function Rj({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new k(ne(x({},Oj()),{scheduleInRootZone:e})),[{provide:k,useFactory:t},{provide:ws,multi:!0,useFactory:()=>{let i=y(Tj,{optional:!0});return()=>i.initialize()}},{provide:ws,multi:!0,useFactory:()=>{let i=y(kj);return()=>{i.initialize()}}},n===!0?{provide:xD,useValue:!0}:[],{provide:CD,useValue:e??vE}]}function Oj(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function Nj(){return typeof $localize<"u"&&$localize.locale||Du}function qd(t){return!t.moduleRef}function Lj(t){let n=qd(t)?t.r3Injector:t.moduleRef.injector,e=n.get(k);return e.run(()=>{qd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(Yt,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o)}})}),qd(t)){let o=()=>n.destroy(),s=t.platformInjector.get(Hg);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Hg);s.add(o),t.moduleRef.onDestroy(()=>{Jd(t.allPlatformModules,t.moduleRef),r.unsubscribe(),s.delete(o)})}return Sj(i,e,()=>{let o=n.get(cI);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(df,Du);if(uj(s||Du),qd(t)){let a=n.get(sn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return Pj(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Pj(t,n){let e=t.injector.get(sn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new S(-403,!1);n.push(t)}function jj(t=[],n){return De.create({name:n,providers:[{provide:Ou,useValue:"platform"},{provide:Hg,useValue:new Set([()=>eu=null])},...t]})}function Vj(t=[]){if(eu)return eu;let n=jj(t);return eu=n,Dj(),Bj(n),n}function Bj(t){t.get(yv,null)?.forEach(e=>e())}function Uj(t){return zj(It(),X(),(t&16)===16)}function zj(t,n,e){if(Fu(t)&&!e){let i=vr(t.index,n);return new xo(i,i)}else if(t.type&175){let i=n[tn];return new xo(i,n)}return null}function lw(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}function cw(){return new uf([new Gg])}function Uv(t){try{let{rootComponent:n,appProviders:e,platformProviders:i}=t,r=Vj(i),o=[Rj({}),{provide:Ts,useExisting:Fj},...e||[]],s=new bu({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return Lj({r3Injector:s.injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}function Ie(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ti(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function Ri(t,n){xn("NgSignals");let e=Rp(t);return n?.equal&&(e[mn].equal=n.equal),e}function wn(t){let n=Ee(null);try{return t()}finally{Ee(n)}}function zv(t,n){xn("NgSignals"),!n?.injector&&rv(zv);let e=n?.injector??y(De),i=n?.manualCleanup!==!0?e.get($u):null,r=new Qg(e.get(Hj),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(Be,null,{optional:!0});return!o||!(o._lView[Z]&8)?r.watcher.notify():(o._lView[Kd]??=[]).push(r.watcher.notify),r}function dI(t){let n=cr(t);if(!n)return null;let e=new Rs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var dw,S,Ud,ol,dF,pw,CC,mw,fF,C,hF,pF,mF,gF,tu,rl,wC,xe,Um,_F,sl,zm,nu,bF,xF,CF,EC,xs,ml,Tu,yi,Ut,ws,xw,Cw,ru,ww,Wn,lr,Dw,KF,Ou,Yd,JF,Sm,Dt,ll,Ci,ie,Z,Ft,Fn,Qt,Ds,ou,Ot,Is,qn,Je,cl,AC,Fs,tn,mo,ys,_i,ku,Pw,sr,Kd,vn,vt,jw,go,su,Ms,kt,au,dl,Uw,TC,Hn,$w,cN,de,Yw,iE,oE,Cs,_o,Tm,Zm,Xm,PN,lE,cE,jN,Gn,fo,De,GN,WN,vE,$u,tg,Di,ng,V,gv,hu,YN,k,KN,rg,Yt,eL,F,fr,CE,iL,VC,sg,yl,sL,yv,yt,at,Io,aL,lL,cL,SE,dL,zd,$d,bi,ag,lg,cg,dg,ug,fg,hg,mL,NE,LE,PE,gL,vL,yL,zC,jE,_L,bL,xL,CL,pg,IL,ML,Hd,Mt,RL,OL,kL,xi,NL,YL,qC,rn,oP,mD,OP,FP,NP,xo,Nt,BP,UP,vQ,$P,Ts,Nv,xD,CD,_g,gu,GP,bg,Kt,pr,Qn,qP,yu,Rs,xg,_t,i1,wD,o1,s1,Cg,wg,_u,Eg,Dg,XC,OD,mr,fl,Sg,Ag,bu,N1,bs,LD,Tg,Rg,jD,kn,Ng,wu,Pg,jg,Vg,aj,cj,Du,dj,fj,vj,Cj,Kn,af,aI,lf,cI,zs,Mj,sn,$g,cf,Tj,kj,Fj,df,Hg,eu,Be,Gg,$j,Wg,qg,Yg,Iu,uf,Hj,Gj,Kg,Qg,M=f(()=>{"use strict";Q0();ke();st();dw="https://g.co/ng/security#xss",S=class extends Error{constructor(n,e){super(Mu(n,e)),this.code=n}};Ud="__parameters__";ol=globalThis;dF=$e({__forward_ref__:$e});pw=$e({\u0275prov:$e}),CC=$e({\u0275inj:$e}),mw=$e({ngInjectableDef:$e}),fF=$e({ngInjectorDef:$e}),C=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};hF=$e({\u0275cmp:$e}),pF=$e({\u0275dir:$e}),mF=$e({\u0275pipe:$e}),gF=$e({\u0275mod:$e}),tu=$e({\u0275fac:$e}),rl=$e({__NG_ELEMENT_ID__:$e}),wC=$e({__NG_ENV_ID__:$e});xe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(xe||{});_F={},sl=_F,zm="__NG_DI_FLAG__",nu="ngTempTokenPath",bF="ngTokenPath",xF=/\n/gm,CF="\u0275",EC="__source";ml=_w(uw("Optional"),8),Tu=_w(uw("SkipSelf"),4);yi={},Ut=[],ws=new C(""),xw=new C("",-1),Cw=new C(""),ru=class{get(n,e=sl){if(e===sl){let i=new Error(`NullInjectorError: No provider for ${zt(n)}!`);throw i.name="NullInjectorError",i}return e}},ww=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(ww||{}),Wn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Wn||{}),lr=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(lr||{});Dw="ng-template";KF=$e({provide:String,useValue:$e});Ou=new C(""),Yd={},JF={};Dt=class{},ll=class extends Dt{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qm(n,s=>this.processProvider(s)),this.records.set(xw,vs(void 0,this)),r.has("environment")&&this.records.set(Dt,vs(void 0,this));let o=this.records.get(Ou);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Cw,Ut,xe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=Ee(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ee(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=or(this),i=qt(void 0),r;try{return n()}finally{or(e),qt(i)}}get(n,e=sl,i=xe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(wC))return n[wC](this);i=Au(i);let r,o=or(this),s=qt(void 0);try{if(!(i&xe.SkipSelf)){let l=this.records.get(n);if(l===void 0){let c=rN(n)&&Su(n);c&&this.injectableDefInScope(c)?l=vs(Wm(n),Yd):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l)}let a=i&xe.Self?iv():this.parent;return e=i&xe.Optional&&e===sl?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[nu]=a[nu]||[]).unshift(zt(n)),o)throw a;return IF(a,n,"R3InjectorError",this.source)}else throw a}finally{qt(s),or(o)}}resolveInjectorInitializers(){let n=Ee(null),e=or(this),i=qt(void 0),r;try{let o=this.get(ws,Ut,xe.Self);for(let s of o)s()}finally{or(e),qt(i),Ee(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(zt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){n=Et(n);let e=Es(n)?n:Et(n&&n.provide),i=tN(n);if(!Es(n)&&n.multi===!0){let r=this.records.get(e);r||(r=vs(void 0,Yd,!0),r.factory=()=>$m(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){let i=Ee(null);try{return e.value===Yd&&(e.value=JF,e.value=e.factory()),typeof e.value=="object"&&e.value&&iN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Ee(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Et(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};Ci=0,ie=1,Z=2,Ft=3,Fn=4,Qt=5,Ds=6,ou=7,Ot=8,Is=9,qn=10,Je=11,cl=12,AC=13,Fs=14,tn=15,mo=16,ys=17,_i=18,ku=19,Pw=20,sr=21,Kd=22,vn=23,vt=25,jw=1,go=7,su=8,Ms=9,kt=10,au=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(au||{});dl=class{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};He.ngInherit=!0;Uw="__ngSimpleChanges__";TC=null,Hn=function(t,n,e){TC?.(t,n,e)},$w="svg",cN="math";de={lFrame:tE(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Yw=!1;iE=nE;oE=!0;Cs=-1,_o=class{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};Tm={},Zm=class{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Au(i);let r=this.injector.get(n,Tm,i);return r!==Tm||e===Tm?r:this.parentInjector.get(n,e,i)}};Xm=!0;PN=256,lE=PN-1,cE=5,jN=0,Gn={};fo=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return hE(this._tNode,this._lView,n,Au(i),e)}};De=class t{static{this.THROW_IF_NOT_FOUND=sl}static{this.NULL=new ru}static create(n,e){if(Array.isArray(n))return NC({name:""},e,n,"");{let i=n.name??"";return NC({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=b({token:t,providedIn:"any",factory:()=>g(xw)})}static{this.__NG_ELEMENT_ID__=-1}};GN=new C("");GN.__NG_ELEMENT_ID__=t=>{let n=It();if(n===null)throw new S(204,!1);if(n.type&2)return n.value;if(t&xe.Optional)return null;throw new S(204,!1)};WN="ngOriginalError";vE=!0,$u=(()=>{class t{static{this.__NG_ELEMENT_ID__=qN}static{this.__NG_ENV_ID__=e=>e}}return t})(),tg=class extends $u{constructor(n){super(),this._lView=n}onDestroy(n){return qw(this._lView,n),()=>hN(this._lView,n)}};Di=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ot(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}}return t})(),ng=class extends R{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Lw()&&(this.destroyRef=y($u,{optional:!0})??void 0,this.pendingTasks=y(Di,{optional:!0})??void 0)}emit(n){let e=Ee(null);try{super.next(n)}finally{Ee(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return n instanceof ge&&n.add(a),a}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{n(e),i!==void 0&&this.pendingTasks?.remove(i)})}}},V=ng;gv="isAngularZone",hu=gv+"_ID",YN=0,k=class t{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new V(!1),this.onMicrotaskEmpty=new V(!1),this.onStable=new V(!1),this.onError=new V(!1);let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=vE}=n;if(typeof Zone>"u")throw new S(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)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,ZN(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(gv)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,KN,fu,fu);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},KN={};rg=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new V,this.onMicrotaskEmpty=new V,this.onStable=new V,this.onError=new V}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};Yt=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Om(n);for(;e&&Om(e);)e=Om(e);return e||null}},eL=new C("",{providedIn:"root",factory:()=>{let t=y(k),n=y(Yt);return e=>t.runOutsideAngular(()=>n.handleError(e))}});F=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=tL}}return t})();fr=class t{get changes(){return this._changes??=new V}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=nL)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=AF(n);(this._changesDetected=!SF(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};CE=new Map,iL=0;VC="__ngContext__";yl=new C("",{providedIn:"root",factory:()=>sL}),sL="ng",yv=new C(""),yt=new C("",{providedIn:"platform",factory:()=>"unknown"}),at=new C(""),Io=new C("",{providedIn:"root",factory:()=>ME().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),aL="h",lL="b",cL=()=>null;SE=!1,dL=new C("",{providedIn:"root",factory:()=>SE});bi=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dw})`}},ag=class extends bi{getTypeName(){return"HTML"}},lg=class extends bi{getTypeName(){return"Style"}},cg=class extends bi{getTypeName(){return"Script"}},dg=class extends bi{getTypeName(){return"URL"}},ug=class extends bi{getTypeName(){return"ResourceURL"}};fg=class{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(Hu(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},hg=class{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Hu(n),e}};mL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;NE=Mi("area,br,col,hr,img,wbr"),LE=Mi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),PE=Mi("rp,rt"),gL=_l(PE,LE),vL=_l(LE,Mi("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")),yL=_l(PE,Mi("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")),zC=_l(NE,vL,yL,gL),jE=Mi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_L=Mi("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"),bL=Mi("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"),xL=_l(jE,_L,bL),CL=Mi("script,style,template"),pg=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=DL(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=EL(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=$C(n).toLowerCase();if(!zC.hasOwnProperty(e))return this.sanitizedSomething=!0,!CL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let o=i.item(r),s=o.name,a=s.toLowerCase();if(!xL.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;jE[a]&&(l=Gu(l)),this.buf.push(" ",s,'="',HC(l),'"')}return this.buf.push(">"),!0}endElement(n){let e=$C(n).toLowerCase();zC.hasOwnProperty(e)&&!NE.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(HC(n))}};IL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ML=/([^\#-~ |!])/g;Mt=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Mt||{});RL=/^>|^->|<!--|-->|--!>|<!-$/g,OL=/(<|>)/g,kL="\u200B$1\u200B";xi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(xi||{});YL=qL;rn={};oP=()=>null;mD=[];OP=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Pu(t.lView)},consumerOnSignalRead(){this.lView[vn]=this}});FP=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let n=vo(t.lView);for(;n&&!gD(n[ie]);)n=vo(n);n&&Ww(n)},consumerOnSignalRead(){this.lView[vn]=this}});NP=100;xo=class{get rootNodes(){let n=this._lView,e=n[ie];return mu(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ot]}set context(n){this._lView[Ot]=n}get destroyed(){return(this._lView[Z]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[Ft];if(wi(n)){let e=n[su],i=e?e.indexOf(this):-1;i>-1&&(ul(n,i),iu(e,i))}this._attachedToViewContainer=!1}Wu(this._lView[ie],this._lView)}onDestroy(n){qw(this._lView,n)}markForCheck(){Fv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Z]&=-129}reattach(){Km(this._lView),this._lView[Z]|=128}detectChanges(){this._lView[Z]|=1024,vD(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=Ym(this._lView),e=this._lView[mo];e!==null&&!n&&Ev(e,this._lView),HE(this._lView[ie],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n;let e=Ym(this._lView),i=this._lView[mo];i!==null&&!e&&GE(i,this._lView),Km(this._lView)}},Nt=(()=>{class t{static{this.__NG_ELEMENT_ID__=zP}}return t})(),BP=Nt,UP=class extends BP{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=bl(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new xo(r)}};vQ=new RegExp(`^(\\d+)*(${lL}|${aL})*(.*)`),$P=()=>null;Ts=class{},Nv=new C("",{providedIn:"root",factory:()=>!1}),xD=new C(""),CD=new C(""),_g=class{},gu=class{};GP="ngComponent",bg=class{resolveComponentFactory(n){throw HP(n)}},Kt=class{static{this.NULL=new bg}},pr=class{},Qn=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>WP()}}return t})();qP=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>null})}}return t})();yu=class extends Kt{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=cr(n);return new Rs(e,this.ngModule)}};Rs=class extends gu{get inputs(){let n=this.componentDef,e=n.inputTransforms,i=QC(n.inputs,!0);if(e!==null)for(let r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return QC(this.componentDef.outputs,!1)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=HF(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=Ee(null);try{r=r||this.ngModule;let s=r instanceof Dt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Zm(n,s):n,l=a.get(pr,null);if(l===null)throw new S(407,!1);let c=a.get(qP,null),d=a.get(Ts,null),u={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,changeDetectionScheduler:d},m=l.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",v=i?iP(m,i,this.componentDef.encapsulation,a):$E(m,p,YP(p)),_=512;this.componentDef.signals?_|=4096:this.componentDef.onPush||(_|=16);let E=null;v!==null&&(E=_v(v,a,!0));let I=Av(0,null,null,1,0,null,null,null,null,null,null),U=Ku(null,I,null,_,null,null,u,m,a,null,E);hv(U);let H,Me,rt=null;try{let Oe=this.componentDef,Ye,mt=null;Oe.findHostDirectiveDefs?(Ye=[],mt=new Map,Oe.findHostDirectiveDefs(Oe,Ye,mt),Ye.push(Oe)):Ye=[Oe];let hi=KP(U,v);rt=QP(hi,v,Oe,Ye,U,u,m),Me=sv(I,vt),v&&JP(m,Oe,v,i),e!==void 0&&e1(Me,this.ngContentSelectors,e),H=XP(rt,Oe,Ye,mt,U,[t1]),kv(I,U,null)}catch(Oe){throw rt!==null&&og(rt),og(U),Oe}finally{pv()}return new xg(this.componentType,H,Ls(Me,U),U,Me)}finally{Ee(o)}}},xg=class extends _g{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new xo(r,void 0,!1),this.componentType=n}setInput(n,e){let i=this._tNode.inputs,r;if(i!==null&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let o=this._rootLView;Ov(o[ie],o,r,n,e),this.previousInputValues.set(n,e);let s=vr(this._tNode.index,o);Fv(s,1)}}get injector(){return new fo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};_t=(()=>{class t{static{this.__NG_ELEMENT_ID__=n1}}return t})();i1=_t,wD=class extends i1{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ls(this._hostTNode,this._hostLView)}get injector(){return new fo(this._hostTNode,this._hostLView)}get parentInjector(){let n=mv(this._hostTNode,this._hostLView);if(aE(n)){let e=cu(n,this._hostLView),i=lu(n),r=e[ie].data[i+8];return new fo(r,e)}else return new fo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=ZC(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-kt}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=As(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Ss(this._hostTNode,s)),a}createComponent(n,e,i,r,o){let s=n&&!oN(n),a;if(s)a=e;else{let v=e||{};a=v.index,i=v.injector,r=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let l=s?n:new Rs(cr(n)),c=i||this.parentInjector;if(!o&&l.ngModule==null){let _=(s?c:this.parentInjector).get(Dt,null);_&&(o=_)}let d=cr(l.componentType??{}),u=As(this._lContainer,d?.id??null),m=u?.firstChild??null,p=l.create(c,r,m,o);return this.insertImpl(p.hostView,a,Ss(this._hostTNode,u)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(uN(r)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=r[Ft],c=new wD(l,l[Qt],l[Ft]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return xl(s,r,o,i),n.attachToViewContainerRef(),bw(Fm(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=ZC(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=ul(this._lContainer,e);i&&(iu(Fm(this._lContainer),e),Wu(i[ie],i))}detach(n){let e=this._adjustIndex(n,-1),i=ul(this._lContainer,e);return i&&iu(Fm(this._lContainer),e)!=null?new xo(i):null}_adjustIndex(n,e=0){return n??this.length+e}};o1=l1,s1=()=>!1;Cg=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wg=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)Pv(n,e).matches!==null&&this.queries[e].setDirty()}},_u=class{constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=p1(n):this.predicate=n}},Eg=class t{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Dg=class t{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,c1(e,o)),this.matchTNodeWithReadOption(n,e,Xd(e,n,o,!1,!1))}else i===Nt?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Xd(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===F||r===_t||r===Nt&&e.type&4)this.addMatch(e.index,-2);else{let o=Xd(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};XC=new Set;OD=(JC.required=x1,JC);mr=class{},fl=class{},Sg=class extends mr{constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yu(this);let o=Aw(n);this._bootstrapComponents=UE(o.bootstrap),this._r3Injector=gE(n,e,[{provide:mr,useValue:this},{provide:Kt,useValue:this.componentFactoryResolver},...i],zt(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Ag=class extends fl{constructor(n){super(),this.moduleType=n}create(n){return new Sg(this.moduleType,n,[])}},bu=class extends mr{constructor(n){super(),this.componentFactoryResolver=new yu(this),this.instance=null;let e=new ll([...n.providers,{provide:mr,useValue:this},{provide:Kt,useValue:this.componentFactoryResolver}],n.parent||iv(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};N1=L1;bs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(bs||{}),LD=(()=>{class t{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}}return t})(),Tg=class t{constructor(){this.ngZone=y(k),this.scheduler=y(Ts),this.errorHandler=y(Yt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[bs.EarlyRead,bs.Write,bs.MixedReadWrite,bs.Read]}execute(){this.executing=!0;for(let n of t.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[n]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[n](e.pipelinedValue))}catch(i){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}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))}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}},Rg=class{constructor(n,e,i,r){this.impl=n,this.hooks=e,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};jD={destroy(){}};kn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};Ng=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};wu=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};Pg=class{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-kt}};jg=class{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};Vg=class extends Ng{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-kt}at(n){return this.getLView(n)[Ot].$implicit}attach(n,e){let i=e[Ds];this.needsIndexUpdate||=n!==this.length,xl(this.lContainer,e,n,Ss(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,rj(this.lContainer,n)}create(n,e){let i=As(this.lContainer,this.templateTNode.tView.ssrId),r=bl(this.hostLView,this.templateTNode,new Pg(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){Wu(n[ie],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Ot].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Ot].$index=n}getLView(n){return oj(this.lContainer,n)}};aj=(t,n,e,i,r,o)=>(Uu(!0),$E(i,r,TN()));cj=(t,n,e,i)=>(Uu(!0),jL(n[Je],""));Du="en-US",dj=Du;fj=(t,n,e)=>{};vj=(t,n,e,i,r)=>(Uu(!0),LL(n[Je],i));Cj=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=Ow(!1,e.type),r=i.length>0?Ju([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=b({token:t,providedIn:"environment",factory:()=>new t(g(Dt))})}}return t})();Kn=class{constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},af=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),aI=new C("");lf=new C(""),cI=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=y(lf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(To(o))e.push(o);else if(lI(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zs=new C("");Mj=10;sn=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=y(eL),this.afterRenderManager=y(LD),this.zonelessEnabled=y(Nv),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new R,this.afterTick=new R,this.componentTypes=[],this.components=[],this.isStable=y(Di).hasPendingTasks.pipe(P(e=>!e)),this._injector=y(Dt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof gu;if(!this._injector.get(cI).done){let m=!r&&Sw(e),p=!1;throw new S(405,p)}let s;r?s=e:s=this._injector.get(Kt).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=Ij(s)?void 0:this._injector.get(mr),l=i||s.selector,c=s.create(De.NULL,[],l,a),d=c.location.nativeElement,u=c.injector.get(aI,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Jd(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let e=Ee(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,Ee(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(pr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++<Mj;)this.synchronizeOnce(e)}synchronizeOnce(e){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)Aj(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else e?.begin?.(),e?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Lu(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Jd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(zs,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Jd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();$g=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},cf=(()=>{class t{compileModuleSync(e){return new Ag(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=Aw(e),o=UE(r.declarations).reduce((s,a)=>{let l=cr(a);return l&&s.push(new Rs(l)),s},[]);return new $g(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Tj=(()=>{class t{constructor(){this.zone=y(k),this.changeDetectionScheduler=y(Ts),this.applicationRef=y(sn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();kj=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=y(k),this.pendingTasks=y(Di)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{k.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{k.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fj=(()=>{class t{constructor(){this.appRef=y(sn),this.taskService=y(Di),this.ngZone=y(k),this.zonelessEnabled=y(Nv),this.disableScheduling=y(xD,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ge,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(hu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(CD,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rg||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?LC:yE;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(hu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,LC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();df=new C("",{providedIn:"root",factory:()=>y(df,xe.Optional|xe.SkipSelf)||Nj()}),Hg=new C("");eu=null;Be=(()=>{class t{static{this.__NG_ELEMENT_ID__=Uj}}return t})();Gg=class{constructor(){}supports(n){return ND(n)}create(n){return new Wg(n)}},$j=(t,n)=>n,Wg=class{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||$j}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let s=!i||e&&e.currentIndex<lw(i,r,o)?e:i,a=lw(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,s.previousIndex==null)r++;else{o||(o=[]);let c=a-r,d=l-r;if(c!=d){for(let m=0;m<c;m++){let p=m<o.length?o[m]:o[m]=0,v=p+m;d<=v&&v<c&&(o[m]=p+1)}let u=s.previousIndex;o[u]=d-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!ND(n))throw new S(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,o,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),i=!0):(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,A1(n,a=>{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),i=!0):(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new qg(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Iu),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Iu),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},qg=class{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Yg=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Iu=class{constructor(){this.map=new Map}put(n){let e=n.trackById,i=this.map.get(e);i||(i=new Yg,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};uf=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:cw})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||cw()),deps:[[t,new Tu,new ml]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new S(901,!1)}}return t})();Hj=new C("",{providedIn:"root",factory:()=>y(Gj)}),Gj=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new Kg})}}return t})(),Kg=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=y(Di),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){let e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},Qg=class{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=K0(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Yt,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}});function Wj(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function qj(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}function Yj(t){return typeof t=="function"}function Kj(t,n){if(!$v){let e=Element.prototype;$v=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?$v.call(t,n):!1}function Qj(t,n){return t===n||t!==t&&n!==n}function Zj(t){let n={};return t.forEach(({propName:e,templateName:i,transform:r})=>{n[Wj(i)]=[e,r]}),n}function Xj(t,n){return n.get(Kt).resolveComponentFactory(t).inputs}function Jj(t,n){let e=t.childNodes,i=n.map(()=>[]),r=-1;n.some((o,s)=>o==="*"?(r=s,!0):!1);for(let o=0,s=e.length;o<s;++o){let a=e[o],l=eV(a,n,r);l!==-1&&i[l].push(a)}return i}function eV(t,n,e){let i=e;return qj(t)&&n.some((r,o)=>r!=="*"&&Kj(t,r)?(i=o,!0):!1),i}function qv(t,n){let e=Xj(t,n.injector),i=n.strategyFactory||new Hv(t,n.injector),r=Zj(e);class o extends Wv{static{this.observedAttributes=Object.keys(r)}get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[u,m]=r[a];this.ngElementStrategy.setInputValue(u,c,m)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return e.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var ff,$v,tV,Hv,Gv,Wv,uI=f(()=>{"use strict";M();ke();st();ff={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if(typeof window>"u")return ff.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return ff.schedule(t,16);let n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};tV=10,Hv=class{constructor(n,e){this.componentFactory=e.get(Kt).resolveComponentFactory(n)}create(n){return new Gv(this.componentFactory,n)}},Gv=class{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new no(1),this.events=this.eventEmitters.pipe(ze(i=>ft(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(k),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=ff.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},tV))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e,i){this.runInZone(()=>{if(i&&(e=i.call(this.componentRef?.instance,e)),this.componentRef===null){this.initialInputValues.set(n,e);return}Qj(e,this.getInputValue(n))&&!(e===void 0&&this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges())})}initializeComponent(n){let e=De.create({providers:[],parent:this.injector}),i=Jj(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Be),this.implementsOnChanges=Yj(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(sn).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:e})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),e)}),this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>n.instance[i].pipe(P(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||this.inputChanges===null)return;let e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ff.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;this.inputChanges===null&&(this.inputChanges={});let i=this.inputChanges[n];if(i){i.currentValue=e;return}let r=this.unchangedInputs.has(n),o=r?void 0:this.getInputValue(n);this.inputChanges[n]=new dl(o,e,r)}detectChanges(){this.componentRef!==null&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},Wv=class extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}});function ki(){return vI}function yI(t){vI??=t}function ey(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function fI(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,i=e-(t[e-1]==="/"?1:0);return t.slice(0,i)+t.slice(e)}function Oi(t){return t&&t[0]!=="?"?"?"+t:t}function oV(){return new Zn(g(Fi))}function sV(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function hI(t){return t.replace(/\/index.html$/,"")}function aV(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function pf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}function mI(t,n){t.context.$implicit=n.item}function gI(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${zt(n)}'.`)}function lV(t,n){return new S(2100,!1)}function Xn(t){return t===ny}function Ni(t){return t===cV}function dV(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}var vI,hf,B,Jv,_I,rV,Fi,bI,ty,xI,Zn,Yv,pI,br,Kv,mf,Hs,Qv,gf,CI,ct,ny,cV,wI,Zv,Xv,$s,we=f(()=>{"use strict";M();M();vI=null;hf=class{},B=new C(""),Jv=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(rV),providedIn:"platform"})}}return t})(),_I=new C(""),rV=(()=>{class t extends Jv{constructor(){super(),this._doc=y(B),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ki().getBaseHref(this._doc)}onPopState(e){let i=ki().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=ki().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();Fi=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(ty),providedIn:"root"})}}return t})(),bI=new C(""),ty=(()=>{class t extends Fi{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??y(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ey(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Oi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Jv),g(bI,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xI=(()=>{class t extends Fi{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=ey(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Jv),g(bI,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Zn=(()=>{class t{constructor(e){this._subject=new V,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=aV(fI(hI(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Oi(i))}normalize(e){return t.stripTrailingSlash(sV(this._basePath,hI(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oi(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oi(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=Oi}static{this.joinWithSlash=ey}static{this.stripTrailingSlash=fI}static{this.\u0275fac=function(i){return new(i||t)(g(Fi))}}static{this.\u0275prov=b({token:t,factory:()=>oV(),providedIn:"root"})}}return t})();Yv=/\s+/,pI=[],br=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=pI,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(Yv):pI}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Yv):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(Yv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qn))}}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})(),Kv=class{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mf=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Kv(r.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)i.remove(o===null?void 0:o);else if(o!==null){let a=i.get(o);i.move(a,s),mI(a,r)}});for(let r=0,o=i.length;r<o;r++){let a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);mI(o,r)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(h(_t),h(Nt),h(uf))}}static{this.\u0275dir=j({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();Hs=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Qv,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){gI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){gI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(h(_t),h(Nt))}}static{this.\u0275dir=j({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),Qv=class{constructor(){this.$implicit=null,this.ngIf=null}};gf=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||t)(h(_t))}}static{this.\u0275dir=j({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[He]})}}return t})();CI=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw lV(t,e);return e.toUpperCase()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=ks({name:"uppercase",type:t,pure:!0,standalone:!0})}}return t})(),ct=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),ny="browser",cV="server";wI=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>Xn(y(yt))?new Zv(y(B),window):new Xv})}}return t})(),Zv=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=dV(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};Xv=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},$s=class{}});function uV(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}function EI(t){return encodeURIComponent(t).replace(fV,(n,e)=>hV[e]??n)}function vf(t){return`${t}`}function pV(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function DI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function II(t){return typeof Blob<"u"&&t instanceof Blob}function MI(t){return typeof FormData<"u"&&t instanceof FormData}function mV(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function iy(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}function SI(t){if(t.url)return t.url;let n=yV.toLocaleLowerCase();return t.headers.get(n)}function ay(){}function bV(t){t.then(ay,ay)}function xV(t,n){return n(t)}function CV(t,n,e){return(i,r)=>yn(e,()=>n(i,o=>t(o,r)))}function IV(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function OV(t,n){let e=t.url.toLowerCase();if(!y(OI)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=y(bf).getToken(),r=y(TV);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}function kV(t,n){return{\u0275kind:t,\u0275providers:n}}function FI(...t){let n=[Dr,TI,AI,{provide:Il,useExisting:AI},{provide:yf,useFactory:()=>y(_V,{optional:!0})??y(TI)},{provide:ly,useValue:OV,multi:!0},{provide:OI,useValue:!0},{provide:bf,useClass:RV}];for(let e of t)n.push(...e.\u0275providers);return vl(n)}function NI(t){return kV(kI.Interceptors,t.map(n=>({provide:ly,useValue:n,multi:!0})))}var Il,yf,Jn,ry,fV,hV,wr,oy,Dl,Er,Ml,_f,Sl,Cr,RI,gV,Dr,vV,yV,_V,sy,ly,wV,EV,AI,DV,TI,OI,MV,SV,AV,TV,bf,RV,kI,Al=f(()=>{"use strict";M();M();ke();st();we();we();Il=class{},yf=class{},Jn=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
8
- `).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}},ry=class{encodeKey(n){return EI(n)}encodeValue(n){return EI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};fV=/%(\d[a-f0-9])/gi,hV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};wr=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ry,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=uV(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(vf):[vf(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(vf(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(vf(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}},oy=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};Dl=class t{constructor(n,e,i,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(pV(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Jn,this.context??=new oy,!this.params)this.params=new wr,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||DI(this.body)||II(this.body)||MI(this.body)||mV(this.body)?this.body:this.body instanceof wr?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||MI(this.body)?null:II(this.body)?this.body.type||null:DI(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof wr?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,a=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress,c=n.headers||this.headers,d=n.params||this.params,u=n.context??this.context;return n.setHeaders!==void 0&&(c=Object.keys(n.setHeaders).reduce((m,p)=>m.set(p,n.setHeaders[p]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((m,p)=>m.set(p,n.setParams[p]),d)),new t(e,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Er=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Er||{}),Ml=class{constructor(n,e=200,i="OK"){this.headers=n.headers||new Jn,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},_f=class t extends Ml{constructor(n={}){super(n),this.type=Er.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Sl=class t extends Ml{constructor(n={}){super(n),this.type=Er.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Cr=class extends Ml{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},RI=200,gV=204;Dr=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Dl)o=e;else{let l;r.headers instanceof Jn?l=r.headers:l=new Jn(r.headers);let c;r.params&&(r.params instanceof wr?c=r.params:c=new wr({fromObject:r.params})),o=new Dl(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=O(o).pipe(Rn(l=>this.handler.handle(l)));if(e instanceof Dl||r.observe==="events")return s;let a=s.pipe(ue(l=>l instanceof Sl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(P(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(P(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new wr().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,iy(r,i))}post(e,i,r={}){return this.request("POST",e,iy(r,i))}put(e,i,r={}){return this.request("PUT",e,iy(r,i))}static{this.\u0275fac=function(i){return new(i||t)(g(Il))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),vV=/^\)\]\}',?\n/,yV="X-Request-URL";_V=(()=>{class t{constructor(){this.fetchImpl=y(sy,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=y(k)}handle(e){return new Q(i=>{let r=new AbortController;return this.doRequest(e,r.signal,i).then(ay,o=>i.error(new Cr({error:o}))),()=>r.abort()})}doRequest(e,i,r){return es(this,null,function*(){let o=this.createRequestInit(e),s;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,x({signal:i},o)));bV(p),r.next({type:Er.Sent}),s=yield p}catch(p){r.error(new Cr({error:p,status:p.status??0,statusText:p.statusText,url:e.urlWithParams,headers:p.headers}));return}let a=new Jn(s.headers),l=s.statusText,c=SI(s)??e.urlWithParams,d=s.status,u=null;if(e.reportProgress&&r.next(new _f({headers:a,status:d,statusText:l,url:c})),s.body){let p=s.headers.get("content-length"),v=[],_=s.body.getReader(),E=0,I,U,H=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>es(this,null,function*(){for(;;){let{done:rt,value:Oe}=yield _.read();if(rt)break;if(v.push(Oe),E+=Oe.length,e.reportProgress){U=e.responseType==="text"?(U??"")+(I??=new TextDecoder).decode(Oe,{stream:!0}):void 0;let Ye=()=>r.next({type:Er.DownloadProgress,total:p?+p:void 0,loaded:E,partialText:U});H?H.run(Ye):Ye()}}}));let Me=this.concatChunks(v,E);try{let rt=s.headers.get("Content-Type")??"";u=this.parseBody(e,Me,rt)}catch(rt){r.error(new Cr({error:rt,headers:new Jn(s.headers),status:s.status,statusText:s.statusText,url:SI(s)??e.urlWithParams}));return}}d===0&&(d=u?RI:0),d>=200&&d<300?(r.next(new Sl({body:u,headers:a,status:d,statusText:l,url:c})),r.complete()):r.error(new Cr({error:u,headers:a,status:d,statusText:l,url:c}))})}parseBody(e,i,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(i).replace(vV,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){let i={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>i[o]=s.join(",")),e.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(i["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let s of e)r.set(s,o),o+=s.length;return r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),sy=class{};ly=new C(""),wV=new C(""),EV=new C("",{providedIn:"root",factory:()=>!0}),AI=(()=>{class t extends Il{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=y(Di),this.contributeToStability=y(EV)}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(ly),...this.injector.get(wV,[])]));this.chain=i.reduceRight((r,o)=>CV(r,o,this.injector),xV)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Wt(()=>this.pendingTasks.remove(i)))}else return this.chain(e,i=>this.backend.handle(i))}static{this.\u0275fac=function(i){return new(i||t)(g(yf),g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),DV=/^\)\]\}',?\n/;TI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Le(i.\u0275loadImpl()):O(null)).pipe(ze(()=>new Q(o=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,E)=>s.setRequestHeader(_,E.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let _=e.detectContentTypeHeader();_!==null&&s.setRequestHeader("Content-Type",_)}if(e.responseType){let _=e.responseType.toLowerCase();s.responseType=_!=="json"?_:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let _=s.statusText||"OK",E=new Jn(s.getAllResponseHeaders()),I=IV(s)||e.url;return l=new _f({headers:E,status:s.status,statusText:_,url:I}),l},d=()=>{let{headers:_,status:E,statusText:I,url:U}=c(),H=null;E!==gV&&(H=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=H?RI:0);let Me=E>=200&&E<300;if(e.responseType==="json"&&typeof H=="string"){let rt=H;H=H.replace(DV,"");try{H=H!==""?JSON.parse(H):null}catch(Oe){H=rt,Me&&(Me=!1,H={error:Oe,text:H})}}Me?(o.next(new Sl({body:H,headers:_,status:E,statusText:I,url:U||void 0})),o.complete()):o.error(new Cr({error:H,headers:_,status:E,statusText:I,url:U||void 0}))},u=_=>{let{url:E}=c(),I=new Cr({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(I)},m=!1,p=_=>{m||(o.next(c()),m=!0);let E={type:Er.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),e.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),o.next(E)},v=_=>{let E={type:Er.UploadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),o.next(E)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",p),a!==null&&s.upload&&s.upload.addEventListener("progress",v)),s.send(a),o.next({type:Er.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",p),a!==null&&s.upload&&s.upload.removeEventListener("progress",v)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(g($s))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),OI=new C(""),MV="XSRF-TOKEN",SV=new C("",{providedIn:"root",factory:()=>MV}),AV="X-XSRF-TOKEN",TV=new C("",{providedIn:"root",factory:()=>AV}),bf=class{},RV=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(yt),g(SV))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();kI=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(kI||{})});function NV(){return Tl=Tl||document.querySelector("base"),Tl?Tl.getAttribute("href"):null}function LV(t){return new URL(t,document.baseURI).pathname}function zV(t){return VV.replace(my,t)}function $V(t){return jV.replace(my,t)}function UI(t,n){return n.map(e=>e.replace(my,t))}function LI(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}function zI(t,n){return Uv(x({rootComponent:t},HI(n)))}function $I(t){return Uv(HI(t))}function HI(t){return{appProviders:[...XV,...t?.providers??[]],platformProviders:ZV}}function YV(){fy.makeCurrent()}function KV(){return new Yt}function QV(){return IE(document),document}var uy,fy,Tl,PV,hy,jI,xf,cy,VI,dy,my,BI,jV,VV,BV,UV,Cf,Rl,py,Ol,wf,HV,PI,GV,WV,qV,ZV,XV,GI,kl,JV,Gs=f(()=>{"use strict";we();M();M();uy=class extends hf{constructor(){super(...arguments),this.supportsDOMEvents=!0}},fy=class t extends uy{static makeCurrent(){yI(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=NV();return e==null?null:LV(e)}resetBaseElement(){Tl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pf(document.cookie,n)}},Tl=null;PV=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),hy=new C(""),jI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(g(hy),g(k))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),xf=class{constructor(n){this._doc=n}},cy="ng-app-id",VI=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ni(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${cy}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(cy),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(cy,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(yl),g(Io,8),g(yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),dy={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"},my=/%COMP%/g,BI="%COMP%",jV=`_nghost-${BI}`,VV=`_ngcontent-${BI}`,BV=!0,UV=new C("",{providedIn:"root",factory:()=>BV});Cf=(()=>{class t{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Ni(a),this.defaultRenderer=new Rl(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Wn.ShadowDom&&(i=ne(x({},i),{encapsulation:Wn.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof wf?r.applyToHost(e):r instanceof Ol&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case Wn.Emulated:o=new wf(l,c,i,this.appId,d,s,a,u);break;case Wn.ShadowDom:return new py(l,c,e,i,s,a,this.nonce,u);default:o=new Ol(l,c,i,d,s,a,u);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(g(jI),g(VI),g(yl),g(UV),g(B),g(yt),g(k),g(Io))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Rl=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(dy[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(LI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(LI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=dy[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=dy[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(xi.DashCase|xi.Important)?n.style.setProperty(e,i,r&xi.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&xi.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=ki().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};py=class extends Rl{constructor(n,e,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=UI(r.id,r.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ol=class extends Rl{constructor(n,e,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?UI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wf=class extends Ol{constructor(n,e,i,r,o,s,a,l){let c=r+"-"+i.id;super(n,e,i,o,s,a,l,c),this.contentAttr=zV(c),this.hostAttr=$V(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},HV=(()=>{class t extends xf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),PI=["alt","control","meta","shift"],GV={"\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"},WV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},qV=(()=>{class t extends xf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ki().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),PI.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=GV[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),PI.forEach(s=>{if(s!==r){let a=WV[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();ZV=[{provide:yt,useValue:ny},{provide:yv,useValue:YV,multi:!0},{provide:B,useFactory:QV,deps:[]}],XV=[{provide:Ou,useValue:"root"},{provide:Yt,useFactory:KV,deps:[]},{provide:hy,useClass:HV,multi:!0,deps:[B,k,yt]},{provide:hy,useClass:qV,multi:!0,deps:[B]},Cf,VI,jI,{provide:pr,useExisting:Cf},{provide:$s,useClass:PV,deps:[]},[]],GI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),kl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=g(JV),r},providedIn:"root"})}}return t})(),JV=(()=>{class t extends kl{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Mt.NONE:return i;case Mt.HTML:return Ii(i,"HTML")?bn(i):bv(this._doc,String(i)).toString();case Mt.STYLE:return Ii(i,"Style")?bn(i):i;case Mt.SCRIPT:if(Ii(i,"Script"))return bn(i);throw new S(5200,!1);case Mt.URL:return Ii(i,"URL")?bn(i):Gu(String(i));case Mt.RESOURCE_URL:if(Ii(i,"ResourceURL"))return bn(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return TE(e)}bypassSecurityTrustStyle(e){return RE(e)}bypassSecurityTrustScript(e){return OE(e)}bypassSecurityTrustUrl(e){return kE(e)}bypassSecurityTrustResourceUrl(e){return FE(e)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function Df(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r,o,s;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(o=0;o<r;o++)if(!Df(t[o],n[o]))return!1;return!0}}else{if(Array.isArray(n))return!1;s=Object.create(null);for(o in t){if(!Df(t[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}return!1}function Ir(t){return typeof t<"u"&&t!==null}function Ll(t){return Ef(t)&&!wy(t)}function Ef(t){return typeof t=="object"}function wy(t){return Array.isArray(t)}function Ey(t){return typeof t=="string"}function eB(t){return typeof t=="function"}function vy(t,n){let e=Object.assign({},t);return Ef(t)?(Ef(t)&&Ef(n)&&Object.keys(n).forEach(i=>{Ll(n[i])?i in t?e[i]=vy(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e):vy({},n)}function yy(t,n){let e=n.split(".");n="";do n+=e.shift(),Ir(t)&&Ir(t[n])&&(Ll(t[n])||wy(t[n])||!e.length)?(t=t[n],n=""):e.length?n+=".":t=void 0;while(e.length);return t}function tB(t,n,e){let i=n.split("."),r=t;for(let o=0;o<i.length;o++){let s=i[o];o===i.length-1?r[s]=e:((!r[s]||!Ll(r[s]))&&(r[s]={}),r=r[s])}}var Ws,WI,Nl,qI,qs,YI,Ys,KI,If,_y,by,xy,Cy,Fl,Li,En,ei,Ht=f(()=>{"use strict";M();M();ke();st();Ws=class{},WI=(()=>{class t extends Ws{getTranslation(e){return O({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Nl=class{},qI=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();qs=class{},YI=(()=>{class t extends qs{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Ey(e))return this.interpolateString(e,i);if(eB(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=yy(i,o);return Ir(s)?s:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Ys=class{},KI=(()=>{class t extends Ys{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),If=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new V;onLangChange=new V;onDefaultLangChange=new V},_y=new C("ISOALTE_TRANSLATE_SERVICE"),by=new C("USE_DEFAULT_LANG"),xy=new C("DEFAULT_LANGUAGE"),Cy=new C("USE_EXTEND"),Fl=t=>gn(t)?t:O(t),Li=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new V;_onLangChange=new V;_onDefaultLangChange=new V;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,i,r,o,s,a=!0,l=!1,c=!1,d){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,d&&this.setDefaultLang(d)}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(this.defaultLang==null&&(this.defaultLang=e),i.pipe(Te(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return O(this.translations[e]);this.currentLang||(this.currentLang=e);let i=this.retrieveTranslations(e);return gn(i)?(i.pipe(Te(1)).subscribe(()=>{this.changeLang(e)}),i):(this.changeLang(e),O(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(uo(1),Te(1));return this.loadingTranslations=i.pipe(P(r=>this.compiler.compileTranslations(r,e)),uo(1),Te(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?x(x({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);(r||this.extend)&&this.translations[e]?this.translations[e]=vy(this.translations[e],o):this.translations[e]=o,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{this.langs.indexOf(i)===-1&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,i,r){let o;if(e&&(o=this.runInterpolation(yy(e,i),r)),o===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.runInterpolation(yy(this.translations[this.defaultLang],i),r)),o===void 0){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return o!==void 0?o:i}runInterpolation(e,i){if(wy(e))return e.map(r=>this.runInterpolation(r,i));if(Ll(e)){let r={};for(let o in e)r[o]=this.runInterpolation(e[o],i);return r}else return this.parser.interpolate(e,i)}getParsedResult(e,i,r){if(i instanceof Array){let o={},s=!1;for(let l of i)o[l]=this.getParsedResultForKey(e,l,r),s=s||gn(o[l]);if(!s)return o;let a=i.map(l=>Fl(o[l]));return lo(a).pipe(P(l=>{let c={};return l.forEach((d,u)=>{c[i[u]]=d}),c}))}return this.getParsedResultForKey(e,i,r)}get(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Rn(r=>Fl(this.getParsedResult(r,e,i)))):Fl(this.getParsedResult(this.translations[this.currentLang],e,i))}getStreamOnTranslationChange(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Xt(Jt(()=>this.get(e,i)),this.onTranslationChange.pipe(ze(r=>{let o=this.getParsedResult(r.translations,e,i);return Fl(o)})))}stream(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" required');return Xt(Jt(()=>this.get(e,i)),this.onLangChange.pipe(ze(r=>{let o=this.getParsedResult(r.translations,e,i);return Fl(o)})))}instant(e,i){if(!Ir(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,i);return gn(r)?Array.isArray(e)?e.reduce((o,s)=>(o[s]=s,o),{}):e:r}set(e,i,r=this.currentLang){tB(this.translations[r],e,Ey(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(i){return new(i||t)(g(If),g(Ws),g(Ys),g(qs),g(Nl),g(by),g(_y),g(Cy),g(xy))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),En=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,i){this.translate=e,this._ref=i}updateValue(e,i,r){let o=s=>{this.value=s!==void 0?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);gn(s)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Df(e,this.lastKey)&&Df(i,this.lastParams))return this.value;let r;if(Ir(i[0])&&i.length)if(Ey(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else Ll(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)(h(Li,16),h(Be,16))};static \u0275pipe=ks({name:"translate",type:t,pure:!1,standalone:!0});static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),ei=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Ws,useClass:WI},e.compiler||{provide:Ys,useClass:KI},e.parser||{provide:qs,useClass:YI},e.missingTranslationHandler||{provide:Nl,useClass:qI},If,{provide:_y,useValue:e.isolate},{provide:by,useValue:e.useDefaultLang},{provide:Cy,useValue:e.extend},{provide:xy,useValue:e.defaultLanguage},Li]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Ws,useClass:WI},e.compiler||{provide:Ys,useClass:KI},e.parser||{provide:qs,useClass:YI},e.missingTranslationHandler||{provide:Nl,useClass:qI},{provide:_y,useValue:e.isolate},{provide:by,useValue:e.useDefaultLang},{provide:Cy,useValue:e.extend},{provide:xy,useValue:e.defaultLanguage},Li]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=L({type:t});static \u0275inj=N({})}return t})()});var Ks,Mf=f(()=>{"use strict";M();Ks=new C("web-component-auth")});var Sf,Dy=f(()=>{"use strict";M();Ht();Mf();M();Sf=(()=>{class t{#e;#t;#n;#r;#i;get uiLanguage(){return this.#i}set uiLanguage(e){e!==this.#i&&(this.#i=e,this.#i=e,this.#c())}constructor(e){this.#e="lang",this.#t=y(Li),this.#n=y(Ks),this.setLanguageFromBrowser=!1,this.defaultLanguage="en",this.#r=e}ngOnInit(){this.#s(),this.#l(this.#r),this.#o()}ngOnChanges(){this.#s(),this.#o()}ensureTypeBool(e){return e===!0||e==="true"}#l(e){for(let i in e)e[i]&&this.#t.setTranslation(i,e[i],!0)}#o(){this.#t.setDefaultLang(this.defaultLanguage),this.setLanguageFromBrowser&&this.#d(),this.uiLanguage||(this.uiLanguage=this.defaultLanguage),this.#t.use(this.uiLanguage)}#s(){this.xApiKey&&(this.#n.xApiKey=this.xApiKey),this.skipAuthUrls&&(this.#n.skipAuthUrls=typeof this.skipAuthUrls=="string"?JSON.parse(this.skipAuthUrls):this.skipAuthUrls)}#c(){this.#t.use(this.uiLanguage)}#d(){let e=this.#a();!this.uiLanguage&&e!==this.defaultLanguage&&(this.uiLanguage=e);let i=a=>{for(let l of a)if(l.type==="attributes"&&l.attributeName===this.#e){let c=this.#a();this.uiLanguage=c}},r=new MutationObserver(i),o=document.querySelector("html"),s={attributes:!0,attributeFilter:[this.#e]};r.observe(o,s)}#a(){return document.querySelector("html").getAttribute(this.#e).split("-")[0]}static{this.\u0275fac=function(i){js()}}static{this.\u0275dir=j({type:t,inputs:{setLanguageFromBrowser:"setLanguageFromBrowser",defaultLanguage:"defaultLanguage",skipAuthUrls:"skipAuthUrls",uiLanguage:"uiLanguage",xApiKey:"xApiKey"},features:[He]})}}return t})()});function rB(){let t=ki()?ki().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function Sr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function iM(t){return t!=null&&typeof t.length=="number"}function aB(t){return n=>{if(Sr(n.value)||Sr(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function lB(t){return n=>{if(Sr(n.value)||Sr(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function cB(t){return Sr(t.value)?{required:!0}:null}function dB(t){return t.value===!0?null:{required:!0}}function uB(t){return Sr(t.value)||sB.test(t.value)?null:{email:!0}}function fB(t){return n=>Sr(n.value)||!iM(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}function hB(t){return n=>iM(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function pB(t){if(!t)return rM;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Sr(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function rM(t){return null}function oM(t){return t!=null}function sM(t){return To(t)?Le(t):t}function aM(t){let n={};return t.forEach(e=>{n=e!=null?x(x({},n),e):n}),Object.keys(n).length===0?null:n}function lM(t,n){return n.map(e=>e(t))}function mB(t){return!t.validate}function cM(t){return t.map(n=>mB(n)?n:e=>n.validate(e))}function dM(t){if(!t)return null;let n=t.filter(oM);return n.length==0?null:function(e){return aM(lM(e,n))}}function Ry(t){return t!=null?dM(cM(t)):null}function uM(t){if(!t)return null;let n=t.filter(oM);return n.length==0?null:function(e){let i=lM(e,n).map(sM);return lo(i).pipe(P(aM))}}function Oy(t){return t!=null?uM(cM(t)):null}function QI(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function fM(t){return t._rawValidators}function hM(t){return t._rawAsyncValidators}function Iy(t){return t?Array.isArray(t)?t:[t]:[]}function Rf(t,n){return Array.isArray(t)?t.includes(n):t===n}function ZI(t,n){let e=Iy(n);return Iy(t).forEach(r=>{Rf(e,r)||e.push(r)}),e}function XI(t,n){return Iy(n).filter(e=>!Rf(t,e))}function pM(t){return(Uf(t)?t.validators:t)||null}function vB(t){return Array.isArray(t)?Ry(t):t||null}function mM(t,n){return(Uf(n)?n.asyncValidators:t)||null}function yB(t){return Array.isArray(t)?Oy(t):t||null}function Uf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _B(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function bB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new S(1002,"")})}function xB(t,n){return[...n.path,t]}function zl(t,n,e=zf){ky(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),wB(t,n),DB(t,n),EB(t,n),CB(t,n)}function Lf(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),jf(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Pf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function CB(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ky(t,n){let e=fM(t);n.validator!==null?t.setValidators(QI(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=hM(t);n.asyncValidator!==null?t.setAsyncValidators(QI(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Pf(n._rawValidators,r),Pf(n._rawAsyncValidators,r)}function jf(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=fM(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=hM(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Pf(n._rawValidators,i),Pf(n._rawAsyncValidators,i),e}function wB(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gM(t,n)})}function EB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gM(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function gM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function DB(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function vM(t,n){t==null,ky(t,n)}function IB(t,n){return jf(t,n)}function yM(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function MB(t){return Object.getPrototypeOf(t.constructor)===nB}function _M(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function bM(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Xs?e=o:MB(o)?i=o:r=o}),r||i||e||null}function SB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function JI(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function eM(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var nM,nB,Ty,iB,oB,Xs,Vf,Bf,sB,Tf,Of,Ro,Pi,My,gB,eZ,Js,Pl,Af,Qs,jl,Ar,kf,Bl,Ul,Zs,Sy,Ay,Ff,Nf,ea,zf,AB,Vl,Fy,$l,TB,RB,tM,Hl,xM,OB,Ny,kB,Ly,CM,$f,wM,ji=f(()=>{"use strict";M();M();we();ke();st();nM=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(h(Qn),h(F))}}static{this.\u0275dir=j({type:t})}}return t})(),nB=(()=>{class t extends nM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),Ty=new C(""),iB={provide:Ty,useExisting:gr(()=>Xs),multi:!0};oB=new C(""),Xs=(()=>{class t extends nM{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!rB())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(h(Qn),h(F),h(oB,8))}}static{this.\u0275dir=j({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&K("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[bt([iB]),Ce]})}}return t})();Vf=new C(""),Bf=new C(""),sB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tf=class{static min(n){return aB(n)}static max(n){return lB(n)}static required(n){return cB(n)}static requiredTrue(n){return dB(n)}static email(n){return uB(n)}static minLength(n){return fB(n)}static maxLength(n){return hB(n)}static pattern(n){return pB(n)}static nullValidator(n){return rM(n)}static compose(n){return dM(n)}static composeAsync(n){return uM(n)}};Of=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Ry(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Oy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ro=class extends Of{get formDirective(){return null}get path(){return null}},Pi=class extends Of{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},My=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},gB={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},eZ=ne(x({},gB),{"[class.ng-submitted]":"isSubmitted"}),Js=(()=>{class t extends My{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(h(Pi,2))}}static{this.\u0275dir=j({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ce]})}}return t})(),Pl="VALID",Af="INVALID",Qs="PENDING",jl="DISABLED",Ar=class{},kf=class extends Ar{constructor(n,e){super(),this.value=n,this.source=e}},Bl=class extends Ar{constructor(n,e){super(),this.pristine=n,this.source=e}},Ul=class extends Ar{constructor(n,e){super(),this.touched=n,this.source=e}},Zs=class extends Ar{constructor(n,e){super(),this.status=n,this.source=e}},Sy=class extends Ar{constructor(n){super(),this.source=n}},Ay=class extends Ar{constructor(n){super(),this.source=n}};Ff=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ri(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=Ri(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=Ri(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new R,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return wn(this.statusReactive)}set status(n){wn(()=>this.statusReactive.set(n))}get valid(){return this.status===Pl}get invalid(){return this.status===Af}get pending(){return this.status==Qs}get disabled(){return this.status===jl}get enabled(){return this.status!==jl}get pristine(){return wn(this.pristineReactive)}set pristine(n){wn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return wn(this.touchedReactive)}set touched(n){wn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(ZI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(ZI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(XI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(XI(n,this._rawAsyncValidators))}hasValidator(n){return Rf(this._rawValidators,n)}hasAsyncValidator(n){return Rf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(ne(x({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Ul(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Ul(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(ne(x({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Bl(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Bl(!0,i))}markAsPending(n={}){this.status=Qs;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Zs(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(ne(x({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=jl,this.errors=null,this._forEachChild(r=>{r.disable(ne(x({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new kf(this.value,i)),this._events.next(new Zs(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ne(x({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Pl,this._forEachChild(i=>{i.enable(ne(x({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ne(x({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pl||this.status===Qs)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new kf(this.value,e)),this._events.next(new Zs(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(ne(x({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jl:Pl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Qs,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=sM(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Zs(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?jl:this.errors?Af:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qs)?Qs:this._anyControlsHaveStatus(Af)?Af:Pl}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Bl(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ul(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Uf(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=vB(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=yB(this._rawAsyncValidators)}},Nf=class extends Ff{constructor(n,e,i){super(pM(e),mM(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){bB(this,!0,n),Object.keys(n).forEach(i=>{_B(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}},ea=new C("CallSetDisabledState",{providedIn:"root",factory:()=>zf}),zf="always";AB={provide:Ro,useExisting:gr(()=>Fy)},Vl=Promise.resolve(),Fy=(()=>{class t extends Ro{get submitted(){return wn(this.submittedReactive)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Ri(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new V,this.form=new Nf({},Ry(e),Oy(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),zl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{let i=this._findContainer(e.path),r=new Nf({});vM(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Vl.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),_M(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&K("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bt([AB]),Ce]})}}return t})();$l=class extends Ff{constructor(n=null,e,i){super(pM(e),mM(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(eM(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){JI(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){JI(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){eM(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},TB=t=>t instanceof $l,RB={provide:Pi,useExisting:gr(()=>Hl)},tM=Promise.resolve(),Hl=(()=>{class t extends Pi{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new $l,this._registered=!1,this.name="",this.update=new V,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=bM(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),yM(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){zl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Ie(i);tM.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?xB(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(h(Ro,9),h(Vf,10),h(Bf,10),h(Ty,10),h(Be,8),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bt([RB]),Ce,He]})}}return t})(),xM=new C(""),OB={provide:Pi,useExisting:gr(()=>Ny)},Ny=(()=>{class t extends Pi{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new V,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=bM(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&Lf(i,this,!1),zl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}yM(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Lf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(Ty,10),h(xM,8),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[bt([OB]),Ce,He]})}}return t})(),kB={provide:Ro,useExisting:gr(()=>Ly)},Ly=(()=>{class t extends Ro{get submitted(){return wn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Ri(()=>this._submittedReactive()),this._submittedReactive=Si(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new V,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(jf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return zl(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Lf(e.control||null,e,!1),SB(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),_M(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Sy(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Ay(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Lf(i||null,e),TB(r)&&(zl(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);vM(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&IB(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ky(this.form,this),this._oldForm&&jf(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&K("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bt([kB]),Ce,He]})}}return t})(),CM=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),$f=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ea,useValue:e.callSetDisabledState??zf}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[CM]})}}return t})(),wM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xM,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ea,useValue:e.callSetDisabledState??zf}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[CM]})}}return t})()});function FB(){if(Gl==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gl=!0}))}finally{Gl=Gl||!1}return Gl}function ti(t){return FB()?t:!!t.capture}function Wf(){if(Oo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Oo=!1,Oo;if("scrollBehavior"in document.documentElement.style)Oo=!0;else{let t=Element.prototype.scrollTo;t?Oo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Oo=!1}}return Oo}function ta(){if(typeof document!="object"||!document)return Nn.NORMAL;if(Gf==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Gf=Nn.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Gf=t.scrollLeft===0?Nn.NEGATED:Nn.INVERTED),t.remove()}return Gf}function NB(){if(Py==null){let t=typeof document<"u"?document.head:null;Py=!!(t&&(t.createShadowRoot||t.attachShadow))}return Py}function EM(t){if(NB()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Wl(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function an(t){return t.composedPath?t.composedPath()[0]:t.target}function ql(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var jy,Fe,Gl,Nn,Gf,Oo,Py,Pt=f(()=>{"use strict";M();M();we();try{jy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jy=!1}Fe=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Xn(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||jy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(g(yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Nn=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Nn||{})});function St(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Vi=f(()=>{"use strict"});function na(t){return t!=null&&`${t}`!="false"}function Rr(t,n=0){return LB(t)?Number(t):arguments.length===2?n:0}function LB(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ia(t){return Array.isArray(t)?t:[t]}function dt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Bi(t){return t instanceof F?t.nativeElement:t}var Ui=f(()=>{"use strict";M()});var PB,qf,Vy=f(()=>{"use strict";M();PB=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qf=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[PB]})}}return t})()});function VB(t,n){if(!DM.has(t))try{ko||(ko=document.createElement("style"),n&&ko.setAttribute("nonce",n),ko.setAttribute("type","text/css"),document.head.appendChild(ko)),ko.sheet&&(ko.sheet.insertRule(`@media ${t} {body{ }}`,0),DM.add(t))}catch(e){console.error(e)}}function BB(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}function IM(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var DM,ko,jB,MM,SM=f(()=>{"use strict";M();M();Ui();ke();st();Pt();DM=new Set,jB=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BB}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&VB(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();MM=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new R}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return IM(ia(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=IM(ia(e)).map(s=>this._registerQuery(s).observable),o=so(r);return o=Xt(o.pipe(Te(1)),o.pipe(nl(1),vi(0))),o.pipe(P(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Q(s=>{let a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(wt(i),P(({matches:s})=>({query:e,matches:s})),ae(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||t)(g(jB),g(k))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function Wy(t,n,e){let i=Zf(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(kM)))}function th(t,n,e){let i=Zf(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(kM)):t.removeAttribute(n)}function Zf(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}function By(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function AM(t,n){t.id||(t.id=`${FM}-${n}-${zy++}`)}function t2(t){try{return t.frameElement}catch{return null}}function n2(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function i2(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function r2(t){return s2(t)&&t.type=="hidden"}function o2(t){return a2(t)&&t.hasAttribute("href")}function s2(t){return t.nodeName.toLowerCase()=="input"}function a2(t){return t.nodeName.toLowerCase()=="a"}function LM(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function TM(t){if(!LM(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function l2(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function c2(t){return r2(t)?!1:i2(t)||o2(t)||t.hasAttribute("contenteditable")||LM(t)}function d2(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}function Kl(t){return t.buttons===0||t.detail===0}function Ql(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}function m2(){return null}var kM,FM,Yf,zy,NM,e2,$y,Xf,Jf,eh,Yl,Hy,nh,u2,f2,PM,ra,h2,p2,g2,v2,jM,Qf,y2,Kf,Ln,Fo,RM,OM,Uy,qy,ih,ln=f(()=>{"use strict";we();M();M();Pt();Pt();Vi();ke();st();Vy();Ui();SM();kM=" ";FM="cdk-describedby-message",Yf="cdk-describedby-host",zy=0,NM=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${zy++}`,this._document=e,this._id=y(yl)+"-"+zy++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=By(i,r);typeof i!="string"?(AM(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=By(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let s=this._messageRegistry.get(o);s&&s.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Yf}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Yf);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let r=this._document.createElement("div");AM(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(By(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){let i=Zf(e,"aria-describedby").filter(r=>r.indexOf(FM)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Wy(e,"aria-describedby",r.messageElement.id),e.setAttribute(Yf,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,th(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Yf)}_isElementDescribedByMessage(e,i){let r=Zf(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&r.indexOf(s)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();e2=200,$y=class{constructor(n,e){this._letterKeyStream=new R,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new R,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:e2;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Pe(e=>this._pressedLetters.push(e)),vi(n),ue(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let r=(this._selectedItemIndex+i)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}},Xf=class{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=Si(null),this._wrap=!1,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this.tabOut=new R,this.change=new R,n instanceof fr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Xu(n)&&(this._effectRef=zv(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new $y(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}else return;default:(r||St(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem.set(r??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return Xu(this._items)?this._items():this._items instanceof fr?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},Jf=class extends Xf{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}},eh=class extends Xf{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}},Yl=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return n2(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=t2(d2(e));if(i&&(TM(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=TM(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!l2(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return c2(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Hy=class{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1,s){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?on(n,{injector:this._injector}):setTimeout(n)}},nh=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._injector=y(De),this._document=r}create(e,i=!1){return new Hy(e,this._checker,this._ngZone,this._document,i,this._injector)}static{this.\u0275fac=function(i){return new(i||t)(g(Yl),g(k),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();u2=new C("cdk-input-modality-detector-options"),f2={ignoreKeys:[18,17,224,91,16]},PM=650,ra=ti({passive:!0,capture:!0}),h2=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ot(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=an(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<PM||(this._modality.next(Kl(s)?"keyboard":"mouse"),this._mostRecentTarget=an(s))},this._onTouchstart=s=>{if(Ql(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=an(s)},this._options=x(x({},f2),o),this.modalityDetected=this._modality.pipe(nl(1)),this.modalityChanged=this.modalityDetected.pipe(co()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ra),r.addEventListener("mousedown",this._onMousedown,ra),r.addEventListener("touchstart",this._onTouchstart,ra)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ra),document.removeEventListener("mousedown",this._onMousedown,ra),document.removeEventListener("touchstart",this._onTouchstart,ra))}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(k),g(B),g(u2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),p2=new C("liveAnnouncerElement",{providedIn:"root",factory:m2});g2=new C("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),v2=0,jM=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,s;return i.length===1&&typeof i[0]=="number"?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${v2++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],s=o.getAttribute("aria-owns");s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(i){return new(i||t)(g(p2,8),g(k),g(B),g(g2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Qf=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Qf||{}),y2=new C("cdk-focus-monitor-default-options"),Kf=ti({passive:!0,capture:!0}),Ln=(()=>{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new R,this._rootNodeFocusAndBlurListener=a=>{let l=an(a);for(let c=l;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||Qf.IMMEDIATE}monitor(e,i=!1){let r=Bi(e);if(!this._platform.isBrowser||r.nodeType!==1)return O();let o=EM(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new R,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Bi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Bi(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Qf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Qf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?PM:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=an(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Kf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Kf)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ae(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Kf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Kf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(i))return!0}return!1}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(Fe),g(h2),g(B,8),g(y2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fo=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Fo||{}),RM="cdk-high-contrast-black-on-white",OM="cdk-high-contrast-white-on-black",Uy="cdk-high-contrast-active",qy=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=y(MM).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fo.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fo.BLACK_ON_WHITE}return Fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Uy,RM,OM),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Fo.BLACK_ON_WHITE?e.add(Uy,RM):i===Fo.WHITE_ON_BLACK&&e.add(Uy,OM)}}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ih=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(g(qy))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[qf]})}}return t})()});function b2(){return y(B)}function C2(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?x2.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var _2,x2,xt,ni,cn=f(()=>{"use strict";M();M();we();_2=new C("cdk-dir-doc",{providedIn:"root",factory:b2});x2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;xt=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new V,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=C2(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(g(_2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ni=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});function I2(t,n){if(t&1&&oe(0,"mat-pseudo-checkbox",1),t&2){let e=$();A("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function M2(t,n){if(t&1&&oe(0,"mat-pseudo-checkbox",3),t&2){let e=$();A("disabled",e.disabled)}}function S2(t,n){if(t&1&&(D(0,"span",4),le(1),T()),t&2){let e=$();w(),it("(",e.group.label,")")}}function A2(){return!0}function O2(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}function KM(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;s<t+1;s++)i[s].group&&i[s].group===r[o]&&o++;return o}return 0}function QM(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}var w2,E2,D2,T2,We,oh,qM,Dn,Qy,VM,Zy,BM,R2,UM,zM,$M,Xy,YM,sh,Zl,k2,F2,e_,t_,N2,Jy,fa,n_,HM,GM,Yy,Ky,WM,rh,ZM,In=f(()=>{"use strict";M();M();ln();ln();cn();we();Pt();Pt();Ui();ke();Vi();w2=["text"],E2=[[["mat-icon"]],"*"],D2=["mat-icon","*"];T2=new C("mat-sanity-checks",{providedIn:"root",factory:A2}),We=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ql()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(g(qy),g(T2,8),g(B))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ni,ni]})}}return t})(),oh=class{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}},qM=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Dn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dn||{}),Qy=class{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=Dn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},VM=ti({passive:!0,capture:!0}),Zy=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=an(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){let o=this._events.get(e);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,VM)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,VM)))}},BM={enterDuration:225,exitDuration:150},R2=800,UM=ti({passive:!0,capture:!0}),zM=["mousedown","touchstart"],$M=["mouseup","mouseleave","touchend","touchcancel"],Xy=class t{static{this._eventManager=new Zy}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bi(i))}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=x(x({},BM),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let s=i.radius||O2(n,e,r),a=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${l-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),m=u.transitionProperty,p=u.transitionDuration,v=m==="none"||p==="0s"||p==="0s, 0s"||r.width===0&&r.height===0,_=new Qy(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",_.state=Dn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=_);let E=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>{E&&(E.fallbackTimer=null),clearTimeout(H),this._finishRippleTransition(_)},U=()=>this._destroyRipple(_),H=setTimeout(U,c+100);d.addEventListener("transitionend",I),d.addEventListener("transitioncancel",U),E={onTransitionEnd:I,onTransitionCancel:U,fallbackTimer:H}}),this._activeRipples.set(_,E),(v||!c)&&this._finishRippleTransition(_),_}fadeOutRipple(n){if(n.state===Dn.FADING_OUT||n.state===Dn.HIDDEN)return;let e=n.element,i=x(x({},BM),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Bi(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,zM.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$M.forEach(e=>{this._triggerElement.addEventListener(e,this,UM)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dn.FADING_IN?this._startFadeOutTransition(n):n.state===Dn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dn.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dn.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Kl(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+R2;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!Ql(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===Dn.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dn.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(zM.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&($M.forEach(e=>n.removeEventListener(e,this,UM)),this._pointerUpEventsRegistered=!1))}};YM=new C("mat-ripple-global-options"),sh=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Xy(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:x(x(x({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,x(x({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,x(x({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(Fe),h(YM,8),h(at,8))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Zl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,We]})}}return t})(),k2=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&fe("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Se],decls:0,vars:0,template:function(i,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),F2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We]})}}return t})(),e_=new C("MAT_OPTION_PARENT_COMPONENT"),t_=new C("MatOptgroup"),N2=0,Jy=class{constructor(n,e=!1){this.source=n,this.isUserInput=e}},fa=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${N2++}`,this.onSelectionChange=new V,this._stateChanges=new R}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!St(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Jy(this,e))}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Be),h(e_,8),h(t_,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&Ve(w2,7),i&2){let o;he(o=pe())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&K("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),i&2&&(_r("id",r.id),_e("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),fe("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ie]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[lt,Se],ngContentSelectors:D2,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(Lt(E2),ee(0,I2,1,2,"mat-pseudo-checkbox",1),je(1),D(2,"span",2,0),je(4,1),T(),ee(5,M2,1,1,"mat-pseudo-checkbox",3)(6,S2,2,1,"span",4),oe(7,"div",5)),i&2&&(nt(r.multiple?0:-1),w(5),nt(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),w(),nt(r.group&&r.group._inert?6:-1),w(),A("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[k2,sh],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();n_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Zl,We,F2]})}}return t})(),HM={capture:!0},GM=["focus","mousedown","mouseenter","touchstart"],Yy="mat-ripple-loader-uninitialized",Ky="mat-ripple-loader-class-name",WM="mat-ripple-loader-centered",rh="mat-ripple-loader-disabled",ZM=(()=>{class t{constructor(){this._document=y(B,{optional:!0}),this._animationMode=y(at,{optional:!0}),this._globalRippleOptions=y(YM,{optional:!0}),this._platform=y(Fe),this._ngZone=y(k),this._hosts=new Map,this._onInteraction=e=>{let i=an(e);if(i instanceof HTMLElement){let r=i.closest(`[${Yy}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(let e of GM)this._document?.addEventListener(e,this._onInteraction,HM)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of GM)this._document?.removeEventListener(i,this._onInteraction,HM)}configureRipple(e,i){e.setAttribute(Yy,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ky))&&e.setAttribute(Ky,i.className||""),i.centered&&e.setAttribute(WM,""),i.disabled&&e.setAttribute(rh,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(rh,""):e.removeAttribute(rh)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Ky)),e.append(r);let o=new sh(new F(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(WM),o.disabled=e.hasAttribute(rh),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(Yy),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var L2,P2,j2,V2,B2,U2,z2,$2,XM,ah,Or,ha,ii=f(()=>{"use strict";Pt();M();M();ln();In();L2=["mat-button",""],P2=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],j2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],V2=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",B2=["mat-icon-button",""],U2=["*"],z2=new C("MAT_BUTTON_CONFIG"),$2=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],XM=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=y(Ln),this._rippleLoader=y(ZM),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=y(z2,{optional:!0}),a=e.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:d}of $2)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){js()}}static{this.\u0275dir=j({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ie],disabled:[2,"disabled","disabled",Ie],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ie],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ie]},features:[lt]})}}return t})(),ah=(()=>{class t extends XM{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Fe),h(k),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(_e("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ai(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ce,Se],attrs:L2,ngContentSelectors:j2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Lt(P2),oe(0,"span",0),je(1),D(2,"span",1),je(3,1),T(),je(4,2),oe(5,"span",2)(6,"span",3)),i&2&&fe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),Or=(()=>{class t extends XM{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Fe),h(k),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(_e("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ai(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ce,Se],attrs:B2,ngContentSelectors:U2,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Lt(),oe(0,"span",0),je(1),oe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',V2],encapsulation:2,changeDetection:0})}}return t})(),ha=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,Zl,We]})}}return t})()});function G2(){if(lh===void 0&&(lh=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(lh=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return lh}function Jl(t){return G2()?.createHTML(t)||t}function JM(t){return Error(`Unable to find icon with the name "${t}"`)}function W2(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function eS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function tS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}function ch(t){return t.cloneNode(!0)}function nS(t,n){return t+":"+n}function q2(t){return!!(t.url&&t.options)}function Q2(){let t=y(B),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var H2,lh,zi,r_,Y2,K2,iS,Z2,X2,kr,dh,Fr=f(()=>{"use strict";M();M();In();we();ke();st();Al();Gs();H2=["*"];zi=class{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},r_=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new zi(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let s=this._sanitizer.sanitize(Mt.HTML,r);if(!s)throw tS(r);let a=Jl(s);return this._addSvgIconConfig(e,i,new zi("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new zi(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(Mt.HTML,i);if(!o)throw tS(i);let s=Jl(o);return this._addSvgIconSetConfig(e,new zi("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Mt.RESOURCE_URL,e);if(!i)throw eS(e);let r=this._cachedIconsByUrl.get(i);return r?O(ch(r)):this._loadSvgIconFromConfig(new zi(e,null)).pipe(Pe(o=>this._cachedIconsByUrl.set(i,o)),P(o=>ch(o)))}getNamedSvgIcon(e,i=""){let r=nS(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):nr(JM(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?O(ch(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(P(i=>ch(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return O(r);let o=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(en(a=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Mt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),O(null)})));return lo(o).pipe(P(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw JM(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Pe(i=>e.svgText=i),P(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?O(null):this._fetchIcon(e).pipe(Pe(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let a=this._svgElementFromString(Jl("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(Jl("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:s,value:a}=r[o];s!=="id"&&i.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){let{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw W2();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let s=this._sanitizer.sanitize(Mt.RESOURCE_URL,i);if(!s)throw eS(i);let a=this._inProgressUrlFetches.get(s);if(a)return a;let l=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(P(c=>Jl(c)),Wt(()=>this._inProgressUrlFetches.delete(s)),tl());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(nS(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](i,e);if(o)return q2(o)?new zi(o.url,null,o.options):new zi(o,null)}}static{this.\u0275fac=function(i){return new(i||t)(g(Dr,8),g(kl),g(B,8),g(Yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Y2=new C("MAT_ICON_DEFAULT_OPTIONS"),K2=new C("mat-icon-location",{providedIn:"root",factory:Q2});iS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Z2=iS.map(t=>`[${t}]`).join(", "),X2=/^url\(['"]?#(.*?)['"]?\)$/,kr=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,s,a){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ge.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(Z2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)iS.forEach(s=>{let a=i[o],l=a.getAttribute(s),c=l?l.match(X2):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Te(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(r_),yr("aria-hidden"),h(K2),h(Yt),h(Y2,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(_e("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Ai(r.color?"mat-"+r.color:""),fe("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ie],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[lt,Se],ngContentSelectors:H2,decls:1,vars:0,template:function(i,r){i&1&&(Lt(),je(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return t})(),dh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,We]})}}return t})()});var rS,oS=f(()=>{"use strict";Al();M();M();rS=(()=>{class t{#e=y(Dr);play(e,i){return this.#e.get(`https://services.tilde.com/service/tts?system=${i.voice}&text=${e}`,{responseType:"blob"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function eU(t,n){if(t&1&&(Do(),D(0,"svg",11),oe(1,"circle",12),T()),t&2){let e=$();_e("viewBox",e._viewBox()),w(),Mo("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),_e("r",e._circleRadius())}}function nU(){return{diameter:sS}}var J2,tU,sS,iU,fh,aS,hh=f(()=>{"use strict";M();M();we();In();J2=["determinateSpinner"];tU=new C("mat-progress-spinner-default-options",{providedIn:"root",factory:nU});sS=100,iU=10,fh=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,i,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=sS,this._noopAnimations=i==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-iU)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(at,8),h(tU))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&Ve(J2,5),i&2){let o;he(o=pe())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(_e("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Ai("mat-"+r.color),Mo("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),fe("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Ti],diameter:[2,"diameter","diameter",Ti],strokeWidth:[2,"strokeWidth","strokeWidth",Ti]},exportAs:["matProgressSpinner"],standalone:!0,features:[lt,Se],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,r){if(i&1&&(ee(0,eU,2,8,"ng-template",null,0,Ao),D(2,"div",2,1),Do(),D(4,"svg",3),oe(5,"circle",4),T()(),rE(),D(6,"div",5)(7,"div",6)(8,"div",7),wl(9,8),T(),D(10,"div",9),wl(11,8),T(),D(12,"div",10),wl(13,8),T()()()),i&2){let o=Cn(1);w(4),_e("viewBox",r._viewBox()),w(),Mo("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),_e("r",r._circleRadius()),w(4),A("ngTemplateOutlet",o),w(2),A("ngTemplateOutlet",o),w(2),A("ngTemplateOutlet",o)}},dependencies:[gf],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}}return t})(),aS=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,We]})}}return t})()});var ph,lS=f(()=>{"use strict";ke();ph=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new R,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}}});var oU,pa,o_,sU,ma,Nr,s_,$i=f(()=>{"use strict";Ui();M();ke();st();Pt();Pt();we();cn();cn();oU=20,pa=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new R,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=oU){return this._platform.isBrowser?new Q(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(Ld(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):O()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ue(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Bi(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return gi(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(Fe),g(B,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),o_=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new R,this._elementScrolled=new Q(s=>this.ngZone.runOutsideAngular(()=>gi(this.elementRef.nativeElement,"scroll").pipe(ae(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&ta()!=Nn.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),ta()==Nn.INVERTED?e.left=e.right:ta()==Nn.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Wf()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?r:i:e=="end"&&(e=s?i:r),s&&ta()==Nn.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&ta()==Nn.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(pa),h(k),h(xt,8))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return t})(),sU=20,ma=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new R,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=sU){return e>0?this._change.pipe(Ld(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(k),g(B,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Nr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),s_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ni,Nr,ni,Nr]})}}return t})()});var ec,Lr,Hi,l_,ga,tc,nc,Lo,va=f(()=>{"use strict";M();M();we();ec=class{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Lr=class extends ec{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Hi=class extends ec{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},l_=class extends ec{constructor(n){super(),this.element=n instanceof F?n.nativeElement:n}},ga=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Lr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Hi)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof l_)return this._attachedPortal=n,this.attachDomPortal(n)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},tc=class extends ga{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){let i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||De.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},nc=(()=>{class t extends ga{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new V,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(h(Kt),h(_t),h(B))}}static{this.\u0275dir=j({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Ce]})}}return t})(),Lo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});function u_(t,n){return n.some(e=>{let i=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,s=t.left>e.right;return i||r||o||s})}function dS(t,n){return n.some(e=>{let i=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,s=t.right>e.right;return i||r||o||s})}function uS(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}function Po(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function hS(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(dU);return!e||e==="px"?parseFloat(n):null}return t||null}function pS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function uU(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}function mU(t){return()=>t.scrollStrategies.reposition()}var cS,c_,d_,mh,f_,aU,Pr,h_,gS,lU,cU,ya,Gi,fS,dU,p_,mS,m_,fU,hU,Qe,pU,vS,ic,g_,gU,ri,oi=f(()=>{"use strict";$i();$i();$i();we();we();M();M();Ui();Pt();Pt();st();cn();cn();va();ke();Vi();cS=Wf(),c_=class{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=dt(-this._previousScrollPosition.left),n.style.top=dt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),cS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),cS&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}},d_=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ue(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},mh=class{enable(){}disable(){}attach(){}};f_=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();u_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},aU=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mh,this.close=s=>new d_(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new c_(this._viewportRuler,this._document),this.reposition=s=>new f_(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(i){return new(i||t)(g(pa),g(ma),g(k),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pr=class{constructor(n){if(this.scrollStrategy=new mh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}},h_=class{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}},gS=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lU=(()=>{class t extends gS{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(k,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cU=(()=>{class t extends gS{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=an(o)},this._clickListener=o=>{let s=an(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){let d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(uS(d.overlayElement,s)||uS(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe),g(k,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();ya=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||ql()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let i=this._document.createElement("div");i.classList.add(e),ql()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Gi=class{constructor(n,e,i,r,o,s,a,l,c,d=!1,u){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=u,this._backdropElement=null,this._backdropClick=new R,this._attachments=new R,this._detachments=new R,this._locationChanges=ge.EMPTY,this._backdropClickHandler=m=>this._backdropClick.next(m),this._backdropTransitionendHandler=m=>{this._disposeBackdrop(m.target)},this._keydownEvents=new R,this._outsidePointerEvents=new R,this._renders=new R,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=wn(()=>Cl(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=on(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=x(x({},this._config),n),this._updateElementSize()}setDirection(n){this._config=ne(x({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=dt(this._config.width),n.height=dt(this._config.height),n.minWidth=dt(this._config.minWidth),n.minHeight=dt(this._config.minHeight),n.maxWidth=dt(this._config.maxWidth),n.maxHeight=dt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let n=this._backdropElement;if(n){if(this._animationsDisabled){this._disposeBackdrop(n);return}n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){let r=ia(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(ae(ft(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},fS="cdk-overlay-connected-position-bounding-box",dU=/([A-Za-z%]+)$/,p_=class{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new R,this._resizeSubscription=ge.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(fS),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(o.length){let a=null,l=-1;for(let c of o){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r=i.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=pS(e),{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let d=0-s,u=s+o.width-i.width,m=0-a,p=a+o.height-i.height,v=this._subtractOverflows(o.width,d,u),_=this._subtractOverflows(o.height,m,p),E=v*_;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:_===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,s=hS(this._overlayRef.getConfig().minHeight),a=hS(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||s!=null&&s<=r,c=n.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=pS(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,u=0;return r.width<=o.width?d=c||-s:d=n.x<this._viewportMargin?o.left-i.left-n.x:0,r.height<=o.height?u=l||-a:u=n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:d,y:u},{x:n.x+d,y:n.y+u}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!uU(this._lastScrollVisibility,i)){let r=new h_(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=n.overlayY;n.overlayX==="center"?i="center":this._isRtl()?i=n.overlayX==="start"?"right":"left":i=n.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){let i=this._viewportRect,r=this._isRtl(),o,s,a;if(e.overlayY==="top")s=n.y,o=i.height-s+this._viewportMargin;else if(e.overlayY==="bottom")a=i.height-n.y+this._viewportMargin*2,o=i.height-a+this._viewportMargin;else{let p=Math.min(i.bottom-n.y+i.top,n.y),v=this._lastBoundingBoxSize.height;o=p*2,s=n.y-p,o>v&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,m;if(c)m=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)u=n.x,d=i.right-n.x;else{let p=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=p*2,u=n.x-p,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-v/2)}return{top:s,left:u,bottom:a,right:m,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=dt(i.height),r.top=dt(i.top),r.bottom=dt(i.bottom),r.width=dt(i.width),r.left=dt(i.left),r.right=dt(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=dt(o)),s&&(r.maxWidth=dt(s))}this._lastBoundingBoxSize=i,Po(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();Po(i,this._getExactOverlayY(e,n,d)),Po(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=dt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=dt(s.maxWidth):o&&(i.maxWidth="")),Po(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=dt(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=n.overlayX==="end"?"left":"right":s=n.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=dt(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dS(n,i),isOriginOutsideView:u_(n,i),isOverlayClipped:dS(e,i),isOverlayOutsideView:u_(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&ia(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof F)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};mS="cdk-global-overlay-wrapper",m_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(mS),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,m=this._overlayRef.getConfig().direction==="rtl",p="",v="",_="";l?_="flex-start":d==="center"?(_="center",m?v=u:p=u):m?d==="left"||d==="end"?(_="flex-end",p=u):(d==="right"||d==="start")&&(_="flex-start",v=u):d==="left"||d==="start"?(_="flex-start",p=u):(d==="right"||d==="end")&&(_="flex-end",v=u),n.position=this._cssPosition,n.marginLeft=l?"0":p,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=_,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(mS),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},fU=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new m_}flexibleConnectedTo(e){return new p_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(g(ma),g(B),g(Fe),g(ya))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),hU=0,Qe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,d,u,m,p){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=m,this._animationsModuleType=p}create(e){let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Pr(e);return s.direction=s.direction||this._directionality.value,new Gi(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Dt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${hU++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(sn)),new tc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(aU),g(ya),g(Kt),g(fU),g(lU),g(De),g(k),g(B),g(xt),g(Zn),g(cU),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],vS=new C("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}}),ic=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(h(F))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return t})(),g_=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=ge.EMPTY,this._attachSubscription=ge.EMPTY,this._detachSubscription=ge.EMPTY,this._positionSubscription=ge.EMPTY,this._disposeOnNavigation=!1,this._ngZone=y(k),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new V,this.positionChange=new V,this.attach=new V,this.detach=new V,this.overlayKeydown=new V,this.overlayOutsideClick=new V,this._templatePortal=new Hi(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=pU);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!St(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=an(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Pr({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof ic?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof ic?this.origin.elementRef.nativeElement:this.origin instanceof F?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Dm(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(Nt),h(_t),h(vS),h(xt,8))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ie],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ie],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ie],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ie],push:[2,"cdkConnectedOverlayPush","push",Ie],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ie]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[lt,He]})}}return t})();gU={provide:vS,deps:[Qe],useFactory:mU},ri=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Qe,gU],imports:[ni,Lo,s_,s_]})}}return t})()});function Vr(t,n){return{type:ce.Trigger,name:t,definitions:n,options:{}}}function qi(t,n=null){return{type:ce.Animate,styles:n,timings:t}}function yS(t,n=null){return{type:ce.Sequence,steps:t,options:n}}function jt(t){return{type:ce.Style,styles:t,offset:null}}function jo(t,n,e){return{type:ce.State,name:t,styles:n,options:e}}function ai(t,n,e=null){return{type:ce.Transition,expr:t,animation:n,options:e}}function _S(t=null){return{type:ce.AnimateChild,options:t}}function bS(t,n,e=null){return{type:ce.Query,selector:t,animation:n,options:e}}var ce,si,jr,rc,vh,oc=f(()=>{"use strict";ce=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ce||{}),si="*";jr=class{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},rc=class{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},vh="!"});function yU(t){return()=>t.scrollStrategies.reposition({scrollThrottle:wS})}function bU(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var vU,wS,ES,_U,xU,xS,CS,CU,wU,EU,DU,li,IU,_a,Yi=f(()=>{"use strict";st();Ui();Vi();M();M();we();Pt();Pt();ln();ln();cn();oi();oi();va();ke();$i();In();vU=["tooltip"],wS=20,ES=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition({scrollThrottle:wS})}});_U={provide:ES,deps:[Qe],useFactory:yU};xU=new C("mat-tooltip-default-options",{providedIn:"root",factory:bU}),xS="tooltip-panel",CS=ti({passive:!0}),CU=8,wU=8,EU=24,DU=200,li=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=na(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=na(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Rr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Rr(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,s,a,l,c,d,u,m,p){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=m,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=IU,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new R,this._injector=y(De),this._scrollStrategy=d,this._document=p,m&&(this._showDelay=m.showDelay,this._hideDelay=m.hideDelay,m.position&&(this.position=m.position),m.positionAtOrigin&&(this.positionAtOrigin=m.positionAtOrigin),m.touchGestures&&(this.touchGestures=m.touchGestures),m.tooltipClass&&(this.tooltipClass=m.tooltipClass)),u.change.pipe(ae(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=CU}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ae(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,CS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Lr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(ae(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof F)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(ae(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${xS}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ae(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ae(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ae(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!St(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(x(x({},r.main),o.main)),this._addOffset(x(x({},r.fallback),o.fallback))])}_addOffset(e){let i=wU,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),on(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,s;if(i==="center"?this._dir&&this._dir.value==="rtl"?s=r==="end"?"left":"right":s=r==="start"?"left":"right":s=i==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let a=this._overlayRef;if(a){let l=`${this._cssClassPrefix}-${xS}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,CS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(F),h(pa),h(_t),h(k),h(Fe),h(NM),h(Ln),h(ES),h(xt),h(xU,8),h(B))}}static{this.\u0275dir=j({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return t})(),IU=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=r==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>EU&&e.width>=DU}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(i);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(i){return new(i||t)(h(Be),h(F),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&Ve(vU,7),i&2){let o;he(o=pe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&K("mouseleave",function(s){return r._handleMouseLeave(s)})},standalone:!0,features:[Se],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1,0),K("animationend",function(a){return ve(o),ye(r._handleAnimationEnd(a))}),D(2,"div",2),le(3),T()()}i&2&&(fe("mdc-tooltip--multiline",r._isMultiline),A("ngClass",r.tooltipClass),w(3),pt(r.message))},dependencies:[br],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return t})(),_a=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[_U],imports:[ih,ct,ri,We,We,Nr]})}}return t})()});var v_,DS,IS=f(()=>{"use strict";M();M();ke();st();v_=class{constructor(n){this._box=n,this._destroyed=new R,this._resizeSubject=new R,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Q(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ue(e=>e.some(i=>i.target===n)),uo({bufferSize:1,refCount:!0}),ae(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},DS=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=y(k),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new v_(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function PU(t,n){t&1&&oe(0,"span",21)}function jU(t,n){if(t&1&&(D(0,"label",20),je(1,1),ee(2,PU,1,0,"span",21),T()),t&2){let e=$(2);A("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),_e("for",e._control.disableAutomaticLabeling?null:e._control.id),w(2),nt(!e.hideRequiredMarker&&e._control.required?2:-1)}}function VU(t,n){if(t&1&&ee(0,jU,3,5,"label",20),t&2){let e=$();nt(e._hasFloatingLabel()?0:-1)}}function BU(t,n){t&1&&oe(0,"div",7)}function UU(t,n){}function zU(t,n){if(t&1&&ee(0,UU,0,0,"ng-template",13),t&2){$(2);let e=Cn(1);A("ngTemplateOutlet",e)}}function $U(t,n){if(t&1&&(D(0,"div",9),ee(1,zU,1,1,null,13),T()),t&2){let e=$();A("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),w(),nt(e._forceDisplayInfixLabel()?-1:1)}}function HU(t,n){t&1&&(D(0,"div",10,2),je(2,2),T())}function GU(t,n){t&1&&(D(0,"div",11,3),je(2,3),T())}function WU(t,n){}function qU(t,n){if(t&1&&ee(0,WU,0,0,"ng-template",13),t&2){$();let e=Cn(1);A("ngTemplateOutlet",e)}}function YU(t,n){t&1&&(D(0,"div",14,4),je(2,4),T())}function KU(t,n){t&1&&(D(0,"div",15,5),je(2,5),T())}function QU(t,n){t&1&&oe(0,"div",16)}function ZU(t,n){if(t&1&&(D(0,"div",18),je(1,6),T()),t&2){let e=$();A("@transitionMessages",e._subscriptAnimationState)}}function XU(t,n){if(t&1&&(D(0,"mat-hint",22),le(1),T()),t&2){let e=$(2);A("id",e._hintLabelId),w(),pt(e.hintLabel)}}function JU(t,n){if(t&1&&(D(0,"div",19),ee(1,XU,2,2,"mat-hint",22),je(2,7),oe(3,"div",23),je(4,8),T()),t&2){let e=$();A("@transitionMessages",e._subscriptAnimationState),w(),nt(e.hintLabel?1:-1)}}function rz(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var MU,SU,AU,TU,RU,OU,kU,FU,NU,LU,ba,ez,tz,MS,nz,iz,NS,SS,AS,yh,TS,RS,oz,y_,__,sz,OS,kS,az,FS,lz,_h,bh,ac=f(()=>{"use strict";M();M();cn();Ui();Pt();we();ke();st();IS();oc();Vy();In();MU=["notch"],SU=["matFormFieldNotchedOutline",""],AU=["*"],TU=["textField"],RU=["iconPrefixContainer"],OU=["textPrefixContainer"],kU=["iconSuffixContainer"],FU=["textSuffixContainer"],NU=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],LU=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];ba=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["mat-label"]],standalone:!0})}}return t})(),ez=new C("MatError"),tz=0,MS=(()=>{class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${tz++}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(_r("id",r.id),_e("align",null),fe("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return t})(),nz=new C("MatPrefix"),iz=new C("MatSuffix"),NS=new C("FloatingLabelParent"),SS=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=y(DS),this._ngZone=y(k),this._parent=y(NS),this._resizeSubscription=new ge}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return rz(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(i){return new(i||t)(h(F))}}static{this.\u0275dir=j({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return t})();AS="mdc-line-ripple--active",yh="mdc-line-ripple--deactivating",TS=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,s=o.contains(yh);r.propertyName==="opacity"&&s&&o.remove(AS,yh)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(yh),e.add(AS)}deactivate(){this._elementRef.nativeElement.classList.add(yh)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k))}}static{this.\u0275dir=j({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return t})(),RS=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k))}}static{this.\u0275cmp=re({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&Ve(MU,5),i&2){let o;he(o=pe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Se],attrs:SU,ngContentSelectors:AU,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(Lt(),oe(0,"div",1),D(1,"div",2,0),je(3),T(),oe(4,"div",3))},encapsulation:2,changeDetection:0})}}return t})(),oz={transitionMessages:Vr("transitionMessages",[jo("enter",jt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[jt({opacity:0,transform:"translateY(-5px)"}),qi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},y_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t})}}return t})(),__=new C("MatFormField"),sz=new C("MAT_FORM_FIELD_DEFAULT_OPTIONS"),OS=0,kS="fill",az="auto",FS="fixed",lz="translateY(-50%)",_h=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=na(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||az}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||kS;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||FS}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||FS}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=l,this._labelChild=OD(ba),this._hideRequiredMarker=!1,this.color="primary",this._appearance=kS,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${OS++}`,this._hintLabelId=`mat-mdc-hint-${OS++}`,this._subscriptAnimationState="",this._destroyed=new R,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=y(De),this.getLabelId=Ri(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Ri(()=>!!this._labelChild()),a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(ae(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Cl(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ae(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=s?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",m=`${a+l}px`,v=`calc(${u} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=e})});function Qr(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var id=f(()=>{"use strict"});function rd(t){return t instanceof ge||t&&"closed"in t&&q(t.remove)&&q(t.add)&&q(t.unsubscribe)}function X0(t){q(t)?t():t.unsubscribe()}var ge,kp,Zr=f(()=>{"use strict";ut();Z0();id();ge=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(q(i))try{i()}catch(o){n=o instanceof nd?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{X0(o)}catch(s){n=n??[],s instanceof nd?n=[...n,...s.errors]:n.push(s)}}if(n)throw new nd(n)}}add(n){var e;if(n&&n!==this)if(this.closed)X0(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Qr(e,n)}remove(n){let{_finalizers:e}=this;e&&Qr(e,n),n instanceof t&&n._removeParent(this)}};ge.EMPTY=(()=>{let t=new ge;return t.closed=!0,t})();kp=ge.EMPTY});var Tn,Ga=f(()=>{"use strict";Tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var is,Fp=f(()=>{"use strict";is={setTimeout(t,n,...e){let{delegate:i}=is;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=is;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function od(t){is.setTimeout(()=>{let{onUnhandledError:n}=Tn;if(n)n(t);else throw t})}var Np=f(()=>{"use strict";Ga();Fp()});function Xr(){}var sd=f(()=>{"use strict"});function ex(t){return Lp("E",void 0,t)}function tx(t){return Lp("N",t,void 0)}function Lp(t,n,e){return{kind:t,value:n,error:e}}var J0,nx=f(()=>{"use strict";J0=Lp("C",void 0,void 0)});function rs(t){if(Tn.useDeprecatedSynchronousErrorHandling){let n=!Jr;if(n&&(Jr={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Jr;if(Jr=null,e)throw i}}else t()}function ix(t){Tn.useDeprecatedSynchronousErrorHandling&&Jr&&(Jr.errorThrown=!0,Jr.error=t)}var Jr,ad=f(()=>{"use strict";Ga();Jr=null});function Pp(t,n){return kk.call(t,n)}function ld(t){Tn.useDeprecatedSynchronousErrorHandling?ix(t):od(t)}function Fk(t){throw t}function jp(t,n){let{onStoppedNotification:e}=Tn;e&&is.setTimeout(()=>e(t,n))}var eo,kk,Vp,pi,Nk,cd=f(()=>{"use strict";ut();Zr();Ga();Np();sd();nx();Fp();ad();eo=class extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,rd(n)&&n.add(this)):this.destination=Nk}static create(n,e,i){return new pi(n,e,i)}next(n){this.isStopped?jp(tx(n),this):this._next(n)}error(n){this.isStopped?jp(ex(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?jp(J0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},kk=Function.prototype.bind;Vp=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){ld(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){ld(i)}else ld(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){ld(e)}}},pi=class extends eo{constructor(n,e,i){super();let r;if(q(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Tn.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Pp(n.next,o),error:n.error&&Pp(n.error,o),complete:n.complete&&Pp(n.complete,o)}):r=n}this.destination=new Vp(r)}};Nk={closed:!0,next:Xr,error:Fk,complete:Xr}});var os,dd=f(()=>{"use strict";os=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function Vt(t){return t}var tr=f(()=>{"use strict"});function Bp(...t){return Up(t)}function Up(t){return t.length===0?Vt:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var zp=f(()=>{"use strict";tr()});function rx(t){var n;return(n=t??Tn.Promise)!==null&&n!==void 0?n:Promise}function Lk(t){return t&&q(t.next)&&q(t.error)&&q(t.complete)}function Pk(t){return t&&t instanceof eo||Lk(t)&&rd(t)}var Q,Tt=f(()=>{"use strict";cd();Zr();dd();zp();Ga();ut();ad();Q=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=Pk(e)?e:new pi(e,i,r);return rs(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=rx(i),new i((r,o)=>{let s=new pi({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[os](){return this}pipe(...e){return Up(e)(this)}toPromise(e){return e=rx(e),new e((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})()});function $p(t){return q(t?.lift)}function te(t){return n=>{if($p(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ke=f(()=>{"use strict";ut()});function J(t,n,e,i,r){return new Hp(t,n,e,i,r)}var Hp,Xe=f(()=>{"use strict";cd();Hp=class extends eo{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}}});function ss(){return te((t,n)=>{let e=null;t._refCount++;let i=J(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Gp=f(()=>{"use strict";Ke();Xe()});var to,ox=f(()=>{"use strict";Tt();Zr();Gp();Xe();Ke();to=class extends Q{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$p(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;let e=this.getSubject();n.add(this.source.subscribe(J(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return ss()(this)}}});var sx,ax=f(()=>{"use strict";td();sx=ns(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var R,ud,Wa=f(()=>{"use strict";Tt();Zr();ax();id();ad();R=(()=>{class t extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new ud(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new sx}next(e){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){rs(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?kp:(this.currentObservers=null,o.push(e),new ge(()=>{this.currentObservers=null,Qr(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Q;return e.source=this,e}}return t.create=(n,e)=>new ud(n,e),t})(),ud=class extends R{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:kp}}});var ot,lx=f(()=>{"use strict";Wa();ot=class extends R{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}});var qa,Wp=f(()=>{"use strict";qa={now(){return(qa.delegate||Date).now()},delegate:void 0}});var no,qp=f(()=>{"use strict";Wa();Wp();no=class extends R{constructor(n=1/0,e=1/0,i=qa){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let s=e.now(),a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}});var fd,cx=f(()=>{"use strict";Zr();fd=class extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}});var Ya,dx=f(()=>{"use strict";Ya={setInterval(t,n,...e){let{delegate:i}=Ya;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=Ya;return(n?.clearInterval||clearInterval)(t)},delegate:void 0}});var as,Yp=f(()=>{"use strict";cx();dx();id();as=class extends fd{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return Ya.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&Ya.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Qr(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}});function ux(t){return t in Qp?(delete Qp[t],!0):!1}var jk,Kp,Qp,fx,hx=f(()=>{"use strict";jk=1,Qp={};fx={setImmediate(t){let n=jk++;return Qp[n]=!0,Kp||(Kp=Promise.resolve()),Kp.then(()=>ux(n)&&t()),n},clearImmediate(t){ux(t)}}});var Vk,Bk,Ka,px=f(()=>{"use strict";hx();({setImmediate:Vk,clearImmediate:Bk}=fx),Ka={setImmediate(...t){let{delegate:n}=Ka;return(n?.setImmediate||Vk)(...t)},clearImmediate(t){let{delegate:n}=Ka;return(n?.clearImmediate||Bk)(t)},delegate:void 0}});var hd,mx=f(()=>{"use strict";Yp();px();hd=class extends as{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Ka.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Ka.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}});var ls,gx=f(()=>{"use strict";Wp();ls=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};ls.now=qa.now});var cs,Zp=f(()=>{"use strict";gx();cs=class extends ls{constructor(n,e=ls.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}});var pd,vx=f(()=>{"use strict";Zp();pd=class extends cs{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}});var ds,yx=f(()=>{"use strict";mx();vx();ds=new pd(hd)});var io,_x,Qa=f(()=>{"use strict";Yp();Zp();io=new cs(as),_x=io});var Bt,Za=f(()=>{"use strict";Tt();Bt=new Q(t=>t.complete())});function md(t){return t&&q(t.schedule)}var Xp=f(()=>{"use strict";ut()});function Jp(t){return t[t.length-1]}function gd(t){return q(Jp(t))?t.pop():void 0}function zn(t){return md(Jp(t))?t.pop():void 0}function bx(t,n){return typeof Jp(t)=="number"?t.pop():n}var ro=f(()=>{"use strict";ut();Xp()});function Cx(t,n,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function xx(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function oo(t){return this instanceof oo?(this.v=t,this):new oo(t)}function wx(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(p){return function(v){return Promise.resolve(v).then(p,u)}}function a(p,v){i[p]&&(r[p]=function(_){return new Promise(function(E,I){o.push([p,_,E,I])>1||l(p,_)})},v&&(r[p]=v(r[p])))}function l(p,v){try{c(i[p](v))}catch(_){m(o[0][3],_)}}function c(p){p.value instanceof oo?Promise.resolve(p.value.v).then(d,u):m(o[0][2],p)}function d(p){l("next",p)}function u(p){l("throw",p)}function m(p,v){p(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Ex(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof xx=="function"?xx(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var em=f(()=>{"use strict"});var us,vd=f(()=>{"use strict";us=t=>t&&typeof t.length=="number"&&typeof t!="function"});function yd(t){return q(t?.then)}var tm=f(()=>{"use strict";ut()});function _d(t){return q(t[os])}var nm=f(()=>{"use strict";dd();ut()});function bd(t){return Symbol.asyncIterator&&q(t?.[Symbol.asyncIterator])}var im=f(()=>{"use strict";ut()});function xd(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var rm=f(()=>{"use strict"});function Uk(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cd,om=f(()=>{"use strict";Cd=Uk()});function wd(t){return q(t?.[Cd])}var sm=f(()=>{"use strict";om();ut()});function Ed(t){return wx(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield oo(e.read());if(r)return yield oo(void 0);yield yield oo(i)}}finally{e.releaseLock()}})}function Dd(t){return q(t?.getReader)}var Id=f(()=>{"use strict";em();ut()});function Re(t){if(t instanceof Q)return t;if(t!=null){if(_d(t))return zk(t);if(us(t))return $k(t);if(yd(t))return Hk(t);if(bd(t))return Dx(t);if(wd(t))return Gk(t);if(Dd(t))return Wk(t)}throw xd(t)}function zk(t){return new Q(n=>{let e=t[os]();if(q(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $k(t){return new Q(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function Hk(t){return new Q(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,od)})}function Gk(t){return new Q(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Dx(t){return new Q(n=>{qk(t,n).catch(e=>n.error(e))})}function Wk(t){return Dx(Ed(t))}function qk(t,n){var e,i,r,o;return Cx(this,void 0,void 0,function*(){try{for(e=Ex(t);i=yield e.next(),!i.done;){let s=i.value;if(n.next(s),n.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}var Rt=f(()=>{"use strict";em();vd();tm();Tt();nm();im();rm();sm();Id();ut();Np();dd()});function Gt(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}var fs=f(()=>{"use strict"});function Md(t,n=0){return te((e,i)=>{e.subscribe(J(i,r=>Gt(i,t,()=>i.next(r),n),()=>Gt(i,t,()=>i.complete(),n),r=>Gt(i,t,()=>i.error(r),n)))})}var am=f(()=>{"use strict";fs();Ke();Xe()});function Sd(t,n=0){return te((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}var lm=f(()=>{"use strict";Ke()});function Ix(t,n){return Re(t).pipe(Sd(n),Md(n))}var Mx=f(()=>{"use strict";Rt();am();lm()});function Sx(t,n){return Re(t).pipe(Sd(n),Md(n))}var Ax=f(()=>{"use strict";Rt();am();lm()});function Tx(t,n){return new Q(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}var Rx=f(()=>{"use strict";Tt()});function Ox(t,n){return new Q(e=>{let i;return Gt(e,n,()=>{i=t[Cd](),Gt(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>q(i?.return)&&i.return()})}var kx=f(()=>{"use strict";Tt();om();ut();fs()});function Ad(t,n){if(!t)throw new Error("Iterable cannot be null");return new Q(e=>{Gt(e,n,()=>{let i=t[Symbol.asyncIterator]();Gt(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}var cm=f(()=>{"use strict";Tt();fs()});function Fx(t,n){return Ad(Ed(t),n)}var Nx=f(()=>{"use strict";cm();Id()});function Lx(t,n){if(t!=null){if(_d(t))return Ix(t,n);if(us(t))return Tx(t,n);if(yd(t))return Sx(t,n);if(bd(t))return Ad(t,n);if(wd(t))return Ox(t,n);if(Dd(t))return Fx(t,n)}throw xd(t)}var Px=f(()=>{"use strict";Mx();Ax();Rx();kx();cm();nm();tm();vd();sm();im();rm();Id();Nx()});function Le(t,n){return n?Lx(t,n):Re(t)}var hs=f(()=>{"use strict";Px();Rt()});function O(...t){let n=zn(t);return Le(t,n)}var jx=f(()=>{"use strict";ro();hs()});function nr(t,n){let e=q(t)?t:()=>t,i=r=>r.error(e());return new Q(n?r=>n.schedule(i,0,r):i)}var Vx=f(()=>{"use strict";Tt();ut()});function gn(t){return!!t&&(t instanceof Q||q(t.lift)&&q(t.subscribe))}var Bx=f(()=>{"use strict";Tt();ut()});var mi,Xa=f(()=>{"use strict";td();mi=ns(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"})});function Ux(t){return t instanceof Date&&!isNaN(t)}var zx=f(()=>{"use strict"});function P(t,n){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>{i.next(t.call(n,o,r++))}))})}var ps=f(()=>{"use strict";Ke();Xe()});function Kk(t,n){return Yk(n)?t(...n):t(n)}function ms(t){return P(n=>Kk(t,n))}var Yk,Td=f(()=>{"use strict";ps();({isArray:Yk}=Array)});function Rd(t){if(t.length===1){let n=t[0];if(Qk(n))return{args:n,keys:null};if(eF(n)){let e=Jk(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function eF(t){return t&&typeof t=="object"&&Zk(t)===Xk}var Qk,Zk,Xk,Jk,dm=f(()=>{"use strict";({isArray:Qk}=Array),{getPrototypeOf:Zk,prototype:Xk,keys:Jk}=Object});function Od(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}var um=f(()=>{"use strict"});function so(...t){let n=zn(t),e=gd(t),{args:i,keys:r}=Rd(t);if(i.length===0)return Le([],n);let o=new Q(tF(i,n,r?s=>Od(r,s):Vt));return e?o.pipe(ms(e)):o}function tF(t,n,e=Vt){return i=>{$x(n,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)$x(n,()=>{let c=Le(t[l],n),d=!1;c.subscribe(J(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function $x(t,n,e){t?Gt(e,t,n):n()}var Hx=f(()=>{"use strict";Tt();dm();hs();tr();Td();ro();um();Xe();fs()});function Gx(t,n,e,i,r,o,s,a){let l=[],c=0,d=0,u=!1,m=()=>{u&&!l.length&&!c&&n.complete()},p=_=>c<i?v(_):l.push(_),v=_=>{o&&n.next(_),c++;let E=!1;Re(e(_,d++)).subscribe(J(n,I=>{r?.(I),o?p(I):n.next(I)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&c<i;){let I=l.shift();s?Gt(n,s,()=>v(I)):v(I)}m()}catch(I){n.error(I)}}))};return t.subscribe(J(n,p,()=>{u=!0,m()})),()=>{a?.()}}var Wx=f(()=>{"use strict";Rt();fs();Xe()});function Ue(t,n,e=1/0){return q(n)?Ue((i,r)=>P((o,s)=>n(i,o,r,s))(Re(t(i,r))),e):(typeof n=="number"&&(e=n),te((i,r)=>Gx(i,r,t,e)))}var ao=f(()=>{"use strict";ps();Rt();Ke();Wx();ut()});function ir(t=1/0){return Ue(Vt,t)}var kd=f(()=>{"use strict";ao();tr()});function qx(){return ir(1)}var Yx=f(()=>{"use strict";kd()});function Xt(...t){return qx()(Le(t,zn(t)))}var Fd=f(()=>{"use strict";Yx();ro();hs()});function Jt(t){return new Q(n=>{Re(t()).subscribe(n)})}var Kx=f(()=>{"use strict";Tt();Rt()});function lo(...t){let n=gd(t),{args:e,keys:i}=Rd(t),r=new Q(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d<s;d++){let u=!1;Re(e[d]).subscribe(J(o,m=>{u||(u=!0,c--),a[d]=m},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?Od(i,a):a),o.complete())}))}});return n?r.pipe(ms(n)):r}var Qx=f(()=>{"use strict";Tt();dm();Rt();ro();Xe();Td();um()});function gi(t,n,e,i){if(q(e)&&(i=e,e=void 0),i)return gi(t,n,e).pipe(ms(i));let[r,o]=aF(t)?iF.map(s=>a=>t[s](n,a,e)):oF(t)?nF.map(Zx(t,n)):sF(t)?rF.map(Zx(t,n)):[];if(!r&&us(t))return Ue(s=>gi(s,n,e))(Re(t));if(!r)throw new TypeError("Invalid event target");return new Q(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function Zx(t,n){return e=>i=>t[e](n,i)}function oF(t){return q(t.addListener)&&q(t.removeListener)}function sF(t){return q(t.on)&&q(t.off)}function aF(t){return q(t.addEventListener)&&q(t.removeEventListener)}var nF,iF,rF,Xx=f(()=>{"use strict";Rt();Tt();ao();vd();ut();Td();nF=["addListener","removeListener"],iF=["addEventListener","removeEventListener"],rF=["on","off"]});function Nd(t=0,n,e=_x){let i=-1;return n!=null&&(md(n)?e=n:i=n),new Q(r=>{let o=Ux(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}var fm=f(()=>{"use strict";Tt();Qa();Xp();zx()});function ft(...t){let n=zn(t),e=bx(t,1/0),i=t;return i.length?i.length===1?Re(i[0]):ir(e)(Le(i,n)):Bt}var Jx=f(()=>{"use strict";kd();Rt();Za();ro();hs()});function ue(t,n){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>t.call(n,o,r++)&&i.next(o)))})}var Ja=f(()=>{"use strict";Ke();Xe()});var eC=f(()=>{"use strict"});function tC(t){return te((n,e)=>{let i=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};n.subscribe(J(e,c=>{i=!0,r=c,o||Re(t(c)).subscribe(o=J(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}var nC=f(()=>{"use strict";Ke();Rt();Xe()});function Ld(t,n=io){return tC(()=>Nd(t,n))}var iC=f(()=>{"use strict";Qa();nC();fm()});function en(t){return te((n,e)=>{let i=null,r=!1,o;i=n.subscribe(J(e,void 0,void 0,s=>{o=Re(t(s,en(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}var hm=f(()=>{"use strict";Rt();Xe();Ke()});function rC(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(J(s,d=>{let u=c++;l=a?t(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}var oC=f(()=>{"use strict";Xe()});function Rn(t,n){return q(n)?Ue(t,n,1):Ue(t,1)}var sC=f(()=>{"use strict";ao();ut()});function vi(t,n=io){return te((e,i)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=s+t,d=n.now();if(d<c){r=this.schedule(void 0,c-d),i.add(r);return}a()}e.subscribe(J(i,c=>{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}var pm=f(()=>{"use strict";Qa();Ke();Xe()});function rr(t){return te((n,e)=>{let i=!1;n.subscribe(J(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}var Pd=f(()=>{"use strict";Ke();Xe()});function Te(t){return t<=0?()=>Bt:te((n,e)=>{let i=0;n.subscribe(J(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}var jd=f(()=>{"use strict";Za();Ke();Xe()});function aC(){return te((t,n)=>{t.subscribe(J(n,Xr))})}var lC=f(()=>{"use strict";Ke();Xe();sd()});function el(t){return P(()=>t)}var mm=f(()=>{"use strict";ps()});function gm(t,n){return n?e=>Xt(n.pipe(Te(1),aC()),e.pipe(gm(t))):Ue((e,i)=>Re(t(e,i)).pipe(Te(1),el(e)))}var cC=f(()=>{"use strict";Fd();jd();lC();mm();ao();Rt()});function Vd(t,n=io){let e=Nd(t,n);return gm(()=>e)}var dC=f(()=>{"use strict";Qa();cC();fm()});function co(t,n=Vt){return t=t??lF,te((e,i)=>{let r,o=!0;e.subscribe(J(i,s=>{let a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function lF(t,n){return t===n}var uC=f(()=>{"use strict";tr();Ke();Xe()});function Bd(t=cF){return te((n,e)=>{let i=!1;n.subscribe(J(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function cF(){return new mi}var vm=f(()=>{"use strict";Xa();Ke();Xe()});function Wt(t){return te((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}var ym=f(()=>{"use strict";Ke()});function $n(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ue((r,o)=>t(r,o,i)):Vt,Te(1),e?rr(n):Bd(()=>new mi))}var fC=f(()=>{"use strict";Xa();Ja();jd();Pd();vm();tr()});function gs(t){return t<=0?()=>Bt:te((n,e)=>{let i=[];n.subscribe(J(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}var _m=f(()=>{"use strict";Za();Ke();Xe()});function bm(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ue((r,o)=>t(r,o,i)):Vt,gs(1),e?rr(n):Bd(()=>new mi))}var hC=f(()=>{"use strict";Xa();Ja();_m();vm();Pd();tr()});function xm(t,n){return te(rC(t,n,arguments.length>=2,!0))}var pC=f(()=>{"use strict";Ke();oC()});function tl(t={}){let{connector:n=()=>new R,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,d=!1,u=!1,m=()=>{a?.unsubscribe(),a=void 0},p=()=>{m(),s=l=void 0,d=u=!1},v=()=>{let _=s;p(),_?.unsubscribe()};return te((_,E)=>{c++,!u&&!d&&m();let I=l=l??n();E.add(()=>{c--,c===0&&!u&&!d&&(a=Cm(v,r))}),I.subscribe(E),!s&&c>0&&(s=new pi({next:U=>I.next(U),error:U=>{u=!0,m(),a=Cm(p,e,U),I.error(U)},complete:()=>{d=!0,m(),a=Cm(p,i),I.complete()}}),Re(_).subscribe(s))})(o)}}function Cm(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new pi({next:()=>{i.unsubscribe(),t()}});return Re(n(...e)).subscribe(i)}var wm=f(()=>{"use strict";Rt();Wa();cd();Ke()});function uo(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,tl({connector:()=>new no(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var mC=f(()=>{"use strict";qp();wm()});function nl(t){return ue((n,e)=>t<=e)}var gC=f(()=>{"use strict";Ja()});function wt(...t){let n=zn(t);return te((e,i)=>{(n?Xt(t,e,n):Xt(t,e)).subscribe(i)})}var vC=f(()=>{"use strict";Fd();ro();Ke()});function ze(t,n){return te((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe(J(i,l=>{r?.unsubscribe();let c=0,d=o++;Re(t(l,d)).subscribe(r=J(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}var yC=f(()=>{"use strict";Rt();Ke();Xe()});function ae(t){return te((n,e)=>{Re(t).subscribe(J(e,()=>e.complete(),Xr)),!e.closed&&n.subscribe(e)})}var Em=f(()=>{"use strict";Ke();Xe();Rt();sd()});function Dm(t,n=!1){return te((e,i)=>{let r=0;e.subscribe(J(i,o=>{let s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}var _C=f(()=>{"use strict";Ke();Xe()});function Pe(t,n,e){let i=q(t)||n||e?{next:t,error:n,complete:e}:t;return i?te((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe(J(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Vt}var Im=f(()=>{"use strict";ut();Ke();Xe();tr()});var ke=f(()=>{"use strict";Tt();ox();Wa();lx();qp();yx();Zr();zp();Bx();Xa();Hx();Fd();Kx();Qx();hs();Xx();Jx();jx();Vx();Za();eC();hm();pm();ym();ps();ao();Em();Im()});var st=f(()=>{"use strict";iC();hm();sC();pm();Pd();dC();uC();Ja();ym();fC();hC();ps();mm();kd();ao();Gp();pC();wm();mC();gC();vC();yC();jd();_m();Em();_C();Im()});function Mu(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}function pl(t){return{toString:t}.toString()}function dF(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function uw(t,n,e){return pl(()=>{let i=dF(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,d){let u=l.hasOwnProperty(Ud)?l[Ud]:Object.defineProperty(l,Ud,{value:[]})[Ud];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function $e(t){for(let n in t)if(t[n]===$e)return n;throw Error("Could not find renamed property on target object.")}function uF(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function zt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(zt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(`
4
+ `);return e===-1?n:n.substring(0,e)}function Bm(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}function gr(t){return t.__forward_ref__=gr,t.toString=function(){return zt(this())},t}function Et(t){return fw(t)?t():t}function fw(t){return typeof t=="function"&&t.hasOwnProperty(fF)&&t.__forward_ref__===gr}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function N(t){return{providers:t.providers||[],imports:t.imports||[]}}function Su(t){return bC(t,pw)||bC(t,mw)}function hw(t){return Su(t)!==null}function bC(t,n){return t.hasOwnProperty(n)?t[n]:null}function hF(t){let n=t&&(t[pw]||t[mw]);return n||null}function xC(t){return t&&(t.hasOwnProperty(CC)||t.hasOwnProperty(pF))?t[CC]:null}function gw(t){return t&&!!t.\u0275providers}function ho(t){return typeof t=="string"?t:t==null?"":String(t)}function _F(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ho(t)}function bF(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S(-200,t)}function Zg(t,n){throw new S(-201,!1)}function vw(){return Um}function qt(t){let n=Um;return Um=t,n}function yw(t,n,e){let i=Su(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&xe.Optional)return null;if(n!==void 0)return n;Zg(t,"Injector")}function DF(){return xs}function or(t){let n=xs;return xs=t,n}function IF(t,n=xe.Default){if(xs===void 0)throw new S(-203,!1);return xs===null?yw(t,void 0,n):xs.get(t,n&xe.Optional?null:void 0,n)}function g(t,n=xe.Default){return(vw()||IF)(Et(t),n)}function y(t,n=xe.Default){return g(t,Au(n))}function Au(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $m(t){let n=[];for(let e=0;e<t.length;e++){let i=Et(t[e]);if(Array.isArray(i)){if(i.length===0)throw new S(900,!1);let r,o=xe.Default;for(let s=0;s<i.length;s++){let a=i[s],l=MF(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}n.push(g(r,o))}else n.push(g(i))}return n}function _w(t,n){return t[zm]=n,t.prototype[zm]=n,t}function MF(t){return t[zm]}function SF(t,n,e,i){let r=t[nu];throw n[EC]&&r.unshift(n[EC]),t.message=AF(`
5
+ `+t.message,r,e,i),t[CF]=r,t[nu]=null,t}function AF(t,n,e,i=null){t=t&&t.charAt(0)===`
6
+ `&&t.charAt(1)==EF?t.slice(2):t;let r=zt(n);if(Array.isArray(n))r=n.map(zt).join(" -> ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):zt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(wF,`
7
+ `)}`}function po(t,n){let e=t.hasOwnProperty(tu);return e?t[tu]:null}function TF(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function RF(t){return t.flat(Number.POSITIVE_INFINITY)}function Xg(t,n){t.forEach(e=>Array.isArray(e)?Xg(e,n):n(e))}function bw(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function iu(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function OF(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function kF(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Ru(t,n,e){let i=gl(t,n);return i>=0?t[i|1]=e:(i=~i,kF(t,i,n,e)),i}function Mm(t,n){let e=gl(t,n);if(e>=0)return t[e|1]}function gl(t,n){return FF(t,n,1)}function FF(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}function NF(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Hm(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{let o=r,s=e[++i];LF(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Ew(t){return t===3||t===4||t===6}function LF(t){return t.charCodeAt(0)===64}function al(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?DC(t,e,r,null,n[++i]):DC(t,e,r,null,null))}}return t}function DC(t,n,e,i,r){let o=0,s=t.length;if(n===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){if(i===null){r!==null&&(t[o+1]=r);return}else if(i===t[o+1]){t[o+2]=r;return}}o++,i!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),i!==null&&t.splice(o++,0,i),r!==null&&t.splice(o++,0,r)}function PF(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&NF(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(Jg(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function Jg(t){return t.type===4&&t.value!==Dw}function jF(t,n,e){let i=t.type===4&&!e?Dw:t.value;return n===i}function VF(t,n,e){let i=4,r=t.attrs,o=r!==null?zF(r):0,s=!1;for(let a=0;a<n.length;a++){let l=n[a];if(typeof l=="number"){if(!s&&!On(i)&&!On(l))return!1;if(s&&On(l))continue;s=!1,i=l|i&1;continue}if(!s)if(i&4){if(i=2|i&1,l!==""&&!jF(t,l,e)||l===""&&n.length===1){if(On(i))return!1;s=!0}}else if(i&8){if(r===null||!PF(t,r,l,e)){if(On(i))return!1;s=!0}}else{let c=n[++a],d=BF(l,r,Jg(t),e);if(d===-1){if(On(i))return!1;s=!0;continue}if(c!==""){let u;if(d>o?u="":u=r[d+1].toLowerCase(),i&2&&c!==u){if(On(i))return!1;s=!0}}}}return On(i)||s}function On(t){return(t&1)===0}function BF(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let s=n[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=n[++r];for(;typeof a=="string";)a=n[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return $F(n,t)}function Iw(t,n,e=!1){for(let i=0;i<n.length;i++)if(VF(t,n[i],e))return!0;return!1}function UF(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if(!(e&1))return n[e+1]}return null}function zF(t){for(let n=0;n<t.length;n++){let e=t[n];if(Ew(e))return n}return t.length}function $F(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function HF(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function IC(t,n){return t?":not("+n.trim()+")":n}function GF(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(i&2){let a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!On(s)&&(n+=IC(o,r),r=""),i=s,o=o||!On(i);e++}return r!==""&&(n+=IC(o,r)),n}function WF(t){return t.map(GF).join(",")}function qF(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!On(r))break;r=o}i++}return{attrs:n,classes:e}}function re(t){return pl(()=>{let n=Tw(t),e=ne(x({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ww.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Wn.Emulated,styles:t.styles||Ut,_:null,schemas:t.schemas||null,tView:null,id:""});Rw(e);let i=t.dependencies;return e.directiveDefs=SC(i,!1),e.pipeDefs=SC(i,!0),e.id=QF(e),e})}function YF(t){return cr(t)||ev(t)}function KF(t){return t!==null}function L(t){return pl(()=>({type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function MC(t,n){if(t==null)return yi;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s,a=lr.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==lr.None?[i,a]:i,n[o]=s):e[o]=i}return e}function j(t){return pl(()=>{let n=Tw(t);return Rw(n),n})}function ks(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function cr(t){return t[mF]||null}function ev(t){return t[gF]||null}function Mw(t){return t[vF]||null}function Sw(t){let n=cr(t)||ev(t)||Mw(t);return n!==null?n.standalone:!1}function Aw(t,n){let e=t[yF]||null;if(!e&&n===!0)throw new Error(`Type ${zt(t)} does not have '\u0275mod' property.`);return e}function Tw(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||yi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:MC(t.inputs,n),outputs:MC(t.outputs),debugInfo:null}}function Rw(t){t.features?.forEach(n=>n(t))}function SC(t,n){if(!t)return null;let e=n?Mw:YF;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(KF)}function QF(t){let n=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function vl(t){return{\u0275providers:t}}function tv(...t){return{\u0275providers:Ow(!0,t),\u0275fromNgModule:!0}}function Ow(t,...n){let e=[],i=new Set,r,o=s=>{e.push(s)};return Xg(n,s=>{let a=s;Gm(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&kw(r,o),e}function kw(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];nv(r,o=>{n(o,i)})}}function Gm(t,n,e,i){if(t=Et(t),!t)return!1;let r=null,o=xC(t),s=!o&&cr(t);if(!o&&!s){let l=t.ngModule;if(o=xC(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Gm(c,n,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let c;try{Xg(o.imports,d=>{Gm(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&kw(c,n)}if(!a){let c=po(r)||(()=>new r);n({provide:r,useFactory:c,deps:Ut},r),n({provide:Cw,useValue:r,multi:!0},r),n({provide:ws,useValue:()=>g(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;nv(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function nv(t,n){for(let e of t)gw(e)&&(e=e.\u0275providers),Array.isArray(e)?nv(e,n):n(e)}function Fw(t){return t!==null&&typeof t=="object"&&ZF in t}function XF(t){return!!(t&&t.useExisting)}function JF(t){return!!(t&&t.useFactory)}function Es(t){return typeof t=="function"}function eN(t){return!!t.useClass}function iv(){return Sm===void 0&&(Sm=new ru),Sm}function Wm(t){let n=Su(t),e=n!==null?n.factory:po(t);if(e!==null)return e;if(t instanceof C)throw new S(204,!1);if(t instanceof Function)return nN(t);throw new S(204,!1)}function nN(t){if(t.length>0)throw new S(204,!1);let e=hF(t);return e!==null?()=>e.factory(t):()=>new t}function iN(t){if(Fw(t))return vs(void 0,t.useValue);{let n=Nw(t);return vs(n,Yd)}}function Nw(t,n,e){let i;if(Es(t)){let r=Et(t);return po(r)||Wm(r)}else if(Fw(t))i=()=>Et(t.useValue);else if(JF(t))i=()=>t.useFactory(...$m(t.deps||[]));else if(XF(t))i=()=>g(Et(t.useExisting));else{let r=Et(t&&(t.useClass||t.provide));if(rN(t))i=()=>new r(...$m(t.deps));else return po(r)||Wm(r)}return i}function vs(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function rN(t){return!!t.deps}function oN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function sN(t){return typeof t=="function"||typeof t=="object"&&t instanceof C}function qm(t,n){for(let e of t)Array.isArray(e)?qm(e,n):e&&gw(e)?qm(e.\u0275providers,n):n(e)}function yn(t,n){t instanceof ll&&t.assertNotDestroyed();let e,i=or(t),r=qt(void 0);try{return n()}finally{or(i),qt(r)}}function Lw(){return vw()!==void 0||DF()!=null}function rv(t){if(!Lw())throw new S(-203,!1)}function aN(t){return typeof t=="function"}function ar(t){return Array.isArray(t)&&typeof t[jw]=="object"}function wi(t){return Array.isArray(t)&&t[jw]===!0}function ov(t){return(t.flags&4)!==0}function Fu(t){return t.componentOffset>-1}function Nu(t){return(t.flags&1)===1}function dr(t){return!!t.template}function Ym(t){return(t[Z]&512)!==0}function Vw(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}function He(){return Bw}function Bw(t){return t.type.prototype.ngOnChanges&&(t.setInput=cN),lN}function lN(){let t=zw(this),n=t?.current;if(n){let e=t.previous;if(e===yi)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function cN(t,n,e,i,r){let o=this.declaredInputs[i],s=zw(t)||dN(t,{previous:yi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new dl(c&&c.currentValue,e,l===yi),Vw(t,n,r,e)}function zw(t){return t[Uw]||null}function dN(t,n){return t[Uw]=n}function Yn(t){for(;Array.isArray(t);)t=t[Ci];return t}function Hw(t,n){return Yn(n[t])}function _n(t,n){return Yn(n[t.index])}function sv(t,n){return t.data[n]}function av(t,n){return t[n]}function vr(t,n){let e=n[t];return ar(e)?e:e[Ci]}function fN(t){return(t[Z]&4)===4}function lv(t){return(t[Z]&128)===128}function hN(t){return wi(t[Ft])}function ur(t,n){return n==null?null:t[n]}function Gw(t){t[ys]=0}function Ww(t){t[Z]&1024||(t[Z]|=1024,lv(t)&&Pu(t))}function pN(t,n){for(;t>0;)n=n[Fs],t--;return n}function Lu(t){return!!(t[Z]&9216||t[vn]?.dirty)}function Km(t){t[qn].changeDetectionScheduler?.notify(8),t[Z]&64&&(t[Z]|=1024),Lu(t)&&Pu(t)}function Pu(t){t[qn].changeDetectionScheduler?.notify(0);let n=vo(t);for(;n!==null&&!(n[Z]&8192||(n[Z]|=8192,!lv(n)));)n=vo(n)}function qw(t,n){if((t[Z]&256)===256)throw new S(911,!1);t[sr]===null&&(t[sr]=[]),t[sr].push(n)}function mN(t,n){if(t[sr]===null)return;let e=t[sr].indexOf(n);e!==-1&&t[sr].splice(e,1)}function vo(t){let n=t[Ft];return wi(n)?n[Ft]:n}function gN(){return de.lFrame.elementDepthCount}function vN(){de.lFrame.elementDepthCount++}function yN(){de.lFrame.elementDepthCount--}function Kw(){return de.bindingsEnabled}function Qw(){return de.skipHydrationRootTNode!==null}function _N(t){return de.skipHydrationRootTNode===t}function bN(){de.skipHydrationRootTNode=null}function X(){return de.lFrame.lView}function et(){return de.lFrame.tView}function ve(t){return de.lFrame.contextLView=t,t[Ot]}function ye(t){return de.lFrame.contextLView=null,t}function It(){let t=Zw();for(;t!==null&&t.type===64;)t=t.parent;return t}function Zw(){return de.lFrame.currentTNode}function xN(){let t=de.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function wo(t,n){let e=de.lFrame;e.currentTNode=t,e.isParent=n}function cv(){return de.lFrame.isParent}function dv(){de.lFrame.isParent=!1}function CN(){return de.lFrame.contextLView}function Xw(){return Yw}function RC(t){Yw=t}function Ns(){let t=de.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function wN(){return de.lFrame.bindingIndex}function EN(t){return de.lFrame.bindingIndex=t}function Eo(){return de.lFrame.bindingIndex++}function uv(t){let n=de.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function DN(){return de.lFrame.inI18n}function IN(t,n){let e=de.lFrame;e.bindingIndex=e.bindingRootIndex=t,Qm(n)}function MN(){return de.lFrame.currentDirectiveIndex}function Qm(t){de.lFrame.currentDirectiveIndex=t}function SN(t){let n=de.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function fv(){return de.lFrame.currentQueryIndex}function ju(t){de.lFrame.currentQueryIndex=t}function AN(t){let n=t[ie];return n.type===2?n.declTNode:n.type===1?t[Qt]:null}function Jw(t,n,e){if(e&xe.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&xe.Host);)if(r=AN(o),r===null||(o=o[Fs],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=de.lFrame=eE();return i.currentTNode=n,i.lView=t,!0}function hv(t){let n=eE(),e=t[ie];de.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function eE(){let t=de.lFrame,n=t===null?null:t.child;return n===null?tE(t):n}function tE(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function nE(){let t=de.lFrame;return de.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}function pv(){let t=nE();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function TN(t){return(de.lFrame.contextLView=pN(t,de.lFrame.contextLView))[Ot]}function Ei(){return de.lFrame.selectedIndex}function yo(t){de.lFrame.selectedIndex=t}function Vu(){let t=de.lFrame;return sv(t.tView,t.selectedIndex)}function Do(){de.lFrame.currentNamespace=$w}function rE(){RN()}function RN(){de.lFrame.currentNamespace=null}function ON(){return de.lFrame.currentNamespace}function Bu(){return oE}function Uu(t){oE=t}function kN(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let s=Bw(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function zu(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),d!=null&&(t.destroyHooks??=[]).push(e,d)}}function Qd(t,n,e){sE(t,n,3,e)}function Zd(t,n,e,i){(t[Z]&3)===e&&sE(t,n,e,i)}function Am(t,n){let e=t[Z];(e&3)===n&&(e&=16383,e+=1,t[Z]=e)}function sE(t,n,e,i){let r=i!==void 0?t[ys]&65535:0,o=i??-1,s=n.length-1,a=0;for(let l=r;l<s;l++)if(typeof n[l+1]=="number"){if(a=n[l],i!=null&&a>=i)break}else n[l]<0&&(t[ys]+=65536),(a<o||o==-1)&&(FN(t,e,n,l),t[ys]=(t[ys]&4294901760)+l+2),l++}function OC(t,n){Hn(4,t,n);let e=Ee(null);try{n.call(t)}finally{Ee(e),Hn(5,t,n)}}function FN(t,n,e,i){let r=e[i]<0,o=e[i+1],s=r?-e[i]:e[i],a=t[s];r?t[Z]>>14<t[ys]>>16&&(t[Z]&3)===n&&(t[Z]+=16384,OC(a,o)):OC(a,o)}function NN(t){return t instanceof _o}function LN(t){return(t.flags&8)!==0}function PN(t){return(t.flags&16)!==0}function aE(t){return t!==Cs}function lu(t){return t&32767}function jN(t){return t>>16}function cu(t,n){let e=jN(t),i=n;for(;e>0;)i=i[Fs],e--;return i}function du(t){let n=Xm;return Xm=t,n}function UN(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(rl)&&(i=e[rl]),i==null&&(i=e[rl]=BN++);let r=i&lE,o=1<<r;n.data[t+(r>>cE)]|=o}function uu(t,n){let e=dE(t,n);if(e!==-1)return e;let i=n[ie];i.firstCreatePass&&(t.injectorIndex=n.length,Rm(i.data,t),Rm(n,null),Rm(i.blueprint,null));let r=mv(t,n),o=t.injectorIndex;if(aE(r)){let s=lu(r),a=cu(r,n),l=a[ie].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Rm(t,n){t.push(0,0,0,0,0,0,0,0,n)}function dE(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function mv(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=mE(r),i===null)return Cs;if(e++,r=r[Fs],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Cs}function Jm(t,n,e){UN(t,n,e)}function zN(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(Ew(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2}}}return null}function uE(t,n,e){if(e&xe.Optional||t!==void 0)return t;Zg(n,"NodeInjector")}function fE(t,n,e,i){if(e&xe.Optional&&i===void 0&&(i=null),!(e&(xe.Self|xe.Host))){let r=t[Is],o=qt(void 0);try{return r?r.get(n,i,e&xe.Optional):yw(n,i,e&xe.Optional)}finally{qt(o)}}return uE(i,n,e)}function hE(t,n,e,i=xe.Default,r){if(t!==null){if(n[Z]&2048&&!(i&xe.Self)){let s=WN(t,n,e,i,Gn);if(s!==Gn)return s}let o=pE(t,n,e,i,Gn);if(o!==Gn)return o}return fE(n,e,i,r)}function pE(t,n,e,i,r){let o=HN(e);if(typeof o=="function"){if(!Jw(n,t,i))return i&xe.Host?uE(r,e,i):fE(n,e,i,r);try{let s;if(s=o(i),s==null&&!(i&xe.Optional))Zg(e);else return s}finally{iE()}}else if(typeof o=="number"){let s=null,a=dE(t,n),l=Cs,c=i&xe.Host?n[tn][Qt]:null;for((a===-1||i&xe.SkipSelf)&&(l=a===-1?mv(t,n):n[a+8],l===Cs||!FC(i,!1)?a=-1:(s=n[ie],a=lu(l),n=cu(l,n)));a!==-1;){let d=n[ie];if(kC(o,a,d.data)){let u=$N(a,n,e,s,i,c);if(u!==Gn)return u}l=n[a+8],l!==Cs&&FC(i,n[ie].data[a+8]===c)&&kC(o,a,n)?(s=d,a=lu(l),n=cu(l,n)):a=-1}}return r}function $N(t,n,e,i,r,o){let s=n[ie],a=s.data[t+8],l=i==null?Fu(a)&&Xm:i!=s&&(a.type&3)!==0,c=r&xe.Host&&o===a,d=Xd(a,s,e,l,c);return d!==null?bo(n,s,d,a):Gn}function Xd(t,n,e,i,r){let o=t.providerIndexes,s=n.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,d=o>>20,u=i?a:a+d,m=r?a+d:c;for(let p=u;p<m;p++){let v=s[p];if(p<l&&e===v||p>=l&&v.type===e)return p}if(r){let p=s[l];if(p&&dr(p)&&p.type===e)return l}return null}function bo(t,n,e,i){let r=t[e],o=n.data;if(NN(r)){let s=r;s.resolving&&bF(_F(o[e]));let a=du(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?qt(s.injectImpl):null,d=Jw(t,i,xe.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&kN(e,o[e],n)}finally{c!==null&&qt(c),du(a),s.resolving=!1,iE()}}return r}function HN(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(rl)?t[rl]:void 0;return typeof n=="number"?n>=0?n&lE:GN:n}function kC(t,n,e){let i=1<<t;return!!(e[n+(t>>cE)]&i)}function FC(t,n){return!(t&xe.Self)&&!(t&xe.Host&&n)}function GN(){return new fo(It(),X())}function tt(t){return pl(()=>{let n=t.prototype.constructor,e=n[tu]||eg(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[tu]||eg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function eg(t){return fw(t)?()=>{let n=eg(Et(t));return n&&n()}:po(t)}function WN(t,n,e,i,r){let o=t,s=n;for(;o!==null&&s!==null&&s[Z]&2048&&!(s[Z]&512);){let a=pE(o,s,e,i|xe.Self,Gn);if(a!==Gn)return a;let l=o.parent;if(!l){let c=s[Pw];if(c){let d=c.get(e,Gn,i);if(d!==Gn)return d}l=mE(s),s=s[Fs]}o=l}return r}function mE(t){let n=t[ie],e=n.type;return e===2?n.declTNode:e===1?t[Qt]:null}function yr(t){return zN(It(),t)}function NC(t,n=null,e=null,i){let r=gE(t,n,e,i);return r.resolveInjectorInitializers(),r}function gE(t,n=null,e=null,i,r=new Set){let o=[e||Ut,tv(t)];return i=i||(typeof t=="object"?void 0:zt(t)),new ll(o,n||iv(),i||null,r)}function Om(t){return t[YN]}function KN(){return new tg(X())}function fu(...t){}function yE(t){let n,e;function i(){t=fu;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function LC(t){return queueMicrotask(()=>t()),()=>{t=fu}}function vv(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function XN(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){yE(()=>{t.callbackScheduled=!1,ig(t),t.isCheckStableRunning=!0,vv(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),ig(t)}function JN(t){let n=()=>{XN(t)},e=QN++;t._inner=t._inner.fork({name:"angular",properties:{[gv]:!0,[hu]:e,[hu+e]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(eL(l))return i.invokeTask(o,s,a,l);try{return PC(t),i.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),jC(t)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return PC(t),i.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!tL(l)&&n(),jC(t)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ig(t),vv(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ig(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function PC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function jC(t){t._nesting--,vv(t)}function eL(t){return _E(t,"__ignore_ng_zone__")}function tL(t){return _E(t,"__scheduler_tick__")}function _E(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function iL(){return Ls(It(),X())}function Ls(t,n){return new F(_n(t,n))}function bE(t){return t instanceof F?t.nativeElement:t}function rL(){return this._results[Symbol.iterator]()}function xE(t){return(t.flags&128)===128}function sL(){return oL++}function aL(t){CE.set(t[ku],t)}function og(t){CE.delete(t[ku])}function hr(t,n){ar(n)?(t[VC]=n[ku],aL(n)):t[VC]=n}function wE(t){return DE(t[cl])}function EE(t){return DE(t[Fn])}function DE(t){for(;t!==null&&!wi(t);)t=t[Fn];return t}function IE(t){sg=t}function ME(){if(sg!==void 0)return sg;if(typeof document<"u")return document;throw new S(210,!1)}function _v(t,n,e=!1){return uL(t,n,e)}function hL(){if(zd===void 0&&(zd=null,ol.trustedTypes))try{zd=ol.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zd}function Hu(t){return hL()?.createHTML(t)||t}function AE(){if($d===void 0&&($d=null,ol.trustedTypes))try{$d=ol.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $d}function BC(t){return AE()?.createHTML(t)||t}function UC(t){return AE()?.createScriptURL(t)||t}function bn(t){return t instanceof bi?t.changingThisBreaksApplicationSecurity:t}function Ii(t,n){let e=pL(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${dw})`)}return e===n}function pL(t){return t instanceof bi&&t.getTypeName()||null}function TE(t){return new ag(t)}function RE(t){return new lg(t)}function OE(t){return new cg(t)}function kE(t){return new dg(t)}function FE(t){return new ug(t)}function mL(t){let n=new hg(t);return gL()?new fg(n):n}function gL(){try{return!!new window.DOMParser().parseFromString(Hu(""),"text/html")}catch{return!1}}function Gu(t){return t=String(t),t.match(vL)?t:"unsafe:"+t}function Mi(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function _l(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}function DL(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function IL(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw VE(n);return n}function ML(t){let n=t.firstChild;if(n&&DL(t,n))throw VE(n);return n}function $C(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function VE(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}function HC(t){return t.replace(/&/g,"&amp;").replace(SL,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(AL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bv(t,n){let e=null;try{Hd=Hd||mL(t);let i=n?String(n):"";e=Hd.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Hd.getInertBodyElement(i)}while(i!==o);let a=new pg().sanitizeChildren(GC(e)||e);return Hu(a)}finally{if(e){let i=GC(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function GC(t){return"content"in t&&TL(t)?t.content:null}function TL(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}function Ps(t){let n=Cv();return n?BC(n.sanitize(Mt.HTML,t)||""):Ii(t,"HTML")?BC(bn(t)):bv(ME(),ho(t))}function xv(t){let n=Cv();return n?n.sanitize(Mt.URL,t)||"":Ii(t,"URL")?bn(t):Gu(ho(t))}function RL(t){let n=Cv();if(n)return UC(n.sanitize(Mt.RESOURCE_URL,t)||"");if(Ii(t,"ResourceURL"))return UC(bn(t));throw new S(904,!1)}function OL(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?RL:xv}function BE(t,n,e){return OL(n,e)(t)}function Cv(){let t=X();return t&&t[qn].sanitizer}function LL(t){return t.replace(kL,n=>n.replace(FL,NL))}function UE(t){return t instanceof Function?t():t}function zE(t){return(t??y(De)).get(yt)==="browser"}function wv(t,n){return PL(t,n)}function _s(t,n,e,i,r){if(i!=null){let o,s=!1;wi(i)?o=i:ar(i)&&(s=!0,i=i[Ci]);let a=Yn(i);t===0&&e!==null?r==null?qE(n,e,a):pu(n,e,a,r||null,!0):t===1&&e!==null?pu(n,e,a,r||null,!0):t===2?ZL(n,a,s):t===3&&n.destroyNode(a),o!=null&&JL(n,t,o,e,r)}}function jL(t,n){return t.createText(n)}function VL(t,n,e){t.setValue(n,e)}function BL(t,n){return t.createComment(LL(n))}function $E(t,n,e){return t.createElement(n,e)}function UL(t,n){HE(t,n),n[Ci]=null,n[Qt]=null}function zL(t,n,e,i,r,o){i[Ci]=r,i[Qt]=n,Yu(t,i,e,1,r,o)}function HE(t,n){n[qn].changeDetectionScheduler?.notify(9),Yu(t,n,n[Je],2,null,null)}function $L(t){let n=t[cl];if(!n)return km(t[ie],t);for(;n;){let e=null;if(ar(n))e=n[cl];else{let i=n[kt];i&&(e=i)}if(!e){for(;n&&!n[Fn]&&n!==t;)ar(n)&&km(n[ie],n),n=n[Ft];n===null&&(n=t),ar(n)&&km(n[ie],n),e=n&&n[Fn]}n=e}}function HL(t,n,e,i){let r=kt+i,o=e.length;i>0&&(e[r-1][Fn]=n),i<o-kt?(n[Fn]=e[r],bw(e,kt+i,n)):(e.push(n),n[Fn]=null),n[Ft]=e;let s=n[mo];s!==null&&e!==s&&GE(s,n);let a=n[_i];a!==null&&a.insertView(t),Km(n),n[Z]|=128}function GE(t,n){let e=t[Ms],i=n[Ft];if(ar(i))t[Z]|=au.HasTransplantedViews;else{let r=i[Ft][tn];n[tn]!==r&&(t[Z]|=au.HasTransplantedViews)}e===null?t[Ms]=[n]:e.push(n)}function Ev(t,n){let e=t[Ms],i=e.indexOf(n);e.splice(i,1)}function ul(t,n){if(t.length<=kt)return;let e=kt+n,i=t[e];if(i){let r=i[mo];r!==null&&r!==t&&Ev(r,i),n>0&&(t[e-1][Fn]=i[Fn]);let o=iu(t,kt+n);UL(i[ie],i);let s=o[_i];s!==null&&s.detachView(o[ie]),i[Ft]=null,i[Fn]=null,i[Z]&=-129}return i}function Wu(t,n){if(!(n[Z]&256)){let e=n[Je];e.destroyNode&&Yu(t,n,e,3,null,null),$L(n)}}function km(t,n){if(n[Z]&256)return;let e=Ee(null);try{n[Z]&=-129,n[Z]|=256,n[vn]&&Xc(n[vn]),WL(t,n),GL(t,n),n[ie].type===1&&n[Je].destroy();let i=n[mo];if(i!==null&&wi(n[Ft])){i!==n[Ft]&&Ev(i,n);let r=n[_i];r!==null&&r.detachView(t)}og(n)}finally{Ee(e)}}function GL(t,n){let e=t.cleanup,i=n[ou];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[e[o+1]];e[o].call(s)}i!==null&&(n[ou]=null);let r=n[sr];if(r!==null){n[sr]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function WL(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof _o)){let o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];Hn(4,a,l);try{l.call(a)}finally{Hn(5,a,l)}}else{Hn(4,r,o);try{o.call(r)}finally{Hn(5,r,o)}}}}}function WE(t,n,e){return qL(t,n.parent,e)}function qL(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[Ci];{let{componentOffset:r}=i;if(r>-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===Wn.None||o===Wn.Emulated)return null}return _n(i,e)}}function pu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function qE(t,n,e){t.appendChild(n,e)}function WC(t,n,e,i,r){i!==null?pu(t,n,e,i,r):qE(t,n,e)}function YE(t,n){return t.parentNode(n)}function YL(t,n){return t.nextSibling(n)}function KE(t,n,e){return QL(t,n,e)}function KL(t,n,e){return t.type&40?_n(t,e):null}function qu(t,n,e,i){let r=WE(t,i,n),o=n[Je],s=i.parent||n[Qt],a=KE(s,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)WC(o,r,e[l],a,!1);else WC(o,r,e,a,!1);qC!==void 0&&qC(o,i,n,e,r)}function il(t,n){if(n!==null){let e=n.type;if(e&3)return _n(n,t);if(e&4)return mg(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return il(t,i);{let r=t[n.index];return wi(r)?mg(-1,r):Yn(r)}}else{if(e&128)return il(t,n.next);if(e&32)return wv(n,t)()||Yn(t[n.index]);{let i=QE(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=vo(t[tn]);return il(r,i)}else return il(t,n.next)}}}return null}function QE(t,n){if(n!==null){let i=t[tn][Qt],r=n.projection;return i.projection[r]}return null}function mg(t,n){let e=kt+t+1;if(e<n.length){let i=n[e],r=i[ie].firstChild;if(r!==null)return il(i,r)}return n[go]}function ZL(t,n,e){t.removeChild(null,n,e)}function Dv(t,n,e,i,r,o,s){for(;e!=null;){if(e.type===128){e=e.next;continue}let a=i[e.index],l=e.type;if(s&&n===0&&(a&&hr(Yn(a),i),e.flags|=2),(e.flags&32)!==32)if(l&8)Dv(t,n,e.child,i,r,o,!1),_s(n,t,r,a,o);else if(l&32){let c=wv(e,i),d;for(;d=c();)_s(n,t,r,d,o);_s(n,t,r,a,o)}else l&16?ZE(t,n,i,e,r,o):_s(n,t,r,a,o);e=s?e.projectionNext:e.next}}function Yu(t,n,e,i,r,o){Dv(e,i,t.firstChild,n,r,o,!1)}function XL(t,n,e){let i=n[Je],r=WE(t,e,n),o=e.parent||n[Qt],s=KE(o,e,n);ZE(i,0,n,e,r,s)}function ZE(t,n,e,i,r,o){let s=e[tn],l=s[Qt].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];_s(n,t,r,d,o)}else{let c=l,d=s[Ft];xE(i)&&(c.flags|=128),Dv(t,n,c,d,r,o,!0)}}function JL(t,n,e,i,r){let o=e[go],s=Yn(e);o!==s&&_s(n,t,i,o,r);for(let a=kt;a<e.length;a++){let l=e[a];Yu(l[ie],l,t,n,i,o)}}function eP(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:xi.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=xi.Important),t.setStyle(e,i,r,o))}}function tP(t,n,e){t.setAttribute(n,"style",e)}function XE(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function JE(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&Hm(t,n,i),r!==null&&XE(t,n,r),o!==null&&tP(t,n,o)}function w(t=1){eD(et(),X(),Ei()+t,!1)}function eD(t,n,e,i){if(!i)if((n[Z]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Qd(n,o,e)}else{let o=t.preOrderHooks;o!==null&&Zd(n,o,0,e)}yo(e)}function h(t,n=xe.Default){let e=X();if(e===null)return g(t,n);let i=It();return hE(i,e,Et(t),n)}function js(){let t="invalid";throw new Error(t)}function tD(t,n,e,i,r,o){let s=Ee(null);try{let a=null;r&lr.SignalBased&&(a=n[i][mn]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&lr.HasDecoratorInputTransform&&(o=t.inputTransforms[i].call(n,o)),t.setInput!==null?t.setInput(n,a,o,e,i):Vw(n,a,i,o)}finally{Ee(s)}}function nP(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)yo(~r);else{let o=r,s=e[++i],a=e[++i];IN(s,o);let l=n[o];a(2,l)}}}finally{yo(-1)}}function Ku(t,n,e,i,r,o,s,a,l,c,d){let u=n.blueprint.slice();return u[Ci]=r,u[Z]=i|4|128|8|64,(c!==null||t&&t[Z]&2048)&&(u[Z]|=2048),Gw(u),u[Ft]=u[Fs]=t,u[Ot]=e,u[qn]=s||t&&t[qn],u[Je]=a||t&&t[Je],u[Is]=l||t&&t[Is]||null,u[Qt]=o,u[ku]=sL(),u[Ds]=d,u[Pw]=c,u[tn]=n.type==2?t[tn]:u,u}function Vs(t,n,e,i,r){let o=t.data[n];if(o===null)o=iP(t,n,e,i,r),DN()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let s=xN();o.injectorIndex=s===null?-1:s.injectorIndex}return wo(o,!0),o}function iP(t,n,e,i,r){let o=Zw(),s=cv(),a=s?o:o&&o.parent,l=t.data[n]=cP(t,a,e,n,i,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function nD(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function iD(t,n,e,i,r){let o=Ei(),s=i&2;try{yo(-1),s&&n.length>vt&&eD(t,n,vt,!1),Hn(s?2:0,r),e(i,r)}finally{yo(o),Hn(s?3:1,r)}}function Iv(t,n,e){if(ov(n)){let i=Ee(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=e[s];a.contentQueries(1,l,s)}}}finally{Ee(i)}}}function Mv(t,n,e){Kw()&&(mP(t,n,e,_n(e,n)),(e.flags&64)===64&&sD(t,n,e))}function Sv(t,n,e=_n){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let s=i[o+1],a=s===-1?e(n,t):t[s];t[r++]=a}}}function rD(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Av(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Av(t,n,e,i,r,o,s,a,l,c,d){let u=vt+i,m=u+r,p=rP(u,m),v=typeof c=="function"?c():c;return p[ie]={type:t,blueprint:p,template:e,queries:null,viewQuery:a,declTNode:n,data:p.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:m,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:v,incompleteFirstPass:!1,ssrId:d}}function rP(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:rn);return e}function oP(t,n,e,i){let o=i.get(fL,SE)||e===Wn.ShadowDom,s=t.selectRootElement(n,o);return sP(s),s}function sP(t){aP(t)}function lP(t,n,e,i){let r=cD(n);r.push(e),t.firstCreatePass&&dD(t).push(i,r.length-1)}function cP(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Qw()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function YC(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;i??={};let a,l=lr.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?KC(i,e,c,a,l):KC(i,e,c,a)}return i}function KC(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],r!==void 0&&o.push(r)}function dP(t,n,e){let i=n.directiveStart,r=n.directiveEnd,o=t.data,s=n.attrs,a=[],l=null,c=null;for(let d=i;d<r;d++){let u=o[d],m=e?e.get(u):null,p=m?m.inputs:null,v=m?m.outputs:null;l=YC(0,u.inputs,d,l,p),c=YC(1,u.outputs,d,c,v);let _=l!==null&&s!==null&&!Jg(n)?IP(l,d,s):null;a.push(_)}l!==null&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}function uP(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Tv(t,n,e,i,r,o,s,a){let l=_n(n,e),c=n.inputs,d;!a&&c!=null&&(d=c[i])?(Ov(t,e,d,i,r),Fu(n)&&fP(e,n.index)):n.type&3?(i=uP(i),r=s!=null?s(r,n.value||"",i):r,o.setProperty(l,i,r)):n.type&12}function fP(t,n){let e=vr(n,t);e[Z]&16||(e[Z]|=64)}function Rv(t,n,e,i){if(Kw()){let r=i===null?null:{"":-1},o=vP(t,e),s,a;o===null?s=a=null:[s,a]=o,s!==null&&oD(t,n,e,s,r,a),r&&yP(e,i,r)}e.mergedAttrs=al(e.mergedAttrs,e.attrs)}function oD(t,n,e,i,r,o){for(let c=0;c<i.length;c++)Jm(uu(e,n),t,i[c].type);bP(e,t.data.length,i.length);for(let c=0;c<i.length;c++){let d=i[c];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,l=nD(t,n,i.length,null);for(let c=0;c<i.length;c++){let d=i[c];e.mergedAttrs=al(e.mergedAttrs,d.hostAttrs),xP(t,e,n,l,d),_P(l,d,r),d.contentQueries!==null&&(e.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(e.flags|=64);let u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),l++}dP(t,e,o)}function hP(t,n,e,i,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~n.index;pP(s)!=a&&s.push(a),s.push(e,i,o)}}function pP(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function mP(t,n,e,i){let r=e.directiveStart,o=e.directiveEnd;Fu(e)&&CP(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||uu(e,n),hr(i,n);let s=e.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],c=bo(n,t,a,e);if(hr(c,n),s!==null&&DP(n,a-r,c,l,e,s),dr(l)){let d=vr(e.index,n);d[Ot]=bo(n,t,a,e)}}}function sD(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,s=MN();try{yo(o);for(let a=i;a<r;a++){let l=t.data[a],c=n[a];Qm(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&gP(l,c)}}finally{yo(-1),Qm(s)}}function gP(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function vP(t,n){let e=t.directiveRegistry,i=null,r=null;if(e)for(let o=0;o<e.length;o++){let s=e[o];if(Iw(n,s.selectors,!1))if(i||(i=[]),dr(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s);let l=a.length;gg(t,n,l)}else i.unshift(s),gg(t,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return i===null?null:[i,r]}function gg(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function yP(t,n,e){if(n){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new S(-301,!1);i.push(n[r],o)}}}function _P(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;dr(n)&&(e[""]=t)}}function bP(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function xP(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=po(r.type,!0)),s=new _o(o,dr(r),h);t.blueprint[i]=s,e[i]=s,hP(t,n,i,nD(t,e,r.hostVars,rn),r)}function CP(t,n,e){let i=_n(n,t),r=rD(e),o=t[qn].rendererFactory,s=16;e.signals?s=4096:e.onPush&&(s=64);let a=Qu(t,Ku(t,r,null,s,i,n,null,o.createRenderer(i,e),null,null,null));t[n.index]=a}function wP(t,n,e,i,r,o){let s=_n(t,n);EP(n[Je],s,o,t.value,e,i,r)}function EP(t,n,e,i,r,o,s){if(o==null)t.removeAttribute(n,r,e);else{let a=s==null?ho(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function DP(t,n,e,i,r,o){let s=o[n];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],d=s[a++],u=s[a++];tD(i,e,l,c,d,u)}}function IP(t,n,e){let i=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){i===null&&(i=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===n){i.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}return i}function aD(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function lD(t,n){let e=t.contentQueries;if(e!==null){let i=Ee(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=t.data[s];ju(o),a.contentQueries(2,n[s],s)}}}finally{Ee(i)}}}function Qu(t,n){return t[cl]?t[AC][Fn]=n:t[cl]=n,t[AC]=n,n}function vg(t,n,e){ju(0);let i=Ee(null);try{n(t,e)}finally{Ee(i)}}function cD(t){return t[ou]??=[]}function dD(t){return t.cleanup??=[]}function uD(t,n){let e=t[Is],i=e?e.get(Yt,null):null;i&&i.handleError(n)}function Ov(t,n,e,i,r){for(let o=0;o<e.length;){let s=e[o++],a=e[o++],l=e[o++],c=n[s],d=t.data[s];tD(d,c,i,a,l,r)}}function fD(t,n,e){let i=Hw(n,t);VL(t[Je],i,e)}function MP(t,n){let e=vr(n,t),i=e[ie];SP(i,e);let r=e[Ci];r!==null&&e[Ds]===null&&(e[Ds]=_v(r,e[Is])),kv(i,e,e[Ot])}function SP(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function kv(t,n,e){hv(n);try{let i=t.viewQuery;i!==null&&vg(1,i,e);let r=t.template;r!==null&&iD(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[_i]?.finishViewCreation(t),t.staticContentQueries&&lD(t,n),t.staticViewQueries&&vg(2,t.viewQuery,e);let o=t.components;o!==null&&AP(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[Z]&=-5,pv()}}function AP(t,n){for(let e=0;e<n.length;e++)MP(t,n[e])}function bl(t,n,e,i){let r=Ee(null);try{let o=n.tView,a=t[Z]&4096?4096:16,l=Ku(t,o,e,a,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=t[n.index];l[mo]=c;let d=t[_i];return d!==null&&(l[_i]=d.createEmbeddedView(o)),kv(o,l,e),l}finally{Ee(r)}}function hD(t,n){let e=kt+n;if(e<t.length)return t[e]}function Ss(t,n){return!n||n.firstChild===null||xE(t)}function xl(t,n,e,i=!0){let r=n[ie];if(HL(r,n,t,e),i){let s=mg(e,t),a=n[Je],l=YE(a,t[go]);l!==null&&zL(r,t[Qt],a,n,l,s)}let o=n[Ds];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function pD(t,n){let e=ul(t,n);return e!==void 0&&Wu(e[ie],e),e}function mu(t,n,e,i,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=n[e.index];o!==null&&i.push(Yn(o)),wi(o)&&TP(o,i);let s=e.type;if(s&8)mu(t,n,e.child,i);else if(s&32){let a=wv(e,n),l;for(;l=a();)i.push(l)}else if(s&16){let a=QE(n,e);if(Array.isArray(a))i.push(...a);else{let l=vo(n[tn]);mu(l[ie],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function TP(t,n){for(let e=kt;e<t.length;e++){let i=t[e],r=i[ie].firstChild;r!==null&&mu(i[ie],i,r,n)}t[go]!==t[Ci]&&n.push(t[go])}function RP(t){return t[vn]??OP(t)}function OP(t){let n=mD.pop()??Object.create(FP);return n.lView=t,n}function kP(t){t.lView[vn]!==t&&(t.lView=null,mD.push(t))}function NP(t){let n=t[vn]??Object.create(LP);return n.lView=t,n}function gD(t){return t.type!==2}function vD(t,n=!0,e=0){let i=t[qn],r=i.rendererFactory,o=!1;o||r.begin?.();try{jP(t,e)}catch(s){throw n&&uD(t,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function jP(t,n){let e=Xw();try{RC(!0),yg(t,n);let i=0;for(;Lu(t);){if(i===PP)throw new S(103,!1);i++,yg(t,1)}}finally{RC(e)}}function VP(t,n,e,i){let r=n[Z];if((r&256)===256)return;let o=!1,s=!1;!o&&n[qn].inlineEffectRunner?.flush(),hv(n);let a=!0,l=null,c=null;o||(gD(t)?(c=RP(n),l=Ha(c)):N0()===null?(a=!1,c=NP(n),l=Ha(c)):n[vn]&&(Xc(n[vn]),n[vn]=null));try{Gw(n),EN(t.bindingStartIndex),e!==null&&iD(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Qd(n,p,null)}else{let p=t.preOrderHooks;p!==null&&Zd(n,p,0,null),Am(n,0)}if(s||BP(n),yD(n,0),t.contentQueries!==null&&lD(t,n),!o)if(d){let p=t.contentCheckHooks;p!==null&&Qd(n,p)}else{let p=t.contentHooks;p!==null&&Zd(n,p,1),Am(n,1)}nP(t,n);let u=t.components;u!==null&&bD(n,u,0);let m=t.viewQuery;if(m!==null&&vg(2,m,i),!o)if(d){let p=t.viewCheckHooks;p!==null&&Qd(n,p)}else{let p=t.viewHooks;p!==null&&Zd(n,p,2),Am(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Kd]){for(let p of n[Kd])p();n[Kd]=null}o||(n[Z]&=-73)}catch(d){throw o||Pu(n),d}finally{c!==null&&(Qc(c,l),a&&kP(c)),pv()}}function yD(t,n){for(let e=wE(t);e!==null;e=EE(e))for(let i=kt;i<e.length;i++){let r=e[i];_D(r,n)}}function BP(t){for(let n=wE(t);n!==null;n=EE(n)){if(!(n[Z]&au.HasTransplantedViews))continue;let e=n[Ms];for(let i=0;i<e.length;i++){let r=e[i];Ww(r)}}}function UP(t,n,e){let i=vr(n,t);_D(i,e)}function _D(t,n){lv(t)&&yg(t,n)}function yg(t,n){let i=t[ie],r=t[Z],o=t[vn],s=!!(n===0&&r&16);if(s||=!!(r&64&&n===0),s||=!!(r&1024),s||=!!(o?.dirty&&Zc(o)),s||=!1,o&&(o.dirty=!1),t[Z]&=-9217,s)VP(i,t,i.template,t[Ot]);else if(r&8192){yD(t,1);let a=i.components;a!==null&&bD(t,a,1)}}function bD(t,n,e){for(let i=0;i<n.length;i++)UP(t,n[i],e)}function Fv(t,n){let e=Xw()?64:1088;for(t[qn].changeDetectionScheduler?.notify(n);t;){t[Z]|=e;let i=vo(t);if(Ym(t)&&!i)return t;t=i}return null}function HP(){return Zu(It(),X())}function Zu(t,n){return t.type&4?new $P(n,t,Ls(t,n)):null}function As(t,n){return GP(t,n)}function WP(t){let n=Error(`No component factory found for ${zt(t)}.`);return n[qP]=t,n}function YP(){let t=X(),n=It(),e=vr(n.index,t);return(ar(e)?e:t)[Je]}function vu(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")o=a;else if(o==1)r=Bm(r,a);else if(o==2){let l=a,c=n[++s];i=Bm(i,l+": "+c+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function QC(t,n){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let r=t[i];if(r===void 0)continue;let o=Array.isArray(r),s=o?r[0]:r,a=o?r[1]:lr.None;n?e.push({propName:s,templateName:i,isSignal:(a&lr.SignalBased)!==0}):e.push({propName:s,templateName:i})}return e}function QP(t){let n=t.toLowerCase();return n==="svg"?$w:n==="math"?uN:null}function ZP(t,n){let e=t[ie],i=vt;return t[i]=n,Vs(e,i,2,"#host",null)}function XP(t,n,e,i,r,o,s){let a=r[ie];JP(i,t,n,s);let l=null;n!==null&&(l=_v(n,r[Is]));let c=o.rendererFactory.createRenderer(n,e),d=16;e.signals?d=4096:e.onPush&&(d=64);let u=Ku(r,rD(e),null,d,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&gg(a,t,i.length-1),Qu(r,u),r[t.index]=u}function JP(t,n,e,i){for(let r of t)n.mergedAttrs=al(n.mergedAttrs,r.hostAttrs);n.mergedAttrs!==null&&(vu(n,n.mergedAttrs,!0),e!==null&&JE(i,e,n))}function e1(t,n,e,i,r,o){let s=It(),a=r[ie],l=_n(s,r);oD(a,r,s,e,null,i);for(let d=0;d<e.length;d++){let u=s.directiveStart+d,m=bo(r,a,u,s);hr(m,r)}sD(a,r,s),l&&hr(l,r);let c=bo(r,a,s.directiveStart+s.componentOffset,s);if(t[Ot]=r[Ot]=c,o!==null)for(let d of o)d(c,n);return Iv(a,s,r),c}function t1(t,n,e,i){if(i)Hm(t,e,["ng-version","18.2.13"]);else{let{attrs:r,classes:o}=qF(n.selectors[0]);r&&Hm(t,e,r),o&&o.length>0&&XE(t,e,o.join(" "))}}function n1(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null?Array.from(o):null)}}function i1(){let t=It();zu(X()[ie],t)}function r1(){let t=It();return ED(t,X())}function ZC(t){return t[su]}function Fm(t){return t[su]||(t[su]=[])}function ED(t,n){let e,i=n[t.index];return wi(i)?e=i:(e=aD(i,n,null,t),n[t.index]=e,Qu(n,e)),a1(e,n,t,i),new wD(e,t,n)}function s1(t,n){let e=t[Je],i=e.createComment(""),r=_n(n,t),o=YE(e,r);return pu(e,o,i,YL(e,r),!1),i}function c1(t,n,e){return l1(t,n,e)}function d1(t,n,e,i){if(t[go])return;let r;e.type&8?r=Yn(i):r=s1(n,e),t[go]=r}function u1(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function f1(t,n){return t.type&11?Ls(t,n):t.type&4?Zu(t,n):null}function h1(t,n,e,i){return e===-1?f1(n,t):e===-2?p1(t,n,i):bo(t,t[ie],e,n)}function p1(t,n,e){if(e===F)return Ls(n,t);if(e===Nt)return Zu(n,t);if(e===_t)return ED(n,t)}function DD(t,n,e,i){let r=n[_i].queries[i];if(r.matches===null){let o=t.data,s=e.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let d=o[c];a.push(h1(n,d,s[l+1],e.metadata.read))}}r.matches=a}return r.matches}function Ig(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let s=DD(t,n,r,e);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)i.push(s[a/2]);else{let c=o[a+1],d=n[-l];for(let u=kt;u<d.length;u++){let m=d[u];m[mo]===m[Ft]&&Ig(m[ie],m,c,i)}if(d[Ms]!==null){let u=d[Ms];for(let m=0;m<u.length;m++){let p=u[m];Ig(p[ie],p,c,i)}}}}}return i}function Lv(t,n){return t[_i].queries[n].queryList}function ID(t,n,e){let i=new fr((e&4)===4);return lP(t,n,i,i.destroy),(n[_i]??=new wg).queries.push(new Cg(i))-1}function m1(t,n,e){let i=et();return i.firstCreatePass&&(SD(i,new _u(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),ID(i,X(),n)}function MD(t,n,e,i){let r=et();if(r.firstCreatePass){let o=It();SD(r,new _u(n,e,i),o.index),v1(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return ID(r,X(),e)}function g1(t){return t.split(",").map(n=>n.trim())}function SD(t,n,e){t.queries===null&&(t.queries=new Eg),t.queries.track(new Dg(n,e))}function v1(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function Pv(t,n){return t.queries.getByIndex(n)}function AD(t,n){let e=t[ie],i=Pv(e,n);return i.crossesNgTemplate?Ig(e,t,n,[]):DD(e,t,i,n)}function xn(t){XC.has(t)||(XC.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Xu(t){return typeof t=="function"&&t[mn]!==void 0}function Si(t,n){xn("NgSignals");let e=W0(t),i=e[mn];return n?.equal&&(i.equal=n.equal),e.set=r=>Op(i,r),e.update=r=>q0(i,r),e.asReadonly=y1.bind(e),e}function y1(){let t=this[mn];if(t.readonlyFn===void 0){let n=()=>this();n[mn]=t,t.readonlyFn=n}return t.readonlyFn}function TD(t){return Xu(t)&&typeof t.set=="function"}function RD(t,n){let e,i=Rp(()=>{e._dirtyCounter();let r=C1(e,t);if(n&&r===void 0)throw new S(-951,!1);return r});return e=i[mn],e._dirtyCounter=Si(0),e._flatValue=void 0,i}function _1(){return RD(!0,!1)}function b1(){return RD(!0,!0)}function x1(t,n){let e=t[mn];e._lView=X(),e._queryIndex=n,e._queryList=Lv(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function C1(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[Z]&4)return n?void 0:Ut;let r=Lv(e,i),o=AD(e,i);return r.reset(o,bE),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function JC(t,n){return _1()}function w1(t,n){return b1()}function E1(t){return Object.getPrototypeOf(t.prototype).constructor}function Ce(t){let n=E1(t.type),e=!0,i=[t];for(;n;){let r;if(dr(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let s=t;s.inputs=Gd(t.inputs),s.inputTransforms=Gd(t.inputTransforms),s.declaredInputs=Gd(t.declaredInputs),s.outputs=Gd(t.outputs);let a=r.hostBindings;a&&A1(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&M1(t,l),c&&S1(t,c),D1(t,r),uF(t.outputs,r.outputs),dr(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Ce&&(e=!1)}}n=Object.getPrototypeOf(n)}I1(i)}function D1(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];if(i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],n.inputTransforms!==null)){let r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function I1(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=al(r.hostAttrs,e=al(e,r.hostAttrs))}}function Gd(t){return t===yi?{}:t===Ut?[]:t}function M1(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function S1(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function A1(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function kD(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=FD,e.hostDirectives=i?t.map(Mg):[t]):i?e.hostDirectives.unshift(...t.map(Mg)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function FD(t,n,e){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let r=i();for(let o of r)ew(Mg(o),n,e)}else ew(i,n,e)}function ew(t,n,e){let i=ev(t.directive);T1(i.declaredInputs,t.inputs),FD(i,n,e),e.set(i,t),n.push(i)}function Mg(t){return typeof t=="function"?{directive:Et(t),inputs:yi,outputs:yi}:{directive:Et(t.directive),inputs:tw(t.inputs),outputs:tw(t.outputs)}}function tw(t){if(t===void 0||t.length===0)return yi;let n={};for(let e=0;e<t.length;e+=2)n[t[e]]=t[e+1];return n}function T1(t,n){for(let e in n)if(n.hasOwnProperty(e)){let i=n[e],r=t[e];t[i]=r}}function lt(t){let n=t.inputConfig,e={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}function Ju(t,n,e=null){return new bu({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}function ND(t){return O1(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function R1(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value)}}function O1(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function ef(t,n,e){return t[n]=e}function k1(t,n){return t[n]}function nn(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function jv(t,n,e,i){let r=nn(t,n,e);return nn(t,n+1,i)||r}function F1(t,n,e,i,r){let o=jv(t,n,e,i);return nn(t,n+2,r)||o}function N1(t){return(t.flags&32)===32}function L1(t,n,e,i,r,o,s,a,l){let c=n.consts,d=Vs(n,t,4,s||null,a||null);Rv(n,e,d,ur(c,l)),zu(n,d);let u=d.tView=Av(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return n.queries!==null&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}function xu(t,n,e,i,r,o,s,a,l,c){let d=e+vt,u=n.firstCreatePass?L1(d,n,t,i,r,o,s,a,l):n.data[d];wo(u,!1);let m=P1(n,t,u,e);Bu()&&qu(n,t,m,u),hr(m,t);let p=aD(m,t,m,u);return t[d]=p,Qu(t,p),c1(p,u,t),Nu(u)&&Mv(n,t,u),l!=null&&Sv(t,u,c),u}function ee(t,n,e,i,r,o,s,a){let l=X(),c=et(),d=ur(c.consts,o);return xu(l,c,t,n,e,i,r,d,s,a),ee}function j1(t,n,e,i){return Uu(!0),n[Je].createComment("")}function Cl(t,n){!n?.injector&&rv(Cl);let e=n?.injector??y(De);return zE(e)?(xn("NgAfterRender"),PD(t,e,n,!1)):jD}function on(t,n){!n?.injector&&rv(on);let e=n?.injector??y(De);return zE(e)?(xn("NgAfterNextRender"),PD(t,e,n,!0)):jD}function V1(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function PD(t,n,e,i){let r=n.get(LD);r.impl??=n.get(Tg);let o=e?.phase??bs.MixedReadWrite,s=e?.manualCleanup!==!0?n.get($u):null,a=new Rg(r.impl,V1(t,o),i,s);return r.impl.register(a),a}function _e(t,n,e,i){let r=X(),o=Eo();if(nn(r,o,n)){let s=et(),a=Vu();wP(a,r,t,n,e,i)}return _e}function VD(t,n,e,i){return nn(t,Eo(),e)?n+ho(e)+i:rn}function B1(t,n,e,i,r,o){let s=wN(),a=jv(t,s,e,r);return uv(2),a?n+ho(e)+i+ho(r)+o:rn}function Wd(t,n){return t<<17|n<<2}function Co(t){return t>>17&32767}function U1(t){return(t&2)==2}function z1(t,n){return t&131071|n<<17}function Og(t){return t|2}function Os(t){return(t&131068)>>2}function Nm(t,n){return t&-131069|n<<2}function $1(t){return(t&1)===1}function kg(t){return t|1}function H1(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=Co(s),l=Os(s);t[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||gl(u,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let m=Co(t[a+1]);t[i+1]=Wd(m,a),m!==0&&(t[m+1]=Nm(t[m+1],i)),t[a+1]=z1(t[a+1],i)}else t[i+1]=Wd(a,0),a!==0&&(t[a+1]=Nm(t[a+1],i)),a=i;else t[i+1]=Wd(l,0),a===0?a=i:t[l+1]=Nm(t[l+1],i),l=i;c&&(t[i+1]=Og(t[i+1])),nw(t,d,i,!0),nw(t,d,i,!1),G1(n,d,t,i,o),s=Wd(a,l),o?n.classBindings=s:n.styleBindings=s}function G1(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&gl(o,n)>=0&&(e[i+1]=kg(e[i+1]))}function nw(t,n,e,i){let r=t[e+1],o=n===null,s=i?Co(r):Os(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];W1(l,n)&&(a=!0,t[s+1]=i?kg(c):Og(c)),s=i?Co(c):Os(c)}a&&(t[e+1]=i?Og(r):kg(r))}function W1(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?gl(t,n)>=0:!1}function q1(t){return t.substring(kn.key,kn.keyEnd)}function Y1(t){return K1(t),BD(t,UD(t,0,kn.textEnd))}function BD(t,n){let e=kn.textEnd;return e===n?-1:(n=kn.keyEnd=Q1(t,kn.key=n,e),UD(t,n,e))}function K1(t){kn.key=0,kn.keyEnd=0,kn.value=0,kn.valueEnd=0,kn.textEnd=t.length}function UD(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Q1(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function A(t,n,e){let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!1)}return A}function Fg(t,n,e,i,r){let o=n.inputs,s=r?"class":"style";Ov(t,e,o[s],s,i)}function Mo(t,n,e){return $D(t,n,e,!1),Mo}function fe(t,n){return $D(t,n,null,!0),fe}function Ai(t){HD(nj,zD,t,!0)}function zD(t,n){for(let e=Y1(n);e>=0;e=BD(n,e))Ru(t,q1(n),!0)}function $D(t,n,e,i){let r=X(),o=et(),s=uv(2);if(o.firstUpdatePass&&WD(o,t,s,i),n!==rn&&nn(r,s,n)){let a=o.data[Ei()];qD(o,a,r,r[Je],t,r[s+1]=rj(n,e),i,s)}}function HD(t,n,e,i){let r=et(),o=uv(2);r.firstUpdatePass&&WD(r,null,o,i);let s=X();if(e!==rn&&nn(s,o,e)){let a=r.data[Ei()];if(YD(a,i)&&!GD(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=Bm(l,e||"")),Fg(r,a,s,e,i)}else ij(r,a,s,s[Je],s[o+1],s[o+1]=tj(t,n,e),i,o)}}function GD(t,n){return n>=t.expandoStartIndex}function WD(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Ei()],s=GD(t,e);YD(o,i)&&n===null&&!s&&(n=!1),n=Z1(r,o,n,i),H1(r,o,n,e,s,i)}}function Z1(t,n,e,i){let r=SN(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=Lm(null,t,n,e,i),e=hl(e,n.attrs,i),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==r)if(e=Lm(r,t,n,e,i),o===null){let l=X1(t,n,i);l!==void 0&&Array.isArray(l)&&(l=Lm(null,t,n,l[1],i),l=hl(l,n.attrs,i),J1(t,n,i,l))}else o=ej(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function X1(t,n,e){let i=e?n.classBindings:n.styleBindings;if(Os(i)!==0)return t[Co(i)]}function J1(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Co(r)]=i}function ej(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;i=hl(i,s,e)}return hl(i,n.attrs,e)}function Lm(t,n,e,i,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=n[a],i=hl(i,o.hostAttrs,r),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),i}function hl(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let s=n[o];typeof s=="number"?r=s:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Ru(t,s,e?!0:n[++o]))}return t===void 0?null:t}function tj(t,n,e){if(e==null||e==="")return Ut;let i=[],r=bn(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else typeof r=="string"&&n(i,r);return i}function nj(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&Ru(t,i,e)}function ij(t,n,e,i,r,o,s,a){r===rn&&(r=Ut);let l=0,c=0,d=0<r.length?r[0]:null,u=0<o.length?o[0]:null;for(;d!==null||u!==null;){let m=l<r.length?r[l+1]:void 0,p=c<o.length?o[c+1]:void 0,v=null,_;d===u?(l+=2,c+=2,m!==p&&(v=u,_=p)):u===null||d!==null&&d<u?(l+=2,v=d):(c+=2,v=u,_=p),v!==null&&qD(t,n,e,i,v,_,s,a),d=l<r.length?r[l]:null,u=c<o.length?o[c]:null}}function qD(t,n,e,i,r,o,s,a){if(!(n.type&3))return;let l=t.data,c=l[a+1],d=$1(c)?iw(l,n,e,r,Os(c),s):void 0;if(!Cu(d)){Cu(o)||U1(c)&&(o=iw(l,null,e,r,a,s));let u=Hw(Ei(),e);eP(i,s,u,r,o)}}function iw(t,n,e,i,r,o){let s=n===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,u=d===null,m=e[r+1];m===rn&&(m=u?Ut:void 0);let p=u?Mm(m,i):d===i?m:void 0;if(c&&!Cu(p)&&(p=Mm(l,i)),Cu(p)&&(a=p,s))return a;let v=t[r+1];r=s?Co(v):Os(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(a=Mm(l,i))}return a}function Cu(t){return t!==void 0}function rj(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=zt(bn(t)))),t}function YD(t,n){return(t.flags&(n?8:16))!==0}function tf(t,n,e){let i=X(),r=VD(i,t,n,e);HD(Ru,zD,r,!0)}function Pm(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function oj(t,n,e){let i,r,o=0,s=t.length-1,a=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=s&&o<=l;){let c=t.at(o),d=n[o],u=Pm(o,c,o,d,e);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let m=t.at(s),p=n[l],v=Pm(s,m,l,p,e);if(v!==0){v<0&&t.updateValue(s,p),s--,l--;continue}let _=e(o,c),E=e(s,m),I=e(o,d);if(Object.is(I,E)){let U=e(l,p);Object.is(U,_)?(t.swap(o,s),t.updateValue(s,p),l--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(i??=new wu,r??=ow(t,o,s,e),Lg(t,i,o,I))t.updateValue(o,d),o++,s++;else if(r.has(I))i.set(_,t.detach(o)),s--;else{let U=t.create(o,n[o]);t.attach(o,U),o++,s++}}for(;o<=l;)rw(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=t.at(o),u=c.value,m=Pm(o,d,o,u,e);if(m!==0)m<0&&t.updateValue(o,u),o++,c=l.next();else{i??=new wu,r??=ow(t,o,s,e);let p=e(o,u);if(Lg(t,i,o,p))t.updateValue(o,u),o++,s++,c=l.next();else if(!r.has(p))t.attach(o,t.create(o,u)),o++,s++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),s--}}}for(;!c.done;)rw(t,i,e,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(l=>{t.destroy(l)})}function Lg(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function rw(t,n,e,i,r){if(Lg(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function ow(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}function nt(t,n){xn("NgControlFlow");let e=X(),i=Eo(),r=e[i]!==rn?e[i]:-1,o=r!==-1?Eu(e,vt+r):void 0,s=0;if(nn(e,i,t)){let a=Ee(null);try{if(o!==void 0&&pD(o,s),t!==-1){let l=vt+t,c=Eu(e,l),d=Bg(e[ie],l),u=As(c,d.tView.ssrId),m=bl(e,d,n,{dehydratedView:u});xl(c,m,s,Ss(d,u))}}finally{Ee(a)}}else if(o!==void 0){let a=hD(o,s);a!==void 0&&(a[Ot]=n)}}function KD(t){return t}function QD(t,n,e,i,r,o,s,a,l,c,d,u,m){xn("NgControlFlow");let p=X(),v=et(),_=l!==void 0,E=X(),I=a?s.bind(E[tn][Ot]):s,U=new jg(_,I);E[vt+t]=U,xu(p,v,t+1,n,e,i,r,ur(v.consts,o)),_&&xu(p,v,t+2,l,c,d,u,ur(v.consts,m))}function ZD(t){let n=Ee(null),e=Ei();try{let i=X(),r=i[ie],o=i[e],s=e+1,a=Eu(i,s);if(o.liveCollection===void 0){let c=Bg(r,s);o.liveCollection=new Vg(a,i,c)}else o.liveCollection.reset();let l=o.liveCollection;if(oj(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Eo(),d=l.length===0;if(nn(i,c,d)){let u=e+2,m=Eu(i,u);if(d){let p=Bg(r,u),v=As(m,p.tView.ssrId),_=bl(i,p,void 0,{dehydratedView:v});xl(m,_,0,Ss(p,v))}else pD(m,0)}}}finally{Ee(n)}}function Eu(t,n){return t[n]}function sj(t,n){return ul(t,n)}function aj(t,n){return hD(t,n)}function Bg(t,n){return sv(t,n)}function lj(t,n,e,i,r,o){let s=n.consts,a=ur(s,r),l=Vs(n,t,2,i,a);return Rv(n,e,l,ur(s,o)),l.attrs!==null&&vu(l,l.attrs,!1),l.mergedAttrs!==null&&vu(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}function D(t,n,e,i){let r=X(),o=et(),s=vt+t,a=r[Je],l=o.firstCreatePass?lj(s,o,r,n,e,i):o.data[s],c=cj(o,r,l,a,n,t);r[s]=c;let d=Nu(l);return wo(l,!0),JE(a,c,l),!N1(l)&&Bu()&&qu(o,r,c,l),gN()===0&&hr(c,r),vN(),d&&(Mv(o,r,l),Iv(o,l,r)),i!==null&&Sv(r,l),D}function T(){let t=It();cv()?dv():(t=t.parent,wo(t,!1));let n=t;_N(n)&&bN(),yN();let e=et();return e.firstCreatePass&&(zu(e,t),ov(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&LN(n)&&Fg(e,n,X(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&PN(n)&&Fg(e,n,X(),n.stylesWithoutHost,!1),T}function oe(t,n,e,i){return D(t,n,e,i),T(),oe}function dj(t,n,e,i,r){let o=n.consts,s=ur(o,i),a=Vs(n,t,8,"ng-container",s);s!==null&&vu(a,s,!0);let l=ur(o,r);return Rv(n,e,a,l),n.queries!==null&&n.queries.elementStart(n,a),a}function nf(t,n,e){let i=X(),r=et(),o=t+vt,s=r.firstCreatePass?dj(o,r,i,n,e):r.data[o];wo(s,!0);let a=uj(r,i,s,t);return i[o]=a,Bu()&&qu(r,i,a,s),hr(a,i),Nu(s)&&(Mv(r,i,s),Iv(r,s,i)),e!=null&&Sv(i,s),nf}function rf(){let t=It(),n=et();return cv()?dv():(t=t.parent,wo(t,!1)),n.firstCreatePass&&(zu(n,t),ov(t)&&n.queries.elementEnd(t)),rf}function wl(t,n,e){return nf(t,n,e),rf(),wl}function Ge(){return X()}function _r(t,n,e){let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!0)}return _r}function hj(t){typeof t=="string"&&(fj=t.toLowerCase().replace(/_/g,"-"))}function K(t,n,e,i){let r=X(),o=et(),s=It();return XD(o,r,r[Je],s,t,n,i),K}function mj(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===i){let a=n[ou],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function XD(t,n,e,i,r,o,s){let a=Nu(i),c=t.firstCreatePass&&dD(t),d=n[Ot],u=cD(n),m=!0;if(i.type&3||s){let _=_n(i,n),E=s?s(_):_,I=u.length,U=s?Me=>s(Yn(Me[i.index])):i.index,H=null;if(!s&&a&&(H=mj(t,n,r,i.index)),H!==null){let Me=H.__ngLastListenerFn__||H;Me.__ngNextListenerFn__=o,H.__ngLastListenerFn__=o,m=!1}else{o=aw(i,n,d,o),pj(_,r,o);let Me=e.listen(E,r,o);u.push(o,Me),c&&c.push(r,U,I,I+1)}}else o=aw(i,n,d,o);let p=i.outputs,v;if(m&&p!==null&&(v=p[r])){let _=v.length;if(_)for(let E=0;E<_;E+=2){let I=v[E],U=v[E+1],rt=n[I][U].subscribe(o),Oe=u.length;u.push(o,rt),c&&c.push(r,i.index,Oe,-(Oe+1))}}}function sw(t,n,e,i){let r=Ee(null);try{return Hn(6,n,e),e(i)!==!1}catch(o){return uD(t,o),!1}finally{Hn(7,n,e),Ee(r)}}function aw(t,n,e,i){return function r(o){if(o===Function)return i;let s=t.componentOffset>-1?vr(t.index,n):n;Fv(s,5);let a=sw(n,e,i,o),l=r.__ngNextListenerFn__;for(;l;)a=sw(n,e,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function $(t=1){return TN(t)}function gj(t,n){let e=null,i=UF(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue}if(i===null?Iw(t,o,!0):HF(i,o))return r}return e}function Lt(t){let n=X()[tn][Qt];if(!n.projection){let e=t?t.length:1,i=n.projection=OF(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let s=t?gj(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o)}o=o.next}}}function je(t,n=0,e,i,r,o){let s=X(),a=et(),l=i?t+1:null;l!==null&&xu(s,a,l,i,r,o,null,e);let c=Vs(a,vt+t,16,null,e||null);c.projection===null&&(c.projection=n),dv();let u=!s[Ds]||Qw();s[tn][Qt].projection[c.projection]===null&&l!==null?vj(s,a,l):u&&(c.flags&32)!==32&&XL(a,s,c)}function vj(t,n,e){let i=vt+e,r=n.data[i],o=t[i],s=As(o,r.tView.ssrId),a=bl(t,r,void 0,{dehydratedView:s});xl(o,a,0,Ss(r,s))}function $t(t,n,e,i){MD(t,n,e,i)}function Ve(t,n,e){m1(t,n,e)}function he(t){let n=X(),e=et(),i=fv();ju(i+1);let r=Pv(e,i);if(t.dirty&&fN(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=AD(n,i);t.reset(o,bE),t.notifyOnChanges()}return!0}return!1}function pe(){return Lv(X(),fv())}function JD(t,n,e,i,r){x1(n,MD(t,e,i,r))}function eI(t=1){ju(fv()+t)}function yj(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Cn(t){let n=CN();return av(n,vt+t)}function le(t,n=""){let e=X(),i=et(),r=t+vt,o=i.firstCreatePass?Vs(i,r,1,n,null):i.data[r],s=_j(i,e,o,n,t);e[r]=s,Bu()&&qu(i,e,s,o),wo(o,!1)}function pt(t){return it("",t,""),pt}function it(t,n,e){let i=X(),r=VD(i,t,n,e);return r!==rn&&fD(i,Ei(),r),it}function Vv(t,n,e,i,r){let o=X(),s=B1(o,t,n,e,i,r);return s!==rn&&fD(o,Ei(),s),Vv}function Bs(t,n,e){TD(n)&&(n=n());let i=X(),r=Eo();if(nn(i,r,n)){let o=et(),s=Vu();Tv(o,s,i,t,n,i[Je],e,!1)}return Bs}function El(t,n){let e=TD(t);return e&&t.set(n),e}function Us(t,n){let e=X(),i=et(),r=It();return XD(i,e,e[Je],r,t,n),Us}function bj(t,n,e){let i=et();if(i.firstCreatePass){let r=dr(t);Ug(e,i.data,i.blueprint,r,!0),Ug(n,i.data,i.blueprint,r,!1)}}function Ug(t,n,e,i,r){if(t=Et(t),Array.isArray(t))for(let o=0;o<t.length;o++)Ug(t[o],n,e,i,r);else{let o=et(),s=X(),a=It(),l=Es(t)?t:Et(t.provide),c=Nw(t),d=a.providerIndexes&1048575,u=a.directiveStart,m=a.providerIndexes>>20;if(Es(t)||!t.multi){let p=new _o(c,r,h),v=Vm(l,n,r?d:d+m,u);v===-1?(Jm(uu(a,s),o,l),jm(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(p),s.push(p)):(e[v]=p,s[v]=p)}else{let p=Vm(l,n,d+m,u),v=Vm(l,n,d,d+m),_=p>=0&&e[p],E=v>=0&&e[v];if(r&&!E||!r&&!_){Jm(uu(a,s),o,l);let I=wj(r?Cj:xj,e.length,r,i,c);!r&&E&&(e[v].providerFactory=I),jm(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(I),s.push(I)}else{let I=tI(e[r?v:p],c,!r&&i);jm(o,t,p>-1?p:v,I)}!r&&i&&E&&e[v].componentProviders++}}}function jm(t,n,e,i){let r=Es(n),o=eN(n);if(r||o){let l=(o?Et(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function tI(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Vm(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function xj(t,n,e,i){return zg(this.multi,[])}function Cj(t,n,e,i){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=bo(e,e[ie],this.providerFactory.index,i);o=a.slice(0,s),zg(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],zg(r,o);return o}function zg(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function wj(t,n,e,i,r){let o=new _o(t,e,h);return o.multi=[],o.index=n,o.componentProviders=0,tI(o,r,i&&!e),o}function bt(t,n=[]){return e=>{e.providersResolver=(i,r)=>bj(i,r?r(t):t,n)}}function Se(t){xn("NgStandalone"),t.getStandaloneInjector=n=>n.get(Ej).getOrCreateStandaloneInjector(t)}function of(t,n,e){let i=Ns()+t,r=X();return r[i]===rn?ef(r,i,e?n.call(e):n()):k1(r,i)}function sf(t,n,e,i){return rI(X(),Ns(),t,n,e,i)}function nI(t,n,e,i,r){return oI(X(),Ns(),t,n,e,i,r)}function iI(t,n,e,i,r,o){return Dj(X(),Ns(),t,n,e,i,r,o)}function Bv(t,n){let e=t[n];return e===rn?void 0:e}function rI(t,n,e,i,r,o){let s=n+e;return nn(t,s,r)?ef(t,s+1,o?i.call(o,r):i(r)):Bv(t,s+1)}function oI(t,n,e,i,r,o,s){let a=n+e;return jv(t,a,r,o)?ef(t,a+2,s?i.call(s,r,o):i(r,o)):Bv(t,a+2)}function Dj(t,n,e,i,r,o,s,a){let l=n+e;return F1(t,l,r,o,s)?ef(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Bv(t,l+3)}function se(t,n){let e=et(),i,r=t+vt;e.firstCreatePass?(i=Ij(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=po(i.type,!0)),s,a=qt(h);try{let l=du(!1),c=o();return du(l),yj(e,X(),r,c),c}finally{qt(a)}}function Ij(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function be(t,n,e){let i=t+vt,r=X(),o=av(r,i);return sI(r,i)?rI(r,Ns(),n,o.transform,e,o):o.transform(e)}function So(t,n,e,i){let r=t+vt,o=X(),s=av(o,r);return sI(o,r)?oI(o,Ns(),n,s.transform,e,i,s):s.transform(e,i)}function sI(t,n){return t[ie].data[n].pure}function Ao(t,n){return Zu(t,n)}function To(t){return!!t&&typeof t.then=="function"}function lI(t){return!!t&&typeof t.subscribe=="function"}function Mj(){G0(()=>{throw new S(600,!1)})}function Sj(t){return t.isBoundToModule}function Tj(t,n,e){try{let i=e();return To(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}function Jd(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Rj(t,n,e,i){if(!e&&!Lu(t))return;vD(t,n,e&&!i?0:1)}function kj({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new k(ne(x({},Fj()),{scheduleInRootZone:e})),[{provide:k,useFactory:t},{provide:ws,multi:!0,useFactory:()=>{let i=y(Oj,{optional:!0});return()=>i.initialize()}},{provide:ws,multi:!0,useFactory:()=>{let i=y(Nj);return()=>{i.initialize()}}},n===!0?{provide:xD,useValue:!0}:[],{provide:CD,useValue:e??vE}]}function Fj(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function Pj(){return typeof $localize<"u"&&$localize.locale||Du}function qd(t){return!t.moduleRef}function jj(t){let n=qd(t)?t.r3Injector:t.moduleRef.injector,e=n.get(k);return e.run(()=>{qd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(Yt,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o)}})}),qd(t)){let o=()=>n.destroy(),s=t.platformInjector.get(Hg);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Hg);s.add(o),t.moduleRef.onDestroy(()=>{Jd(t.allPlatformModules,t.moduleRef),r.unsubscribe(),s.delete(o)})}return Tj(i,e,()=>{let o=n.get(cI);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(df,Du);if(hj(s||Du),qd(t)){let a=n.get(sn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return Vj(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Vj(t,n){let e=t.injector.get(sn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new S(-403,!1);n.push(t)}function Bj(t=[],n){return De.create({name:n,providers:[{provide:Ou,useValue:"platform"},{provide:Hg,useValue:new Set([()=>eu=null])},...t]})}function Uj(t=[]){if(eu)return eu;let n=Bj(t);return eu=n,Mj(),zj(n),n}function zj(t){t.get(yv,null)?.forEach(e=>e())}function $j(t){return Hj(It(),X(),(t&16)===16)}function Hj(t,n,e){if(Fu(t)&&!e){let i=vr(t.index,n);return new xo(i,i)}else if(t.type&175){let i=n[tn];return new xo(i,n)}return null}function lw(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}function cw(){return new uf([new Gg])}function Uv(t){try{let{rootComponent:n,appProviders:e,platformProviders:i}=t,r=Uj(i),o=[kj({}),{provide:Ts,useExisting:Lj},...e||[]],s=new bu({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return jj({r3Injector:s.injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}function Ie(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ti(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function Ri(t,n){xn("NgSignals");let e=Rp(t);return n?.equal&&(e[mn].equal=n.equal),e}function wn(t){let n=Ee(null);try{return t()}finally{Ee(n)}}function zv(t,n){xn("NgSignals"),!n?.injector&&rv(zv);let e=n?.injector??y(De),i=n?.manualCleanup!==!0?e.get($u):null,r=new Qg(e.get(Wj),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(Be,null,{optional:!0});return!o||!(o._lView[Z]&8)?r.watcher.notify():(o._lView[Kd]??=[]).push(r.watcher.notify),r}function dI(t){let n=cr(t);if(!n)return null;let e=new Rs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var dw,S,Ud,ol,fF,pw,CC,mw,pF,C,mF,gF,vF,yF,tu,rl,wC,xe,Um,xF,sl,zm,nu,CF,wF,EF,EC,xs,ml,Tu,yi,Ut,ws,xw,Cw,ru,ww,Wn,lr,Dw,ZF,Ou,Yd,tN,Sm,Dt,ll,Ci,ie,Z,Ft,Fn,Qt,Ds,ou,Ot,Is,qn,Je,cl,AC,Fs,tn,mo,ys,_i,ku,Pw,sr,Kd,vn,vt,jw,go,su,Ms,kt,au,dl,Uw,TC,Hn,$w,uN,de,Yw,iE,oE,Cs,_o,Tm,Zm,Xm,VN,lE,cE,BN,Gn,fo,De,qN,YN,vE,$u,tg,Di,ng,V,gv,hu,QN,k,ZN,rg,Yt,nL,F,fr,CE,oL,VC,sg,yl,lL,yv,yt,at,Io,cL,dL,uL,SE,fL,zd,$d,bi,ag,lg,cg,dg,ug,fg,hg,vL,NE,LE,PE,yL,_L,bL,zC,jE,xL,CL,wL,EL,pg,SL,AL,Hd,Mt,kL,FL,NL,xi,PL,QL,qC,rn,aP,mD,FP,LP,PP,xo,Nt,zP,$P,_Q,GP,Ts,Nv,xD,CD,_g,gu,qP,bg,Kt,pr,Qn,KP,yu,Rs,xg,_t,o1,wD,a1,l1,Cg,wg,_u,Eg,Dg,XC,OD,mr,fl,Sg,Ag,bu,P1,bs,LD,Tg,Rg,jD,kn,Ng,wu,Pg,jg,Vg,cj,uj,Du,fj,pj,_j,Ej,Kn,af,aI,lf,cI,zs,Aj,sn,$g,cf,Oj,Nj,Lj,df,Hg,eu,Be,Gg,Gj,Wg,qg,Yg,Iu,uf,Wj,qj,Kg,Qg,M=f(()=>{"use strict";Q0();ke();st();dw="https://g.co/ng/security#xss",S=class extends Error{constructor(n,e){super(Mu(n,e)),this.code=n}};Ud="__parameters__";ol=globalThis;fF=$e({__forward_ref__:$e});pw=$e({\u0275prov:$e}),CC=$e({\u0275inj:$e}),mw=$e({ngInjectableDef:$e}),pF=$e({ngInjectorDef:$e}),C=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};mF=$e({\u0275cmp:$e}),gF=$e({\u0275dir:$e}),vF=$e({\u0275pipe:$e}),yF=$e({\u0275mod:$e}),tu=$e({\u0275fac:$e}),rl=$e({__NG_ELEMENT_ID__:$e}),wC=$e({__NG_ENV_ID__:$e});xe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(xe||{});xF={},sl=xF,zm="__NG_DI_FLAG__",nu="ngTempTokenPath",CF="ngTokenPath",wF=/\n/gm,EF="\u0275",EC="__source";ml=_w(uw("Optional"),8),Tu=_w(uw("SkipSelf"),4);yi={},Ut=[],ws=new C(""),xw=new C("",-1),Cw=new C(""),ru=class{get(n,e=sl){if(e===sl){let i=new Error(`NullInjectorError: No provider for ${zt(n)}!`);throw i.name="NullInjectorError",i}return e}},ww=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(ww||{}),Wn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Wn||{}),lr=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(lr||{});Dw="ng-template";ZF=$e({provide:String,useValue:$e});Ou=new C(""),Yd={},tN={};Dt=class{},ll=class extends Dt{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qm(n,s=>this.processProvider(s)),this.records.set(xw,vs(void 0,this)),r.has("environment")&&this.records.set(Dt,vs(void 0,this));let o=this.records.get(Ou);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Cw,Ut,xe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=Ee(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ee(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=or(this),i=qt(void 0),r;try{return n()}finally{or(e),qt(i)}}get(n,e=sl,i=xe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(wC))return n[wC](this);i=Au(i);let r,o=or(this),s=qt(void 0);try{if(!(i&xe.SkipSelf)){let l=this.records.get(n);if(l===void 0){let c=sN(n)&&Su(n);c&&this.injectableDefInScope(c)?l=vs(Wm(n),Yd):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l)}let a=i&xe.Self?iv():this.parent;return e=i&xe.Optional&&e===sl?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[nu]=a[nu]||[]).unshift(zt(n)),o)throw a;return SF(a,n,"R3InjectorError",this.source)}else throw a}finally{qt(s),or(o)}}resolveInjectorInitializers(){let n=Ee(null),e=or(this),i=qt(void 0),r;try{let o=this.get(ws,Ut,xe.Self);for(let s of o)s()}finally{or(e),qt(i),Ee(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(zt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){n=Et(n);let e=Es(n)?n:Et(n&&n.provide),i=iN(n);if(!Es(n)&&n.multi===!0){let r=this.records.get(e);r||(r=vs(void 0,Yd,!0),r.factory=()=>$m(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){let i=Ee(null);try{return e.value===Yd&&(e.value=tN,e.value=e.factory()),typeof e.value=="object"&&e.value&&oN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Ee(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Et(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};Ci=0,ie=1,Z=2,Ft=3,Fn=4,Qt=5,Ds=6,ou=7,Ot=8,Is=9,qn=10,Je=11,cl=12,AC=13,Fs=14,tn=15,mo=16,ys=17,_i=18,ku=19,Pw=20,sr=21,Kd=22,vn=23,vt=25,jw=1,go=7,su=8,Ms=9,kt=10,au=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(au||{});dl=class{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};He.ngInherit=!0;Uw="__ngSimpleChanges__";TC=null,Hn=function(t,n,e){TC?.(t,n,e)},$w="svg",uN="math";de={lFrame:tE(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Yw=!1;iE=nE;oE=!0;Cs=-1,_o=class{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};Tm={},Zm=class{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Au(i);let r=this.injector.get(n,Tm,i);return r!==Tm||e===Tm?r:this.parentInjector.get(n,e,i)}};Xm=!0;VN=256,lE=VN-1,cE=5,BN=0,Gn={};fo=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return hE(this._tNode,this._lView,n,Au(i),e)}};De=class t{static{this.THROW_IF_NOT_FOUND=sl}static{this.NULL=new ru}static create(n,e){if(Array.isArray(n))return NC({name:""},e,n,"");{let i=n.name??"";return NC({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=b({token:t,providedIn:"any",factory:()=>g(xw)})}static{this.__NG_ELEMENT_ID__=-1}};qN=new C("");qN.__NG_ELEMENT_ID__=t=>{let n=It();if(n===null)throw new S(204,!1);if(n.type&2)return n.value;if(t&xe.Optional)return null;throw new S(204,!1)};YN="ngOriginalError";vE=!0,$u=(()=>{class t{static{this.__NG_ELEMENT_ID__=KN}static{this.__NG_ENV_ID__=e=>e}}return t})(),tg=class extends $u{constructor(n){super(),this._lView=n}onDestroy(n){return qw(this._lView,n),()=>mN(this._lView,n)}};Di=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ot(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}}return t})(),ng=class extends R{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Lw()&&(this.destroyRef=y($u,{optional:!0})??void 0,this.pendingTasks=y(Di,{optional:!0})??void 0)}emit(n){let e=Ee(null);try{super.next(n)}finally{Ee(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return n instanceof ge&&n.add(a),a}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{n(e),i!==void 0&&this.pendingTasks?.remove(i)})}}},V=ng;gv="isAngularZone",hu=gv+"_ID",QN=0,k=class t{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new V(!1),this.onMicrotaskEmpty=new V(!1),this.onStable=new V(!1),this.onError=new V(!1);let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=vE}=n;if(typeof Zone>"u")throw new S(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)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,JN(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(gv)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,ZN,fu,fu);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},ZN={};rg=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new V,this.onMicrotaskEmpty=new V,this.onStable=new V,this.onError=new V}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};Yt=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Om(n);for(;e&&Om(e);)e=Om(e);return e||null}},nL=new C("",{providedIn:"root",factory:()=>{let t=y(k),n=y(Yt);return e=>t.runOutsideAngular(()=>n.handleError(e))}});F=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=iL}}return t})();fr=class t{get changes(){return this._changes??=new V}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=rL)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=RF(n);(this._changesDetected=!TF(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};CE=new Map,oL=0;VC="__ngContext__";yl=new C("",{providedIn:"root",factory:()=>lL}),lL="ng",yv=new C(""),yt=new C("",{providedIn:"platform",factory:()=>"unknown"}),at=new C(""),Io=new C("",{providedIn:"root",factory:()=>ME().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),cL="h",dL="b",uL=()=>null;SE=!1,fL=new C("",{providedIn:"root",factory:()=>SE});bi=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dw})`}},ag=class extends bi{getTypeName(){return"HTML"}},lg=class extends bi{getTypeName(){return"Style"}},cg=class extends bi{getTypeName(){return"Script"}},dg=class extends bi{getTypeName(){return"URL"}},ug=class extends bi{getTypeName(){return"ResourceURL"}};fg=class{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(Hu(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},hg=class{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Hu(n),e}};vL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;NE=Mi("area,br,col,hr,img,wbr"),LE=Mi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),PE=Mi("rp,rt"),yL=_l(PE,LE),_L=_l(LE,Mi("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")),bL=_l(PE,Mi("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")),zC=_l(NE,_L,bL,yL),jE=Mi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xL=Mi("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"),CL=Mi("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"),wL=_l(jE,xL,CL),EL=Mi("script,style,template"),pg=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=ML(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=IL(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=$C(n).toLowerCase();if(!zC.hasOwnProperty(e))return this.sanitizedSomething=!0,!EL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let o=i.item(r),s=o.name,a=s.toLowerCase();if(!wL.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;jE[a]&&(l=Gu(l)),this.buf.push(" ",s,'="',HC(l),'"')}return this.buf.push(">"),!0}endElement(n){let e=$C(n).toLowerCase();zC.hasOwnProperty(e)&&!NE.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(HC(n))}};SL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,AL=/([^\#-~ |!])/g;Mt=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Mt||{});kL=/^>|^->|<!--|-->|--!>|<!-$/g,FL=/(<|>)/g,NL="\u200B$1\u200B";xi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(xi||{});QL=KL;rn={};aP=()=>null;mD=[];FP=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Pu(t.lView)},consumerOnSignalRead(){this.lView[vn]=this}});LP=ne(x({},ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let n=vo(t.lView);for(;n&&!gD(n[ie]);)n=vo(n);n&&Ww(n)},consumerOnSignalRead(){this.lView[vn]=this}});PP=100;xo=class{get rootNodes(){let n=this._lView,e=n[ie];return mu(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ot]}set context(n){this._lView[Ot]=n}get destroyed(){return(this._lView[Z]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[Ft];if(wi(n)){let e=n[su],i=e?e.indexOf(this):-1;i>-1&&(ul(n,i),iu(e,i))}this._attachedToViewContainer=!1}Wu(this._lView[ie],this._lView)}onDestroy(n){qw(this._lView,n)}markForCheck(){Fv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Z]&=-129}reattach(){Km(this._lView),this._lView[Z]|=128}detectChanges(){this._lView[Z]|=1024,vD(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=Ym(this._lView),e=this._lView[mo];e!==null&&!n&&Ev(e,this._lView),HE(this._lView[ie],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n;let e=Ym(this._lView),i=this._lView[mo];i!==null&&!e&&GE(i,this._lView),Km(this._lView)}},Nt=(()=>{class t{static{this.__NG_ELEMENT_ID__=HP}}return t})(),zP=Nt,$P=class extends zP{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=bl(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new xo(r)}};_Q=new RegExp(`^(\\d+)*(${dL}|${cL})*(.*)`),GP=()=>null;Ts=class{},Nv=new C("",{providedIn:"root",factory:()=>!1}),xD=new C(""),CD=new C(""),_g=class{},gu=class{};qP="ngComponent",bg=class{resolveComponentFactory(n){throw WP(n)}},Kt=class{static{this.NULL=new bg}},pr=class{},Qn=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>YP()}}return t})();KP=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>null})}}return t})();yu=class extends Kt{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=cr(n);return new Rs(e,this.ngModule)}};Rs=class extends gu{get inputs(){let n=this.componentDef,e=n.inputTransforms,i=QC(n.inputs,!0);if(e!==null)for(let r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return QC(this.componentDef.outputs,!1)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=WF(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=Ee(null);try{r=r||this.ngModule;let s=r instanceof Dt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Zm(n,s):n,l=a.get(pr,null);if(l===null)throw new S(407,!1);let c=a.get(KP,null),d=a.get(Ts,null),u={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,changeDetectionScheduler:d},m=l.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",v=i?oP(m,i,this.componentDef.encapsulation,a):$E(m,p,QP(p)),_=512;this.componentDef.signals?_|=4096:this.componentDef.onPush||(_|=16);let E=null;v!==null&&(E=_v(v,a,!0));let I=Av(0,null,null,1,0,null,null,null,null,null,null),U=Ku(null,I,null,_,null,null,u,m,a,null,E);hv(U);let H,Me,rt=null;try{let Oe=this.componentDef,Ye,mt=null;Oe.findHostDirectiveDefs?(Ye=[],mt=new Map,Oe.findHostDirectiveDefs(Oe,Ye,mt),Ye.push(Oe)):Ye=[Oe];let hi=ZP(U,v);rt=XP(hi,v,Oe,Ye,U,u,m),Me=sv(I,vt),v&&t1(m,Oe,v,i),e!==void 0&&n1(Me,this.ngContentSelectors,e),H=e1(rt,Oe,Ye,mt,U,[i1]),kv(I,U,null)}catch(Oe){throw rt!==null&&og(rt),og(U),Oe}finally{pv()}return new xg(this.componentType,H,Ls(Me,U),U,Me)}finally{Ee(o)}}},xg=class extends _g{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new xo(r,void 0,!1),this.componentType=n}setInput(n,e){let i=this._tNode.inputs,r;if(i!==null&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let o=this._rootLView;Ov(o[ie],o,r,n,e),this.previousInputValues.set(n,e);let s=vr(this._tNode.index,o);Fv(s,1)}}get injector(){return new fo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};_t=(()=>{class t{static{this.__NG_ELEMENT_ID__=r1}}return t})();o1=_t,wD=class extends o1{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ls(this._hostTNode,this._hostLView)}get injector(){return new fo(this._hostTNode,this._hostLView)}get parentInjector(){let n=mv(this._hostTNode,this._hostLView);if(aE(n)){let e=cu(n,this._hostLView),i=lu(n),r=e[ie].data[i+8];return new fo(r,e)}else return new fo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=ZC(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-kt}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=As(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Ss(this._hostTNode,s)),a}createComponent(n,e,i,r,o){let s=n&&!aN(n),a;if(s)a=e;else{let v=e||{};a=v.index,i=v.injector,r=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let l=s?n:new Rs(cr(n)),c=i||this.parentInjector;if(!o&&l.ngModule==null){let _=(s?c:this.parentInjector).get(Dt,null);_&&(o=_)}let d=cr(l.componentType??{}),u=As(this._lContainer,d?.id??null),m=u?.firstChild??null,p=l.create(c,r,m,o);return this.insertImpl(p.hostView,a,Ss(this._hostTNode,u)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(hN(r)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=r[Ft],c=new wD(l,l[Qt],l[Ft]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return xl(s,r,o,i),n.attachToViewContainerRef(),bw(Fm(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=ZC(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=ul(this._lContainer,e);i&&(iu(Fm(this._lContainer),e),Wu(i[ie],i))}detach(n){let e=this._adjustIndex(n,-1),i=ul(this._lContainer,e);return i&&iu(Fm(this._lContainer),e)!=null?new xo(i):null}_adjustIndex(n,e=0){return n??this.length+e}};a1=d1,l1=()=>!1;Cg=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wg=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)Pv(n,e).matches!==null&&this.queries[e].setDirty()}},_u=class{constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=g1(n):this.predicate=n}},Eg=class t{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Dg=class t{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,u1(e,o)),this.matchTNodeWithReadOption(n,e,Xd(e,n,o,!1,!1))}else i===Nt?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Xd(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===F||r===_t||r===Nt&&e.type&4)this.addMatch(e.index,-2);else{let o=Xd(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};XC=new Set;OD=(JC.required=w1,JC);mr=class{},fl=class{},Sg=class extends mr{constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yu(this);let o=Aw(n);this._bootstrapComponents=UE(o.bootstrap),this._r3Injector=gE(n,e,[{provide:mr,useValue:this},{provide:Kt,useValue:this.componentFactoryResolver},...i],zt(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Ag=class extends fl{constructor(n){super(),this.moduleType=n}create(n){return new Sg(this.moduleType,n,[])}},bu=class extends mr{constructor(n){super(),this.componentFactoryResolver=new yu(this),this.instance=null;let e=new ll([...n.providers,{provide:mr,useValue:this},{provide:Kt,useValue:this.componentFactoryResolver}],n.parent||iv(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};P1=j1;bs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(bs||{}),LD=(()=>{class t{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}}return t})(),Tg=class t{constructor(){this.ngZone=y(k),this.scheduler=y(Ts),this.errorHandler=y(Yt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[bs.EarlyRead,bs.Write,bs.MixedReadWrite,bs.Read]}execute(){this.executing=!0;for(let n of t.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[n]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[n](e.pipelinedValue))}catch(i){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}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))}static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t})}},Rg=class{constructor(n,e,i,r){this.impl=n,this.hooks=e,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};jD={destroy(){}};kn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};Ng=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};wu=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};Pg=class{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-kt}};jg=class{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};Vg=class extends Ng{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-kt}at(n){return this.getLView(n)[Ot].$implicit}attach(n,e){let i=e[Ds];this.needsIndexUpdate||=n!==this.length,xl(this.lContainer,e,n,Ss(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,sj(this.lContainer,n)}create(n,e){let i=As(this.lContainer,this.templateTNode.tView.ssrId),r=bl(this.hostLView,this.templateTNode,new Pg(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){Wu(n[ie],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Ot].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Ot].$index=n}getLView(n){return aj(this.lContainer,n)}};cj=(t,n,e,i,r,o)=>(Uu(!0),$E(i,r,ON()));uj=(t,n,e,i)=>(Uu(!0),BL(n[Je],""));Du="en-US",fj=Du;pj=(t,n,e)=>{};_j=(t,n,e,i,r)=>(Uu(!0),jL(n[Je],i));Ej=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=Ow(!1,e.type),r=i.length>0?Ju([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=b({token:t,providedIn:"environment",factory:()=>new t(g(Dt))})}}return t})();Kn=class{constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},af=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),aI=new C("");lf=new C(""),cI=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=y(lf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(To(o))e.push(o);else if(lI(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zs=new C("");Aj=10;sn=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=y(nL),this.afterRenderManager=y(LD),this.zonelessEnabled=y(Nv),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new R,this.afterTick=new R,this.componentTypes=[],this.components=[],this.isStable=y(Di).hasPendingTasks.pipe(P(e=>!e)),this._injector=y(Dt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof gu;if(!this._injector.get(cI).done){let m=!r&&Sw(e),p=!1;throw new S(405,p)}let s;r?s=e:s=this._injector.get(Kt).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=Sj(s)?void 0:this._injector.get(mr),l=i||s.selector,c=s.create(De.NULL,[],l,a),d=c.location.nativeElement,u=c.injector.get(aI,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Jd(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let e=Ee(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,Ee(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(pr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++<Aj;)this.synchronizeOnce(e)}synchronizeOnce(e){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)Rj(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else e?.begin?.(),e?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Lu(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Jd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(zs,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Jd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();$g=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},cf=(()=>{class t{compileModuleSync(e){return new Ag(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=Aw(e),o=UE(r.declarations).reduce((s,a)=>{let l=cr(a);return l&&s.push(new Rs(l)),s},[]);return new $g(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Oj=(()=>{class t{constructor(){this.zone=y(k),this.changeDetectionScheduler=y(Ts),this.applicationRef=y(sn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Nj=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=y(k),this.pendingTasks=y(Di)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{k.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{k.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Lj=(()=>{class t{constructor(){this.appRef=y(sn),this.taskService=y(Di),this.ngZone=y(k),this.zonelessEnabled=y(Nv),this.disableScheduling=y(xD,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ge,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(hu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(CD,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rg||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?LC:yE;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(hu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,LC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();df=new C("",{providedIn:"root",factory:()=>y(df,xe.Optional|xe.SkipSelf)||Pj()}),Hg=new C("");eu=null;Be=(()=>{class t{static{this.__NG_ELEMENT_ID__=$j}}return t})();Gg=class{constructor(){}supports(n){return ND(n)}create(n){return new Wg(n)}},Gj=(t,n)=>n,Wg=class{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Gj}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let s=!i||e&&e.currentIndex<lw(i,r,o)?e:i,a=lw(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,s.previousIndex==null)r++;else{o||(o=[]);let c=a-r,d=l-r;if(c!=d){for(let m=0;m<c;m++){let p=m<o.length?o[m]:o[m]=0,v=p+m;d<=v&&v<c&&(o[m]=p+1)}let u=s.previousIndex;o[u]=d-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!ND(n))throw new S(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,o,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),i=!0):(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,R1(n,a=>{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),i=!0):(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new qg(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Iu),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Iu),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},qg=class{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Yg=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Iu=class{constructor(){this.map=new Map}put(n){let e=n.trackById,i=this.map.get(e);i||(i=new Yg,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};uf=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:cw})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||cw()),deps:[[t,new Tu,new ml]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new S(901,!1)}}return t})();Wj=new C("",{providedIn:"root",factory:()=>y(qj)}),qj=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>new Kg})}}return t})(),Kg=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=y(Di),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){let e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},Qg=class{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=K0(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Yt,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}});function Yj(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function Kj(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}function Qj(t){return typeof t=="function"}function Zj(t,n){if(!$v){let e=Element.prototype;$v=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?$v.call(t,n):!1}function Xj(t,n){return t===n||t!==t&&n!==n}function Jj(t){let n={};return t.forEach(({propName:e,templateName:i,transform:r})=>{n[Yj(i)]=[e,r]}),n}function eV(t,n){return n.get(Kt).resolveComponentFactory(t).inputs}function tV(t,n){let e=t.childNodes,i=n.map(()=>[]),r=-1;n.some((o,s)=>o==="*"?(r=s,!0):!1);for(let o=0,s=e.length;o<s;++o){let a=e[o],l=nV(a,n,r);l!==-1&&i[l].push(a)}return i}function nV(t,n,e){let i=e;return Kj(t)&&n.some((r,o)=>r!=="*"&&Zj(t,r)?(i=o,!0):!1),i}function qv(t,n){let e=eV(t,n.injector),i=n.strategyFactory||new Hv(t,n.injector),r=Jj(e);class o extends Wv{static{this.observedAttributes=Object.keys(r)}get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[u,m]=r[a];this.ngElementStrategy.setInputValue(u,c,m)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return e.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var ff,$v,iV,Hv,Gv,Wv,uI=f(()=>{"use strict";M();ke();st();ff={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if(typeof window>"u")return ff.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return ff.schedule(t,16);let n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};iV=10,Hv=class{constructor(n,e){this.componentFactory=e.get(Kt).resolveComponentFactory(n)}create(n){return new Gv(this.componentFactory,n)}},Gv=class{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new no(1),this.events=this.eventEmitters.pipe(ze(i=>ft(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(k),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=ff.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},iV))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e,i){this.runInZone(()=>{if(i&&(e=i.call(this.componentRef?.instance,e)),this.componentRef===null){this.initialInputValues.set(n,e);return}Xj(e,this.getInputValue(n))&&!(e===void 0&&this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges())})}initializeComponent(n){let e=De.create({providers:[],parent:this.injector}),i=tV(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Be),this.implementsOnChanges=Qj(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(sn).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:e})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),e)}),this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>n.instance[i].pipe(P(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||this.inputChanges===null)return;let e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ff.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;this.inputChanges===null&&(this.inputChanges={});let i=this.inputChanges[n];if(i){i.currentValue=e;return}let r=this.unchangedInputs.has(n),o=r?void 0:this.getInputValue(n);this.inputChanges[n]=new dl(o,e,r)}detectChanges(){this.componentRef!==null&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},Wv=class extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}});function ki(){return vI}function yI(t){vI??=t}function ey(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function fI(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,i=e-(t[e-1]==="/"?1:0);return t.slice(0,i)+t.slice(e)}function Oi(t){return t&&t[0]!=="?"?"?"+t:t}function aV(){return new Zn(g(Fi))}function lV(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function hI(t){return t.replace(/\/index.html$/,"")}function cV(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function pf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}function mI(t,n){t.context.$implicit=n.item}function gI(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${zt(n)}'.`)}function dV(t,n){return new S(2100,!1)}function Xn(t){return t===ny}function Ni(t){return t===uV}function fV(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}var vI,hf,B,Jv,_I,sV,Fi,bI,ty,xI,Zn,Yv,pI,br,Kv,mf,Hs,Qv,gf,CI,ct,ny,uV,wI,Zv,Xv,$s,we=f(()=>{"use strict";M();M();vI=null;hf=class{},B=new C(""),Jv=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(sV),providedIn:"platform"})}}return t})(),_I=new C(""),sV=(()=>{class t extends Jv{constructor(){super(),this._doc=y(B),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ki().getBaseHref(this._doc)}onPopState(e){let i=ki().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=ki().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();Fi=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(ty),providedIn:"root"})}}return t})(),bI=new C(""),ty=(()=>{class t extends Fi{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??y(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ey(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Oi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Jv),g(bI,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xI=(()=>{class t extends Fi{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=ey(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Oi(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Jv),g(bI,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Zn=(()=>{class t{constructor(e){this._subject=new V,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=cV(fI(hI(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Oi(i))}normalize(e){return t.stripTrailingSlash(lV(this._basePath,hI(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oi(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oi(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=Oi}static{this.joinWithSlash=ey}static{this.stripTrailingSlash=fI}static{this.\u0275fac=function(i){return new(i||t)(g(Fi))}}static{this.\u0275prov=b({token:t,factory:()=>aV(),providedIn:"root"})}}return t})();Yv=/\s+/,pI=[],br=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=pI,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(Yv):pI}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Yv):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(Yv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qn))}}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})(),Kv=class{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mf=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Kv(r.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)i.remove(o===null?void 0:o);else if(o!==null){let a=i.get(o);i.move(a,s),mI(a,r)}});for(let r=0,o=i.length;r<o;r++){let a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);mI(o,r)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(h(_t),h(Nt),h(uf))}}static{this.\u0275dir=j({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();Hs=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Qv,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){gI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){gI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(h(_t),h(Nt))}}static{this.\u0275dir=j({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),Qv=class{constructor(){this.$implicit=null,this.ngIf=null}};gf=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||t)(h(_t))}}static{this.\u0275dir=j({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[He]})}}return t})();CI=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw dV(t,e);return e.toUpperCase()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=ks({name:"uppercase",type:t,pure:!0,standalone:!0})}}return t})(),ct=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),ny="browser",uV="server";wI=(()=>{class t{static{this.\u0275prov=b({token:t,providedIn:"root",factory:()=>Xn(y(yt))?new Zv(y(B),window):new Xv})}}return t})(),Zv=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=fV(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};Xv=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},$s=class{}});function hV(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}function EI(t){return encodeURIComponent(t).replace(pV,(n,e)=>mV[e]??n)}function vf(t){return`${t}`}function gV(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function DI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function II(t){return typeof Blob<"u"&&t instanceof Blob}function MI(t){return typeof FormData<"u"&&t instanceof FormData}function vV(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function iy(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}function SI(t){if(t.url)return t.url;let n=bV.toLocaleLowerCase();return t.headers.get(n)}function ay(){}function CV(t){t.then(ay,ay)}function wV(t,n){return n(t)}function EV(t,n,e){return(i,r)=>yn(e,()=>n(i,o=>t(o,r)))}function SV(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function FV(t,n){let e=t.url.toLowerCase();if(!y(OI)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=y(bf).getToken(),r=y(OV);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}function NV(t,n){return{\u0275kind:t,\u0275providers:n}}function FI(...t){let n=[Dr,TI,AI,{provide:Il,useExisting:AI},{provide:yf,useFactory:()=>y(xV,{optional:!0})??y(TI)},{provide:ly,useValue:FV,multi:!0},{provide:OI,useValue:!0},{provide:bf,useClass:kV}];for(let e of t)n.push(...e.\u0275providers);return vl(n)}function NI(t){return NV(kI.Interceptors,t.map(n=>({provide:ly,useValue:n,multi:!0})))}var Il,yf,Jn,ry,pV,mV,wr,oy,Dl,Er,Ml,_f,Sl,Cr,RI,yV,Dr,_V,bV,xV,sy,ly,DV,IV,AI,MV,TI,OI,AV,TV,RV,OV,bf,kV,kI,Al=f(()=>{"use strict";M();M();ke();st();we();we();Il=class{},yf=class{},Jn=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
8
+ `).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}},ry=class{encodeKey(n){return EI(n)}encodeValue(n){return EI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};pV=/%(\d[a-f0-9])/gi,mV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};wr=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ry,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=hV(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(vf):[vf(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(vf(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(vf(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}},oy=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};Dl=class t{constructor(n,e,i,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(gV(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Jn,this.context??=new oy,!this.params)this.params=new wr,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||DI(this.body)||II(this.body)||MI(this.body)||vV(this.body)?this.body:this.body instanceof wr?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||MI(this.body)?null:II(this.body)?this.body.type||null:DI(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof wr?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,a=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress,c=n.headers||this.headers,d=n.params||this.params,u=n.context??this.context;return n.setHeaders!==void 0&&(c=Object.keys(n.setHeaders).reduce((m,p)=>m.set(p,n.setHeaders[p]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((m,p)=>m.set(p,n.setParams[p]),d)),new t(e,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Er=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Er||{}),Ml=class{constructor(n,e=200,i="OK"){this.headers=n.headers||new Jn,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},_f=class t extends Ml{constructor(n={}){super(n),this.type=Er.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Sl=class t extends Ml{constructor(n={}){super(n),this.type=Er.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Cr=class extends Ml{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},RI=200,yV=204;Dr=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Dl)o=e;else{let l;r.headers instanceof Jn?l=r.headers:l=new Jn(r.headers);let c;r.params&&(r.params instanceof wr?c=r.params:c=new wr({fromObject:r.params})),o=new Dl(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=O(o).pipe(Rn(l=>this.handler.handle(l)));if(e instanceof Dl||r.observe==="events")return s;let a=s.pipe(ue(l=>l instanceof Sl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(P(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(P(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new wr().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,iy(r,i))}post(e,i,r={}){return this.request("POST",e,iy(r,i))}put(e,i,r={}){return this.request("PUT",e,iy(r,i))}static{this.\u0275fac=function(i){return new(i||t)(g(Il))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),_V=/^\)\]\}',?\n/,bV="X-Request-URL";xV=(()=>{class t{constructor(){this.fetchImpl=y(sy,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=y(k)}handle(e){return new Q(i=>{let r=new AbortController;return this.doRequest(e,r.signal,i).then(ay,o=>i.error(new Cr({error:o}))),()=>r.abort()})}doRequest(e,i,r){return es(this,null,function*(){let o=this.createRequestInit(e),s;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,x({signal:i},o)));CV(p),r.next({type:Er.Sent}),s=yield p}catch(p){r.error(new Cr({error:p,status:p.status??0,statusText:p.statusText,url:e.urlWithParams,headers:p.headers}));return}let a=new Jn(s.headers),l=s.statusText,c=SI(s)??e.urlWithParams,d=s.status,u=null;if(e.reportProgress&&r.next(new _f({headers:a,status:d,statusText:l,url:c})),s.body){let p=s.headers.get("content-length"),v=[],_=s.body.getReader(),E=0,I,U,H=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>es(this,null,function*(){for(;;){let{done:rt,value:Oe}=yield _.read();if(rt)break;if(v.push(Oe),E+=Oe.length,e.reportProgress){U=e.responseType==="text"?(U??"")+(I??=new TextDecoder).decode(Oe,{stream:!0}):void 0;let Ye=()=>r.next({type:Er.DownloadProgress,total:p?+p:void 0,loaded:E,partialText:U});H?H.run(Ye):Ye()}}}));let Me=this.concatChunks(v,E);try{let rt=s.headers.get("Content-Type")??"";u=this.parseBody(e,Me,rt)}catch(rt){r.error(new Cr({error:rt,headers:new Jn(s.headers),status:s.status,statusText:s.statusText,url:SI(s)??e.urlWithParams}));return}}d===0&&(d=u?RI:0),d>=200&&d<300?(r.next(new Sl({body:u,headers:a,status:d,statusText:l,url:c})),r.complete()):r.error(new Cr({error:u,headers:a,status:d,statusText:l,url:c}))})}parseBody(e,i,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(i).replace(_V,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){let i={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>i[o]=s.join(",")),e.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(i["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let s of e)r.set(s,o),o+=s.length;return r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),sy=class{};ly=new C(""),DV=new C(""),IV=new C("",{providedIn:"root",factory:()=>!0}),AI=(()=>{class t extends Il{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=y(Di),this.contributeToStability=y(IV)}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(ly),...this.injector.get(DV,[])]));this.chain=i.reduceRight((r,o)=>EV(r,o,this.injector),wV)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Wt(()=>this.pendingTasks.remove(i)))}else return this.chain(e,i=>this.backend.handle(i))}static{this.\u0275fac=function(i){return new(i||t)(g(yf),g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),MV=/^\)\]\}',?\n/;TI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Le(i.\u0275loadImpl()):O(null)).pipe(ze(()=>new Q(o=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,E)=>s.setRequestHeader(_,E.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let _=e.detectContentTypeHeader();_!==null&&s.setRequestHeader("Content-Type",_)}if(e.responseType){let _=e.responseType.toLowerCase();s.responseType=_!=="json"?_:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let _=s.statusText||"OK",E=new Jn(s.getAllResponseHeaders()),I=SV(s)||e.url;return l=new _f({headers:E,status:s.status,statusText:_,url:I}),l},d=()=>{let{headers:_,status:E,statusText:I,url:U}=c(),H=null;E!==yV&&(H=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=H?RI:0);let Me=E>=200&&E<300;if(e.responseType==="json"&&typeof H=="string"){let rt=H;H=H.replace(MV,"");try{H=H!==""?JSON.parse(H):null}catch(Oe){H=rt,Me&&(Me=!1,H={error:Oe,text:H})}}Me?(o.next(new Sl({body:H,headers:_,status:E,statusText:I,url:U||void 0})),o.complete()):o.error(new Cr({error:H,headers:_,status:E,statusText:I,url:U||void 0}))},u=_=>{let{url:E}=c(),I=new Cr({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(I)},m=!1,p=_=>{m||(o.next(c()),m=!0);let E={type:Er.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),e.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),o.next(E)},v=_=>{let E={type:Er.UploadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),o.next(E)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",p),a!==null&&s.upload&&s.upload.addEventListener("progress",v)),s.send(a),o.next({type:Er.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",p),a!==null&&s.upload&&s.upload.removeEventListener("progress",v)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(g($s))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),OI=new C(""),AV="XSRF-TOKEN",TV=new C("",{providedIn:"root",factory:()=>AV}),RV="X-XSRF-TOKEN",OV=new C("",{providedIn:"root",factory:()=>RV}),bf=class{},kV=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(yt),g(TV))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();kI=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(kI||{})});function PV(){return Tl=Tl||document.querySelector("base"),Tl?Tl.getAttribute("href"):null}function jV(t){return new URL(t,document.baseURI).pathname}function HV(t){return UV.replace(my,t)}function GV(t){return BV.replace(my,t)}function UI(t,n){return n.map(e=>e.replace(my,t))}function LI(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}function zI(t,n){return Uv(x({rootComponent:t},HI(n)))}function $I(t){return Uv(HI(t))}function HI(t){return{appProviders:[...eB,...t?.providers??[]],platformProviders:JV}}function QV(){fy.makeCurrent()}function ZV(){return new Yt}function XV(){return IE(document),document}var uy,fy,Tl,VV,hy,jI,xf,cy,VI,dy,my,BI,BV,UV,zV,$V,Cf,Rl,py,Ol,wf,WV,PI,qV,YV,KV,JV,eB,GI,kl,tB,Gs=f(()=>{"use strict";we();M();M();uy=class extends hf{constructor(){super(...arguments),this.supportsDOMEvents=!0}},fy=class t extends uy{static makeCurrent(){yI(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=PV();return e==null?null:jV(e)}resetBaseElement(){Tl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pf(document.cookie,n)}},Tl=null;VV=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),hy=new C(""),jI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(g(hy),g(k))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),xf=class{constructor(n){this._doc=n}},cy="ng-app-id",VI=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ni(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${cy}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(cy),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(cy,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(yl),g(Io,8),g(yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),dy={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"},my=/%COMP%/g,BI="%COMP%",BV=`_nghost-${BI}`,UV=`_ngcontent-${BI}`,zV=!0,$V=new C("",{providedIn:"root",factory:()=>zV});Cf=(()=>{class t{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Ni(a),this.defaultRenderer=new Rl(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Wn.ShadowDom&&(i=ne(x({},i),{encapsulation:Wn.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof wf?r.applyToHost(e):r instanceof Ol&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case Wn.Emulated:o=new wf(l,c,i,this.appId,d,s,a,u);break;case Wn.ShadowDom:return new py(l,c,e,i,s,a,this.nonce,u);default:o=new Ol(l,c,i,d,s,a,u);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(g(jI),g(VI),g(yl),g($V),g(B),g(yt),g(k),g(Io))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Rl=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(dy[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(LI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(LI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=dy[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=dy[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(xi.DashCase|xi.Important)?n.style.setProperty(e,i,r&xi.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&xi.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=ki().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};py=class extends Rl{constructor(n,e,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=UI(r.id,r.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ol=class extends Rl{constructor(n,e,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?UI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wf=class extends Ol{constructor(n,e,i,r,o,s,a,l){let c=r+"-"+i.id;super(n,e,i,o,s,a,l,c),this.contentAttr=HV(c),this.hostAttr=GV(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},WV=(()=>{class t extends xf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),PI=["alt","control","meta","shift"],qV={"\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"},YV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KV=(()=>{class t extends xf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ki().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),PI.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=qV[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),PI.forEach(s=>{if(s!==r){let a=YV[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();JV=[{provide:yt,useValue:ny},{provide:yv,useValue:QV,multi:!0},{provide:B,useFactory:XV,deps:[]}],eB=[{provide:Ou,useValue:"root"},{provide:Yt,useFactory:ZV,deps:[]},{provide:hy,useClass:WV,multi:!0,deps:[B,k,yt]},{provide:hy,useClass:KV,multi:!0,deps:[B]},Cf,VI,jI,{provide:pr,useExisting:Cf},{provide:$s,useClass:VV,deps:[]},[]],GI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),kl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=g(tB),r},providedIn:"root"})}}return t})(),tB=(()=>{class t extends kl{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Mt.NONE:return i;case Mt.HTML:return Ii(i,"HTML")?bn(i):bv(this._doc,String(i)).toString();case Mt.STYLE:return Ii(i,"Style")?bn(i):i;case Mt.SCRIPT:if(Ii(i,"Script"))return bn(i);throw new S(5200,!1);case Mt.URL:return Ii(i,"URL")?bn(i):Gu(String(i));case Mt.RESOURCE_URL:if(Ii(i,"ResourceURL"))return bn(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return TE(e)}bypassSecurityTrustStyle(e){return RE(e)}bypassSecurityTrustScript(e){return OE(e)}bypassSecurityTrustUrl(e){return kE(e)}bypassSecurityTrustResourceUrl(e){return FE(e)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function Df(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r,o,s;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(o=0;o<r;o++)if(!Df(t[o],n[o]))return!1;return!0}}else{if(Array.isArray(n))return!1;s=Object.create(null);for(o in t){if(!Df(t[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}return!1}function Ir(t){return typeof t<"u"&&t!==null}function Ll(t){return Ef(t)&&!wy(t)}function Ef(t){return typeof t=="object"}function wy(t){return Array.isArray(t)}function Ey(t){return typeof t=="string"}function nB(t){return typeof t=="function"}function vy(t,n){let e=Object.assign({},t);return Ef(t)?(Ef(t)&&Ef(n)&&Object.keys(n).forEach(i=>{Ll(n[i])?i in t?e[i]=vy(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e):vy({},n)}function yy(t,n){let e=n.split(".");n="";do n+=e.shift(),Ir(t)&&Ir(t[n])&&(Ll(t[n])||wy(t[n])||!e.length)?(t=t[n],n=""):e.length?n+=".":t=void 0;while(e.length);return t}function iB(t,n,e){let i=n.split("."),r=t;for(let o=0;o<i.length;o++){let s=i[o];o===i.length-1?r[s]=e:((!r[s]||!Ll(r[s]))&&(r[s]={}),r=r[s])}}var Ws,WI,Nl,qI,qs,YI,Ys,KI,If,_y,by,xy,Cy,Fl,Li,En,ei,Ht=f(()=>{"use strict";M();M();ke();st();Ws=class{},WI=(()=>{class t extends Ws{getTranslation(e){return O({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Nl=class{},qI=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();qs=class{},YI=(()=>{class t extends qs{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Ey(e))return this.interpolateString(e,i);if(nB(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=yy(i,o);return Ir(s)?s:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Ys=class{},KI=(()=>{class t extends Ys{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),If=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new V;onLangChange=new V;onDefaultLangChange=new V},_y=new C("ISOALTE_TRANSLATE_SERVICE"),by=new C("USE_DEFAULT_LANG"),xy=new C("DEFAULT_LANGUAGE"),Cy=new C("USE_EXTEND"),Fl=t=>gn(t)?t:O(t),Li=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new V;_onLangChange=new V;_onDefaultLangChange=new V;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,i,r,o,s,a=!0,l=!1,c=!1,d){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,d&&this.setDefaultLang(d)}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(this.defaultLang==null&&(this.defaultLang=e),i.pipe(Te(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return O(this.translations[e]);this.currentLang||(this.currentLang=e);let i=this.retrieveTranslations(e);return gn(i)?(i.pipe(Te(1)).subscribe(()=>{this.changeLang(e)}),i):(this.changeLang(e),O(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(uo(1),Te(1));return this.loadingTranslations=i.pipe(P(r=>this.compiler.compileTranslations(r,e)),uo(1),Te(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?x(x({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);(r||this.extend)&&this.translations[e]?this.translations[e]=vy(this.translations[e],o):this.translations[e]=o,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{this.langs.indexOf(i)===-1&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,i,r){let o;if(e&&(o=this.runInterpolation(yy(e,i),r)),o===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.runInterpolation(yy(this.translations[this.defaultLang],i),r)),o===void 0){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return o!==void 0?o:i}runInterpolation(e,i){if(wy(e))return e.map(r=>this.runInterpolation(r,i));if(Ll(e)){let r={};for(let o in e)r[o]=this.runInterpolation(e[o],i);return r}else return this.parser.interpolate(e,i)}getParsedResult(e,i,r){if(i instanceof Array){let o={},s=!1;for(let l of i)o[l]=this.getParsedResultForKey(e,l,r),s=s||gn(o[l]);if(!s)return o;let a=i.map(l=>Fl(o[l]));return lo(a).pipe(P(l=>{let c={};return l.forEach((d,u)=>{c[i[u]]=d}),c}))}return this.getParsedResultForKey(e,i,r)}get(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Rn(r=>Fl(this.getParsedResult(r,e,i)))):Fl(this.getParsedResult(this.translations[this.currentLang],e,i))}getStreamOnTranslationChange(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Xt(Jt(()=>this.get(e,i)),this.onTranslationChange.pipe(ze(r=>{let o=this.getParsedResult(r.translations,e,i);return Fl(o)})))}stream(e,i){if(!Ir(e)||!e.length)throw new Error('Parameter "key" required');return Xt(Jt(()=>this.get(e,i)),this.onLangChange.pipe(ze(r=>{let o=this.getParsedResult(r.translations,e,i);return Fl(o)})))}instant(e,i){if(!Ir(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,i);return gn(r)?Array.isArray(e)?e.reduce((o,s)=>(o[s]=s,o),{}):e:r}set(e,i,r=this.currentLang){iB(this.translations[r],e,Ey(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(i){return new(i||t)(g(If),g(Ws),g(Ys),g(qs),g(Nl),g(by),g(_y),g(Cy),g(xy))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),En=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,i){this.translate=e,this._ref=i}updateValue(e,i,r){let o=s=>{this.value=s!==void 0?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);gn(s)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Df(e,this.lastKey)&&Df(i,this.lastParams))return this.value;let r;if(Ir(i[0])&&i.length)if(Ey(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else Ll(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)(h(Li,16),h(Be,16))};static \u0275pipe=ks({name:"translate",type:t,pure:!1,standalone:!0});static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),ei=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Ws,useClass:WI},e.compiler||{provide:Ys,useClass:KI},e.parser||{provide:qs,useClass:YI},e.missingTranslationHandler||{provide:Nl,useClass:qI},If,{provide:_y,useValue:e.isolate},{provide:by,useValue:e.useDefaultLang},{provide:Cy,useValue:e.extend},{provide:xy,useValue:e.defaultLanguage},Li]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Ws,useClass:WI},e.compiler||{provide:Ys,useClass:KI},e.parser||{provide:qs,useClass:YI},e.missingTranslationHandler||{provide:Nl,useClass:qI},{provide:_y,useValue:e.isolate},{provide:by,useValue:e.useDefaultLang},{provide:Cy,useValue:e.extend},{provide:xy,useValue:e.defaultLanguage},Li]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=L({type:t});static \u0275inj=N({})}return t})()});var Ks,Mf=f(()=>{"use strict";M();Ks=new C("web-component-auth")});var Sf,Dy=f(()=>{"use strict";M();Ht();Mf();M();Sf=(()=>{class t{#e;#t;#n;#r;#i;get uiLanguage(){return this.#i}set uiLanguage(e){e!==this.#i&&(this.#i=e,this.#i=e,this.#c())}constructor(e){this.#e="lang",this.#t=y(Li),this.#n=y(Ks),this.setLanguageFromBrowser=!1,this.defaultLanguage="en",this.#r=e}ngOnInit(){this.#s(),this.#l(this.#r),this.#o()}ngOnChanges(){this.#s(),this.#o()}ensureTypeBool(e){return e===!0||e==="true"}#l(e){for(let i in e)e[i]&&this.#t.setTranslation(i,e[i],!0)}#o(){this.#t.setDefaultLang(this.defaultLanguage),this.setLanguageFromBrowser&&this.#d(),this.uiLanguage||(this.uiLanguage=this.defaultLanguage),this.#t.use(this.uiLanguage)}#s(){this.xApiKey&&(this.#n.xApiKey=this.xApiKey),this.skipAuthUrls&&(this.#n.skipAuthUrls=typeof this.skipAuthUrls=="string"?JSON.parse(this.skipAuthUrls):this.skipAuthUrls)}#c(){this.#t.use(this.uiLanguage)}#d(){let e=this.#a();!this.uiLanguage&&e!==this.defaultLanguage&&(this.uiLanguage=e);let i=a=>{for(let l of a)if(l.type==="attributes"&&l.attributeName===this.#e){let c=this.#a();this.uiLanguage=c}},r=new MutationObserver(i),o=document.querySelector("html"),s={attributes:!0,attributeFilter:[this.#e]};r.observe(o,s)}#a(){return document.querySelector("html").getAttribute(this.#e).split("-")[0]}static{this.\u0275fac=function(i){js()}}static{this.\u0275dir=j({type:t,inputs:{setLanguageFromBrowser:"setLanguageFromBrowser",defaultLanguage:"defaultLanguage",skipAuthUrls:"skipAuthUrls",uiLanguage:"uiLanguage",xApiKey:"xApiKey"},features:[He]})}}return t})()});function sB(){let t=ki()?ki().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function Sr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function iM(t){return t!=null&&typeof t.length=="number"}function cB(t){return n=>{if(Sr(n.value)||Sr(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function dB(t){return n=>{if(Sr(n.value)||Sr(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function uB(t){return Sr(t.value)?{required:!0}:null}function fB(t){return t.value===!0?null:{required:!0}}function hB(t){return Sr(t.value)||lB.test(t.value)?null:{email:!0}}function pB(t){return n=>Sr(n.value)||!iM(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}function mB(t){return n=>iM(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function gB(t){if(!t)return rM;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Sr(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function rM(t){return null}function oM(t){return t!=null}function sM(t){return To(t)?Le(t):t}function aM(t){let n={};return t.forEach(e=>{n=e!=null?x(x({},n),e):n}),Object.keys(n).length===0?null:n}function lM(t,n){return n.map(e=>e(t))}function vB(t){return!t.validate}function cM(t){return t.map(n=>vB(n)?n:e=>n.validate(e))}function dM(t){if(!t)return null;let n=t.filter(oM);return n.length==0?null:function(e){return aM(lM(e,n))}}function Ry(t){return t!=null?dM(cM(t)):null}function uM(t){if(!t)return null;let n=t.filter(oM);return n.length==0?null:function(e){let i=lM(e,n).map(sM);return lo(i).pipe(P(aM))}}function Oy(t){return t!=null?uM(cM(t)):null}function QI(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function fM(t){return t._rawValidators}function hM(t){return t._rawAsyncValidators}function Iy(t){return t?Array.isArray(t)?t:[t]:[]}function Rf(t,n){return Array.isArray(t)?t.includes(n):t===n}function ZI(t,n){let e=Iy(n);return Iy(t).forEach(r=>{Rf(e,r)||e.push(r)}),e}function XI(t,n){return Iy(n).filter(e=>!Rf(t,e))}function pM(t){return(Uf(t)?t.validators:t)||null}function _B(t){return Array.isArray(t)?Ry(t):t||null}function mM(t,n){return(Uf(n)?n.asyncValidators:t)||null}function bB(t){return Array.isArray(t)?Oy(t):t||null}function Uf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function xB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function CB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new S(1002,"")})}function wB(t,n){return[...n.path,t]}function zl(t,n,e=zf){ky(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),DB(t,n),MB(t,n),IB(t,n),EB(t,n)}function Lf(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),jf(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Pf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function EB(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ky(t,n){let e=fM(t);n.validator!==null?t.setValidators(QI(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=hM(t);n.asyncValidator!==null?t.setAsyncValidators(QI(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Pf(n._rawValidators,r),Pf(n._rawAsyncValidators,r)}function jf(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=fM(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=hM(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Pf(n._rawValidators,i),Pf(n._rawAsyncValidators,i),e}function DB(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gM(t,n)})}function IB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gM(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function gM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function MB(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function vM(t,n){t==null,ky(t,n)}function SB(t,n){return jf(t,n)}function yM(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function AB(t){return Object.getPrototypeOf(t.constructor)===rB}function _M(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function bM(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Xs?e=o:AB(o)?i=o:r=o}),r||i||e||null}function TB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function JI(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function eM(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var nM,rB,Ty,oB,aB,Xs,Vf,Bf,lB,Tf,Of,Ro,Pi,My,yB,nZ,Js,Pl,Af,Qs,jl,Ar,kf,Bl,Ul,Zs,Sy,Ay,Ff,Nf,ea,zf,RB,Vl,Fy,$l,OB,kB,tM,Hl,xM,FB,Ny,NB,Ly,CM,$f,wM,ji=f(()=>{"use strict";M();M();we();ke();st();nM=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(h(Qn),h(F))}}static{this.\u0275dir=j({type:t})}}return t})(),rB=(()=>{class t extends nM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),Ty=new C(""),oB={provide:Ty,useExisting:gr(()=>Xs),multi:!0};aB=new C(""),Xs=(()=>{class t extends nM{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sB())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(h(Qn),h(F),h(aB,8))}}static{this.\u0275dir=j({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&K("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[bt([oB]),Ce]})}}return t})();Vf=new C(""),Bf=new C(""),lB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tf=class{static min(n){return cB(n)}static max(n){return dB(n)}static required(n){return uB(n)}static requiredTrue(n){return fB(n)}static email(n){return hB(n)}static minLength(n){return pB(n)}static maxLength(n){return mB(n)}static pattern(n){return gB(n)}static nullValidator(n){return rM(n)}static compose(n){return dM(n)}static composeAsync(n){return uM(n)}};Of=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Ry(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Oy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ro=class extends Of{get formDirective(){return null}get path(){return null}},Pi=class extends Of{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},My=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},yB={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},nZ=ne(x({},yB),{"[class.ng-submitted]":"isSubmitted"}),Js=(()=>{class t extends My{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(h(Pi,2))}}static{this.\u0275dir=j({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ce]})}}return t})(),Pl="VALID",Af="INVALID",Qs="PENDING",jl="DISABLED",Ar=class{},kf=class extends Ar{constructor(n,e){super(),this.value=n,this.source=e}},Bl=class extends Ar{constructor(n,e){super(),this.pristine=n,this.source=e}},Ul=class extends Ar{constructor(n,e){super(),this.touched=n,this.source=e}},Zs=class extends Ar{constructor(n,e){super(),this.status=n,this.source=e}},Sy=class extends Ar{constructor(n){super(),this.source=n}},Ay=class extends Ar{constructor(n){super(),this.source=n}};Ff=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ri(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=Ri(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=Ri(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new R,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return wn(this.statusReactive)}set status(n){wn(()=>this.statusReactive.set(n))}get valid(){return this.status===Pl}get invalid(){return this.status===Af}get pending(){return this.status==Qs}get disabled(){return this.status===jl}get enabled(){return this.status!==jl}get pristine(){return wn(this.pristineReactive)}set pristine(n){wn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return wn(this.touchedReactive)}set touched(n){wn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(ZI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(ZI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(XI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(XI(n,this._rawAsyncValidators))}hasValidator(n){return Rf(this._rawValidators,n)}hasAsyncValidator(n){return Rf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(ne(x({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Ul(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Ul(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(ne(x({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Bl(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Bl(!0,i))}markAsPending(n={}){this.status=Qs;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Zs(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(ne(x({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=jl,this.errors=null,this._forEachChild(r=>{r.disable(ne(x({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new kf(this.value,i)),this._events.next(new Zs(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ne(x({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Pl,this._forEachChild(i=>{i.enable(ne(x({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ne(x({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pl||this.status===Qs)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new kf(this.value,e)),this._events.next(new Zs(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(ne(x({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jl:Pl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Qs,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=sM(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Zs(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?jl:this.errors?Af:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qs)?Qs:this._anyControlsHaveStatus(Af)?Af:Pl}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Bl(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ul(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Uf(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=_B(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=bB(this._rawAsyncValidators)}},Nf=class extends Ff{constructor(n,e,i){super(pM(e),mM(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){CB(this,!0,n),Object.keys(n).forEach(i=>{xB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}},ea=new C("CallSetDisabledState",{providedIn:"root",factory:()=>zf}),zf="always";RB={provide:Ro,useExisting:gr(()=>Fy)},Vl=Promise.resolve(),Fy=(()=>{class t extends Ro{get submitted(){return wn(this.submittedReactive)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Ri(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new V,this.form=new Nf({},Ry(e),Oy(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),zl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{let i=this._findContainer(e.path),r=new Nf({});vM(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Vl.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),_M(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&K("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bt([RB]),Ce]})}}return t})();$l=class extends Ff{constructor(n=null,e,i){super(pM(e),mM(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(eM(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){JI(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){JI(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){eM(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},OB=t=>t instanceof $l,kB={provide:Pi,useExisting:gr(()=>Hl)},tM=Promise.resolve(),Hl=(()=>{class t extends Pi{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new $l,this._registered=!1,this.name="",this.update=new V,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=bM(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),yM(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){zl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Ie(i);tM.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?wB(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(h(Ro,9),h(Vf,10),h(Bf,10),h(Ty,10),h(Be,8),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bt([kB]),Ce,He]})}}return t})(),xM=new C(""),FB={provide:Pi,useExisting:gr(()=>Ny)},Ny=(()=>{class t extends Pi{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new V,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=bM(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&Lf(i,this,!1),zl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}yM(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Lf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(Ty,10),h(xM,8),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[bt([FB]),Ce,He]})}}return t})(),NB={provide:Ro,useExisting:gr(()=>Ly)},Ly=(()=>{class t extends Ro{get submitted(){return wn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Ri(()=>this._submittedReactive()),this._submittedReactive=Si(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new V,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(jf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return zl(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Lf(e.control||null,e,!1),TB(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),_M(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Sy(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Ay(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Lf(i||null,e),OB(r)&&(zl(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);vM(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&SB(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ky(this.form,this),this._oldForm&&jf(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||t)(h(Vf,10),h(Bf,10),h(ea,8))}}static{this.\u0275dir=j({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&K("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bt([NB]),Ce,He]})}}return t})(),CM=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),$f=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ea,useValue:e.callSetDisabledState??zf}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[CM]})}}return t})(),wM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xM,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ea,useValue:e.callSetDisabledState??zf}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[CM]})}}return t})()});function LB(){if(Gl==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gl=!0}))}finally{Gl=Gl||!1}return Gl}function ti(t){return LB()?t:!!t.capture}function Wf(){if(Oo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Oo=!1,Oo;if("scrollBehavior"in document.documentElement.style)Oo=!0;else{let t=Element.prototype.scrollTo;t?Oo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Oo=!1}}return Oo}function ta(){if(typeof document!="object"||!document)return Nn.NORMAL;if(Gf==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Gf=Nn.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Gf=t.scrollLeft===0?Nn.NEGATED:Nn.INVERTED),t.remove()}return Gf}function PB(){if(Py==null){let t=typeof document<"u"?document.head:null;Py=!!(t&&(t.createShadowRoot||t.attachShadow))}return Py}function EM(t){if(PB()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Wl(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function an(t){return t.composedPath?t.composedPath()[0]:t.target}function ql(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var jy,Fe,Gl,Nn,Gf,Oo,Py,Pt=f(()=>{"use strict";M();M();we();try{jy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jy=!1}Fe=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Xn(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||jy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(g(yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Nn=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Nn||{})});function St(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Vi=f(()=>{"use strict"});function na(t){return t!=null&&`${t}`!="false"}function Rr(t,n=0){return jB(t)?Number(t):arguments.length===2?n:0}function jB(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ia(t){return Array.isArray(t)?t:[t]}function dt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Bi(t){return t instanceof F?t.nativeElement:t}var Ui=f(()=>{"use strict";M()});var VB,qf,Vy=f(()=>{"use strict";M();VB=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qf=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[VB]})}}return t})()});function UB(t,n){if(!DM.has(t))try{ko||(ko=document.createElement("style"),n&&ko.setAttribute("nonce",n),ko.setAttribute("type","text/css"),document.head.appendChild(ko)),ko.sheet&&(ko.sheet.insertRule(`@media ${t} {body{ }}`,0),DM.add(t))}catch(e){console.error(e)}}function zB(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}function IM(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var DM,ko,BB,MM,SM=f(()=>{"use strict";M();M();Ui();ke();st();Pt();DM=new Set,BB=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zB}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&UB(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();MM=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new R}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return IM(ia(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=IM(ia(e)).map(s=>this._registerQuery(s).observable),o=so(r);return o=Xt(o.pipe(Te(1)),o.pipe(nl(1),vi(0))),o.pipe(P(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Q(s=>{let a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(wt(i),P(({matches:s})=>({query:e,matches:s})),ae(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||t)(g(BB),g(k))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function Wy(t,n,e){let i=Zf(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(kM)))}function th(t,n,e){let i=Zf(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(kM)):t.removeAttribute(n)}function Zf(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}function By(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function AM(t,n){t.id||(t.id=`${FM}-${n}-${zy++}`)}function i2(t){try{return t.frameElement}catch{return null}}function r2(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function o2(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function s2(t){return l2(t)&&t.type=="hidden"}function a2(t){return c2(t)&&t.hasAttribute("href")}function l2(t){return t.nodeName.toLowerCase()=="input"}function c2(t){return t.nodeName.toLowerCase()=="a"}function LM(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function TM(t){if(!LM(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function d2(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function u2(t){return s2(t)?!1:o2(t)||a2(t)||t.hasAttribute("contenteditable")||LM(t)}function f2(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}function Kl(t){return t.buttons===0||t.detail===0}function Ql(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}function v2(){return null}var kM,FM,Yf,zy,NM,n2,$y,Xf,Jf,eh,Yl,Hy,nh,h2,p2,PM,ra,m2,g2,y2,_2,jM,Qf,b2,Kf,Ln,Fo,RM,OM,Uy,qy,ih,ln=f(()=>{"use strict";we();M();M();Pt();Pt();Vi();ke();st();Vy();Ui();SM();kM=" ";FM="cdk-describedby-message",Yf="cdk-describedby-host",zy=0,NM=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${zy++}`,this._document=e,this._id=y(yl)+"-"+zy++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=By(i,r);typeof i!="string"?(AM(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=By(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let s=this._messageRegistry.get(o);s&&s.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Yf}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Yf);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let r=this._document.createElement("div");AM(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(By(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){let i=Zf(e,"aria-describedby").filter(r=>r.indexOf(FM)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Wy(e,"aria-describedby",r.messageElement.id),e.setAttribute(Yf,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,th(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Yf)}_isElementDescribedByMessage(e,i){let r=Zf(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&r.indexOf(s)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();n2=200,$y=class{constructor(n,e){this._letterKeyStream=new R,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new R,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:n2;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Pe(e=>this._pressedLetters.push(e)),vi(n),ue(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let r=(this._selectedItemIndex+i)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}},Xf=class{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=Si(null),this._wrap=!1,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this.tabOut=new R,this.change=new R,n instanceof fr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Xu(n)&&(this._effectRef=zv(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new $y(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}else return;default:(r||St(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem.set(r??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return Xu(this._items)?this._items():this._items instanceof fr?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},Jf=class extends Xf{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}},eh=class extends Xf{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}},Yl=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return r2(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=i2(f2(e));if(i&&(TM(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=TM(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!d2(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return u2(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Hy=class{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1,s){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?on(n,{injector:this._injector}):setTimeout(n)}},nh=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._injector=y(De),this._document=r}create(e,i=!1){return new Hy(e,this._checker,this._ngZone,this._document,i,this._injector)}static{this.\u0275fac=function(i){return new(i||t)(g(Yl),g(k),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();h2=new C("cdk-input-modality-detector-options"),p2={ignoreKeys:[18,17,224,91,16]},PM=650,ra=ti({passive:!0,capture:!0}),m2=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ot(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=an(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<PM||(this._modality.next(Kl(s)?"keyboard":"mouse"),this._mostRecentTarget=an(s))},this._onTouchstart=s=>{if(Ql(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=an(s)},this._options=x(x({},p2),o),this.modalityDetected=this._modality.pipe(nl(1)),this.modalityChanged=this.modalityDetected.pipe(co()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ra),r.addEventListener("mousedown",this._onMousedown,ra),r.addEventListener("touchstart",this._onTouchstart,ra)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ra),document.removeEventListener("mousedown",this._onMousedown,ra),document.removeEventListener("touchstart",this._onTouchstart,ra))}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(k),g(B),g(h2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),g2=new C("liveAnnouncerElement",{providedIn:"root",factory:v2});y2=new C("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),_2=0,jM=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,s;return i.length===1&&typeof i[0]=="number"?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${_2++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],s=o.getAttribute("aria-owns");s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(i){return new(i||t)(g(g2,8),g(k),g(B),g(y2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Qf=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Qf||{}),b2=new C("cdk-focus-monitor-default-options"),Kf=ti({passive:!0,capture:!0}),Ln=(()=>{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new R,this._rootNodeFocusAndBlurListener=a=>{let l=an(a);for(let c=l;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||Qf.IMMEDIATE}monitor(e,i=!1){let r=Bi(e);if(!this._platform.isBrowser||r.nodeType!==1)return O();let o=EM(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new R,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Bi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Bi(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Qf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Qf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?PM:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=an(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Kf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Kf)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ae(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Kf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Kf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(i))return!0}return!1}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(Fe),g(m2),g(B,8),g(b2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fo=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Fo||{}),RM="cdk-high-contrast-black-on-white",OM="cdk-high-contrast-white-on-black",Uy="cdk-high-contrast-active",qy=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=y(MM).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fo.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fo.BLACK_ON_WHITE}return Fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Uy,RM,OM),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Fo.BLACK_ON_WHITE?e.add(Uy,RM):i===Fo.WHITE_ON_BLACK&&e.add(Uy,OM)}}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ih=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(g(qy))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[qf]})}}return t})()});function C2(){return y(B)}function E2(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?w2.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var x2,w2,xt,ni,cn=f(()=>{"use strict";M();M();we();x2=new C("cdk-dir-doc",{providedIn:"root",factory:C2});w2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;xt=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new V,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=E2(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(g(x2,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ni=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});function S2(t,n){if(t&1&&oe(0,"mat-pseudo-checkbox",1),t&2){let e=$();A("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function A2(t,n){if(t&1&&oe(0,"mat-pseudo-checkbox",3),t&2){let e=$();A("disabled",e.disabled)}}function T2(t,n){if(t&1&&(D(0,"span",4),le(1),T()),t&2){let e=$();w(),it("(",e.group.label,")")}}function R2(){return!0}function F2(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}function KM(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;s<t+1;s++)i[s].group&&i[s].group===r[o]&&o++;return o}return 0}function QM(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}var D2,I2,M2,O2,We,oh,qM,Dn,Qy,VM,Zy,BM,k2,UM,zM,$M,Xy,YM,sh,Zl,N2,L2,e_,t_,P2,Jy,fa,n_,HM,GM,Yy,Ky,WM,rh,ZM,In=f(()=>{"use strict";M();M();ln();ln();cn();we();Pt();Pt();Ui();ke();Vi();D2=["text"],I2=[[["mat-icon"]],"*"],M2=["mat-icon","*"];O2=new C("mat-sanity-checks",{providedIn:"root",factory:R2}),We=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ql()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(g(qy),g(O2,8),g(B))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ni,ni]})}}return t})(),oh=class{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}},qM=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Dn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dn||{}),Qy=class{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=Dn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},VM=ti({passive:!0,capture:!0}),Zy=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=an(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){let o=this._events.get(e);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,VM)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,VM)))}},BM={enterDuration:225,exitDuration:150},k2=800,UM=ti({passive:!0,capture:!0}),zM=["mousedown","touchstart"],$M=["mouseup","mouseleave","touchend","touchcancel"],Xy=class t{static{this._eventManager=new Zy}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bi(i))}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=x(x({},BM),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let s=i.radius||F2(n,e,r),a=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${l-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),m=u.transitionProperty,p=u.transitionDuration,v=m==="none"||p==="0s"||p==="0s, 0s"||r.width===0&&r.height===0,_=new Qy(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",_.state=Dn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=_);let E=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>{E&&(E.fallbackTimer=null),clearTimeout(H),this._finishRippleTransition(_)},U=()=>this._destroyRipple(_),H=setTimeout(U,c+100);d.addEventListener("transitionend",I),d.addEventListener("transitioncancel",U),E={onTransitionEnd:I,onTransitionCancel:U,fallbackTimer:H}}),this._activeRipples.set(_,E),(v||!c)&&this._finishRippleTransition(_),_}fadeOutRipple(n){if(n.state===Dn.FADING_OUT||n.state===Dn.HIDDEN)return;let e=n.element,i=x(x({},BM),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Bi(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,zM.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$M.forEach(e=>{this._triggerElement.addEventListener(e,this,UM)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dn.FADING_IN?this._startFadeOutTransition(n):n.state===Dn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dn.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dn.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Kl(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+k2;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!Ql(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===Dn.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dn.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(zM.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&($M.forEach(e=>n.removeEventListener(e,this,UM)),this._pointerUpEventsRegistered=!1))}};YM=new C("mat-ripple-global-options"),sh=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Xy(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:x(x(x({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,x(x({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,x(x({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(Fe),h(YM,8),h(at,8))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Zl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,We]})}}return t})(),N2=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&fe("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Se],decls:0,vars:0,template:function(i,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),L2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We]})}}return t})(),e_=new C("MAT_OPTION_PARENT_COMPONENT"),t_=new C("MatOptgroup"),P2=0,Jy=class{constructor(n,e=!1){this.source=n,this.isUserInput=e}},fa=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${P2++}`,this.onSelectionChange=new V,this._stateChanges=new R}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!St(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Jy(this,e))}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Be),h(e_,8),h(t_,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&Ve(D2,7),i&2){let o;he(o=pe())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&K("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),i&2&&(_r("id",r.id),_e("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),fe("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ie]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[lt,Se],ngContentSelectors:M2,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(Lt(I2),ee(0,S2,1,2,"mat-pseudo-checkbox",1),je(1),D(2,"span",2,0),je(4,1),T(),ee(5,A2,1,1,"mat-pseudo-checkbox",3)(6,T2,2,1,"span",4),oe(7,"div",5)),i&2&&(nt(r.multiple?0:-1),w(5),nt(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),w(),nt(r.group&&r.group._inert?6:-1),w(),A("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[N2,sh],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();n_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Zl,We,L2]})}}return t})(),HM={capture:!0},GM=["focus","mousedown","mouseenter","touchstart"],Yy="mat-ripple-loader-uninitialized",Ky="mat-ripple-loader-class-name",WM="mat-ripple-loader-centered",rh="mat-ripple-loader-disabled",ZM=(()=>{class t{constructor(){this._document=y(B,{optional:!0}),this._animationMode=y(at,{optional:!0}),this._globalRippleOptions=y(YM,{optional:!0}),this._platform=y(Fe),this._ngZone=y(k),this._hosts=new Map,this._onInteraction=e=>{let i=an(e);if(i instanceof HTMLElement){let r=i.closest(`[${Yy}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(let e of GM)this._document?.addEventListener(e,this._onInteraction,HM)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of GM)this._document?.removeEventListener(i,this._onInteraction,HM)}configureRipple(e,i){e.setAttribute(Yy,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ky))&&e.setAttribute(Ky,i.className||""),i.centered&&e.setAttribute(WM,""),i.disabled&&e.setAttribute(rh,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(rh,""):e.removeAttribute(rh)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Ky)),e.append(r);let o=new sh(new F(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(WM),o.disabled=e.hasAttribute(rh),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(Yy),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var j2,V2,B2,U2,z2,$2,H2,G2,XM,ah,Or,ha,ii=f(()=>{"use strict";Pt();M();M();ln();In();j2=["mat-button",""],V2=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],B2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],U2=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",z2=["mat-icon-button",""],$2=["*"],H2=new C("MAT_BUTTON_CONFIG"),G2=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],XM=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=y(Ln),this._rippleLoader=y(ZM),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=y(H2,{optional:!0}),a=e.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:d}of G2)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){js()}}static{this.\u0275dir=j({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ie],disabled:[2,"disabled","disabled",Ie],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ie],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ie]},features:[lt]})}}return t})(),ah=(()=>{class t extends XM{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Fe),h(k),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(_e("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ai(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ce,Se],attrs:j2,ngContentSelectors:B2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Lt(V2),oe(0,"span",0),je(1),D(2,"span",1),je(3,1),T(),je(4,2),oe(5,"span",2)(6,"span",3)),i&2&&fe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),Or=(()=>{class t extends XM{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Fe),h(k),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(_e("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ai(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ce,Se],attrs:z2,ngContentSelectors:$2,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Lt(),oe(0,"span",0),je(1),oe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',U2],encapsulation:2,changeDetection:0})}}return t})(),ha=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,Zl,We]})}}return t})()});function q2(){if(lh===void 0&&(lh=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(lh=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return lh}function Jl(t){return q2()?.createHTML(t)||t}function JM(t){return Error(`Unable to find icon with the name "${t}"`)}function Y2(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function eS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function tS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}function ch(t){return t.cloneNode(!0)}function nS(t,n){return t+":"+n}function K2(t){return!!(t.url&&t.options)}function X2(){let t=y(B),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var W2,lh,zi,r_,Q2,Z2,iS,J2,eU,kr,dh,Fr=f(()=>{"use strict";M();M();In();we();ke();st();Al();Gs();W2=["*"];zi=class{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},r_=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new zi(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let s=this._sanitizer.sanitize(Mt.HTML,r);if(!s)throw tS(r);let a=Jl(s);return this._addSvgIconConfig(e,i,new zi("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new zi(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(Mt.HTML,i);if(!o)throw tS(i);let s=Jl(o);return this._addSvgIconSetConfig(e,new zi("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Mt.RESOURCE_URL,e);if(!i)throw eS(e);let r=this._cachedIconsByUrl.get(i);return r?O(ch(r)):this._loadSvgIconFromConfig(new zi(e,null)).pipe(Pe(o=>this._cachedIconsByUrl.set(i,o)),P(o=>ch(o)))}getNamedSvgIcon(e,i=""){let r=nS(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):nr(JM(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?O(ch(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(P(i=>ch(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return O(r);let o=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(en(a=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Mt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),O(null)})));return lo(o).pipe(P(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw JM(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Pe(i=>e.svgText=i),P(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?O(null):this._fetchIcon(e).pipe(Pe(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let a=this._svgElementFromString(Jl("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(Jl("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:s,value:a}=r[o];s!=="id"&&i.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){let{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw Y2();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let s=this._sanitizer.sanitize(Mt.RESOURCE_URL,i);if(!s)throw eS(i);let a=this._inProgressUrlFetches.get(s);if(a)return a;let l=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(P(c=>Jl(c)),Wt(()=>this._inProgressUrlFetches.delete(s)),tl());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(nS(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](i,e);if(o)return K2(o)?new zi(o.url,null,o.options):new zi(o,null)}}static{this.\u0275fac=function(i){return new(i||t)(g(Dr,8),g(kl),g(B,8),g(Yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Q2=new C("MAT_ICON_DEFAULT_OPTIONS"),Z2=new C("mat-icon-location",{providedIn:"root",factory:X2});iS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],J2=iS.map(t=>`[${t}]`).join(", "),eU=/^url\(['"]?#(.*?)['"]?\)$/,kr=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,s,a){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ge.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(J2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)iS.forEach(s=>{let a=i[o],l=a.getAttribute(s),c=l?l.match(eU):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Te(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(r_),yr("aria-hidden"),h(Z2),h(Yt),h(Q2,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(_e("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Ai(r.color?"mat-"+r.color:""),fe("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ie],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[lt,Se],ngContentSelectors:W2,decls:1,vars:0,template:function(i,r){i&1&&(Lt(),je(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return t})(),dh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,We]})}}return t})()});var rS,oS=f(()=>{"use strict";Al();M();M();rS=(()=>{class t{#e=y(Dr);play(e,i){return this.#e.get(`https://services.tilde.com/service/tts?system=${i.voice}&text=${e}`,{responseType:"blob"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function nU(t,n){if(t&1&&(Do(),D(0,"svg",11),oe(1,"circle",12),T()),t&2){let e=$();_e("viewBox",e._viewBox()),w(),Mo("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),_e("r",e._circleRadius())}}function rU(){return{diameter:sS}}var tU,iU,sS,oU,fh,aS,hh=f(()=>{"use strict";M();M();we();In();tU=["determinateSpinner"];iU=new C("mat-progress-spinner-default-options",{providedIn:"root",factory:rU});sS=100,oU=10,fh=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,i,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=sS,this._noopAnimations=i==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-oU)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(at,8),h(iU))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&Ve(tU,5),i&2){let o;he(o=pe())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(_e("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Ai("mat-"+r.color),Mo("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),fe("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Ti],diameter:[2,"diameter","diameter",Ti],strokeWidth:[2,"strokeWidth","strokeWidth",Ti]},exportAs:["matProgressSpinner"],standalone:!0,features:[lt,Se],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,r){if(i&1&&(ee(0,nU,2,8,"ng-template",null,0,Ao),D(2,"div",2,1),Do(),D(4,"svg",3),oe(5,"circle",4),T()(),rE(),D(6,"div",5)(7,"div",6)(8,"div",7),wl(9,8),T(),D(10,"div",9),wl(11,8),T(),D(12,"div",10),wl(13,8),T()()()),i&2){let o=Cn(1);w(4),_e("viewBox",r._viewBox()),w(),Mo("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),_e("r",r._circleRadius()),w(4),A("ngTemplateOutlet",o),w(2),A("ngTemplateOutlet",o),w(2),A("ngTemplateOutlet",o)}},dependencies:[gf],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}}return t})(),aS=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,We]})}}return t})()});var ph,lS=f(()=>{"use strict";ke();ph=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new R,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}}});var aU,pa,o_,lU,ma,Nr,s_,$i=f(()=>{"use strict";Ui();M();ke();st();Pt();Pt();we();cn();cn();aU=20,pa=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new R,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=aU){return this._platform.isBrowser?new Q(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(Ld(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):O()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ue(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Bi(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return gi(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(Fe),g(B,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),o_=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new R,this._elementScrolled=new Q(s=>this.ngZone.runOutsideAngular(()=>gi(this.elementRef.nativeElement,"scroll").pipe(ae(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&ta()!=Nn.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),ta()==Nn.INVERTED?e.left=e.right:ta()==Nn.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Wf()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?r:i:e=="end"&&(e=s?i:r),s&&ta()==Nn.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&ta()==Nn.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(pa),h(k),h(xt,8))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return t})(),lU=20,ma=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new R,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=lU){return e>0?this._change.pipe(Ld(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||t)(g(Fe),g(k),g(B,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Nr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})(),s_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ni,Nr,ni,Nr]})}}return t})()});var ec,Lr,Hi,l_,ga,tc,nc,Lo,va=f(()=>{"use strict";M();M();we();ec=class{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Lr=class extends ec{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Hi=class extends ec{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},l_=class extends ec{constructor(n){super(),this.element=n instanceof F?n.nativeElement:n}},ga=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Lr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Hi)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof l_)return this._attachedPortal=n,this.attachDomPortal(n)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},tc=class extends ga{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){let i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||De.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},nc=(()=>{class t extends ga{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new V,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(h(Kt),h(_t),h(B))}}static{this.\u0275dir=j({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Ce]})}}return t})(),Lo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});function u_(t,n){return n.some(e=>{let i=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,s=t.left>e.right;return i||r||o||s})}function dS(t,n){return n.some(e=>{let i=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,s=t.right>e.right;return i||r||o||s})}function uS(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}function Po(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function hS(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(fU);return!e||e==="px"?parseFloat(n):null}return t||null}function pS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function hU(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}function vU(t){return()=>t.scrollStrategies.reposition()}var cS,c_,d_,mh,f_,cU,Pr,h_,gS,dU,uU,ya,Gi,fS,fU,p_,mS,m_,pU,mU,Qe,gU,vS,ic,g_,yU,ri,oi=f(()=>{"use strict";$i();$i();$i();we();we();M();M();Ui();Pt();Pt();st();cn();cn();va();ke();Vi();cS=Wf(),c_=class{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=dt(-this._previousScrollPosition.left),n.style.top=dt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),cS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),cS&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}},d_=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ue(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},mh=class{enable(){}disable(){}attach(){}};f_=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();u_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},cU=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mh,this.close=s=>new d_(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new c_(this._viewportRuler,this._document),this.reposition=s=>new f_(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(i){return new(i||t)(g(pa),g(ma),g(k),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pr=class{constructor(n){if(this.scrollStrategy=new mh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}},h_=class{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}},gS=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dU=(()=>{class t extends gS{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(k,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uU=(()=>{class t extends gS{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=an(o)},this._clickListener=o=>{let s=an(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){let d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(uS(d.overlayElement,s)||uS(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe),g(k,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();ya=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||ql()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let i=this._document.createElement("div");i.classList.add(e),ql()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Fe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Gi=class{constructor(n,e,i,r,o,s,a,l,c,d=!1,u){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=u,this._backdropElement=null,this._backdropClick=new R,this._attachments=new R,this._detachments=new R,this._locationChanges=ge.EMPTY,this._backdropClickHandler=m=>this._backdropClick.next(m),this._backdropTransitionendHandler=m=>{this._disposeBackdrop(m.target)},this._keydownEvents=new R,this._outsidePointerEvents=new R,this._renders=new R,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=wn(()=>Cl(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=on(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=x(x({},this._config),n),this._updateElementSize()}setDirection(n){this._config=ne(x({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=dt(this._config.width),n.height=dt(this._config.height),n.minWidth=dt(this._config.minWidth),n.minHeight=dt(this._config.minHeight),n.maxWidth=dt(this._config.maxWidth),n.maxHeight=dt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let n=this._backdropElement;if(n){if(this._animationsDisabled){this._disposeBackdrop(n);return}n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){let r=ia(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(ae(ft(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},fS="cdk-overlay-connected-position-bounding-box",fU=/([A-Za-z%]+)$/,p_=class{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new R,this._resizeSubscription=ge.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(fS),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(o.length){let a=null,l=-1;for(let c of o){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r=i.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=pS(e),{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let d=0-s,u=s+o.width-i.width,m=0-a,p=a+o.height-i.height,v=this._subtractOverflows(o.width,d,u),_=this._subtractOverflows(o.height,m,p),E=v*_;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:_===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,s=hS(this._overlayRef.getConfig().minHeight),a=hS(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||s!=null&&s<=r,c=n.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=pS(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,u=0;return r.width<=o.width?d=c||-s:d=n.x<this._viewportMargin?o.left-i.left-n.x:0,r.height<=o.height?u=l||-a:u=n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:d,y:u},{x:n.x+d,y:n.y+u}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!hU(this._lastScrollVisibility,i)){let r=new h_(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=n.overlayY;n.overlayX==="center"?i="center":this._isRtl()?i=n.overlayX==="start"?"right":"left":i=n.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){let i=this._viewportRect,r=this._isRtl(),o,s,a;if(e.overlayY==="top")s=n.y,o=i.height-s+this._viewportMargin;else if(e.overlayY==="bottom")a=i.height-n.y+this._viewportMargin*2,o=i.height-a+this._viewportMargin;else{let p=Math.min(i.bottom-n.y+i.top,n.y),v=this._lastBoundingBoxSize.height;o=p*2,s=n.y-p,o>v&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,m;if(c)m=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)u=n.x,d=i.right-n.x;else{let p=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=p*2,u=n.x-p,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-v/2)}return{top:s,left:u,bottom:a,right:m,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=dt(i.height),r.top=dt(i.top),r.bottom=dt(i.bottom),r.width=dt(i.width),r.left=dt(i.left),r.right=dt(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=dt(o)),s&&(r.maxWidth=dt(s))}this._lastBoundingBoxSize=i,Po(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();Po(i,this._getExactOverlayY(e,n,d)),Po(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=dt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=dt(s.maxWidth):o&&(i.maxWidth="")),Po(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=dt(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=n.overlayX==="end"?"left":"right":s=n.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=dt(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dS(n,i),isOriginOutsideView:u_(n,i),isOverlayClipped:dS(e,i),isOverlayOutsideView:u_(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&ia(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof F)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};mS="cdk-global-overlay-wrapper",m_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(mS),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,m=this._overlayRef.getConfig().direction==="rtl",p="",v="",_="";l?_="flex-start":d==="center"?(_="center",m?v=u:p=u):m?d==="left"||d==="end"?(_="flex-end",p=u):(d==="right"||d==="start")&&(_="flex-start",v=u):d==="left"||d==="start"?(_="flex-start",p=u):(d==="right"||d==="end")&&(_="flex-end",v=u),n.position=this._cssPosition,n.marginLeft=l?"0":p,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=_,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(mS),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},pU=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new m_}flexibleConnectedTo(e){return new p_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(g(ma),g(B),g(Fe),g(ya))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mU=0,Qe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,d,u,m,p){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=m,this._animationsModuleType=p}create(e){let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Pr(e);return s.direction=s.direction||this._directionality.value,new Gi(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Dt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${mU++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(sn)),new tc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(cU),g(ya),g(Kt),g(pU),g(dU),g(De),g(k),g(B),g(xt),g(Zn),g(uU),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],vS=new C("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}}),ic=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(h(F))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return t})(),g_=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=ge.EMPTY,this._attachSubscription=ge.EMPTY,this._detachSubscription=ge.EMPTY,this._positionSubscription=ge.EMPTY,this._disposeOnNavigation=!1,this._ngZone=y(k),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new V,this.positionChange=new V,this.attach=new V,this.detach=new V,this.overlayKeydown=new V,this.overlayOutsideClick=new V,this._templatePortal=new Hi(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gU);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!St(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=an(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Pr({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof ic?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof ic?this.origin.elementRef.nativeElement:this.origin instanceof F?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Dm(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(Nt),h(_t),h(vS),h(xt,8))}}static{this.\u0275dir=j({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ie],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ie],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ie],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ie],push:[2,"cdkConnectedOverlayPush","push",Ie],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ie]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[lt,He]})}}return t})();yU={provide:vS,deps:[Qe],useFactory:vU},ri=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Qe,yU],imports:[ni,Lo,s_,s_]})}}return t})()});function Vr(t,n){return{type:ce.Trigger,name:t,definitions:n,options:{}}}function qi(t,n=null){return{type:ce.Animate,styles:n,timings:t}}function yS(t,n=null){return{type:ce.Sequence,steps:t,options:n}}function jt(t){return{type:ce.Style,styles:t,offset:null}}function jo(t,n,e){return{type:ce.State,name:t,styles:n,options:e}}function ai(t,n,e=null){return{type:ce.Transition,expr:t,animation:n,options:e}}function _S(t=null){return{type:ce.AnimateChild,options:t}}function bS(t,n,e=null){return{type:ce.Query,selector:t,animation:n,options:e}}var ce,si,jr,rc,vh,oc=f(()=>{"use strict";ce=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ce||{}),si="*";jr=class{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},rc=class{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},vh="!"});function bU(t){return()=>t.scrollStrategies.reposition({scrollThrottle:wS})}function CU(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var _U,wS,ES,xU,wU,xS,CS,EU,DU,IU,MU,li,SU,_a,Yi=f(()=>{"use strict";st();Ui();Vi();M();M();we();Pt();Pt();ln();ln();cn();oi();oi();va();ke();$i();In();_U=["tooltip"],wS=20,ES=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition({scrollThrottle:wS})}});xU={provide:ES,deps:[Qe],useFactory:bU};wU=new C("mat-tooltip-default-options",{providedIn:"root",factory:CU}),xS="tooltip-panel",CS=ti({passive:!0}),EU=8,DU=8,IU=24,MU=200,li=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=na(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=na(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Rr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Rr(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,s,a,l,c,d,u,m,p){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=m,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=SU,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new R,this._injector=y(De),this._scrollStrategy=d,this._document=p,m&&(this._showDelay=m.showDelay,this._hideDelay=m.hideDelay,m.position&&(this.position=m.position),m.positionAtOrigin&&(this.positionAtOrigin=m.positionAtOrigin),m.touchGestures&&(this.touchGestures=m.touchGestures),m.tooltipClass&&(this.tooltipClass=m.tooltipClass)),u.change.pipe(ae(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=EU}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ae(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,CS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Lr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(ae(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof F)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(ae(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${xS}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ae(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ae(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ae(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!St(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(x(x({},r.main),o.main)),this._addOffset(x(x({},r.fallback),o.fallback))])}_addOffset(e){let i=DU,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),on(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,s;if(i==="center"?this._dir&&this._dir.value==="rtl"?s=r==="end"?"left":"right":s=r==="start"?"left":"right":s=i==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let a=this._overlayRef;if(a){let l=`${this._cssClassPrefix}-${xS}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,CS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(F),h(pa),h(_t),h(k),h(Fe),h(NM),h(Ln),h(ES),h(xt),h(wU,8),h(B))}}static{this.\u0275dir=j({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return t})(),SU=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=r==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>IU&&e.width>=MU}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(i);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(i){return new(i||t)(h(Be),h(F),h(at,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&Ve(_U,7),i&2){let o;he(o=pe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&K("mouseleave",function(s){return r._handleMouseLeave(s)})},standalone:!0,features:[Se],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1,0),K("animationend",function(a){return ve(o),ye(r._handleAnimationEnd(a))}),D(2,"div",2),le(3),T()()}i&2&&(fe("mdc-tooltip--multiline",r._isMultiline),A("ngClass",r.tooltipClass),w(3),pt(r.message))},dependencies:[br],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return t})(),_a=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[xU],imports:[ih,ct,ri,We,We,Nr]})}}return t})()});var v_,DS,IS=f(()=>{"use strict";M();M();ke();st();v_=class{constructor(n){this._box=n,this._destroyed=new R,this._resizeSubject=new R,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Q(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ue(e=>e.some(i=>i.target===n)),uo({bufferSize:1,refCount:!0}),ae(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},DS=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=y(k),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new v_(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function VU(t,n){t&1&&oe(0,"span",21)}function BU(t,n){if(t&1&&(D(0,"label",20),je(1,1),ee(2,VU,1,0,"span",21),T()),t&2){let e=$(2);A("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),_e("for",e._control.disableAutomaticLabeling?null:e._control.id),w(2),nt(!e.hideRequiredMarker&&e._control.required?2:-1)}}function UU(t,n){if(t&1&&ee(0,BU,3,5,"label",20),t&2){let e=$();nt(e._hasFloatingLabel()?0:-1)}}function zU(t,n){t&1&&oe(0,"div",7)}function $U(t,n){}function HU(t,n){if(t&1&&ee(0,$U,0,0,"ng-template",13),t&2){$(2);let e=Cn(1);A("ngTemplateOutlet",e)}}function GU(t,n){if(t&1&&(D(0,"div",9),ee(1,HU,1,1,null,13),T()),t&2){let e=$();A("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),w(),nt(e._forceDisplayInfixLabel()?-1:1)}}function WU(t,n){t&1&&(D(0,"div",10,2),je(2,2),T())}function qU(t,n){t&1&&(D(0,"div",11,3),je(2,3),T())}function YU(t,n){}function KU(t,n){if(t&1&&ee(0,YU,0,0,"ng-template",13),t&2){$();let e=Cn(1);A("ngTemplateOutlet",e)}}function QU(t,n){t&1&&(D(0,"div",14,4),je(2,4),T())}function ZU(t,n){t&1&&(D(0,"div",15,5),je(2,5),T())}function XU(t,n){t&1&&oe(0,"div",16)}function JU(t,n){if(t&1&&(D(0,"div",18),je(1,6),T()),t&2){let e=$();A("@transitionMessages",e._subscriptAnimationState)}}function ez(t,n){if(t&1&&(D(0,"mat-hint",22),le(1),T()),t&2){let e=$(2);A("id",e._hintLabelId),w(),pt(e.hintLabel)}}function tz(t,n){if(t&1&&(D(0,"div",19),ee(1,ez,2,2,"mat-hint",22),je(2,7),oe(3,"div",23),je(4,8),T()),t&2){let e=$();A("@transitionMessages",e._subscriptAnimationState),w(),nt(e.hintLabel?1:-1)}}function sz(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var AU,TU,RU,OU,kU,FU,NU,LU,PU,jU,ba,nz,iz,MS,rz,oz,NS,SS,AS,yh,TS,RS,az,y_,__,lz,OS,kS,cz,FS,dz,_h,bh,ac=f(()=>{"use strict";M();M();cn();Ui();Pt();we();ke();st();IS();oc();Vy();In();AU=["notch"],TU=["matFormFieldNotchedOutline",""],RU=["*"],OU=["textField"],kU=["iconPrefixContainer"],FU=["textPrefixContainer"],NU=["iconSuffixContainer"],LU=["textSuffixContainer"],PU=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jU=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];ba=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["mat-label"]],standalone:!0})}}return t})(),nz=new C("MatError"),iz=0,MS=(()=>{class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${iz++}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(_r("id",r.id),_e("align",null),fe("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return t})(),rz=new C("MatPrefix"),oz=new C("MatSuffix"),NS=new C("FloatingLabelParent"),SS=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=y(DS),this._ngZone=y(k),this._parent=y(NS),this._resizeSubscription=new ge}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return sz(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(i){return new(i||t)(h(F))}}static{this.\u0275dir=j({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return t})();AS="mdc-line-ripple--active",yh="mdc-line-ripple--deactivating",TS=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,s=o.contains(yh);r.propertyName==="opacity"&&s&&o.remove(AS,yh)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(yh),e.add(AS)}deactivate(){this._elementRef.nativeElement.classList.add(yh)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k))}}static{this.\u0275dir=j({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return t})(),RS=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k))}}static{this.\u0275cmp=re({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&Ve(AU,5),i&2){let o;he(o=pe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Se],attrs:TU,ngContentSelectors:RU,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(Lt(),oe(0,"div",1),D(1,"div",2,0),je(3),T(),oe(4,"div",3))},encapsulation:2,changeDetection:0})}}return t})(),az={transitionMessages:Vr("transitionMessages",[jo("enter",jt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[jt({opacity:0,transform:"translateY(-5px)"}),qi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},y_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t})}}return t})(),__=new C("MatFormField"),lz=new C("MAT_FORM_FIELD_DEFAULT_OPTIONS"),OS=0,kS="fill",cz="auto",FS="fixed",dz="translateY(-50%)",_h=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=na(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||cz}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||kS;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||FS}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||FS}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=l,this._labelChild=OD(ba),this._hideRequiredMarker=!1,this.color="primary",this._appearance=kS,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${OS++}`,this._hintLabelId=`mat-mdc-hint-${OS++}`,this._subscriptAnimationState="",this._destroyed=new R,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=y(De),this.getLabelId=Ri(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Ri(()=>!!this._labelChild()),a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(ae(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Cl(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ae(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=s?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",m=`${a+l}px`,v=`calc(${u} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
9
9
  --mat-mdc-form-field-label-transform,
10
- ${lz} translateX(${v})
11
- )`;let _=a+l+c+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${_}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Be),h(k),h(xt),h(Fe),h(sz,8),h(at,8),h(B))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(JD(o,r._labelChild,ba,5),$t(o,y_,5),$t(o,nz,5),$t(o,iz,5),$t(o,ez,5),$t(o,MS,5)),i&2){eI();let s;he(s=pe())&&(r._formFieldControl=s.first),he(s=pe())&&(r._prefixChildren=s),he(s=pe())&&(r._suffixChildren=s),he(s=pe())&&(r._errorChildren=s),he(s=pe())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(i&1&&(Ve(TU,5),Ve(RU,5),Ve(OU,5),Ve(kU,5),Ve(FU,5),Ve(SS,5),Ve(RS,5),Ve(TS,5)),i&2){let o;he(o=pe())&&(r._textField=o.first),he(o=pe())&&(r._iconPrefixContainer=o.first),he(o=pe())&&(r._textPrefixContainer=o.first),he(o=pe())&&(r._iconSuffixContainer=o.first),he(o=pe())&&(r._textSuffixContainer=o.first),he(o=pe())&&(r._floatingLabel=o.first),he(o=pe())&&(r._notchedOutline=o.first),he(o=pe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){i&2&&fe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[bt([{provide:__,useExisting:t},{provide:NS,useExisting:t}]),Se],ngContentSelectors:LU,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=Ge();Lt(NU),ee(0,VU,1,1,"ng-template",null,0,Ao),D(2,"div",6,1),K("click",function(a){return ve(o),ye(r._control.onContainerClick(a))}),ee(4,BU,1,0,"div",7),D(5,"div",8),ee(6,$U,2,2,"div",9)(7,HU,3,0,"div",10)(8,GU,3,0,"div",11),D(9,"div",12),ee(10,qU,1,1,null,13),je(11),T(),ee(12,YU,3,0,"div",14)(13,KU,3,0,"div",15),T(),ee(14,QU,1,0,"div",16),T(),D(15,"div",17),ee(16,ZU,2,1,"div",18)(17,JU,5,2,"div",19),T()}if(i&2){let o;w(2),fe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),w(2),nt(!r._hasOutline()&&!r._control.disabled?4:-1),w(2),nt(r._hasOutline()?6:-1),w(),nt(r._hasIconPrefix?7:-1),w(),nt(r._hasTextPrefix?8:-1),w(2),nt(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),w(2),nt(r._hasTextSuffix?12:-1),w(),nt(r._hasIconSuffix?13:-1),w(),nt(r._hasOutline()?-1:14),w(),fe("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),w(),nt((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[SS,RS,gf,TS,MS],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[oz.transitionMessages]},changeDetection:0})}}return t})(),bh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,ct,qf,We]})}}return t})()});function hz(t,n){if(t&1&&(D(0,"span",4),le(1),T()),t&2){let e=$();w(),pt(e.placeholder)}}function pz(t,n){t&1&&je(0)}function mz(t,n){if(t&1&&(D(0,"span",11),le(1),T()),t&2){let e=$(2);w(),pt(e.triggerValue)}}function gz(t,n){if(t&1&&(D(0,"span",5),ee(1,pz,1,0)(2,mz,2,1,"span",11),T()),t&2){let e=$();w(),nt(e.customTrigger?1:2)}}function vz(t,n){if(t&1){let e=Ge();D(0,"div",12,1),K("@transformPanel.done",function(r){ve(e);let o=$();return ye(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){ve(e);let o=$();return ye(o._handleKeydown(r))}),je(2,1),T()}if(t&2){let e=$();tf("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),A("ngClass",e.panelClass)("@transformPanel","showing"),_e("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}function _z(t){return()=>t.scrollStrategies.reposition()}var cz,dz,uz,fz,yz,PS,jS,bz,xz,Cz,b_,xh,Ch,lc=f(()=>{"use strict";oi();we();M();M();In();In();ac();$i();$i();ln();ln();cn();lS();Vi();ji();ji();ke();st();oc();cz=["trigger"],dz=["panel"],uz=[[["mat-select-trigger"]],"*"],fz=["mat-select-trigger","*"];yz={transformPanelWrap:Vr("transformPanelWrap",[ai("* => void",bS("@transformPanel",[_S()],{optional:!0}))]),transformPanel:Vr("transformPanel",[jo("void",jt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",qi("120ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",qi("100ms linear",jt({opacity:0})))])},PS=0,jS=new C("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}});bz=new C("MAT_SELECT_CONFIG"),xz={provide:jS,deps:[Qe],useFactory:_z},Cz=new C("MatSelectTrigger"),b_=class{constructor(n,e){this.source=n,this.value=e}},xh=(()=>{class t{_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=KM(e,this.options,this.optionGroups),s=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=QM(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new b_(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Tf.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,l,c,d,u,m,p,v,_){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=v,this._defaultOptions=_,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(E,I)=>E===I,this._uid=`mat-select-${PS++}`,this._triggerAriaLabelledBy=null,this._destroy=new R,this.stateChanges=new R,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${PS++}`,this._panelDoneAnimatingStream=new R,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new R,this.optionSelectionChanges=Jt(()=>{let E=this.options;return E?E.changes.pipe(wt(E),ze(()=>ft(...E.map(I=>I.onSelectionChange)))):this._initialized.pipe(ze(()=>this.optionSelectionChanges))}),this.openedChange=new V,this._openedStream=this.openedChange.pipe(ue(E=>E),P(()=>{})),this._closedStream=this.openedChange.pipe(ue(E=>!E),P(()=>{})),this.selectionChange=new V,this.valueChange=new V,this._trackedModal=null,this._skipPredicate=E=>this.panelOpen?!1:E.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),_?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=_.typeaheadDebounceInterval),this._errorStateTracker=new oh(o,u,c,l,this.stateChanges),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ph(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(co(),ae(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(ae(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ae(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(wt(null),ae(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&th(this._trackedModal,"aria-owns",i),Wy(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;th(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,s=this._keyManager;if(!s.isTyping()&&o&&!St(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!s&&(r===13||r===32)&&i.activeItem&&!St(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!s&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{let a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Te(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof ic?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Jf(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ae(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ft(...this.options.map(i=>i._stateChanges)).pipe(ae(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(i){return new(i||t)(h(ma),h(Be),h(k),h(qM),h(F),h(xt,8),h(Fy,8),h(Ly,8),h(__,8),h(Pi,10),yr("tabindex"),h(jS),h(jM),h(bz,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&($t(o,Cz,5),$t(o,fa,5),$t(o,t_,5)),i&2){let s;he(s=pe())&&(r.customTrigger=s.first),he(s=pe())&&(r.options=s),he(s=pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(i&1&&(Ve(cz,5),Ve(dz,5),Ve(g_,5)),i&2){let o;he(o=pe())&&(r.trigger=o.first),he(o=pe())&&(r.panel=o.first),he(o=pe())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&K("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(_e("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),fe("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Ie],disableRipple:[2,"disableRipple","disableRipple",Ie],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ie],placeholder:"placeholder",required:[2,"required","required",Ie],multiple:[2,"multiple","multiple",Ie],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Ie],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[bt([{provide:y_,useExisting:t},{provide:e_,useExisting:t}]),lt,He,Se],ngContentSelectors:fz,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Ge();Lt(uz),D(0,"div",2,0),K("click",function(){return ve(o),ye(r.open())}),D(3,"div",3),ee(4,hz,2,1,"span",4)(5,gz,3,1,"span",5),T(),D(6,"div",6)(7,"div",7),Do(),D(8,"svg",8),oe(9,"path",9),T()()()(),ee(10,vz,3,9,"ng-template",10),K("backdropClick",function(){return ve(o),ye(r.close())})("attach",function(){return ve(o),ye(r._onAttached())})("detach",function(){return ve(o),ye(r.close())})}if(i&2){let o=Cn(1);w(3),_e("id",r._valueId),w(),nt(r.empty?4:5),w(6),A("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[ic,g_,br],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[yz.transformPanel]},changeDetection:0})}}return t})(),Ch=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[xz],imports:[ct,ri,n_,We,Nr,bh,n_,We]})}}return t})()});function C_(t){for(let n in t){let e=t[n]??"";switch(n){case"display":e==="flex"?t.display=["-webkit-flex","flex"]:e==="inline-flex"?t.display=["-webkit-inline-flex","inline-flex"]:t.display=e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e;break}}return t}function wh(t){let[n,e,i]=BS(t);return Ez(n,e,i)}function BS(t){t=t?.toLowerCase()??"";let[n,e,i]=t.split(" ");return cc.find(r=>r===n)||(n=cc[0]),e===x_&&(e=i!==x_?i:"",i=x_),[n,wz(e),!!i]}function dc(t){let[n]=BS(t);return n.indexOf("row")>-1}function wz(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap";break}return t}function Ez(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}function Pn(t,...n){if(t==null)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(e!=null)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}var x_,cc,w_=f(()=>{"use strict";x_="inline",cc=["row","column","row-reverse","column-reverse"];});function Dz(t,n){return()=>{if(Xn(n)){let e=Array.from(t.querySelectorAll(`[class*=${US}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${US}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}}function XS(t,n){return t=t?.clone()??new Vo,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}function Sz(t,n){return JS(t)[n]??""}function Az(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();let i=JS(t);i[n]=e??"",Tz(t,i)}function Tz(t,n){let e="";for(let i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}function JS(t){let n={},e=t.getAttribute("style");if(e){let i=e.split(/;+/g);for(let r=0;r<i.length;r++){let o=i[r].trim();if(o.length>0){let s=o.indexOf(":");if(s===-1)throw new Error(`Invalid CSS style: ${o}`);let a=o.substr(0,s).trim();n[a]=o.substr(s+1).trim()}}}return n}function uc(t,n){let e=t&&t.priority||0;return(n&&n.priority||0)-e}function Rz(t,n){let e=t.priority||0,i=n.priority||0;return e-i}function kz(t,n,e){let i=t.filter(r=>!zS[r]);if(i.length>0){let r=i.join(", ");try{let o=n.createElement("style");if(o.setAttribute("type","text/css"),e&&o.setAttribute("nonce",e),!o.styleSheet){let s=`
10
+ ${dz} translateX(${v})
11
+ )`;let _=a+l+c+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${_}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Be),h(k),h(xt),h(Fe),h(lz,8),h(at,8),h(B))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(JD(o,r._labelChild,ba,5),$t(o,y_,5),$t(o,rz,5),$t(o,oz,5),$t(o,nz,5),$t(o,MS,5)),i&2){eI();let s;he(s=pe())&&(r._formFieldControl=s.first),he(s=pe())&&(r._prefixChildren=s),he(s=pe())&&(r._suffixChildren=s),he(s=pe())&&(r._errorChildren=s),he(s=pe())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(i&1&&(Ve(OU,5),Ve(kU,5),Ve(FU,5),Ve(NU,5),Ve(LU,5),Ve(SS,5),Ve(RS,5),Ve(TS,5)),i&2){let o;he(o=pe())&&(r._textField=o.first),he(o=pe())&&(r._iconPrefixContainer=o.first),he(o=pe())&&(r._textPrefixContainer=o.first),he(o=pe())&&(r._iconSuffixContainer=o.first),he(o=pe())&&(r._textSuffixContainer=o.first),he(o=pe())&&(r._floatingLabel=o.first),he(o=pe())&&(r._notchedOutline=o.first),he(o=pe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){i&2&&fe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[bt([{provide:__,useExisting:t},{provide:NS,useExisting:t}]),Se],ngContentSelectors:jU,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=Ge();Lt(PU),ee(0,UU,1,1,"ng-template",null,0,Ao),D(2,"div",6,1),K("click",function(a){return ve(o),ye(r._control.onContainerClick(a))}),ee(4,zU,1,0,"div",7),D(5,"div",8),ee(6,GU,2,2,"div",9)(7,WU,3,0,"div",10)(8,qU,3,0,"div",11),D(9,"div",12),ee(10,KU,1,1,null,13),je(11),T(),ee(12,QU,3,0,"div",14)(13,ZU,3,0,"div",15),T(),ee(14,XU,1,0,"div",16),T(),D(15,"div",17),ee(16,JU,2,1,"div",18)(17,tz,5,2,"div",19),T()}if(i&2){let o;w(2),fe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),w(2),nt(!r._hasOutline()&&!r._control.disabled?4:-1),w(2),nt(r._hasOutline()?6:-1),w(),nt(r._hasIconPrefix?7:-1),w(),nt(r._hasTextPrefix?8:-1),w(2),nt(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),w(2),nt(r._hasTextSuffix?12:-1),w(),nt(r._hasIconSuffix?13:-1),w(),nt(r._hasOutline()?-1:14),w(),fe("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),w(),nt((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[SS,RS,gf,TS,MS],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[az.transitionMessages]},changeDetection:0})}}return t})(),bh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[We,ct,qf,We]})}}return t})()});function mz(t,n){if(t&1&&(D(0,"span",4),le(1),T()),t&2){let e=$();w(),pt(e.placeholder)}}function gz(t,n){t&1&&je(0)}function vz(t,n){if(t&1&&(D(0,"span",11),le(1),T()),t&2){let e=$(2);w(),pt(e.triggerValue)}}function yz(t,n){if(t&1&&(D(0,"span",5),ee(1,gz,1,0)(2,vz,2,1,"span",11),T()),t&2){let e=$();w(),nt(e.customTrigger?1:2)}}function _z(t,n){if(t&1){let e=Ge();D(0,"div",12,1),K("@transformPanel.done",function(r){ve(e);let o=$();return ye(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){ve(e);let o=$();return ye(o._handleKeydown(r))}),je(2,1),T()}if(t&2){let e=$();tf("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),A("ngClass",e.panelClass)("@transformPanel","showing"),_e("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}function xz(t){return()=>t.scrollStrategies.reposition()}var uz,fz,hz,pz,bz,PS,jS,Cz,wz,Ez,b_,xh,Ch,lc=f(()=>{"use strict";oi();we();M();M();In();In();ac();$i();$i();ln();ln();cn();lS();Vi();ji();ji();ke();st();oc();uz=["trigger"],fz=["panel"],hz=[[["mat-select-trigger"]],"*"],pz=["mat-select-trigger","*"];bz={transformPanelWrap:Vr("transformPanelWrap",[ai("* => void",bS("@transformPanel",[_S()],{optional:!0}))]),transformPanel:Vr("transformPanel",[jo("void",jt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",qi("120ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",qi("100ms linear",jt({opacity:0})))])},PS=0,jS=new C("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}});Cz=new C("MAT_SELECT_CONFIG"),wz={provide:jS,deps:[Qe],useFactory:xz},Ez=new C("MatSelectTrigger"),b_=class{constructor(n,e){this.source=n,this.value=e}},xh=(()=>{class t{_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=KM(e,this.options,this.optionGroups),s=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=QM(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new b_(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Tf.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,l,c,d,u,m,p,v,_){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=v,this._defaultOptions=_,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(E,I)=>E===I,this._uid=`mat-select-${PS++}`,this._triggerAriaLabelledBy=null,this._destroy=new R,this.stateChanges=new R,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${PS++}`,this._panelDoneAnimatingStream=new R,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new R,this.optionSelectionChanges=Jt(()=>{let E=this.options;return E?E.changes.pipe(wt(E),ze(()=>ft(...E.map(I=>I.onSelectionChange)))):this._initialized.pipe(ze(()=>this.optionSelectionChanges))}),this.openedChange=new V,this._openedStream=this.openedChange.pipe(ue(E=>E),P(()=>{})),this._closedStream=this.openedChange.pipe(ue(E=>!E),P(()=>{})),this.selectionChange=new V,this.valueChange=new V,this._trackedModal=null,this._skipPredicate=E=>this.panelOpen?!1:E.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),_?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=_.typeaheadDebounceInterval),this._errorStateTracker=new oh(o,u,c,l,this.stateChanges),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ph(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(co(),ae(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(ae(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ae(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(wt(null),ae(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&th(this._trackedModal,"aria-owns",i),Wy(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;th(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,s=this._keyManager;if(!s.isTyping()&&o&&!St(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!s&&(r===13||r===32)&&i.activeItem&&!St(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!s&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{let a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Te(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof ic?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Jf(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ae(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ft(...this.options.map(i=>i._stateChanges)).pipe(ae(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(i){return new(i||t)(h(ma),h(Be),h(k),h(qM),h(F),h(xt,8),h(Fy,8),h(Ly,8),h(__,8),h(Pi,10),yr("tabindex"),h(jS),h(jM),h(Cz,8))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&($t(o,Ez,5),$t(o,fa,5),$t(o,t_,5)),i&2){let s;he(s=pe())&&(r.customTrigger=s.first),he(s=pe())&&(r.options=s),he(s=pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(i&1&&(Ve(uz,5),Ve(fz,5),Ve(g_,5)),i&2){let o;he(o=pe())&&(r.trigger=o.first),he(o=pe())&&(r.panel=o.first),he(o=pe())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&K("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(_e("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),fe("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Ie],disableRipple:[2,"disableRipple","disableRipple",Ie],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ie],placeholder:"placeholder",required:[2,"required","required",Ie],multiple:[2,"multiple","multiple",Ie],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Ie],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[bt([{provide:y_,useExisting:t},{provide:e_,useExisting:t}]),lt,He,Se],ngContentSelectors:pz,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Ge();Lt(hz),D(0,"div",2,0),K("click",function(){return ve(o),ye(r.open())}),D(3,"div",3),ee(4,mz,2,1,"span",4)(5,yz,3,1,"span",5),T(),D(6,"div",6)(7,"div",7),Do(),D(8,"svg",8),oe(9,"path",9),T()()()(),ee(10,_z,3,9,"ng-template",10),K("backdropClick",function(){return ve(o),ye(r.close())})("attach",function(){return ve(o),ye(r._onAttached())})("detach",function(){return ve(o),ye(r.close())})}if(i&2){let o=Cn(1);w(3),_e("id",r._valueId),w(),nt(r.empty?4:5),w(6),A("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[ic,g_,br],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[bz.transformPanel]},changeDetection:0})}}return t})(),Ch=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[wz],imports:[ct,ri,n_,We,Nr,bh,n_,We]})}}return t})()});function C_(t){for(let n in t){let e=t[n]??"";switch(n){case"display":e==="flex"?t.display=["-webkit-flex","flex"]:e==="inline-flex"?t.display=["-webkit-inline-flex","inline-flex"]:t.display=e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e;break}}return t}function wh(t){let[n,e,i]=BS(t);return Iz(n,e,i)}function BS(t){t=t?.toLowerCase()??"";let[n,e,i]=t.split(" ");return cc.find(r=>r===n)||(n=cc[0]),e===x_&&(e=i!==x_?i:"",i=x_),[n,Dz(e),!!i]}function dc(t){let[n]=BS(t);return n.indexOf("row")>-1}function Dz(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap";break}return t}function Iz(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}function Pn(t,...n){if(t==null)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(e!=null)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}var x_,cc,w_=f(()=>{"use strict";x_="inline",cc=["row","column","row-reverse","column-reverse"];});function Mz(t,n){return()=>{if(Xn(n)){let e=Array.from(t.querySelectorAll(`[class*=${US}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${US}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}}function XS(t,n){return t=t?.clone()??new Vo,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}function Tz(t,n){return JS(t)[n]??""}function Rz(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();let i=JS(t);i[n]=e??"",Oz(t,i)}function Oz(t,n){let e="";for(let i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}function JS(t){let n={},e=t.getAttribute("style");if(e){let i=e.split(/;+/g);for(let r=0;r<i.length;r++){let o=i[r].trim();if(o.length>0){let s=o.indexOf(":");if(s===-1)throw new Error(`Invalid CSS style: ${o}`);let a=o.substr(0,s).trim();n[a]=o.substr(s+1).trim()}}}return n}function uc(t,n){let e=t&&t.priority||0;return(n&&n.priority||0)-e}function kz(t,n){let e=t.priority||0,i=n.priority||0;return e-i}function Nz(t,n,e){let i=t.filter(r=>!zS[r]);if(i.length>0){let r=i.join(", ");try{let o=n.createElement("style");if(o.setAttribute("type","text/css"),e&&o.setAttribute("nonce",e),!o.styleSheet){let s=`
12
12
  /*
13
13
  @ngbracket/ngx-layout - workaround for possible browser quirk with mediaQuery listeners
14
14
  see http://bit.ly/2sd4HMP
15
15
  */
16
16
  @media ${r} {.fx-query-test{ }}
17
- `;o.appendChild(n.createTextNode(s))}n.head.appendChild(o),i.forEach(s=>zS[s]=o)}catch(o){console.error(o)}}}function Fz(t){let n=new EventTarget;return n.matches=t==="all"||t==="",n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}function Nz(t,n){return n&&!!window.matchMedia("all").addListener?window.matchMedia(t):Fz(t)}function Pz(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function jz(t){return t.replace(Lz,"|").split("|").map(Pz).join("")}function Vz(t){return t.forEach(n=>{n.suffix||(n.suffix=jz(n.alias),n.overlapping=!!n.overlapping)}),t}function Bz(t,n=[]){let e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Pn(e[i.alias],i):e[i.alias]=i}),Vz(Object.keys(e).map(i=>e[i]))}function Wz(t){return t?.mediaQuery.startsWith(xa)??!1}function KS(t,n,e,i){if(i!==void 0){let r=t.get(n)??new Map;r.set(e,i),t.set(n,r)}}function D_(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=QS(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=QS(t.trim());else{let o=t.split(" ");i=o.length===3?o:[n,e,t]}return i}function QS(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ih(t,n){if(n===void 0)return t;let e=i=>{let r=+i.slice(0,-ZS.length);return t.endsWith(ZS)&&!isNaN(r)?`${r*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}var Iz,US,Ca,Vo,Mz,Eh,Mn,fc,Dh,ci,Qi,Oz,zS,Lz,Uz,$S,HS,GS,WS,qS,YS,Ki,zz,$z,eA,xa,Hz,Gz,E_,Br,Ur,ZS,zr=f(()=>{"use strict";M();M();we();ke();w_();st();Iz={provide:zs,useFactory:Dz,deps:[B,yt],multi:!0},US="flex-layout-";Ca=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Iz]})}}return t})(),Vo=class t{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};Mz=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){let o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){let r=this.stylesheet.get(e),o="";if(r){let s=r.get(i);(typeof s=="number"||typeof s=="string")&&(o=s+"")}return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Eh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new C("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Eh});fc=new C("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});Dh=new C("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});ci=class{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}};Qi=(()=>{class t{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};typeof i=="string"&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:C_(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){let r=this.layoutConfig.disableVendorPrefixes?e:C_(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){let i="flex-direction",r=this.lookupStyle(e,i),o=this.lookupInlineStyle(e,i)||Ni(this._platformId)&&this._serverModuleLoaded?r:"";return[r||"row",o]}hasWrap(e){return this.lookupStyle(e,"flex-wrap")==="wrap"}lookupAttributeValue(e,i){return e.getAttribute(i)??""}lookupInlineStyle(e,i){return Xn(this._platformId)?e.style.getPropertyValue(i):Sz(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(Xn(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{let o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",Xn(this._platformId)||!this._serverModuleLoaded?Xn(this._platformId)?i.style.setProperty(r,a):Az(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}static{this.\u0275fac=function(i){return new(i||t)(g(Mz),g(fc),g(yt),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Oz=(()=>{class t{constructor(e,i,r,o){this._zone=e,this._platformId=i,this._document=r,this._nonce=o,this.source=new ot(new Vo(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){return this.registry.get(e)?.matches??this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){let r=this._observable$.pipe(ue(s=>i?e.indexOf(s.mediaQuery)>-1:!0)),o=new Q(s=>{let a=this.registerQuery(e);if(a.length){let l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()});return ft(o,r)}return this._observable$}registerQuery(e){let i=Array.isArray(e)?e:[e],r=[];return kz(i,this._document,this._nonce),i.forEach(o=>{let s=l=>{this._zone.run(()=>this.source.next(new Vo(l.matches,o)))},a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new Vo(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return Nz(e,Xn(this._platformId))}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(yt),g(B),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zS={};Lz=/(\.|-|_)/g;Uz=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];$S="(orientation: portrait) and (max-width: 599.98px)",HS="(orientation: landscape) and (max-width: 959.98px)",GS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",YS="(orientation: landscape) and (min-width: 1280px)",Ki={HANDSET:`${$S}, ${HS}`,TABLET:`${GS} , ${WS}`,WEB:`${qS}, ${YS} `,HANDSET_PORTRAIT:`${$S}`,TABLET_PORTRAIT:`${GS} `,WEB_PORTRAIT:`${qS}`,HANDSET_LANDSCAPE:`${HS}`,TABLET_LANDSCAPE:`${WS}`,WEB_LANDSCAPE:`${YS}`},zz=[{alias:"handset",priority:2e3,mediaQuery:Ki.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ki.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ki.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ki.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ki.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ki.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ki.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ki.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ki.WEB_PORTRAIT,overlapping:!0}];$z=new C("Token (@ngbracket/ngx-layout) Breakpoints",{providedIn:"root",factory:()=>{let t=y(Dh),n=y(Mn),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r])),i=(n.disableDefaultBps?[]:Uz).concat(n.addOrientationBps?zz:[]);return Bz(i,e)}});eA=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Rz)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e?.suffix??"")}findWithPredicate(e,i){let r=this.findByMap.get(e);return r||(r=this.items.find(i)??null,this.findByMap.set(e,r)),r??null}static{this.\u0275fac=function(i){return new(i||t)(g($z))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xa="print",Hz={alias:xa,mediaQuery:xa,priority:1e3},Gz=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new E_,this.deactivations=[]}withPrintQuery(e){return[...e,xa]}isPrintEvent(e){return e.mediaQuery.startsWith(xa)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>e!==null)}getEventBreakpoints({mediaQuery:e}){let i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(uc)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?.mediaQuery??""),XS(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Vo(!0,xa))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{if(this.isPrintEvent(i)){i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles());return}this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!i.matches){let r=this.breakpoints.findByQuery(i.mediaQuery);if(r){let o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(uc))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}static{this.\u0275fac=function(i){return new(i||t)(g(eA),g(Mn),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),E_=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Hz),n.sort(uc),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)===void 0&&(this.printBreakpoints=Wz(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}};Br=(()=>{class t{get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new R,this.observeActivations()}onMediaChange(e){let i=this.findByQuery(e.mediaQuery);if(i){e=XS(e,i);let r=this.activatedBreakpoints.indexOf(i);e.matches&&r===-1?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(uc),this.updateStyles()):!e.matches&&r!==-1&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(uc),this.updateStyles())}}init(e,i,r,o,s=[]){KS(this.updateMap,e,i,r),KS(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){let o=this.elementMap.get(e);if(o){let s=r!==void 0?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);if(o)return o.get(i)!==void 0||!1}return!1}setValue(e,i,r,o){let s=this.elementMap.get(e);if(!s)s=new Map().set(o,new Map().set(i,r)),this.elementMap.set(e,s);else{let l=(s.get(o)??new Map).set(i,r);s.set(o,l),this.elementMap.set(e,s)}let a=this.getValue(e,i);a!==void 0&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(ue(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{let r=new Set(this.elementKeyMap.get(i)),o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){let a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){let r=this.clearMap.get(e);if(r){let o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){let o=this.updateMap.get(e);if(o){let s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){let i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));let r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){let a=ft(...r).subscribe(()=>{let l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;o<this.activatedBreakpoints.length;o++){let s=this.activatedBreakpoints[o],a=e.get(s.alias);if(a&&(i===void 0||a.has(i)&&a.get(i)!=null))return a}if(!this._useFallbacks)return;let r=e.get("");return i===void 0||r&&r.has(i)?r:void 0}observeActivations(){let e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Pe(this.hook.interceptEvents(this)),ue(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}static{this.\u0275fac=function(i){return new(i||t)(g(Oz),g(eA),g(Gz))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Ur=(()=>{class t{get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new R,this.styleCache=new Map}ngOnChanges(e){Object.keys(e).forEach(i=>{if(this.inputs.indexOf(i)!==-1){let r=i.split(".").slice(1).join("."),o=e[i].currentValue;this.setValue(o,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){let r=this.styleBuilder,o=r.shouldCache,s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=x({},s),this.applyStyleToElement(s),r.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){let[r,o]=this.styler.getFlowDirection(e);if(!o&&i){let s=wh(r),a=[e];this.styler.applyStyleToElements(s,a)}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(ci),h(Qi),h(Br))}}static{this.\u0275dir=j({type:t,features:[He]})}}return t})();ZS="x";});var Yz,Kz,wa,I_,Ea=f(()=>{"use strict";M();zr();zr();we();we();Yz=(()=>{class t extends Ur{set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}constructor(e,i,r,o,s){super(e,null,i,r),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new br(e,o)),this.init(),this.setValue("","")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Br),h(Qn),h(br,10))}}static{this.\u0275dir=j({type:t,inputs:{klass:[0,"class","klass"]},features:[Ce]})}}return t})(),Kz=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],wa=(()=>{class t extends Yz{constructor(){super(...arguments),this.inputs=Kz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ce]})}}return t})();I_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});function x$(t,n){let[e,i]=t.split(" "),r=i??e,o="0px",s=r,a="0px";return n==="rtl"?a=e:o=e,{padding:`0px ${o} ${s} ${a}`}}function C$(t,n){let[e,i]=t.split(" "),r=i??e,o=c=>`-${c}`,s="0px",a=o(r),l="0px";return n==="rtl"?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}function aA(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return t==="rtl"?"margin-left":"margin-right";case"row-reverse":return t==="rtl"?"margin-right":"margin-left";default:return t==="rtl"?"margin-left":"margin-right"}}function w$(t,n){let e=aA(n.directionality,n.layout),i=x({},oA);return i[e]=t,i}var Qz,Zz,Xz,iA,Jz,e$,t$,n$,i$,r$,o$,rA,s$,a$,l$,c$,d$,u$,f$,h$,oA,p$,m$,g$,sA,v$,y$,_$,b$,Mh,E$,D$,I$,lA,nA,S_,Sh=f(()=>{"use strict";cn();cn();M();zr();zr();w_();st();ke();Qz=(()=>{class t extends ci{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" "),l=i.direction.indexOf("column")>-1?"column":"row",c=dc(l)?"max-width":"max-height",d=dc(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,m=u||a==="auto",p=String(a).indexOf("%")>-1&&!u,v=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,_=u||v;r=r=="0"?0:r,o=o=="0"?0:o;let E=!r&&!o,I={},U={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":let H=this.layoutConfig.useColumnBasisZero!==!1;a=l==="row"?"0%":H?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!_&&!p&&!isNaN(a)&&(a=a+"%"),a==="0%"&&(_=!0),a==="0px"&&(a="0%"),u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":_?a:"100%"}):I=Pn(U,{flex:`${r} ${o} ${_?a:"100%"}`});break}return I.flex||I["flex-grow"]||(u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`})),a!=="0%"&&a!=="0px"&&a!=="0.000000001px"&&a!=="auto"&&(I[d]=E||_&&r?a:null,I[c]=E||!m&&o?a:null),!I[d]&&!I[c]?u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`}):i.hasWrap&&(I[u?"flex-basis":"flex"]=I[c]?u?I[c]:`${r} ${o} ${I[c]}`:u?I[d]:`${r} ${o} ${I[d]}`),Pn(I,{"box-sizing":"border-box"})}static{this.\u0275fac=function(i){return new(i||t)(g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Zz=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],Xz=(()=>{class t extends Ur{get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ae(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){let r=e.value.split(" ");this.direction=r[0],this.wrap=r[1]!==void 0&&r[1]==="wrap",this.triggerUpdate()}updateWithValue(e){let i=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,i)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=t$:o&&!s?this.styleCache=Jz:!o&&s?this.styleCache=n$:!o&&!s&&(this.styleCache=e$);let a=String(e).replace(";",""),l=D_(a,this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){let e=this.activatedValue;if(e!==void 0){let i=D_(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Mn),h(Qz),h(Br))}}static{this.\u0275dir=j({type:t,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[Ce]})}}return t})(),iA=(()=>{class t extends Xz{constructor(){super(...arguments),this.inputs=Zz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Ce]})}}return t})(),Jz=new Map,e$=new Map,t$=new Map,n$=new Map;i$=(()=>{class t extends ci{buildStyles(e,i){let r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start";break}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch";break}return Pn(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":s==="stretch"?dc(i.layout)?null:"100%":null,"max-height":s==="stretch"&&dc(i.layout)?"100%":null})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],o$=(()=>{class t extends Ur{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){let i=this.layout||"row",r=this.inline;i==="row"&&r?this.styleCache=d$:i==="row"&&!r?this.styleCache=s$:i==="row-reverse"&&r?this.styleCache=f$:i==="row-reverse"&&!r?this.styleCache=l$:i==="column"&&r?this.styleCache=u$:i==="column"&&!r?this.styleCache=a$:i==="column-reverse"&&r?this.styleCache=h$:i==="column-reverse"&&!r&&(this.styleCache=c$),this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){let i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),cc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(i$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),rA=(()=>{class t extends o${constructor(){super(...arguments),this.inputs=r$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ce]})}}return t})(),s$=new Map,a$=new Map,l$=new Map,c$=new Map,d$=new Map,u$=new Map,f$=new Map,h$=new Map,oA={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},p$=(()=>{class t extends ci{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Mh)?(e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier),C$(e,i.directionality)):{}}sideEffect(e,i,r){let o=r.items;if(e.endsWith(Mh)){e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier);let s=x$(e,r.directionality);this._styler.applyStyleToElements(s,r.items)}else{e=Ih(e,this._config.multiplier),e=this.addFallbackUnit(e);let s=o.pop(),a=w$(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(oA,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}static{this.\u0275fac=function(i){return new(i||t)(g(Qi),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m$=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],g$=(()=>{class t extends Ur{get childrenNodes(){let e=this.nativeElement.children,i=[];for(let r=e.length;r--;)i[r]=e[r];return i}constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new R;let l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){let r=e.value.split(" ")[0];cc.find(o=>o===r)||(r="row"),this.layout&&this.layout!==r&&this.clearStyles(),this.layout=r,this.triggerUpdate()}updateWithValue(e){let i=this.childrenNodes.filter(r=>r.nodeType===1&&this.willDisplay(r)).sort((r,o)=>{let s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){let r=this.directionality.value,o=this.layout;o==="row"&&r==="rtl"?this.styleCache=v$:o==="row"&&r!=="rtl"?this.styleCache=_$:o==="column"&&r==="rtl"?this.styleCache=y$:o==="column"&&r!=="rtl"&&(this.styleCache=b$),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){let e=Object.keys(this.mru).length>0,i=e?"padding":aA(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){let i=this.marshal.getValue(e,"show-hide");return i===!0||i===void 0&&this.styleUtils.lookupStyle(e,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(e=>{let i=r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0;e.some(i)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(xt),h(Qi),h(p$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),sA=(()=>{class t extends g${constructor(){super(...arguments),this.inputs=m$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Ce]})}}return t})(),v$=new Map,y$=new Map,_$=new Map,b$=new Map,Mh=" grid";E$=(()=>{class t extends ci{buildStyles(e,{display:i}){let r=wh(e);return ne(x({},r),{display:i==="none"?i:r.display})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D$=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],I$=(()=>{class t extends Ur{constructor(e,i,r,o,s){super(e,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){let r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=nA.get(r)??new Map,nA.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(E$),h(Br),h(Mn))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),lA=(()=>{class t extends I${constructor(){super(...arguments),this.inputs=D$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ce]})}}return t})(),nA=new Map;S_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca,ni]})}}return t})();});var A_,T_=f(()=>{"use strict";M();zr();A_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});var Da,Fte,Ah=f(()=>{"use strict";zr();zr();Ea();Ea();Sh();Sh();T_();T_();we();M();M();Da=(()=>{class t{static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0},{provide:fc,useValue:!0}]:[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0}]}}constructor(e,i){Ni(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static{this.\u0275fac=function(i){return new(i||t)(g(fc),g(yt))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[S_,I_,A_,S_,I_,A_]})}}return t})();Fte=new Kn("18.0.0");});function S$(t,n){if(t&1&&(D(0,"mat-option",12),le(1),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",e.voiceName," ")}}function A$(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$();w(),it(" ",e.isPlaying?"stop":"volume_up"," ")}}function T$(t,n){t&1&&oe(0,"mat-spinner",13),t&2&&A("diameter",15)}var cA,dA=f(()=>{"use strict";we();M();ji();ii();Fr();oS();ke();hh();Yi();lc();ac();Ah();Ht();M();we();ji();Yi();ac();lc();In();Ea();Ht();cA=(()=>{class t{constructor(){this.maxCharLength=1e3,this.#e=y(rS)}get hasOverflow(){let e=document.querySelector("textarea");return e?.clientHeight<e?.scrollHeight}#e;ngOnInit(){this.selected=this.voices[0]}togglePlay(){if(this.isPlaying){this.stop();return}this.isLoading=!0;let e=this.text.length>this.maxCharLength?this.text.substring(0,this.maxCharLength):this.text;if(this.audio&&e===this.previousText&&this.selected.voice===this.previousVoice){this.audio.play(),this.isPlaying=!0,this.isLoading=!1;return}this.#e.play(e,this.selected).pipe(Wt(()=>{this.isLoading=!1})).subscribe({next:i=>{this.previousText=e,this.previousVoice=this.selected.voice;let r=URL.createObjectURL(i);this.audio=new Audio(r),this.audio.play(),this.isPlaying=!0,this.audio.onended=()=>{URL.revokeObjectURL(r),this.isPlaying=!1}}})}stop(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.isPlaying=!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-text-to-speech"]],inputs:{maxCharLength:"maxCharLength",voices:"voices"},standalone:!0,features:[Se],decls:19,vars:23,consts:[[1,"text-to-speech-wrapper",3,"ngClass.lt-md"],["appearance","outline","color","accent"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-to-speech-textarea-wrapper"],[1,"text-to-speech-textarea",3,"ngModelChange","ngModel","placeholder"],[1,"text-to-speech-characters"],[1,"text-to-speech-actions"],[3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[3,"diameter",4,"ngIf"],[3,"value"],[3,"diameter"]],template:function(i,r){if(i&1&&(D(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",2),Us("valueChange",function(s){return El(r.selected,s)||(r.selected=s),s}),ee(6,S$,2,2,"mat-option",3),T()(),D(7,"div",4)(8,"textarea",5),se(9,"translate"),Us("ngModelChange",function(s){return El(r.text,s)||(r.text=s),s}),T(),D(10,"div",6),le(11),T()(),D(12,"div",7)(13,"div",8),se(14,"translate"),D(15,"button",9),se(16,"translate"),K("click",function(){return r.togglePlay()}),ee(17,A$,2,1,"mat-icon",10)(18,T$,1,1,"mat-spinner",11),T()()()()),i&2){let o;A("ngClass.lt-md","mobile"),w(3),pt(be(4,15,"selectVoice")),w(2),Bs("value",r.selected),w(),A("ngForOf",r.voices),w(2),Bs("ngModel",r.text),A("placeholder",be(9,17,"placeholder")),w(2),fe("text-overflow",r.hasOverflow),w(),Vv(" ",(o=r.text==null?null:r.text.length)!==null&&o!==void 0?o:0,"/",r.maxCharLength," "),w(2),A("matTooltip",r.text?"":be(14,19,"playDisabled")),w(2),A("matTooltip",be(16,21,r.isPlaying?"stop":"play"))("disabled",!r.text||r.isLoading),w(2),A("ngIf",!r.isLoading),w(),A("ngIf",r.isLoading)}},dependencies:[ct,mf,Hs,Or,kr,$f,Xs,Js,Hl,fh,_a,li,bh,_h,ba,Ch,xh,fa,Da,wa,ei,En],styles:[".text-to-speech-wrapper[_ngcontent-%COMP%]{margin-top:5px;position:relative;display:flex;flex-direction:column;align-items:center}.text-to-speech-wrapper[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:900px!important;width:100%}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%], .text-to-speech-textarea[_ngcontent-%COMP%]{position:relative;width:100%;max-width:900px}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%]{border:1px solid var(--base-70);padding:5px;border-radius:8px;box-shadow:0 0 16px #0000001a}.text-to-speech-textarea[_ngcontent-%COMP%]{margin:15px 0;padding:0 10px;min-height:120px;resize:none;outline:none;border:none}.text-to-speech-actions[_ngcontent-%COMP%]{position:absolute;bottom:-20px}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;justify-content:center;color:var(--base-100)!important;background-color:var(--accent)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:var(--base-70)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{scale:1.2}.text-to-speech-characters[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:0;margin:5px;font-size:13px;color:var(--base-65)}.text-overflow[_ngcontent-%COMP%]{right:30px}.mobile[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{right:15px}"]})}}return t})()});var uA=f(()=>{"use strict";dA()});var fA,hA=f(()=>{"use strict";fA={en:{selectVoice:"Demo voices (currently only for Latvian language)",placeholder:'Enter text to listen to a demonstration of the text-to-speech technology. Remember, this service can only be used in accordance with its terms of use (see the "Frequently asked questions" section). It is not permitted to use this service for texts that contain offensive, indecent, defamatory, misleading, hateful, or discriminatory statements. Violation of the terms of use may result in liability as stipulated by the laws of the Republic of Latvia. A maximum of 1000 characters will be spoken.',playDisabled:"Enter text to play",play:"Play",stop:"Stop"},lv:{selectVoice:"Demo balsis (\u0161obr\u012Bd tikai Latvie\u0161u valod\u0101)",placeholder:"Ievadi tekstu, lai noklaus\u012Btos balss sint\u0113zes tehnolo\u0123ijas demonstr\u0101ciju. Atceries, ka \u0161o pakalpojumu var lietot tikai atbilsto\u0161i t\u0101 lieto\u0161anas noteikumiem (skat\u012Bt sada\u013Cu \u201CBie\u017E\u0101k uzdotie jaut\u0101jumi\u201D)! To nav at\u013Cauts izmantot tekstiem, kas satur aizskaro\u0161us, nepiekl\u0101j\u012Bgus, apmelojo\u0161us, maldino\u0161us, naidu vai diskrimin\u0101ciju veicino\u0161us apgalvojumus. Par lieto\u0161anas noteikumu p\u0101rk\u0101pumu var iest\u0101ties LR likumos noteikt\u0101 atbild\u012Bba. Tiks izrun\u0101ti ne vair\u0101k k\u0101 1000 simboli.",playDisabled:"Ievadi tekstu, lai atska\u0146ot to",play:"Atska\u0146ot",stop:"Apst\u0101din\u0101t",voice:"Balss {{nth}}"}}});var Th,R_=f(()=>{"use strict";Dy();uA();hA();M();Th=(()=>{class t extends Sf{set voices(e){this._voices=typeof e=="string"?JSON.parse(e):e}set maxCharLength(e){this._maxCharLength=+e}get voices(){return this._voices}get maxCharLength(){return this._maxCharLength}constructor(){super(fA),this._maxCharLength=500}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-text-to-speech"]],inputs:{voices:"voices",maxCharLength:"maxCharLength"},standalone:!0,features:[Ce,Se],decls:1,vars:2,consts:[[3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"lib-text-to-speech",0),i&2&&A("voices",r.voices)("maxCharLength",r.maxCharLength)},dependencies:[cA]})}}return t})()});var jn,Rh=f(()=>{"use strict";jn=function(t){return t.SUMMARY="SUMMARY",t.REPHRASE="REPHRASE",t}(jn||{})});function R$(t,n){}function O_(t,n){let e=t.length;for(;e--;)n(t[e])}var Bo,k_,hc,O$,k$,F$,N$,F_,pA,mA=f(()=>{"use strict";ln();ln();oi();oi();Pt();va();we();M();M();Vi();ke();cn();st();Bo=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}},k_=(()=>{class t extends ga{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=y(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=y(Be),this._injector=y(De),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||on(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Wl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Wl();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wl()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(Bo),h(Yl),h(k),h(Gi),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Ve(nc,7),i&2){let o;he(o=pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ce,Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&ee(0,R$,0,0,"ng-template",0)},dependencies:[nc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),hc=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new R,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!St(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},O$=new C("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),k$=new C("DialogData"),F$=new C("DefaultDialogConfig"),N$=0,F_=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this._ariaHiddenElements=new Map,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new Bo;i=x(x({},r),i),i.id=i.id||`cdk-dialog-${N$++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new hc(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){O_(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){O_(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),O_(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Pr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Bo,useValue:r},{provide:hc,useValue:i},{provide:Gi,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=k_;let l=new Lr(a,r.viewContainerRef,De.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Nt){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=x(x({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Hi(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Lr(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:k$,useValue:e.data},{provide:hc,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(xt,null,{optional:!0}))&&a.push({provide:xt,useValue:{value:e.direction,change:O()}}),De.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(F$,8),g(t,12),g(ya),g(O$))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();pA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[F_],imports:[ri,Lo,ih,Lo]})}}return t})()});function L$(t,n){}function _A(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Rr(t.substring(0,t.length-2)):t.endsWith("s")?Rr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}function bA(t,n,e){return t._closeInteractionType=n,t.close(e)}function IA(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var pc,N_,gA,vA,P$,j$,V$,yA,Oh,mc,L_,B$,U$,z$,gc,$$,xA,CA,wA,EA,DA,MA,vc=f(()=>{"use strict";oi();oi();we();we();M();M();ln();mA();Ui();va();ke();st();Vi();$i();In();pc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},N_="mdc-dialog--open",gA="mdc-dialog--opening",vA="mdc-dialog--closing",P$=150,j$=75,V$=(()=>{class t extends k_{constructor(e,i,r,o,s,a,l,c,d){super(e,i,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new V,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?_A(this._config.enterAnimationDuration)??P$:0,this._exitAnimationDuration=this._animationsEnabled?_A(this._config.exitAnimationDuration)??j$:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gA,N_)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(N_),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(N_),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(vA)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(gA,vA)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(pc),h(Yl),h(k),h(Gi),h(at,8),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(_r("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),fe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ce,Se],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(D(0,"div",0)(1,"div",1),ee(2,L$,0,0,"ng-template",2),T()())},dependencies:[nc],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})(),yA="--mat-dialog-transition-duration";Oh=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Oh||{}),mc=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new R,this._beforeClosed=new R,this._state=Oh.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),Te(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),Te(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!St(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),bA(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ue(e=>e.state==="closing"),Te(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Oh.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=Oh.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};L_=new C("MatMdcDialogData"),B$=new C("mat-mdc-dialog-default-options"),U$=new C("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),z$=0,gc=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this.dialogConfigClass=pc,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._dialog=i.get(F_),this._dialogRefConstructor=mc,this._dialogContainerType=V$,this._dialogDataToken=L_}open(e,i){let r;i=x(x({},this._defaultOptions||new pc),i),i.id=i.id||`mat-mdc-dialog-${z$++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ne(x({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Bo,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(Zn,8),g(B$,8),g(U$),g(t,12),g(ya),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$$=0,xA=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=IA(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){bA(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&K("click",function(s){return r._onButtonClick(s)}),i&2&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[He]})}}return t})(),CA=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=IA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,standalone:!0})}}return t})(),wA=(()=>{class t extends CA{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${$$++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&_r("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Ce]})}}return t})(),EA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[kD([o_])]})}}return t})(),DA=(()=>{class t extends CA{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&fe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ce]})}}return t})();MA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[gc],imports:[pA,ri,Lo,We,We]})}}return t})()});var yc,kh,Fh,Nh,Ia,AA,qe,TA,Uo=f(()=>{"use strict";Al();M();M();ke();yc=new C("ngx-tld-services Api service configuration."),kh=class{#e;constructor(n){this.http=y(Dr),this.#e=y(yc);let e=n(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},Fh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t}(Fh||{}),Nh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t.MeetingBrief="MeetingBrief",t.Brief="Brief",t}(Nh||{}),Ia=class{static xAppIdHeader(n){return{"X-App-Id":n}}},AA=(()=>{class t extends kh{#e=y(Dr);constructor(){super(e=>e.llmService)}rephrase(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/rewrite`,e,{responseType:"text",headers:i})}summarize(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/summarize/`,e,{responseType:"text",headers:i})}customPrompt(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/custom-prompt/`,e,{responseType:"text",headers:i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qe=function(t){return t.TRANSLATION_FILES="FileTranslationFiles",t.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",t.ASR_FILE_SIZE_KB="AsrFileSizeKb",t.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",t.TRANSLATION_CHARACTERS="TranslationCharacters",t.TRANSLATION_DOCUMENTS="TranslationDocuments",t.LLM_CHARACTER_COUNT="LlmCharacterCount",t.LLM_REQUESTS="LlmRequests",t.TTS_CHARACTERS="TtsCharacters",t.ANONYMISE_WORDS="AnonymiseWords",t.ANONYMISE_DOCUMENTS="AnonymiseDocuments",t[t.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",t[t.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",t[t.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",t[t.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",t[t.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",t[t.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",t[t.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",t[t.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",t[t.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",t[t.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",t[t.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",t}(qe||{}),TA=(()=>{class t extends kh{constructor(){super(e=>e.quotaService),this.legacyQuotaTypeMap={[qe.LEGACY_TRANSLATION_FILES]:qe.TRANSLATION_FILES,[qe.LEGACY_ASR_FILE_LENGTH_SECONDS]:qe.ASR_FILE_LENGTH_SECONDS,[qe.LEGACY_ASR_FILE_SIZE_KB]:qe.ASR_FILE_SIZE_KB,[qe.LEGACY_ONLINE_ASR_USED_SECONDS]:qe.ONLINE_ASR_USED_SECONDS,[qe.LEGACY_TRANSLATION_CHARACTERS]:qe.TRANSLATION_CHARACTERS,[qe.LEGACY_TRANSLATION_DOCUMENTS]:qe.TRANSLATION_DOCUMENTS,[qe.LEGACY_LLM_CHARACTER_COUNT]:qe.LLM_CHARACTER_COUNT,[qe.LEGACY_LLM_REQUESTS]:qe.LLM_REQUESTS,[qe.LEGACY_TTS_CHARACTERS]:qe.TTS_CHARACTERS,[qe.LEGACY_ANONYMISE_WORDS]:qe.ANONYMISE_WORDS,[qe.LEGACY_ANONYMISE_DOCUMENTS]:qe.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let e=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:e}).pipe(P(i=>(i.usage.forEach(r=>{this.legacyQuotaTypeMap[r.quotaType]&&(r.quotaType=this.legacyQuotaTypeMap[r.quotaType])}),i)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var OA=f(()=>{"use strict"});var kA=f(()=>{"use strict"});var P_,FA=f(()=>{"use strict";P_=function(t){return t[t.TIMEOUT=504]="TIMEOUT",t}(P_||{})});var j_=f(()=>{"use strict";OA();kA();FA()});var NA,LA=f(()=>{"use strict";M();Fr();Gs();NA=(()=>{class t{constructor(e,i){this.iconRegistry=e,this.sanitizer=i}registerIcons(e){for(let i in e)this.iconRegistry.addSvgIconLiteral(i.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(e[i]))}registerIconFromUrl(e,i){this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(i))}addSvgIconSet(e,i){i?this.iconRegistry.addSvgIconSetInNamespace(i,this.sanitizer.bypassSecurityTrustResourceUrl(e)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(e))}static{this.\u0275fac=function(i){return new(i||t)(g(r_),g(kl))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var PA=f(()=>{"use strict";LA()});var H$,G$,jA,VA=f(()=>{"use strict";M();H$=typeof localStorage<"u"?localStorage:null,G$=typeof window<"u"?window:null,jA=(()=>{class t{get window(){return G$}get localStorage(){return H$}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var BA=f(()=>{"use strict";VA()});function Oa(t){return new $_(t)}function W$(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=t[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function q$(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!di(t[e],n[e]))return!1;return!0}function di(t,n){let e=t?H_(t):void 0,i=n?H_(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!ZA(t[r],n[r]))return!1;return!0}function H_(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ZA(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function XA(t){return t.length>0?t[t.length-1]:null}function Gr(t){return gn(t)?t:To(t)?Le(Promise.resolve(t)):O(t)}function UA(t,n,e){return Y$[e.paths](t.root,n.root,e.matrixParams)&&JA[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function K$(t,n){return di(t,n)}function eT(t,n,e){if(!$o(t.segments,n.segments)||!jh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!eT(t.children[i],n.children[i],e))return!1;return!0}function Q$(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZA(t[e],n[e]))}function tT(t,n,e){return nT(t,n,n.segments,e)}function nT(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!$o(r,e)||n.hasChildren()||!jh(r,e,i))}else if(t.segments.length===e.length){if(!$o(t.segments,e)||!jh(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!tT(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!$o(t.segments,r)||!jh(t.segments,r,i)||!t.children[me]?!1:nT(t.children[me],n,o,i)}}function jh(t,n,e){return n.every((i,r)=>JA[e](t[r].parameters,i.parameters))}function Z$(t,n){return $o(t,n)&&t.every((e,i)=>di(e.parameters,n[i].parameters))}function $o(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function X$(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===me&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==me&&(e=e.concat(n(r,i)))}),e}function Vh(t){return t.segments.map(n=>rT(n)).join("/")}function _c(t,n){if(!t.hasChildren())return Vh(t);if(n){let e=t.children[me]?_c(t.children[me],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==me&&i.push(`${r}:${_c(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=X$(t,(i,r)=>r===me?[_c(t.children[me],!1)]:[`${r}:${_c(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[me]!=null?`${Vh(t)}/${e[0]}`:`${Vh(t)}/(${e.join("//")})`}}function iT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lh(t){return iT(t).replace(/%3B/gi,";")}function eH(t){return encodeURI(t)}function G_(t){return iT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bh(t){return decodeURIComponent(t)}function zA(t){return Bh(t.replace(/\+/g,"%20"))}function rT(t){return`${G_(t.path)}${tH(t.parameters)}`}function tH(t){return Object.entries(t).map(([n,e])=>`;${G_(n)}=${G_(e)}`).join("")}function nH(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Lh(e)}=${Lh(r)}`).join("&"):`${Lh(e)}=${Lh(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}function V_(t){let n=t.match(iH);return n?n[0]:""}function oH(t){let n=t.match(rH);return n?n[0]:""}function aH(t){let n=t.match(sH);return n?n[0]:""}function cH(t){let n=t.match(lH);return n?n[0]:""}function oT(t){return t.segments.length>0?new Ne([],{[me]:t}):t}function sT(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=sT(r);if(i===me&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new Ne(t.segments,n);return dH(e)}function dH(t){if(t.numberOfChildren===1&&t.children[me]){let n=t.children[me];return new Ne(t.segments.concat(n.segments),n.children)}return t}function Ho(t){return t instanceof Xi}function uH(t,n,e=null,i=null){let r=aT(t);return lT(r,n,e,i)}function aT(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Ne(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=oT(i);return n??r}function lT(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return B_(r,r,r,e,i);let o=fH(n);if(o.toRoot())return B_(r,r,new Ne([],{}),e,i);let s=hH(o,r,t),a=s.processChildren?Cc(s.segmentGroup,s.index,o.commands):dT(s.segmentGroup,s.index,o.commands);return B_(r,s.segmentGroup,a,e,i)}function Uh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Dc(t){return typeof t=="object"&&t!=null&&t.outlets}function B_(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=cT(t,n,e);let a=oT(sT(s));return new Xi(a,o,r)}function cT(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=cT(o,n,e)}),new Ne(t.segments,i)}function fH(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zh(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new zh(e,n,i)}function hH(t,n,e){if(t.isAbsolute)return new Aa(n,!0,0);if(!e)return new Aa(n,!1,NaN);if(e.parent===null)return new Aa(e,!0,0);let i=Uh(t.commands[0])?0:1,r=e.segments.length-1+i;return pH(e,r,t.numberOfDoubleDots)}function pH(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Aa(i,!1,r-o)}function mH(t){return Dc(t[0])?t[0].outlets:{[me]:t}}function dT(t,n,e){if(t??=new Ne([],{}),t.segments.length===0&&t.hasChildren())return Cc(t,n,e);let i=gH(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new Ne(t.segments.slice(0,i.pathIndex),{});return o.children[me]=new Ne(t.segments.slice(i.pathIndex),t.children),Cc(o,0,r)}else return i.match&&r.length===0?new Ne(t.segments,{}):i.match&&!t.hasChildren()?q_(t,n,e):i.match?Cc(t,0,r):q_(t,n,e)}function Cc(t,n,e){if(e.length===0)return new Ne(t.segments,{});{let i=mH(e),r={};if(Object.keys(i).some(o=>o!==me)&&t.children[me]&&t.numberOfChildren===1&&t.children[me].segments.length===0){let o=Cc(t.children[me],n,e);return new Ne(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=dT(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ne(t.segments,r)}}function gH(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(Dc(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!HA(l,c,s))return o;i+=2}else{if(!HA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function q_(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Dc(o)){let l=vH(o.outlets);return new Ne(i,l)}if(r===0&&Uh(e[0])){let l=t.segments[n];i.push(new zo(l.path,$A(e[0]))),r++;continue}let s=Dc(o)?o.outlets[me]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Uh(a)?(i.push(new zo(s,$A(a))),r+=2):(i.push(new zo(s,{})),r++)}return new Ne(i,{})}function vH(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=q_(new Ne([],{}),0,i))}),n}function $A(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function HA(t,n,e){return t==e.path&&di(n,e.parameters)}function yH(t,n){return t.providers&&!t._injector&&(t._injector=Ju(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Vn(t){return t.outlet||me}function _H(t,n){let e=t.filter(i=>Vn(i)===n);return e.push(...t.filter(i=>Vn(i)!==n)),e}function Fc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function ob(t,n){if(t===n.value)return n;for(let e of n.children){let i=ob(t,e);if(i)return i}return null}function sb(t,n){if(t===n.value)return[n];for(let e of n.children){let i=sb(t,e);if(i.length)return i.unshift(n),i}return[]}function Sa(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}function uT(t){let n=bH(t),e=new ot([new zo("",{})]),i=new ot({}),r=new ot({}),o=new ot({}),s=new ot(""),a=new Go(e,i,o,s,r,me,t,n.root);return a.snapshot=n.root,new qh(new dn(a,[]),n)}function bH(t){let n={},e={},i={},r="",o=new Ta([],n,i,r,e,me,t,null,{});return new Kh("",new dn(o,[]))}function Yh(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:x(x({},n.params),t.params),data:x(x({},n.data),t.data),resolve:x(x(x(x({},t.data),n.data),r?.data),t._resolvedData)}:i={params:x({},t.params),data:x({},t.data),resolve:x(x({},t.data),t._resolvedData??{})},r&&hT(r)&&(i.resolve[Oc]=r.title),i}function mb(t,n){n.value._routerState=t,n.children.forEach(e=>mb(t,e))}function fT(t){let n=t.children.length>0?` { ${t.children.map(fT).join(", ")} } `:"";return`${t.value}${n}`}function U_(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,di(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),di(n.params,e.params)||t.paramsSubject.next(e.params),q$(n.url,e.url)||t.urlSubject.next(e.url),di(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ab(t,n){let e=di(t.params,n.params)&&Z$(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||ab(t.parent,n.parent))}function hT(t){return typeof t.title=="string"||t.title===null}function CH(t,n,e){let i=Sc(t,n._root,e?e._root:void 0);return new qh(i,n)}function Sc(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=wH(t,n,e);return new dn(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Sc(t,a)),s}}let i=EH(n.value),r=n.children.map(o=>Sc(t,o));return new dn(i,r)}}function wH(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Sc(t,i,r);return Sc(t,i)})}function EH(t){return new Go(new ot(t.url),new ot(t.params),new ot(t.queryParams),new ot(t.fragment),new ot(t.data),t.outlet,t.component,t)}function Qh(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Ho(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=mT(!1,un.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function mT(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[pT]=!0,e.cancellationCode=n,e}function DH(t){return gT(t)&&Ho(t.url)}function gT(t){return!!t&&t[pT]}function MH(t,n,e){let i=t._root,r=n?n._root:null;return bc(i,r,e,[i.value])}function SH(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pa(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!hw(t)?t:n.get(t):i}function bc(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Sa(n);return t.children.forEach(s=>{AH(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ec(a,e.getContext(s),r)),r}function AH(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=TH(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Zh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?bc(t,n,a?a.children:null,i,r):bc(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ra(a.outlet.component,s))}else s&&Ec(n,a,r),r.canActivateChecks.push(new Zh(i)),o.component?bc(t,null,a?a.children:null,i,r):bc(t,null,e,i,r);return r}function TH(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!$o(t.url,n.url);case"pathParamsOrQueryParamsChange":return!$o(t.url,n.url)||!di(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ab(t,n)||!di(t.queryParams,n.queryParams);case"paramsChange":default:return!ab(t,n)}}function Ec(t,n,e){let i=Sa(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?Ec(s,n.children.getContext(o),e):Ec(s,null,e):Ec(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ra(n.outlet.component,r)):e.canDeactivateChecks.push(new Ra(null,r)):e.canDeactivateChecks.push(new Ra(null,r))}function Lc(t){return typeof t=="function"}function RH(t){return typeof t=="boolean"}function OH(t){return t&&Lc(t.canLoad)}function kH(t){return t&&Lc(t.canActivate)}function FH(t){return t&&Lc(t.canActivateChild)}function NH(t){return t&&Lc(t.canDeactivate)}function LH(t){return t&&Lc(t.canMatch)}function vT(t){return t instanceof mi||t?.name==="EmptyError"}function La(){return ze(t=>so(t.map(n=>n.pipe(Te(1),wt(Ph)))).pipe(P(n=>{for(let e of n)if(e!==!0){if(e===Ph)return Ph;if(e===!1||PH(e))return e}return!0}),ue(n=>n!==Ph),Te(1)))}function PH(t){return Ho(t)||t instanceof Ac}function jH(t,n){return Ue(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?O(ne(x({},e),{guardsResult:!0})):VH(s,i,r,t).pipe(Ue(a=>a&&RH(a)?BH(i,o,t,n):O(a)),P(a=>ne(x({},e),{guardsResult:a})))})}function VH(t,n,e,i){return Le(t).pipe(Ue(r=>GH(r.component,r.route,e,n,i)),$n(r=>r!==!0,!0))}function BH(t,n,e,i){return Le(n).pipe(Rn(r=>Xt(zH(r.route.parent,i),UH(r.route,i),HH(t,r.path,e),$H(t,r.route,e))),$n(r=>r!==!0,!0))}function UH(t,n){return t!==null&&n&&n(new nb(t)),O(!0)}function zH(t,n){return t!==null&&n&&n(new eb(t)),O(!0)}function $H(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return O(!0);let r=i.map(o=>Jt(()=>{let s=Fc(n)??e,a=Pa(o,s),l=kH(a)?a.canActivate(n,t):yn(s,()=>a(n,t));return Gr(l).pipe($n())}));return O(r).pipe(La())}function HH(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>SH(s)).filter(s=>s!==null).map(s=>Jt(()=>{let a=s.guards.map(l=>{let c=Fc(s.node)??e,d=Pa(l,c),u=FH(d)?d.canActivateChild(i,t):yn(c,()=>d(i,t));return Gr(u).pipe($n())});return O(a).pipe(La())}));return O(o).pipe(La())}function GH(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let l=Fc(n)??r,c=Pa(a,l),d=NH(c)?c.canDeactivate(t,n,e,i):yn(l,()=>c(t,n,e,i));return Gr(d).pipe($n())});return O(s).pipe(La())}function WH(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=OH(a)?a.canLoad(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function yT(t){return Bp(Pe(n=>{if(typeof n!="boolean")throw Qh(t,n)}),P(n=>n===!0))}function qH(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=LH(a)?a.canMatch(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function Ma(t){return nr(new Tc(t))}function YH(t){return nr(new S(4e3,!1))}function KH(t){return nr(mT(!1,un.GuardRejected))}function QH(t,n,e,i,r){let o=_T(t,n,e);return o.matched?(i=yH(n,i),qH(i,n,e,r).pipe(P(s=>s===!0?o:x({},ub)))):O(o)}function _T(t,n,e){if(n.path==="**")return ZH(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?x({},ub):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||W$)(e,t,n);if(!r)return x({},ub);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?x(x({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ZH(t){return{matched:!0,parameters:t.length>0?XA(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function WA(t,n,e,i){return e.length>0&&eG(t,e,i)?{segmentGroup:new Ne(n,JH(i,new Ne(e,t.children))),slicedSegments:[]}:e.length===0&&tG(t,e,i)?{segmentGroup:new Ne(t.segments,XH(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Ne(t.segments,t.children),slicedSegments:e}}function XH(t,n,e,i){let r={};for(let o of e)if(tp(t,n,o)&&!i[Vn(o)]){let s=new Ne([],{});r[Vn(o)]=s}return x(x({},i),r)}function JH(t,n){let e={};e[me]=n;for(let i of t)if(i.path===""&&Vn(i)!==me){let r=new Ne([],{});e[Vn(i)]=r}return e}function eG(t,n,e){return e.some(i=>tp(t,n,i)&&Vn(i)!==me)}function tG(t,n,e){return e.some(i=>tp(t,n,i))}function tp(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function nG(t,n,e){return n.length===0&&!t.children[e]}function iG(t,n,e,i,r,o,s="emptyOnly"){return new hb(t,n,e,i,r,s,o).recognize()}function oG(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}function sG(t){let n=t.value.routeConfig;return n&&n.path===""}function bT(t){let n=[],e=new Set;for(let i of t){if(!sG(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=bT(i.children);n.push(new dn(i.value,r))}return n.filter(i=>!e.has(i))}function qA(t){return t.data||{}}function YA(t){return t.resolve||{}}function aG(t,n,e,i,r,o){return Ue(s=>iG(t,n,e,i,s.extractedUrl,r,o).pipe(P(({state:a,tree:l})=>ne(x({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function lG(t,n){return Ue(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return O(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of xT(l))s.add(c);let a=0;return Le(s).pipe(Rn(l=>o.has(l)?cG(l,i,t,n):(l.data=Yh(l,l.parent,t).resolve,O(void 0))),Pe(()=>a++),gs(1),Ue(l=>a===s.size?O(e):Bt))})}function xT(t){let n=t.children.map(e=>xT(e)).flat();return[t,...n]}function cG(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!hT(r)&&(o[Oc]=r.title),dG(o,t,n,i).pipe(P(s=>(t._resolvedData=s,t.data=Yh(t,t.parent,e).resolve,null)))}function dG(t,n,e,i){let r=H_(t);if(r.length===0)return O({});let o={};return Le(r).pipe(Ue(s=>uG(t[s],n,e,i).pipe($n(),Pe(a=>{if(a instanceof Ac)throw Qh(new ka,a);o[s]=a}))),gs(1),el(o),en(s=>vT(s)?Bt:nr(s)))}function uG(t,n,e,i){let r=Fc(n)??i,o=Pa(t,r),s=o.resolve?o.resolve(n,e):yn(r,()=>o(n,e));return Gr(s)}function z_(t){return ze(n=>{let e=t(n);return e?Le(e).pipe(P(()=>n)):O(n)})}function gb(t){let n=t.children&&t.children.map(gb),e=n?ne(x({},t),{children:n}):x({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=hG),e}function pG(t,n,e,i){return Gr(t.loadChildren()).pipe(P(wT),Ue(r=>r instanceof fl||Array.isArray(r)?O(r):Le(n.compileModuleAsync(r))),P(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Xh,[],{optional:!0,self:!0}).flat()),{routes:s.map(gb),injector:o}}))}function mG(t){return t&&typeof t=="object"&&"default"in t}function wT(t){return mG(t)?t.default:t}function vG(t,n,e){let i=t.get(DT),r=t.get(B);return t.get(k).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),yG(t))),{onViewTransitionCreated:l}=i;return l&&yn(t,()=>l({transition:a,from:n,to:e})),s})}function yG(t){return new Promise(n=>{on({read:()=>setTimeout(n)},{injector:t})})}function bG(t){return t!==wc}function MT(t,n){t.events.pipe(ue(e=>e instanceof ui||e instanceof Zi||e instanceof Ic||e instanceof $r),P(e=>e instanceof ui||e instanceof $r?xc.COMPLETE:(e instanceof Zi?e.code===un.Redirect||e.code===un.SupersededByNewNavigation:!1)?xc.REDIRECTING:xc.FAILED),ue(e=>e!==xc.REDIRECTING),Te(1)).subscribe(()=>{n()})}function EG(t){throw t}function MG(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}function SG(t){return!(t instanceof Mc)&&!(t instanceof Na)}function RG(t){return t.routerState.root}function jc(t,n){return{\u0275kind:t,\u0275providers:n}}function OG(){let t=y(De);return n=>{let e=t.get(sn);if(n!==e.components[0])return;let i=t.get(Hr),r=t.get(TT);t.get(bb)===1&&i.initialNavigation(),t.get(RT,null,xe.Optional)?.setUpPreloading(),t.get(AT,null,xe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function kG(){return jc(2,[{provide:bb,useValue:0},{provide:lf,multi:!0,deps:[De],useFactory:n=>{let e=n.get(_I,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(Hr),o=n.get(TT);MT(r,()=>{i(!0)}),n.get(_b).afterPreactivation=()=>(i(!0),o.closed?O(void 0):o),r.initialNavigation()}))}}])}function FG(){return jc(3,[{provide:lf,multi:!0,useFactory:()=>{let n=y(Hr);return()=>{n.setUpLocationChangeListener()}}},{provide:bb,useValue:2}])}function NG(t){return jc(0,[{provide:RT,useExisting:AG},{provide:Jh,useExisting:t}])}function LG(){return jc(8,[GA,{provide:ep,useExisting:GA}])}function PG(t){let n=[{provide:ET,useValue:vG},{provide:DT,useValue:x({skipNextTransition:!!t?.skipInitialTransition},t)}];return jc(9,n)}function VG(){return{provide:AT,useFactory:()=>{let t=y(wI),n=y(k),e=y(Pc),i=y(_b),r=y(kc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new TG(r,i,t,n,e)}}}function BG(){return{provide:Fi,useClass:xI}}function UG(){return{provide:Fi,useClass:ty}}function zG(t){return"guarded"}function $G(t){return[t.initialNavigation==="disabled"?FG().\u0275providers:[],t.initialNavigation==="enabledBlocking"?kG().\u0275providers:[]]}function HG(){return[{provide:QA,useFactory:OG},{provide:zs,multi:!0,useExisting:QA}]}var me,Oc,$_,Y$,JA,Xi,Ne,zo,kc,ka,J$,iH,rH,sH,lH,W_,zh,Aa,wc,Ct,Sn,Fa,ui,un,$h,Zi,$r,Ic,Hh,Y_,K_,Q_,Z_,X_,J_,eb,tb,nb,ib,Gh,Mc,Na,rb,Nc,Wh,dn,qh,Go,Ta,Kh,xH,lb,ep,GA,Ac,pT,IH,cb,Zh,Ra,Ph,Tc,Rc,db,ub,fb,rG,hb,CT,fG,Pc,hG,Xh,vb,yb,gG,ET,DT,_G,_b,xG,pb,CG,IT,wG,xc,DG,IG,Hr,ST,Jh,AG,AT,TG,TT,bb,RT,KA,jG,OT,QA,xb=f(()=>{"use strict";M();M();ke();we();we();st();Gs();me="primary",Oc=Symbol("RouteTitle"),$_=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};Y$={exact:eT,subset:tT},JA={exact:K$,subset:Q$,ignored:()=>!0};Xi=class{constructor(n=new Ne([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){return J$.serialize(this)}},Ne=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vh(this)}},zo=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Oa(this.parameters),this._parameterMap}toString(){return rT(this)}};kc=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new ka,providedIn:"root"})}}return t})(),ka=class{parse(n){let e=new W_(n);return new Xi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_c(n.root,!0)}`,i=nH(n.queryParams),r=typeof n.fragment=="string"?`#${eH(n.fragment)}`:"";return`${e}${i}${r}`}},J$=new ka;iH=/^[^\/()?;#]+/;rH=/^[^\/()?;=#]+/;sH=/^[^=?&#]+/;lH=/^[^&#]+/;W_=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[me]=new Ne(n,e)),i}parseSegment(){let n=V_(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new zo(Bh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=oH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=V_(this.remaining);r&&(i=r,this.capture(i))}n[Bh(e)]=Bh(i)}parseQueryParam(n){let e=aH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=cH(this.remaining);s&&(i=s,this.capture(i))}let r=zA(e),o=zA(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=V_(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=me);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[me]:new Ne([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};zh=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Uh(i[0]))throw new S(4003,!1);let r=i.find(Dc);if(r&&r!==XA(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Aa=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};wc="imperative",Ct=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ct||{}),Sn=class{constructor(n,e){this.id=n,this.url=e}},Fa=class extends Sn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Ct.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ui=class extends Sn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),$h=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($h||{}),Zi=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$r=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationSkipped}},Ic=class extends Sn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},K_=class extends Sn{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Q_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Z_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},X_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},J_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},eb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nb=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ib=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gh=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Ct.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mc=class{},Na=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};rb=class{get injector(){return Fc(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Nc(this.rootInjector),this.attachRef=null}},Nc=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new rb(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wh=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ob(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=ob(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sb(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return sb(n,this._root).map(e=>e.value)}};dn=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};qh=class extends Wh{constructor(n,e){super(n),this.snapshot=e,mb(this,n)}toString(){return this.snapshot.toString()}};Go=class{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(P(c=>c[Oc]))??O(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(n=>Oa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(n=>Oa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};Ta=class{get title(){return this.data?.[Oc]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Oa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Kh=class extends Wh{constructor(n,e){super(e),this.url=n,mb(this,e)}toString(){return fT(this._root)}};xH=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new V,this.deactivateEvents=new V,this.attachEvents=new V,this.detachEvents=new V,this.parentContexts=y(Nc),this.location=y(_t),this.changeDetector=y(Be),this.inputBinder=y(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lb(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[He]})}}return t})(),lb=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Go?this.route:n===Nc?this.childContexts:this.parent.get(n,e)}},ep=new C(""),GA=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=so([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=x(x(x({},o),s),a),l===0?O(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=dI(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();Ac=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},pT="ngNavigationCancelingError";IH=(t,n,e,i)=>P(r=>(new cb(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),cb=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),U_(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ib(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tb(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(U_(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),U_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Zh=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ra=class{constructor(n,e){this.component=n,this.route=e}};Ph=Symbol("INITIAL_VALUE");Tc=class{constructor(n){this.segmentGroup=n||null}},Rc=class extends Error{constructor(n){super(),this.urlTree=n}};db=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return O(i);if(r.numberOfChildren>1||!r.children[me])return YH(`${n.redirectTo}`);r=r.children[me]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,params:p,data:v,title:_}=r,E=yn(o,()=>a({params:p,data:v,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,title:_}));if(E instanceof Xi)throw new Rc(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Rc(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Xi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new Ne(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},ub={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};fb=class{};rG=31,hb=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new db(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=WA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(P(({children:e,rootSnapshot:i})=>{let r=new dn(i,e),o=new Kh("",r),s=uH(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Ta([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),me,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,me,e).pipe(P(i=>({children:i,rootSnapshot:e})),en(i=>{if(i instanceof Rc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Tc?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(P(s=>s instanceof dn?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Le(o).pipe(Rn(s=>{let a=i.children[s],l=_H(e,s);return this.processSegmentGroup(n,l,a,s,r)}),xm((s,a)=>(s.push(...a),s)),rr(null),bm(),Ue(s=>{if(s===null)return Ma(i);let a=bT(s);return oG(a),O(a)}))}processSegment(n,e,i,r,o,s,a){return Le(e).pipe(Rn(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a).pipe(en(c=>{if(c instanceof Tc)return O(null);throw c}))),$n(l=>!!l),en(l=>{if(vT(l))return nG(i,r,o)?O(new fb):Ma(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return Vn(i)!==s&&(s===me||!tp(r,o,i))?Ma(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l):Ma(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:m}=_T(e,r,o);if(!l)return Ma(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rG&&(this.allowRedirects=!1));let p=new Ta(o,c,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(r),Vn(r),r.component??r._loadedComponent??null,r,YA(r)),v=Yh(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let _=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,p,n);return this.applyRedirects.lineralizeSegments(r,_).pipe(Ue(E=>this.processSegment(n,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=QH(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??n,{parameters:u,consumedSegments:m,remainingSegments:p}=l,v=new Ta(m,u,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(i),Vn(i),i.component??i._loadedComponent??null,i,YA(i)),_=Yh(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(_.params),v.data=Object.freeze(_.data);let{segmentGroup:E,slicedSegments:I}=WA(e,m,p,c);if(I.length===0&&E.hasChildren())return this.processChildren(d,c,E,v).pipe(P(H=>new dn(v,H)));if(c.length===0&&I.length===0)return O(new dn(v,[]));let U=Vn(i)===o;return this.processSegment(d,c,E,I,U?me:o,!0,v).pipe(P(H=>new dn(v,H instanceof dn?[H]:[])))}))):Ma(e)))}getChildConfig(n,e,i){return e.children?O({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?O({routes:e._loadedRoutes,injector:e._loadedInjector}):WH(n,e,i,this.urlSerializer).pipe(Ue(r=>r?this.configLoader.loadChildren(n,e).pipe(Pe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):KH(e))):O({routes:[],injector:n})}};CT=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===me);return i}getResolvedTitleForRoute(e){return e.data[Oc]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(fG),providedIn:"root"})}}return t})(),fG=(()=>{class t extends CT{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(g(GI))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pc=new C("",{providedIn:"root",factory:()=>({})}),hG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["ng-component"]],standalone:!0,features:[Se],decls:1,vars:0,template:function(i,r){i&1&&oe(0,"router-outlet")},dependencies:[xH],encapsulation:2})}}return t})();Xh=new C(""),vb=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(cf)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return O(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Gr(e.loadComponent()).pipe(P(wT),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Wt(()=>{this.componentLoaders.delete(e)})),r=new to(i,()=>new R).pipe(ss());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return O({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=pG(i,this.compiler,e,this.onLoadEndListener).pipe(Wt(()=>{this.childrenLoaders.delete(i)})),s=new to(o,()=>new R).pipe(ss());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();yb=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(gG),providedIn:"root"})}}return t})(),gG=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ET=new C(""),DT=new C("");_G=new C(""),_b=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new R,this.transitionAbortSubject=new R,this.configLoader=y(vb),this.environmentInjector=y(Dt),this.urlSerializer=y(kc),this.rootContexts=y(Nc),this.location=y(Zn),this.inputBindingEnabled=y(ep,{optional:!0})!==null,this.titleStrategy=y(CT),this.options=y(Pc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(yb),this.createViewTransition=y(ET,{optional:!0}),this.navigationErrorHandler=y(_G,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null;let e=r=>this.events.next(new X_(r)),i=r=>this.events.next(new J_(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ne(x(x({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ue(o=>o.id!==0),P(o=>ne(x({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return O(o).pipe(ze(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),Bt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ne(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.rawUrl),u,$h.IgnoredSameUrlNavigation)),l.resolve(!1),Bt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return O(l).pipe(ze(u=>{let m=this.transitions?.getValue();return this.events.next(new Fa(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),m!==this.transitions?.getValue()?Bt:Promise.resolve(u)}),aG(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Pe(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=ne(x({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let m=new Hh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:u,extractedUrl:m,source:p,restoredState:v,extras:_}=l,E=new Fa(u,this.urlSerializer.serialize(m),p,v);this.events.next(E);let I=uT(this.rootComponentType).snapshot;return this.currentTransition=o=ne(x({},l),{targetSnapshot:I,urlAfterRedirects:m,extras:ne(x({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,O(o)}else{let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.extractedUrl),u,$h.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Bt}}),Pe(l=>{let c=new Y_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=o=ne(x({},l),{guards:MH(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),jH(this.environmentInjector,l=>this.events.next(l)),Pe(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Qh(this.urlSerializer,l.guardsResult);let c=new K_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ue(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",un.GuardRejected),!1)),z_(l=>{if(l.guards.canActivateChecks.length)return O(l).pipe(Pe(c=>{let d=new Q_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),ze(c=>{let d=!1;return O(c).pipe(lG(this.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",un.NoDataFromResolver)}}))}),Pe(c=>{let d=new Z_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),z_(l=>{let c=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Pe(m=>{d.component=m}),P(()=>{})));for(let m of d.children)u.push(...c(m));return u};return so(c(l.targetSnapshot.root)).pipe(rr(null),Te(1))}),z_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Le(d).pipe(P(()=>o)):O(o)}),P(l=>{let c=CH(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ne(x({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Pe(()=>{this.events.next(new Mc)}),IH(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),Pe({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),ae(this.transitionAbortSubject.pipe(Pe(l=>{throw l}))),Wt(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(l=>{if(a=!0,gT(l))this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),DH(l)?this.events.next(new Na(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Ic(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let d=yn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Ac){let{message:u,cancellationCode:m}=Qh(this.urlSerializer,d);this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),u,m)),this.events.next(new Na(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let u=e.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Bt}))}))}cancelNavigationTransition(e,i,r){let o=new Zi(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(CG),providedIn:"root"})}}return t})(),pb=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},CG=(()=>{class t extends pb{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),IT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(wG),providedIn:"root"})}}return t})(),wG=(()=>{class t extends IT{constructor(){super(...arguments),this.location=y(Zn),this.urlSerializer=y(kc),this.options=y(Pc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(yb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Xi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Fa)this.stateMemento=this.createStateMemento();else if(e instanceof $r)this.rawUrlTree=i.initialUrl;else if(e instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Mc?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Zi&&(e.code===un.GuardRejected||e.code===un.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ic?this.restoreHistory(i,!0):e instanceof ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Xi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=x(x({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xc||{});DG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=y(af),this.stateManager=y(IT),this.options=y(Pc,{optional:!0})||{},this.pendingTasks=y(Di),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(_b),this.urlSerializer=y(kc),this.location=y(Zn),this.urlHandlingStrategy=y(yb),this._events=new R,this.errorHandler=this.options.errorHandler||EG,this.navigated=!1,this.routeReuseStrategy=y(xG),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(Xh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(ep,{optional:!0}),this.eventsSubscription=new ge,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Zi&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ui)this.navigated=!0;else if(i instanceof Na){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=x({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bG(r.source)},s);this.scheduleNavigation(a,wc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}SG(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=x({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=x(x({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let m=r?r.snapshot:this.routerState.snapshot.root;u=aT(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return lT(u,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ho(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,wc,null,i)}navigate(e,i={skipLocationChange:!1}){return MG(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=x({},DG):i===!1?r=x({},IG):r=i,Ho(e))return UA(this.currentUrlTree,e,r);let o=this.parseUrl(e);return UA(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,m)=>{a=u,l=m});let d=this.pendingTasks.add();return MT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();ST=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new R,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ui&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Ho(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:BE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Ho(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(h(Hr),h(Go),yr("tabindex"),h(Qn),h(F),h(Fi))}}static{this.\u0275dir=j({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&K("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},standalone:!0,features:[lt,He]})}}return t})(),Jh=class{},AG=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ui),Rn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Ju(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(r).pipe(ir())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=O(null);let o=r.pipe(Ue(s=>s===null?O(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Le([o,s]).pipe(ir())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(g(Hr),g(cf),g(Dt),g(Jh),g(vb))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),AT=new C(""),TG=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ui?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $r&&e.code===$h.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Gh&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gh(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){js()}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();TT=new C("",{factory:()=>new R}),bb=new C("",{providedIn:"root",factory:()=>1});RT=new C("");KA=new C("ROUTER_FORROOT_GUARD"),jG=[Zn,{provide:kc,useClass:ka},Hr,Nc,{provide:Go,useFactory:RG,deps:[Hr]},vb,[]],OT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jG,[],{provide:Xh,multi:!0,useValue:e},{provide:KA,useFactory:zG,deps:[[Hr,new ml,new Tu]]},{provide:Pc,useValue:i||{}},i?.useHash?BG():UG(),VG(),i?.preloadingStrategy?NG(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?$G(i):[],i?.bindToComponentInputs?LG().\u0275providers:[],i?.enableViewTransitions?PG().\u0275providers:[],HG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Xh,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(g(KA,8))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})();QA=new C("")});var WG,kT,Cb=f(()=>{"use strict";M();M();ii();Yi();Ht();WG=["clearButton"],kT=(()=>{class t{constructor(){this.tldClick=new V,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["tld-close-button"]],viewQuery:function(i,r){if(i&1&&Ve(WG,5),i&2){let o;he(o=pe())&&(r.clearButton=o.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1,0),se(2,"translate"),se(3,"translate"),K("click",function(){return ve(o),ye(r.clicked())}),D(4,"span",2),le(5," close "),T()()}i&2&&(A("matTooltip",be(2,3,r.tooltip))("disabled",r.disabled),_e("aria-label",be(3,5,"ARIA_LABELS."+r.ariaCode)))},dependencies:[Or,li,En],encapsulation:2})}}return t})()});var FT,NT=f(()=>{"use strict";we();Cb();ii();Ht();Yi();M();FT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,ei,_a]})}}return t})()});function KG(t,n){if(t&1&&(oe(0,"p",10),se(1,"translate")),t&2){let e=$();A("innerHtml",So(1,1,e.message.title,e.message.localizationParams),Ps)}}function QG(t,n){if(t&1&&(oe(0,"span",12),se(1,"translate")),t&2){let e=$(2);A("innerHtml",So(1,1,e.message.support,e.message.localizationParams),Ps)}}function ZG(t,n){if(t&1&&(D(0,"p",11),oe(1,"span",12),se(2,"translate"),ee(3,QG,2,4,"span",13),T()),t&2){let e=$();w(),A("innerHtml",So(2,2,e.message.body,e.message.localizationParams),Ps),w(2),A("ngIf",e.message.support)}}function XG(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$(2);w(),pt(e.message.callbackButtonIcon)}}function JG(t,n){if(t&1){let e=Ge();D(0,"button",14),K("click",function(){ve(e);let r=$();return ye(r.message==null?null:r.message.callbackButtonClick())}),ee(1,XG,2,1,"mat-icon",15),le(2),se(3,"translate"),T()}if(t&2){let e=$();w(),A("ngIf",e.message.callbackButtonIcon),w(),it(" ",be(3,2,e.message.callbackButtonText)," ")}}function e3(t,n){if(t&1){let e=Ge();D(0,"tld-close-button",16),K("tldClick",function(){ve(e);let r=$();return ye(r.closeClick())}),T()}if(t&2){let e=$();fe("no-top-margin",!e.message.title||!e.message.body)}}function t3(t,n){if(t&1){let e=Ge();D(0,"button",21),K("click",function(){ve(e);let r=$(2);return ye(r.buttonClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);w(),it("",be(2,1,e.message.buttonText)," ")}}function n3(t,n){if(t&1){let e=Ge();D(0,"a",22),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);_e("href",e.message.linkHref,xv),w(),pt(be(2,2,e.message.linkText))}}function i3(t,n){if(t&1){let e=Ge();D(0,"a",23),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);A("routerLink",sf(4,YG,e.message.routerLink)),w(),pt(be(2,2,e.message.linkText))}}function r3(t,n){if(t&1&&(D(0,"div",17),ee(1,t3,3,3,"button",18)(2,n3,3,4,"a",19)(3,i3,3,6,"a",20),T()),t&2){let e=$();w(),A("ngIf",e.message.buttonText),w(),A("ngIf",e.message.linkHref&&e.message.linkText),w(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var YG,LT,np=f(()=>{"use strict";M();M();we();Sh();Ea();Cb();ii();xb();Fr();Ht();YG=t=>[t];LT=(()=>{class t{constructor(){this.buttonClicked=new V,this.closeClicked=new V,this.linkClicked=new V,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"div",0)(2,"span",1),le(3),T(),D(4,"div",2)(5,"div",3)(6,"div",4),ee(7,KG,2,4,"p",5)(8,ZG,4,5,"p",6),T(),ee(9,JG,4,4,"button",7)(10,e3,1,2,"tld-close-button",8),T(),ee(11,r3,4,3,"div",9),T()()()),i&2&&(tf("notification-message ",r.className,""),w(),fe("inline",r.inline),A("ngClass.lt-md","mobile"),_e("id",r.message.id),w(2),it(" ",r.iconNames[r.message.type]," "),w(4),A("ngIf",r.message.title),w(),A("ngIf",r.message.body),w(),A("ngIf",r.message.callbackButtonText),w(),A("ngIf",!r.message.hideClose&&!r.message.callbackButtonText),w(),A("ngIf",r.message.buttonText||r.message.linkHref||r.message.routerLink))},dependencies:[Hs,lA,sA,rA,iA,wa,kT,ah,ST,kr,En],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-100)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title + .message-body)[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]})}}return t})()});var PT,jT=f(()=>{"use strict";we();Ah();ii();xb();Ht();NT();np();Fr();M();PT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,Da,FT,ha,ei,OT,dh]})}}return t})()});var Wo,wb=f(()=>{"use strict";Wo=function(t){return t.BASIC="BASIC",t.INFO="INFO",t.WARNING="WARNING",t.SUCCESS="SUCCESS",t.ERROR="ERROR",t}(Wo||{})});var VT=f(()=>{"use strict";wb()});var BT=f(()=>{"use strict"});var UT=f(()=>{"use strict";BT()});var Eb=f(()=>{"use strict";jT();np();VT();UT()});var Db=f(()=>{"use strict"});var zT=f(()=>{"use strict";Eb();Db()});var $T=f(()=>{"use strict"});var HT=f(()=>{"use strict";$T()});var GT=f(()=>{"use strict";Db()});var WT=f(()=>{"use strict";zT();HT();GT()});var qT=f(()=>{"use strict"});var YT=f(()=>{"use strict"});var KT=f(()=>{"use strict"});var QT=f(()=>{"use strict"});var ZT=f(()=>{"use strict"});var XT=f(()=>{"use strict"});var JT=f(()=>{"use strict"});var eR=f(()=>{"use strict"});var tR=f(()=>{"use strict";j_()});var Ib=f(()=>{"use strict"});var nR=f(()=>{"use strict";qo();Ib()});var iR=f(()=>{"use strict";Ib()});var Mb=f(()=>{"use strict";nR();iR()});var rR=f(()=>{"use strict";Mb()});var oR=f(()=>{"use strict"});var sR=f(()=>{"use strict"});var qo=f(()=>{"use strict";qT();YT();KT();QT();ZT();XT();JT();eR();tR();rR();oR();sR()});var aR=f(()=>{"use strict"});var lR=f(()=>{"use strict"});var cR=f(()=>{"use strict"});var dR=f(()=>{"use strict"});var uR=f(()=>{"use strict"});var fR=f(()=>{"use strict"});var hR=f(()=>{"use strict"});var pR=f(()=>{"use strict"});var mR=f(()=>{"use strict";aR();lR();cR();dR();uR();fR();hR();pR()});var gR=f(()=>{"use strict"});var vR=f(()=>{"use strict"});var yR=f(()=>{"use strict";vR()});var _R=f(()=>{"use strict";qo();mR();gR();yR()});var bR=f(()=>{"use strict";_R()});var xR=f(()=>{"use strict";bR()});var Sb=f(()=>{"use strict"});var CR=f(()=>{"use strict";Sb()});var wR=f(()=>{"use strict";CR();Sb()});var Ab=f(()=>{"use strict"});var ER=f(()=>{"use strict";Ab()});var DR=f(()=>{"use strict";ER();Ab()});var Tb=f(()=>{"use strict"});var IR=f(()=>{"use strict";Tb()});var MR=f(()=>{"use strict";IR();Tb()});var SR,Rb=f(()=>{"use strict";M();Ht();SR=(()=>{class t{constructor(e){this.translate=e,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(e,i=!1){if(!e)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let r=`${e}:${i}`;if(this.translationCache.has(r))return this.translationCache.get(r);let o=this.getLanguageFromLanguageCode(e),a=this.isLanguageCodeSameAsRegion(e)?o:e,l=this.getTranslation(a,i);return this.translationCache.set(r,l),l}getTranslation(e,i){let o=this.translate.instant(this.languagesLocalizationKey)[e.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,e);return i&&(o=o.split("(")[0].trim()),o}getLanguageTranslationFromLanguageCode(e,i){let r=new Intl.DisplayNames([e],{type:"language"}),o=new Intl.DisplayNames([e],{type:"region"}),s,a=this.getLanguageFromLanguageCode(i),l=this.getRegionFromLanguageCode(i);try{let c=r.of(a),d=o.of(l);s=`${c} (${d})`}catch{try{s=r.of(i)}catch{return s=this.translations[e]?.[a]??i,s}}return this.capitalizeFirstLetter(s)}isLanguageCodeSameAsRegion(e){let[i,r,o]=e.split("-");return(i===r?.toLowerCase()||this.localeSameRegions[i]?.includes(r?.toLowerCase()))&&!o}getRegionFromLanguageCode(e){let[i,r,o]=e.split("-");return(o?`${r}-${o}`:`${r}`).toUpperCase()}getLanguageFromLanguageCode(e){return e.split("-")[0].toLowerCase()}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}static{this.\u0275fac=function(i){return new(i||t)(h(Li,16))}}static{this.\u0275pipe=ks({name:"languageTranslate",type:t,pure:!1,standalone:!0})}}return t})()});var AR=f(()=>{"use strict";Rb()});var TR=f(()=>{"use strict";AR();Rb()});var RR=f(()=>{"use strict"});var OR=f(()=>{"use strict"});var kR=f(()=>{"use strict"});var FR=f(()=>{"use strict"});var NR=f(()=>{"use strict";RR();OR();kR();FR()});var Ob=f(()=>{"use strict";NR()});var LR=f(()=>{"use strict";Ob()});var PR=f(()=>{"use strict";LR();Ob()});var kb=f(()=>{"use strict"});var jR=f(()=>{"use strict";kb()});var VR=f(()=>{"use strict";jR();kb()});var BR=f(()=>{"use strict";qo()});var UR=f(()=>{"use strict";BR()});var Fb=f(()=>{"use strict";qo()});var zR=f(()=>{"use strict";Fb()});var $R=f(()=>{"use strict";zR();Fb()});var HR=f(()=>{"use strict"});var GR=f(()=>{"use strict";HR()});var WR=f(()=>{"use strict";Lb()});var qR=f(()=>{"use strict";GR();WR()});var YR=f(()=>{"use strict";qo()});var KR=f(()=>{"use strict";YR()});var QR=f(()=>{"use strict";qo()});var ZR=f(()=>{"use strict";QR()});var XR=f(()=>{"use strict";wR();DR();MR();TR();PR();VR();UR();$R();qR();Mb();KR();ZR()});var Nb,JR=f(()=>{"use strict";XR();M();Ht();Nb=(()=>{class t{constructor(e){this.translateService=e}getLanguageCodeTranslation(e,i=!1){return new SR(this.translateService).transform(e,i)}removeRegionFromLanguageCode(e){return e.split("-")[0]}static{this.\u0275fac=function(i){return new(i||t)(g(Li))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Lb=f(()=>{"use strict";JR()});var Pb=f(()=>{"use strict"});var eO=f(()=>{"use strict";Pb()});var tO=f(()=>{"use strict"});var nO=f(()=>{"use strict";tO();Pb()});var iO=f(()=>{"use strict";eO();nO()});var jb=f(()=>{"use strict";PA();BA();WT();xR();Lb();iO()});var Wr,Vb=f(()=>{"use strict";jb();Wr=class{static addPlausible(n){let i=new jA().window;if(!i||!n)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",n),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(n,e){let i=window;i?.plausible&&i.plausible(n,{props:e})}}});var Bb=f(()=>{"use strict";Vb()});var rO=f(()=>{"use strict";Bb()});var oO=f(()=>{"use strict"});var sO=f(()=>{"use strict";oO()});var aO=f(()=>{"use strict";Vb();Bb();rO();sO()});var ip,lO=f(()=>{"use strict";ip=function(t){return t.GENERAL="General",t.PROFESSIONAL="Professional",t.ACADEMIC="Academic",t}(ip||{})});var ja,cO=f(()=>{"use strict";M();ja=new C("LLM_CONFIGURATION_TOKEN")});var dO=f(()=>{"use strict"});var rp=f(()=>{"use strict";cO();dO();Rh()});var uO,fO=f(()=>{"use strict";M();Uo();ke();wb();rp();M();Uo();uO=(()=>{class t{constructor(e){this.quotaService=e,this.llmConfiguration=y(ja),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(e){return this.llmConfiguration.useLocalQuota?O(this.setQuotaLocalStorageUsage(e)):this.quotaService.getQuotaUsage().pipe(P(i=>{let r=i.usage.find(o=>o.quotaType===qe.LLM_REQUESTS||o.quotaType===qe.LEGACY_LLM_REQUESTS);return r?r.quotaRemaining:this.setQuotaLocalStorageUsage(e)}),en(()=>O(this.setQuotaLocalStorageUsage(e))))}getExceededLimitMessage(e){return{type:Wo.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:e}}}getReachedQuotaMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(e){return{type:Wo.ERROR,body:`LLM.ERRORS.${e}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(e){let i=localStorage.getItem(this.LLMQuotaLocalStorageKey),r=new Date,o={remainingQuota:this.trialRequestCount,lastUsedAt:r};if(i){o=JSON.parse(i);let a=new Date(o.lastUsedAt);(a.getDate()!==r.getDate()||a.getMonth()!==r.getMonth()||a.getFullYear()!==r.getFullYear())&&(o.remainingQuota=this.trialRequestCount),e&&(o.remainingQuota-=1)}return o.lastUsedAt=r,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(o)),o.remainingQuota}static{this.\u0275fac=function(i){return new(i||t)(g(TA))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Ub,hO,pO,zb=f(()=>{"use strict";we();M();Ub=class{constructor(n,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let n=this._textarea,e=!1;try{if(n){let i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let n=this._textarea;n&&(n.remove(),this._textarea=void 0)}},hO=(()=>{class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new Ub(e,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});var p3,mO,$b=f(()=>{"use strict";M();ji();ke();M();zb();ii();Fr();ji();Yi();Ea();Ht();p3=["textarea"],mO=(()=>{class t{constructor(e){this.clipboard=e,this.textEditEvent=new V,this.dislikeEvent=new V,this.copyEvent=new V,this.destroy=new R}ngOnInit(){this.textareaControl=new $l(this.text)}ngAfterViewInit(){gi(this.textarea.nativeElement,"keyup").pipe(Pe(e=>{e.ctrlKey&&e.key==="c"&&this.copyEvent.emit()}),vi(300),ae(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(e){e&&e.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),e&&e.text&&(this.textareaControl=new $l(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}static{this.\u0275fac=function(i){return new(i||t)(h(hO))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(i,r){if(i&1&&Ve(p3,5),i&2){let o;he(o=pe())&&(r.textarea=o.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},features:[He],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1)(1,"div",2)(2,"textarea",3,0),le(4," "),T(),D(5,"div",4)(6,"mat-icon",5),se(7,"translate"),le(8," gpp_maybe "),T(),D(9,"div")(10,"button",6),se(11,"translate"),K("click",function(){return ve(o),ye(r.dislike())}),D(12,"mat-icon",7),le(13," thumb_down "),T()(),D(14,"button",8),se(15,"translate"),K("click",function(){return ve(o),ye(r.copy())}),D(16,"mat-icon",9),le(17," content_copy "),T()()()()()()}i&2&&(A("ngClass.gt-lg","desktop"),w(2),A("formControl",r.textareaControl),w(4),A("matTooltip",be(7,7,"LLM.EU_DATA_TOOLTIP")),w(4),A("matTooltip",be(11,9,"TOOLTIPS.DISLIKE"))("disabled",r.actionButtonsDisabled||!r.textareaControl.value),w(4),A("disabled",r.actionButtonsDisabled||!r.textareaControl.value)("matTooltip",be(15,11,"TOOLTIPS.COPY")))},dependencies:[Or,kr,Xs,Js,Ny,li,wa,En],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]})}}return t})()});function y3(t,n){if(t&1){let e=Ge();D(0,"lib-tld-notification-message",15),K("closeClicked",function(){let r=ve(e).$implicit,o=$();return ye(o.closeMessage(r))}),T()}if(t&2){let e=n.$implicit;A("message",e)}}function _3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.USE_CASE."+be(2,2,e))," ")}}function b3(t,n){if(t&1){let e=Ge();D(0,"mat-form-field",16)(1,"mat-label"),le(2),se(3,"translate"),T(),D(4,"mat-select",17),Us("ngModelChange",function(r){ve(e);let o=$();return El(o.selectedUseCase,r)||(o.selectedUseCase=r),ye(r)}),QD(5,_3,4,6,"mat-option",18,KD),T()()}if(t&2){let e=$();w(2),pt(be(3,3,"LLM.USE_CASES_LABEL")),w(2),A("disabled",e.isLoading),Bs("ngModel",e.selectedUseCase),w(),ZD(e.useCases)}}function x3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(2,2,e))," ")}}function C3(t,n){if(t&1){let e=Ge();nf(0),D(1,"mat-form-field",19)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",20),K("selectionChange",function(r){ve(e);let o=$();return ye(o.checkRephrasedTextSaves(r))}),ee(6,x3,4,6,"mat-option",21),T()(),D(7,"p",22),le(8),se(9,"uppercase"),se(10,"translate"),se(11,"translate"),D(12,"span",23),se(13,"uppercase"),se(14,"translate"),le(15," info "),T()(),rf()}if(t&2){let e=$();w(3),pt(be(4,6,"LLM.REPHRASE_MODAL.WRITING_STYLES.TITLE")),w(2),A("disabled",e.isLoading)("value",e.selectedWritingStyle),w(),A("ngForOf",e.writingStyles),w(2),it("",So(11,12,"LLM.REPHRASE_MODAL.WRITING_STYLES.SPECIFIC_STYLE",sf(19,g3,be(10,10,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(9,8,e.selectedWritingStyle))))," "),w(4),A("matTooltip",be(14,17,"LLM.REPHRASE_MODAL.WRITING_STYLES.TOOLTIP_"+be(13,15,e.selectedWritingStyle)))}}function w3(t,n){if(t&1&&(oe(0,"div",24),se(1,"translate")),t&2){let e=$();A("innerHTML",So(1,1,e.localizationKey+"LIMIT",nI(4,v3,e.quotaLeft,e.subscriptionUrl)),Ps)}}function E3(t,n){if(t&1){let e=Ge();D(0,"button",25),K("click",function(){ve(e);let r=$();return ye(r.cancel())}),le(1),se(2,"translate"),T()}if(t&2){let e=$();w(),it(" ",be(2,1,e.localizationKey+"CANCEL")," ")}}function D3(t,n){if(t&1&&(D(0,"button",26),le(1),se(2,"translate"),T()),t&2){let e=$();A("mat-dialog-close",null),w(),it(" ",be(2,2,e.localizationKey+"CLOSE")," ")}}function I3(t,n){if(t&1&&(D(0,"span"),le(1),se(2,"translate"),T()),t&2){let e=$();w(),it(" ",be(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function M3(t,n){if(t&1&&(le(0),se(1,"translate")),t&2){let e=$();it(" ",be(1,1,e.localizationKey+"ACTION")," ")}}function S3(t,n){t&1&&oe(0,"mat-spinner",27),t&2&&A("diameter",20)}var g3,v3,gO,Hb=f(()=>{"use strict";vc();Uo();ke();j_();aO();Rh();lO();M();Uo();fO();we();ii();vc();ji();ac();lc();In();np();Yi();hh();$b();Ht();g3=t=>({style:t}),v3=(t,n)=>({limit:t,subscriptionUrl:n});gO=(()=>{class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(e,i,r){this.llmService=e,this.llmHelperService=i,this.data=r,this.selectedWritingStyle=ip.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=jn,this.writingStyles=Object.values(ip),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===jn.REPHRASE?(this.useCases=Object.values(Fh),this.selectedUseCase=Fh.General):this.llmActionType===jn.SUMMARY&&(this.useCases=Object.values(Nh),this.selectedUseCase=Nh.General),this.showUseCase=this.llmActionType===jn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===jn.SUMMARY&&this.data.showUseCaseSummary,this.data.defaultUseCase&&(this.selectedUseCase=this.data.defaultUseCase)}closeMessage(e){let i=this.messages?.findIndex(r=>JSON.stringify(r)===JSON.stringify(e));(i||i===0)&&this.messages.splice(i,1)}checkRephrasedTextSaves(e){e.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=e.value);let i=this.savedRephrasings.find(o=>o.style===this.selectedWritingStyle),r=this.savedRephrasings.find(o=>o.style===this.previousWritingStyle);r?r.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=i?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===jn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(e){this.manuallyEditedText=e,this.initialText=e,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(e=>{this.initialText=e,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let e=this.maxCharLength,i=[this.initialText,this.manuallyEditedText,this.editedText],r=this.editedText&&!this.manuallyEditedText?this.editedText:i.reduce((o,s)=>o.length>s.length?o:s);if(r.length>e){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(r.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(e){this.llmHelperService.getRemainingQuota(e).subscribe(i=>{this.quotaLeft=i,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let e=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return e.length>this.maxCharLength&&(e=e.substring(0,this.maxCharLength)),(this.llmActionType===jn.REPHRASE?this.llmService.rephrase({text:e,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:e,language:this.data.language,useCase:this.selectedUseCase})).pipe(Wt(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:e=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=e,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:e=>{if(e.status===P_.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}static{this.\u0275fac=function(i){return new(i||t)(h(AA),h(uO),h(L_))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea-with-actions"]],decls:22,vars:23,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],["color","primary","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],[1,"llm-writing-style","text-m-semi-bold"],["matTooltipClass","multiline-tooltip","matTooltipPosition","above",1,"material-icons-outlined","info-icon",3,"matTooltip"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(i,r){if(i&1){let o=Ge();D(0,"h1",2),le(1),se(2,"translate"),T(),D(3,"div",3)(4,"p"),le(5),se(6,"translate"),T(),ee(7,y3,1,1,"lib-tld-notification-message",4)(8,b3,7,5,"mat-form-field",5)(9,C3,16,21,"ng-container",6),D(10,"lib-llm-textarea",7),K("textEditEvent",function(a){return ve(o),ye(r.textEditEvent(a))})("copyEvent",function(){return ve(o),ye(r.copyPlausibleEvent())})("dislikeEvent",function(){return ve(o),ye(r.dislikePlausibleEvent())}),T()(),D(11,"div",8),ee(12,w3,2,7,"div",9),D(13,"div",10),ee(14,E3,3,3,"button",11)(15,D3,3,4,"ng-template",null,0,Ao),D(17,"button",12),K("click",function(){return ve(o),ye(r.getEditedText())}),ee(18,I3,3,3,"span",13)(19,M3,2,3,"ng-template",null,1,Ao)(21,S3,1,1,"mat-spinner",14),T()()()}if(i&2){let o=Cn(16),s=Cn(20);w(),pt(be(2,19,r.localizationKey+"TITLE")),w(4),pt(be(6,21,r.localizationKey+"DESCRIPTION")),w(2),A("ngForOf",r.messages),w(),A("ngIf",r.showUseCase),w(),A("ngIf",r.llmActionType===r.llmActions.REPHRASE),w(),fe("rephrase",r.llmActionType===r.llmActions.REPHRASE),A("text",r.editedText!==""?r.editedText:r.initialText)("disabled",r.isLoading||!r.quotaLeft)("actionButtonsDisabled",!r.isEdited),w(2),A("ngIf",r.remainingQuotaMessageVisible),w(),fe("w-full",!r.remainingQuotaMessageVisible),w(),A("ngIf",r.isLoading)("ngIfElse",o),w(3),A("disabled",r.isDisabled),w(),A("ngIf",r.llmActionType===r.llmActions.SUMMARY)("ngIfElse",s),w(3),A("ngIf",r.isLoading)}},dependencies:[mf,Hs,ah,xA,wA,DA,EA,Js,Hl,_h,ba,xh,fa,LT,li,fh,mO,CI,En],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:14px}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return t})()});var A3,vO=f(()=>{"use strict";A3=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
17
+ `;o.appendChild(n.createTextNode(s))}n.head.appendChild(o),i.forEach(s=>zS[s]=o)}catch(o){console.error(o)}}}function Lz(t){let n=new EventTarget;return n.matches=t==="all"||t==="",n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}function Pz(t,n){return n&&!!window.matchMedia("all").addListener?window.matchMedia(t):Lz(t)}function Vz(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function Bz(t){return t.replace(jz,"|").split("|").map(Vz).join("")}function Uz(t){return t.forEach(n=>{n.suffix||(n.suffix=Bz(n.alias),n.overlapping=!!n.overlapping)}),t}function zz(t,n=[]){let e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Pn(e[i.alias],i):e[i.alias]=i}),Uz(Object.keys(e).map(i=>e[i]))}function Yz(t){return t?.mediaQuery.startsWith(xa)??!1}function KS(t,n,e,i){if(i!==void 0){let r=t.get(n)??new Map;r.set(e,i),t.set(n,r)}}function D_(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=QS(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=QS(t.trim());else{let o=t.split(" ");i=o.length===3?o:[n,e,t]}return i}function QS(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ih(t,n){if(n===void 0)return t;let e=i=>{let r=+i.slice(0,-ZS.length);return t.endsWith(ZS)&&!isNaN(r)?`${r*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}var Sz,US,Ca,Vo,Az,Eh,Mn,fc,Dh,ci,Qi,Fz,zS,jz,$z,$S,HS,GS,WS,qS,YS,Ki,Hz,Gz,eA,xa,Wz,qz,E_,Br,Ur,ZS,zr=f(()=>{"use strict";M();M();we();ke();w_();st();Sz={provide:zs,useFactory:Mz,deps:[B,yt],multi:!0},US="flex-layout-";Ca=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Sz]})}}return t})(),Vo=class t{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};Az=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){let o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){let r=this.stylesheet.get(e),o="";if(r){let s=r.get(i);(typeof s=="number"||typeof s=="string")&&(o=s+"")}return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Eh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new C("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Eh});fc=new C("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});Dh=new C("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});ci=class{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}};Qi=(()=>{class t{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};typeof i=="string"&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:C_(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){let r=this.layoutConfig.disableVendorPrefixes?e:C_(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){let i="flex-direction",r=this.lookupStyle(e,i),o=this.lookupInlineStyle(e,i)||Ni(this._platformId)&&this._serverModuleLoaded?r:"";return[r||"row",o]}hasWrap(e){return this.lookupStyle(e,"flex-wrap")==="wrap"}lookupAttributeValue(e,i){return e.getAttribute(i)??""}lookupInlineStyle(e,i){return Xn(this._platformId)?e.style.getPropertyValue(i):Tz(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(Xn(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{let o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",Xn(this._platformId)||!this._serverModuleLoaded?Xn(this._platformId)?i.style.setProperty(r,a):Rz(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}static{this.\u0275fac=function(i){return new(i||t)(g(Az),g(fc),g(yt),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Fz=(()=>{class t{constructor(e,i,r,o){this._zone=e,this._platformId=i,this._document=r,this._nonce=o,this.source=new ot(new Vo(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){return this.registry.get(e)?.matches??this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){let r=this._observable$.pipe(ue(s=>i?e.indexOf(s.mediaQuery)>-1:!0)),o=new Q(s=>{let a=this.registerQuery(e);if(a.length){let l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()});return ft(o,r)}return this._observable$}registerQuery(e){let i=Array.isArray(e)?e:[e],r=[];return Nz(i,this._document,this._nonce),i.forEach(o=>{let s=l=>{this._zone.run(()=>this.source.next(new Vo(l.matches,o)))},a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new Vo(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return Pz(e,Xn(this._platformId))}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(yt),g(B),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zS={};jz=/(\.|-|_)/g;$z=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];$S="(orientation: portrait) and (max-width: 599.98px)",HS="(orientation: landscape) and (max-width: 959.98px)",GS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",YS="(orientation: landscape) and (min-width: 1280px)",Ki={HANDSET:`${$S}, ${HS}`,TABLET:`${GS} , ${WS}`,WEB:`${qS}, ${YS} `,HANDSET_PORTRAIT:`${$S}`,TABLET_PORTRAIT:`${GS} `,WEB_PORTRAIT:`${qS}`,HANDSET_LANDSCAPE:`${HS}`,TABLET_LANDSCAPE:`${WS}`,WEB_LANDSCAPE:`${YS}`},Hz=[{alias:"handset",priority:2e3,mediaQuery:Ki.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ki.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ki.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ki.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ki.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ki.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ki.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ki.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ki.WEB_PORTRAIT,overlapping:!0}];Gz=new C("Token (@ngbracket/ngx-layout) Breakpoints",{providedIn:"root",factory:()=>{let t=y(Dh),n=y(Mn),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r])),i=(n.disableDefaultBps?[]:$z).concat(n.addOrientationBps?Hz:[]);return zz(i,e)}});eA=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(kz)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e?.suffix??"")}findWithPredicate(e,i){let r=this.findByMap.get(e);return r||(r=this.items.find(i)??null,this.findByMap.set(e,r)),r??null}static{this.\u0275fac=function(i){return new(i||t)(g(Gz))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xa="print",Wz={alias:xa,mediaQuery:xa,priority:1e3},qz=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new E_,this.deactivations=[]}withPrintQuery(e){return[...e,xa]}isPrintEvent(e){return e.mediaQuery.startsWith(xa)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>e!==null)}getEventBreakpoints({mediaQuery:e}){let i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(uc)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?.mediaQuery??""),XS(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Vo(!0,xa))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{if(this.isPrintEvent(i)){i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles());return}this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!i.matches){let r=this.breakpoints.findByQuery(i.mediaQuery);if(r){let o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(uc))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}static{this.\u0275fac=function(i){return new(i||t)(g(eA),g(Mn),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),E_=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Wz),n.sort(uc),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)===void 0&&(this.printBreakpoints=Yz(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}};Br=(()=>{class t{get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new R,this.observeActivations()}onMediaChange(e){let i=this.findByQuery(e.mediaQuery);if(i){e=XS(e,i);let r=this.activatedBreakpoints.indexOf(i);e.matches&&r===-1?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(uc),this.updateStyles()):!e.matches&&r!==-1&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(uc),this.updateStyles())}}init(e,i,r,o,s=[]){KS(this.updateMap,e,i,r),KS(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){let o=this.elementMap.get(e);if(o){let s=r!==void 0?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);if(o)return o.get(i)!==void 0||!1}return!1}setValue(e,i,r,o){let s=this.elementMap.get(e);if(!s)s=new Map().set(o,new Map().set(i,r)),this.elementMap.set(e,s);else{let l=(s.get(o)??new Map).set(i,r);s.set(o,l),this.elementMap.set(e,s)}let a=this.getValue(e,i);a!==void 0&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(ue(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{let r=new Set(this.elementKeyMap.get(i)),o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){let a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){let r=this.clearMap.get(e);if(r){let o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){let o=this.updateMap.get(e);if(o){let s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){let i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));let r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){let a=ft(...r).subscribe(()=>{let l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;o<this.activatedBreakpoints.length;o++){let s=this.activatedBreakpoints[o],a=e.get(s.alias);if(a&&(i===void 0||a.has(i)&&a.get(i)!=null))return a}if(!this._useFallbacks)return;let r=e.get("");return i===void 0||r&&r.has(i)?r:void 0}observeActivations(){let e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Pe(this.hook.interceptEvents(this)),ue(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}static{this.\u0275fac=function(i){return new(i||t)(g(Fz),g(eA),g(qz))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Ur=(()=>{class t{get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new R,this.styleCache=new Map}ngOnChanges(e){Object.keys(e).forEach(i=>{if(this.inputs.indexOf(i)!==-1){let r=i.split(".").slice(1).join("."),o=e[i].currentValue;this.setValue(o,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){let r=this.styleBuilder,o=r.shouldCache,s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=x({},s),this.applyStyleToElement(s),r.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){let[r,o]=this.styler.getFlowDirection(e);if(!o&&i){let s=wh(r),a=[e];this.styler.applyStyleToElements(s,a)}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(ci),h(Qi),h(Br))}}static{this.\u0275dir=j({type:t,features:[He]})}}return t})();ZS="x";});var Qz,Zz,wa,I_,Ea=f(()=>{"use strict";M();zr();zr();we();we();Qz=(()=>{class t extends Ur{set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}constructor(e,i,r,o,s){super(e,null,i,r),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new br(e,o)),this.init(),this.setValue("","")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Br),h(Qn),h(br,10))}}static{this.\u0275dir=j({type:t,inputs:{klass:[0,"class","klass"]},features:[Ce]})}}return t})(),Zz=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],wa=(()=>{class t extends Qz{constructor(){super(...arguments),this.inputs=Zz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ce]})}}return t})();I_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});function w$(t,n){let[e,i]=t.split(" "),r=i??e,o="0px",s=r,a="0px";return n==="rtl"?a=e:o=e,{padding:`0px ${o} ${s} ${a}`}}function E$(t,n){let[e,i]=t.split(" "),r=i??e,o=c=>`-${c}`,s="0px",a=o(r),l="0px";return n==="rtl"?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}function aA(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return t==="rtl"?"margin-left":"margin-right";case"row-reverse":return t==="rtl"?"margin-right":"margin-left";default:return t==="rtl"?"margin-left":"margin-right"}}function D$(t,n){let e=aA(n.directionality,n.layout),i=x({},oA);return i[e]=t,i}var Xz,Jz,e$,iA,t$,n$,i$,r$,o$,s$,a$,rA,l$,c$,d$,u$,f$,h$,p$,m$,oA,g$,v$,y$,sA,_$,b$,x$,C$,Mh,I$,M$,S$,lA,nA,S_,Sh=f(()=>{"use strict";cn();cn();M();zr();zr();w_();st();ke();Xz=(()=>{class t extends ci{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" "),l=i.direction.indexOf("column")>-1?"column":"row",c=dc(l)?"max-width":"max-height",d=dc(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,m=u||a==="auto",p=String(a).indexOf("%")>-1&&!u,v=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,_=u||v;r=r=="0"?0:r,o=o=="0"?0:o;let E=!r&&!o,I={},U={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":let H=this.layoutConfig.useColumnBasisZero!==!1;a=l==="row"?"0%":H?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!_&&!p&&!isNaN(a)&&(a=a+"%"),a==="0%"&&(_=!0),a==="0px"&&(a="0%"),u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":_?a:"100%"}):I=Pn(U,{flex:`${r} ${o} ${_?a:"100%"}`});break}return I.flex||I["flex-grow"]||(u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`})),a!=="0%"&&a!=="0px"&&a!=="0.000000001px"&&a!=="auto"&&(I[d]=E||_&&r?a:null,I[c]=E||!m&&o?a:null),!I[d]&&!I[c]?u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`}):i.hasWrap&&(I[u?"flex-basis":"flex"]=I[c]?u?I[c]:`${r} ${o} ${I[c]}`:u?I[d]:`${r} ${o} ${I[d]}`),Pn(I,{"box-sizing":"border-box"})}static{this.\u0275fac=function(i){return new(i||t)(g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Jz=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],e$=(()=>{class t extends Ur{get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ae(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){let r=e.value.split(" ");this.direction=r[0],this.wrap=r[1]!==void 0&&r[1]==="wrap",this.triggerUpdate()}updateWithValue(e){let i=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,i)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=i$:o&&!s?this.styleCache=t$:!o&&s?this.styleCache=r$:!o&&!s&&(this.styleCache=n$);let a=String(e).replace(";",""),l=D_(a,this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){let e=this.activatedValue;if(e!==void 0){let i=D_(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Mn),h(Xz),h(Br))}}static{this.\u0275dir=j({type:t,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[Ce]})}}return t})(),iA=(()=>{class t extends e${constructor(){super(...arguments),this.inputs=Jz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Ce]})}}return t})(),t$=new Map,n$=new Map,i$=new Map,r$=new Map;o$=(()=>{class t extends ci{buildStyles(e,i){let r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start";break}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch";break}return Pn(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":s==="stretch"?dc(i.layout)?null:"100%":null,"max-height":s==="stretch"&&dc(i.layout)?"100%":null})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),s$=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],a$=(()=>{class t extends Ur{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){let i=this.layout||"row",r=this.inline;i==="row"&&r?this.styleCache=f$:i==="row"&&!r?this.styleCache=l$:i==="row-reverse"&&r?this.styleCache=p$:i==="row-reverse"&&!r?this.styleCache=d$:i==="column"&&r?this.styleCache=h$:i==="column"&&!r?this.styleCache=c$:i==="column-reverse"&&r?this.styleCache=m$:i==="column-reverse"&&!r&&(this.styleCache=u$),this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){let i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),cc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(o$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),rA=(()=>{class t extends a${constructor(){super(...arguments),this.inputs=s$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ce]})}}return t})(),l$=new Map,c$=new Map,d$=new Map,u$=new Map,f$=new Map,h$=new Map,p$=new Map,m$=new Map,oA={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},g$=(()=>{class t extends ci{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Mh)?(e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier),E$(e,i.directionality)):{}}sideEffect(e,i,r){let o=r.items;if(e.endsWith(Mh)){e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier);let s=w$(e,r.directionality);this._styler.applyStyleToElements(s,r.items)}else{e=Ih(e,this._config.multiplier),e=this.addFallbackUnit(e);let s=o.pop(),a=D$(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(oA,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}static{this.\u0275fac=function(i){return new(i||t)(g(Qi),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),v$=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],y$=(()=>{class t extends Ur{get childrenNodes(){let e=this.nativeElement.children,i=[];for(let r=e.length;r--;)i[r]=e[r];return i}constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new R;let l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){let r=e.value.split(" ")[0];cc.find(o=>o===r)||(r="row"),this.layout&&this.layout!==r&&this.clearStyles(),this.layout=r,this.triggerUpdate()}updateWithValue(e){let i=this.childrenNodes.filter(r=>r.nodeType===1&&this.willDisplay(r)).sort((r,o)=>{let s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){let r=this.directionality.value,o=this.layout;o==="row"&&r==="rtl"?this.styleCache=_$:o==="row"&&r!=="rtl"?this.styleCache=x$:o==="column"&&r==="rtl"?this.styleCache=b$:o==="column"&&r!=="rtl"&&(this.styleCache=C$),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){let e=Object.keys(this.mru).length>0,i=e?"padding":aA(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){let i=this.marshal.getValue(e,"show-hide");return i===!0||i===void 0&&this.styleUtils.lookupStyle(e,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(e=>{let i=r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0;e.some(i)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(xt),h(Qi),h(g$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),sA=(()=>{class t extends y${constructor(){super(...arguments),this.inputs=v$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Ce]})}}return t})(),_$=new Map,b$=new Map,x$=new Map,C$=new Map,Mh=" grid";I$=(()=>{class t extends ci{buildStyles(e,{display:i}){let r=wh(e);return ne(x({},r),{display:i==="none"?i:r.display})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),M$=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],S$=(()=>{class t extends Ur{constructor(e,i,r,o,s){super(e,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){let r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=nA.get(r)??new Map,nA.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(I$),h(Br),h(Mn))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),lA=(()=>{class t extends S${constructor(){super(...arguments),this.inputs=M$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ce]})}}return t})(),nA=new Map;S_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca,ni]})}}return t})();});var A_,T_=f(()=>{"use strict";M();zr();A_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});var Da,Lte,Ah=f(()=>{"use strict";zr();zr();Ea();Ea();Sh();Sh();T_();T_();we();M();M();Da=(()=>{class t{static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0},{provide:fc,useValue:!0}]:[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0}]}}constructor(e,i){Ni(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static{this.\u0275fac=function(i){return new(i||t)(g(fc),g(yt))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[S_,I_,A_,S_,I_,A_]})}}return t})();Lte=new Kn("18.0.0");});function T$(t,n){if(t&1&&(D(0,"mat-option",12),le(1),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",e.voiceName," ")}}function R$(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$();w(),it(" ",e.isPlaying?"stop":"volume_up"," ")}}function O$(t,n){t&1&&oe(0,"mat-spinner",13),t&2&&A("diameter",15)}var cA,dA=f(()=>{"use strict";we();M();ji();ii();Fr();oS();ke();hh();Yi();lc();ac();Ah();Ht();M();we();ji();Yi();ac();lc();In();Ea();Ht();cA=(()=>{class t{constructor(){this.maxCharLength=1e3,this.#e=y(rS)}get hasOverflow(){let e=document.querySelector("textarea");return e?.clientHeight<e?.scrollHeight}#e;ngOnInit(){this.selected=this.voices[0]}togglePlay(){if(this.isPlaying){this.stop();return}this.isLoading=!0;let e=this.text.length>this.maxCharLength?this.text.substring(0,this.maxCharLength):this.text;if(this.audio&&e===this.previousText&&this.selected.voice===this.previousVoice){this.audio.play(),this.isPlaying=!0,this.isLoading=!1;return}this.#e.play(e,this.selected).pipe(Wt(()=>{this.isLoading=!1})).subscribe({next:i=>{this.previousText=e,this.previousVoice=this.selected.voice;let r=URL.createObjectURL(i);this.audio=new Audio(r),this.audio.play(),this.isPlaying=!0,this.audio.onended=()=>{URL.revokeObjectURL(r),this.isPlaying=!1}}})}stop(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.isPlaying=!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-text-to-speech"]],inputs:{maxCharLength:"maxCharLength",voices:"voices"},standalone:!0,features:[Se],decls:19,vars:23,consts:[[1,"text-to-speech-wrapper",3,"ngClass.lt-md"],["appearance","outline","color","accent"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-to-speech-textarea-wrapper"],[1,"text-to-speech-textarea",3,"ngModelChange","ngModel","placeholder"],[1,"text-to-speech-characters"],[1,"text-to-speech-actions"],[3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[3,"diameter",4,"ngIf"],[3,"value"],[3,"diameter"]],template:function(i,r){if(i&1&&(D(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",2),Us("valueChange",function(s){return El(r.selected,s)||(r.selected=s),s}),ee(6,T$,2,2,"mat-option",3),T()(),D(7,"div",4)(8,"textarea",5),se(9,"translate"),Us("ngModelChange",function(s){return El(r.text,s)||(r.text=s),s}),T(),D(10,"div",6),le(11),T()(),D(12,"div",7)(13,"div",8),se(14,"translate"),D(15,"button",9),se(16,"translate"),K("click",function(){return r.togglePlay()}),ee(17,R$,2,1,"mat-icon",10)(18,O$,1,1,"mat-spinner",11),T()()()()),i&2){let o;A("ngClass.lt-md","mobile"),w(3),pt(be(4,15,"selectVoice")),w(2),Bs("value",r.selected),w(),A("ngForOf",r.voices),w(2),Bs("ngModel",r.text),A("placeholder",be(9,17,"placeholder")),w(2),fe("text-overflow",r.hasOverflow),w(),Vv(" ",(o=r.text==null?null:r.text.length)!==null&&o!==void 0?o:0,"/",r.maxCharLength," "),w(2),A("matTooltip",r.text?"":be(14,19,"playDisabled")),w(2),A("matTooltip",be(16,21,r.isPlaying?"stop":"play"))("disabled",!r.text||r.isLoading),w(2),A("ngIf",!r.isLoading),w(),A("ngIf",r.isLoading)}},dependencies:[ct,mf,Hs,Or,kr,$f,Xs,Js,Hl,fh,_a,li,bh,_h,ba,Ch,xh,fa,Da,wa,ei,En],styles:[".text-to-speech-wrapper[_ngcontent-%COMP%]{margin-top:5px;position:relative;display:flex;flex-direction:column;align-items:center}.text-to-speech-wrapper[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:900px!important;width:100%}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%], .text-to-speech-textarea[_ngcontent-%COMP%]{position:relative;width:100%;max-width:900px}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%]{border:1px solid var(--base-70);padding:5px;border-radius:8px;box-shadow:0 0 16px #0000001a}.text-to-speech-textarea[_ngcontent-%COMP%]{margin:15px 0;padding:0 10px;min-height:120px;resize:none;outline:none;border:none}.text-to-speech-actions[_ngcontent-%COMP%]{position:absolute;bottom:-20px}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;justify-content:center;color:var(--base-100)!important;background-color:var(--accent)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:var(--base-70)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{scale:1.2}.text-to-speech-characters[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:0;margin:5px;font-size:13px;color:var(--base-65)}.text-overflow[_ngcontent-%COMP%]{right:30px}.mobile[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{right:15px}"]})}}return t})()});var uA=f(()=>{"use strict"});var fA=f(()=>{"use strict";uA()});var hA=f(()=>{"use strict";dA();fA()});var pA,mA=f(()=>{"use strict";pA={en:{selectVoice:"Demo voices (currently only for Latvian language)",placeholder:'Enter text to listen to a demonstration of the text-to-speech technology. Remember, this service can only be used in accordance with its terms of use (see the "Frequently asked questions" section). It is not permitted to use this service for texts that contain offensive, indecent, defamatory, misleading, hateful, or discriminatory statements. Violation of the terms of use may result in liability as stipulated by the laws of the Republic of Latvia. A maximum of 1000 characters will be spoken.',playDisabled:"Enter text to play",play:"Play",stop:"Stop"},lv:{selectVoice:"Demo balsis (\u0161obr\u012Bd tikai Latvie\u0161u valod\u0101)",placeholder:"Ievadi tekstu, lai noklaus\u012Btos balss sint\u0113zes tehnolo\u0123ijas demonstr\u0101ciju. Atceries, ka \u0161o pakalpojumu var lietot tikai atbilsto\u0161i t\u0101 lieto\u0161anas noteikumiem (skat\u012Bt sada\u013Cu \u201CBie\u017E\u0101k uzdotie jaut\u0101jumi\u201D)! To nav at\u013Cauts izmantot tekstiem, kas satur aizskaro\u0161us, nepiekl\u0101j\u012Bgus, apmelojo\u0161us, maldino\u0161us, naidu vai diskrimin\u0101ciju veicino\u0161us apgalvojumus. Par lieto\u0161anas noteikumu p\u0101rk\u0101pumu var iest\u0101ties LR likumos noteikt\u0101 atbild\u012Bba. Tiks izrun\u0101ti ne vair\u0101k k\u0101 1000 simboli.",playDisabled:"Ievadi tekstu, lai atska\u0146ot to",play:"Atska\u0146ot",stop:"Apst\u0101din\u0101t",voice:"Balss {{nth}}"}}});var Th,R_=f(()=>{"use strict";Dy();hA();mA();M();Th=(()=>{class t extends Sf{set voices(e){this._voices=typeof e=="string"?JSON.parse(e):e}set maxCharLength(e){this._maxCharLength=+e}get voices(){return this._voices}get maxCharLength(){return this._maxCharLength}constructor(){super(pA),this._maxCharLength=500}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-text-to-speech"]],inputs:{voices:"voices",maxCharLength:"maxCharLength"},standalone:!0,features:[Ce,Se],decls:1,vars:2,consts:[[3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"lib-text-to-speech",0),i&2&&A("voices",r.voices)("maxCharLength",r.maxCharLength)},dependencies:[cA]})}}return t})()});var jn,Rh=f(()=>{"use strict";jn=function(t){return t.SUMMARY="SUMMARY",t.REPHRASE="REPHRASE",t}(jn||{})});function k$(t,n){}function O_(t,n){let e=t.length;for(;e--;)n(t[e])}var Bo,k_,hc,F$,N$,L$,P$,F_,gA,vA=f(()=>{"use strict";ln();ln();oi();oi();Pt();va();we();M();M();Vi();ke();cn();st();Bo=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}},k_=(()=>{class t extends ga{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=y(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=y(Be),this._injector=y(De),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||on(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Wl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Wl();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wl()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(Bo),h(Yl),h(k),h(Gi),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Ve(nc,7),i&2){let o;he(o=pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ce,Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&ee(0,k$,0,0,"ng-template",0)},dependencies:[nc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),hc=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new R,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!St(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},F$=new C("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),N$=new C("DialogData"),L$=new C("DefaultDialogConfig"),P$=0,F_=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this._ariaHiddenElements=new Map,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new Bo;i=x(x({},r),i),i.id=i.id||`cdk-dialog-${P$++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new hc(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){O_(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){O_(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),O_(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Pr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Bo,useValue:r},{provide:hc,useValue:i},{provide:Gi,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=k_;let l=new Lr(a,r.viewContainerRef,De.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Nt){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=x(x({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Hi(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Lr(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:N$,useValue:e.data},{provide:hc,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(xt,null,{optional:!0}))&&a.push({provide:xt,useValue:{value:e.direction,change:O()}}),De.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(L$,8),g(t,12),g(ya),g(F$))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();gA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[F_],imports:[ri,Lo,ih,Lo]})}}return t})()});function j$(t,n){}function xA(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Rr(t.substring(0,t.length-2)):t.endsWith("s")?Rr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}function CA(t,n,e){return t._closeInteractionType=n,t.close(e)}function SA(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var pc,N_,yA,_A,V$,B$,U$,bA,Oh,mc,L_,z$,$$,H$,gc,G$,wA,EA,DA,IA,MA,AA,vc=f(()=>{"use strict";oi();oi();we();we();M();M();ln();vA();Ui();va();ke();st();Vi();$i();In();pc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},N_="mdc-dialog--open",yA="mdc-dialog--opening",_A="mdc-dialog--closing",V$=150,B$=75,U$=(()=>{class t extends k_{constructor(e,i,r,o,s,a,l,c,d){super(e,i,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new V,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?xA(this._config.enterAnimationDuration)??V$:0,this._exitAnimationDuration=this._animationsEnabled?xA(this._config.exitAnimationDuration)??B$:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(bA,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(yA,N_)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(N_),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(N_),this._animationsEnabled?(this._hostElement.style.setProperty(bA,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(_A)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(yA,_A)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(pc),h(Yl),h(k),h(Gi),h(at,8),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(_r("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),fe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ce,Se],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(D(0,"div",0)(1,"div",1),ee(2,j$,0,0,"ng-template",2),T()())},dependencies:[nc],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})(),bA="--mat-dialog-transition-duration";Oh=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Oh||{}),mc=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new R,this._beforeClosed=new R,this._state=Oh.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),Te(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),Te(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!St(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),CA(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ue(e=>e.state==="closing"),Te(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Oh.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=Oh.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};L_=new C("MatMdcDialogData"),z$=new C("mat-mdc-dialog-default-options"),$$=new C("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),H$=0,gc=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this.dialogConfigClass=pc,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._dialog=i.get(F_),this._dialogRefConstructor=mc,this._dialogContainerType=U$,this._dialogDataToken=L_}open(e,i){let r;i=x(x({},this._defaultOptions||new pc),i),i.id=i.id||`mat-mdc-dialog-${H$++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ne(x({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Bo,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(Zn,8),g(z$,8),g($$),g(t,12),g(ya),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),G$=0,wA=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=SA(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){CA(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&K("click",function(s){return r._onButtonClick(s)}),i&2&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[He]})}}return t})(),EA=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=SA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,standalone:!0})}}return t})(),DA=(()=>{class t extends EA{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${G$++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&_r("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Ce]})}}return t})(),IA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[kD([o_])]})}}return t})(),MA=(()=>{class t extends EA{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&fe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ce]})}}return t})();AA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[gc],imports:[gA,ri,Lo,We,We]})}}return t})()});var yc,kh,Fh,Nh,Ia,RA,qe,OA,Uo=f(()=>{"use strict";Al();M();M();ke();yc=new C("ngx-tld-services Api service configuration."),kh=class{#e;constructor(n){this.http=y(Dr),this.#e=y(yc);let e=n(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},Fh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t}(Fh||{}),Nh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t.MeetingBrief="MeetingBrief",t.Brief="Brief",t}(Nh||{}),Ia=class{static xAppIdHeader(n){return{"X-App-Id":n}}},RA=(()=>{class t extends kh{#e=y(Dr);constructor(){super(e=>e.llmService)}rephrase(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/rewrite`,e,{responseType:"text",headers:i})}summarize(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/summarize/`,e,{responseType:"text",headers:i})}customPrompt(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/custom-prompt/`,e,{responseType:"text",headers:i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qe=function(t){return t.TRANSLATION_FILES="FileTranslationFiles",t.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",t.ASR_FILE_SIZE_KB="AsrFileSizeKb",t.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",t.TRANSLATION_CHARACTERS="TranslationCharacters",t.TRANSLATION_DOCUMENTS="TranslationDocuments",t.LLM_CHARACTER_COUNT="LlmCharacterCount",t.LLM_REQUESTS="LlmRequests",t.TTS_CHARACTERS="TtsCharacters",t.ANONYMISE_WORDS="AnonymiseWords",t.ANONYMISE_DOCUMENTS="AnonymiseDocuments",t[t.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",t[t.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",t[t.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",t[t.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",t[t.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",t[t.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",t[t.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",t[t.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",t[t.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",t[t.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",t[t.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",t}(qe||{}),OA=(()=>{class t extends kh{constructor(){super(e=>e.quotaService),this.legacyQuotaTypeMap={[qe.LEGACY_TRANSLATION_FILES]:qe.TRANSLATION_FILES,[qe.LEGACY_ASR_FILE_LENGTH_SECONDS]:qe.ASR_FILE_LENGTH_SECONDS,[qe.LEGACY_ASR_FILE_SIZE_KB]:qe.ASR_FILE_SIZE_KB,[qe.LEGACY_ONLINE_ASR_USED_SECONDS]:qe.ONLINE_ASR_USED_SECONDS,[qe.LEGACY_TRANSLATION_CHARACTERS]:qe.TRANSLATION_CHARACTERS,[qe.LEGACY_TRANSLATION_DOCUMENTS]:qe.TRANSLATION_DOCUMENTS,[qe.LEGACY_LLM_CHARACTER_COUNT]:qe.LLM_CHARACTER_COUNT,[qe.LEGACY_LLM_REQUESTS]:qe.LLM_REQUESTS,[qe.LEGACY_TTS_CHARACTERS]:qe.TTS_CHARACTERS,[qe.LEGACY_ANONYMISE_WORDS]:qe.ANONYMISE_WORDS,[qe.LEGACY_ANONYMISE_DOCUMENTS]:qe.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let e=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:e}).pipe(P(i=>(i.usage.forEach(r=>{this.legacyQuotaTypeMap[r.quotaType]&&(r.quotaType=this.legacyQuotaTypeMap[r.quotaType])}),i)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var FA=f(()=>{"use strict"});var NA=f(()=>{"use strict"});var P_,LA=f(()=>{"use strict";P_=function(t){return t[t.TIMEOUT=504]="TIMEOUT",t}(P_||{})});var j_=f(()=>{"use strict";FA();NA();LA()});var PA,jA=f(()=>{"use strict";M();Fr();Gs();PA=(()=>{class t{constructor(e,i){this.iconRegistry=e,this.sanitizer=i}registerIcons(e){for(let i in e)this.iconRegistry.addSvgIconLiteral(i.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(e[i]))}registerIconFromUrl(e,i){this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(i))}addSvgIconSet(e,i){i?this.iconRegistry.addSvgIconSetInNamespace(i,this.sanitizer.bypassSecurityTrustResourceUrl(e)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(e))}static{this.\u0275fac=function(i){return new(i||t)(g(r_),g(kl))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var VA=f(()=>{"use strict";jA()});var W$,q$,BA,UA=f(()=>{"use strict";M();W$=typeof localStorage<"u"?localStorage:null,q$=typeof window<"u"?window:null,BA=(()=>{class t{get window(){return q$}get localStorage(){return W$}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var zA=f(()=>{"use strict";UA()});function Oa(t){return new $_(t)}function Y$(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=t[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function K$(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!di(t[e],n[e]))return!1;return!0}function di(t,n){let e=t?H_(t):void 0,i=n?H_(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!JA(t[r],n[r]))return!1;return!0}function H_(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function JA(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function eT(t){return t.length>0?t[t.length-1]:null}function Gr(t){return gn(t)?t:To(t)?Le(Promise.resolve(t)):O(t)}function $A(t,n,e){return Q$[e.paths](t.root,n.root,e.matrixParams)&&tT[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Z$(t,n){return di(t,n)}function nT(t,n,e){if(!$o(t.segments,n.segments)||!jh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!nT(t.children[i],n.children[i],e))return!1;return!0}function X$(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>JA(t[e],n[e]))}function iT(t,n,e){return rT(t,n,n.segments,e)}function rT(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!$o(r,e)||n.hasChildren()||!jh(r,e,i))}else if(t.segments.length===e.length){if(!$o(t.segments,e)||!jh(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!iT(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!$o(t.segments,r)||!jh(t.segments,r,i)||!t.children[me]?!1:rT(t.children[me],n,o,i)}}function jh(t,n,e){return n.every((i,r)=>tT[e](t[r].parameters,i.parameters))}function J$(t,n){return $o(t,n)&&t.every((e,i)=>di(e.parameters,n[i].parameters))}function $o(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function eH(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===me&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==me&&(e=e.concat(n(r,i)))}),e}function Vh(t){return t.segments.map(n=>sT(n)).join("/")}function _c(t,n){if(!t.hasChildren())return Vh(t);if(n){let e=t.children[me]?_c(t.children[me],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==me&&i.push(`${r}:${_c(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=eH(t,(i,r)=>r===me?[_c(t.children[me],!1)]:[`${r}:${_c(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[me]!=null?`${Vh(t)}/${e[0]}`:`${Vh(t)}/(${e.join("//")})`}}function oT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lh(t){return oT(t).replace(/%3B/gi,";")}function nH(t){return encodeURI(t)}function G_(t){return oT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bh(t){return decodeURIComponent(t)}function HA(t){return Bh(t.replace(/\+/g,"%20"))}function sT(t){return`${G_(t.path)}${iH(t.parameters)}`}function iH(t){return Object.entries(t).map(([n,e])=>`;${G_(n)}=${G_(e)}`).join("")}function rH(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Lh(e)}=${Lh(r)}`).join("&"):`${Lh(e)}=${Lh(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}function V_(t){let n=t.match(oH);return n?n[0]:""}function aH(t){let n=t.match(sH);return n?n[0]:""}function cH(t){let n=t.match(lH);return n?n[0]:""}function uH(t){let n=t.match(dH);return n?n[0]:""}function aT(t){return t.segments.length>0?new Ne([],{[me]:t}):t}function lT(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=lT(r);if(i===me&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new Ne(t.segments,n);return fH(e)}function fH(t){if(t.numberOfChildren===1&&t.children[me]){let n=t.children[me];return new Ne(t.segments.concat(n.segments),n.children)}return t}function Ho(t){return t instanceof Xi}function hH(t,n,e=null,i=null){let r=cT(t);return dT(r,n,e,i)}function cT(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Ne(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=aT(i);return n??r}function dT(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return B_(r,r,r,e,i);let o=pH(n);if(o.toRoot())return B_(r,r,new Ne([],{}),e,i);let s=mH(o,r,t),a=s.processChildren?Cc(s.segmentGroup,s.index,o.commands):fT(s.segmentGroup,s.index,o.commands);return B_(r,s.segmentGroup,a,e,i)}function Uh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Dc(t){return typeof t=="object"&&t!=null&&t.outlets}function B_(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=uT(t,n,e);let a=aT(lT(s));return new Xi(a,o,r)}function uT(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=uT(o,n,e)}),new Ne(t.segments,i)}function pH(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zh(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new zh(e,n,i)}function mH(t,n,e){if(t.isAbsolute)return new Aa(n,!0,0);if(!e)return new Aa(n,!1,NaN);if(e.parent===null)return new Aa(e,!0,0);let i=Uh(t.commands[0])?0:1,r=e.segments.length-1+i;return gH(e,r,t.numberOfDoubleDots)}function gH(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Aa(i,!1,r-o)}function vH(t){return Dc(t[0])?t[0].outlets:{[me]:t}}function fT(t,n,e){if(t??=new Ne([],{}),t.segments.length===0&&t.hasChildren())return Cc(t,n,e);let i=yH(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new Ne(t.segments.slice(0,i.pathIndex),{});return o.children[me]=new Ne(t.segments.slice(i.pathIndex),t.children),Cc(o,0,r)}else return i.match&&r.length===0?new Ne(t.segments,{}):i.match&&!t.hasChildren()?q_(t,n,e):i.match?Cc(t,0,r):q_(t,n,e)}function Cc(t,n,e){if(e.length===0)return new Ne(t.segments,{});{let i=vH(e),r={};if(Object.keys(i).some(o=>o!==me)&&t.children[me]&&t.numberOfChildren===1&&t.children[me].segments.length===0){let o=Cc(t.children[me],n,e);return new Ne(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=fT(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ne(t.segments,r)}}function yH(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(Dc(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!WA(l,c,s))return o;i+=2}else{if(!WA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function q_(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Dc(o)){let l=_H(o.outlets);return new Ne(i,l)}if(r===0&&Uh(e[0])){let l=t.segments[n];i.push(new zo(l.path,GA(e[0]))),r++;continue}let s=Dc(o)?o.outlets[me]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Uh(a)?(i.push(new zo(s,GA(a))),r+=2):(i.push(new zo(s,{})),r++)}return new Ne(i,{})}function _H(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=q_(new Ne([],{}),0,i))}),n}function GA(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function WA(t,n,e){return t==e.path&&di(n,e.parameters)}function bH(t,n){return t.providers&&!t._injector&&(t._injector=Ju(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Vn(t){return t.outlet||me}function xH(t,n){let e=t.filter(i=>Vn(i)===n);return e.push(...t.filter(i=>Vn(i)!==n)),e}function Fc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function ob(t,n){if(t===n.value)return n;for(let e of n.children){let i=ob(t,e);if(i)return i}return null}function sb(t,n){if(t===n.value)return[n];for(let e of n.children){let i=sb(t,e);if(i.length)return i.unshift(n),i}return[]}function Sa(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}function hT(t){let n=CH(t),e=new ot([new zo("",{})]),i=new ot({}),r=new ot({}),o=new ot({}),s=new ot(""),a=new Go(e,i,o,s,r,me,t,n.root);return a.snapshot=n.root,new qh(new dn(a,[]),n)}function CH(t){let n={},e={},i={},r="",o=new Ta([],n,i,r,e,me,t,null,{});return new Kh("",new dn(o,[]))}function Yh(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:x(x({},n.params),t.params),data:x(x({},n.data),t.data),resolve:x(x(x(x({},t.data),n.data),r?.data),t._resolvedData)}:i={params:x({},t.params),data:x({},t.data),resolve:x(x({},t.data),t._resolvedData??{})},r&&mT(r)&&(i.resolve[Oc]=r.title),i}function mb(t,n){n.value._routerState=t,n.children.forEach(e=>mb(t,e))}function pT(t){let n=t.children.length>0?` { ${t.children.map(pT).join(", ")} } `:"";return`${t.value}${n}`}function U_(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,di(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),di(n.params,e.params)||t.paramsSubject.next(e.params),K$(n.url,e.url)||t.urlSubject.next(e.url),di(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ab(t,n){let e=di(t.params,n.params)&&J$(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||ab(t.parent,n.parent))}function mT(t){return typeof t.title=="string"||t.title===null}function EH(t,n,e){let i=Sc(t,n._root,e?e._root:void 0);return new qh(i,n)}function Sc(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=DH(t,n,e);return new dn(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Sc(t,a)),s}}let i=IH(n.value),r=n.children.map(o=>Sc(t,o));return new dn(i,r)}}function DH(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Sc(t,i,r);return Sc(t,i)})}function IH(t){return new Go(new ot(t.url),new ot(t.params),new ot(t.queryParams),new ot(t.fragment),new ot(t.data),t.outlet,t.component,t)}function Qh(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Ho(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=vT(!1,un.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function vT(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[gT]=!0,e.cancellationCode=n,e}function MH(t){return yT(t)&&Ho(t.url)}function yT(t){return!!t&&t[gT]}function AH(t,n,e){let i=t._root,r=n?n._root:null;return bc(i,r,e,[i.value])}function TH(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pa(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!hw(t)?t:n.get(t):i}function bc(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Sa(n);return t.children.forEach(s=>{RH(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ec(a,e.getContext(s),r)),r}function RH(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=OH(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Zh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?bc(t,n,a?a.children:null,i,r):bc(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ra(a.outlet.component,s))}else s&&Ec(n,a,r),r.canActivateChecks.push(new Zh(i)),o.component?bc(t,null,a?a.children:null,i,r):bc(t,null,e,i,r);return r}function OH(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!$o(t.url,n.url);case"pathParamsOrQueryParamsChange":return!$o(t.url,n.url)||!di(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ab(t,n)||!di(t.queryParams,n.queryParams);case"paramsChange":default:return!ab(t,n)}}function Ec(t,n,e){let i=Sa(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?Ec(s,n.children.getContext(o),e):Ec(s,null,e):Ec(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ra(n.outlet.component,r)):e.canDeactivateChecks.push(new Ra(null,r)):e.canDeactivateChecks.push(new Ra(null,r))}function Lc(t){return typeof t=="function"}function kH(t){return typeof t=="boolean"}function FH(t){return t&&Lc(t.canLoad)}function NH(t){return t&&Lc(t.canActivate)}function LH(t){return t&&Lc(t.canActivateChild)}function PH(t){return t&&Lc(t.canDeactivate)}function jH(t){return t&&Lc(t.canMatch)}function _T(t){return t instanceof mi||t?.name==="EmptyError"}function La(){return ze(t=>so(t.map(n=>n.pipe(Te(1),wt(Ph)))).pipe(P(n=>{for(let e of n)if(e!==!0){if(e===Ph)return Ph;if(e===!1||VH(e))return e}return!0}),ue(n=>n!==Ph),Te(1)))}function VH(t){return Ho(t)||t instanceof Ac}function BH(t,n){return Ue(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?O(ne(x({},e),{guardsResult:!0})):UH(s,i,r,t).pipe(Ue(a=>a&&kH(a)?zH(i,o,t,n):O(a)),P(a=>ne(x({},e),{guardsResult:a})))})}function UH(t,n,e,i){return Le(t).pipe(Ue(r=>qH(r.component,r.route,e,n,i)),$n(r=>r!==!0,!0))}function zH(t,n,e,i){return Le(n).pipe(Rn(r=>Xt(HH(r.route.parent,i),$H(r.route,i),WH(t,r.path,e),GH(t,r.route,e))),$n(r=>r!==!0,!0))}function $H(t,n){return t!==null&&n&&n(new nb(t)),O(!0)}function HH(t,n){return t!==null&&n&&n(new eb(t)),O(!0)}function GH(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return O(!0);let r=i.map(o=>Jt(()=>{let s=Fc(n)??e,a=Pa(o,s),l=NH(a)?a.canActivate(n,t):yn(s,()=>a(n,t));return Gr(l).pipe($n())}));return O(r).pipe(La())}function WH(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>TH(s)).filter(s=>s!==null).map(s=>Jt(()=>{let a=s.guards.map(l=>{let c=Fc(s.node)??e,d=Pa(l,c),u=LH(d)?d.canActivateChild(i,t):yn(c,()=>d(i,t));return Gr(u).pipe($n())});return O(a).pipe(La())}));return O(o).pipe(La())}function qH(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let l=Fc(n)??r,c=Pa(a,l),d=PH(c)?c.canDeactivate(t,n,e,i):yn(l,()=>c(t,n,e,i));return Gr(d).pipe($n())});return O(s).pipe(La())}function YH(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=FH(a)?a.canLoad(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),bT(i))}function bT(t){return Bp(Pe(n=>{if(typeof n!="boolean")throw Qh(t,n)}),P(n=>n===!0))}function KH(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=jH(a)?a.canMatch(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),bT(i))}function Ma(t){return nr(new Tc(t))}function QH(t){return nr(new S(4e3,!1))}function ZH(t){return nr(vT(!1,un.GuardRejected))}function XH(t,n,e,i,r){let o=xT(t,n,e);return o.matched?(i=bH(n,i),KH(i,n,e,r).pipe(P(s=>s===!0?o:x({},ub)))):O(o)}function xT(t,n,e){if(n.path==="**")return JH(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?x({},ub):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||Y$)(e,t,n);if(!r)return x({},ub);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?x(x({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function JH(t){return{matched:!0,parameters:t.length>0?eT(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function YA(t,n,e,i){return e.length>0&&nG(t,e,i)?{segmentGroup:new Ne(n,tG(i,new Ne(e,t.children))),slicedSegments:[]}:e.length===0&&iG(t,e,i)?{segmentGroup:new Ne(t.segments,eG(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Ne(t.segments,t.children),slicedSegments:e}}function eG(t,n,e,i){let r={};for(let o of e)if(tp(t,n,o)&&!i[Vn(o)]){let s=new Ne([],{});r[Vn(o)]=s}return x(x({},i),r)}function tG(t,n){let e={};e[me]=n;for(let i of t)if(i.path===""&&Vn(i)!==me){let r=new Ne([],{});e[Vn(i)]=r}return e}function nG(t,n,e){return e.some(i=>tp(t,n,i)&&Vn(i)!==me)}function iG(t,n,e){return e.some(i=>tp(t,n,i))}function tp(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function rG(t,n,e){return n.length===0&&!t.children[e]}function oG(t,n,e,i,r,o,s="emptyOnly"){return new hb(t,n,e,i,r,s,o).recognize()}function aG(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}function lG(t){let n=t.value.routeConfig;return n&&n.path===""}function CT(t){let n=[],e=new Set;for(let i of t){if(!lG(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=CT(i.children);n.push(new dn(i.value,r))}return n.filter(i=>!e.has(i))}function KA(t){return t.data||{}}function QA(t){return t.resolve||{}}function cG(t,n,e,i,r,o){return Ue(s=>oG(t,n,e,i,s.extractedUrl,r,o).pipe(P(({state:a,tree:l})=>ne(x({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function dG(t,n){return Ue(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return O(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of wT(l))s.add(c);let a=0;return Le(s).pipe(Rn(l=>o.has(l)?uG(l,i,t,n):(l.data=Yh(l,l.parent,t).resolve,O(void 0))),Pe(()=>a++),gs(1),Ue(l=>a===s.size?O(e):Bt))})}function wT(t){let n=t.children.map(e=>wT(e)).flat();return[t,...n]}function uG(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!mT(r)&&(o[Oc]=r.title),fG(o,t,n,i).pipe(P(s=>(t._resolvedData=s,t.data=Yh(t,t.parent,e).resolve,null)))}function fG(t,n,e,i){let r=H_(t);if(r.length===0)return O({});let o={};return Le(r).pipe(Ue(s=>hG(t[s],n,e,i).pipe($n(),Pe(a=>{if(a instanceof Ac)throw Qh(new ka,a);o[s]=a}))),gs(1),el(o),en(s=>_T(s)?Bt:nr(s)))}function hG(t,n,e,i){let r=Fc(n)??i,o=Pa(t,r),s=o.resolve?o.resolve(n,e):yn(r,()=>o(n,e));return Gr(s)}function z_(t){return ze(n=>{let e=t(n);return e?Le(e).pipe(P(()=>n)):O(n)})}function gb(t){let n=t.children&&t.children.map(gb),e=n?ne(x({},t),{children:n}):x({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=mG),e}function gG(t,n,e,i){return Gr(t.loadChildren()).pipe(P(DT),Ue(r=>r instanceof fl||Array.isArray(r)?O(r):Le(n.compileModuleAsync(r))),P(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Xh,[],{optional:!0,self:!0}).flat()),{routes:s.map(gb),injector:o}}))}function vG(t){return t&&typeof t=="object"&&"default"in t}function DT(t){return vG(t)?t.default:t}function _G(t,n,e){let i=t.get(MT),r=t.get(B);return t.get(k).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),bG(t))),{onViewTransitionCreated:l}=i;return l&&yn(t,()=>l({transition:a,from:n,to:e})),s})}function bG(t){return new Promise(n=>{on({read:()=>setTimeout(n)},{injector:t})})}function CG(t){return t!==wc}function AT(t,n){t.events.pipe(ue(e=>e instanceof ui||e instanceof Zi||e instanceof Ic||e instanceof $r),P(e=>e instanceof ui||e instanceof $r?xc.COMPLETE:(e instanceof Zi?e.code===un.Redirect||e.code===un.SupersededByNewNavigation:!1)?xc.REDIRECTING:xc.FAILED),ue(e=>e!==xc.REDIRECTING),Te(1)).subscribe(()=>{n()})}function IG(t){throw t}function AG(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}function TG(t){return!(t instanceof Mc)&&!(t instanceof Na)}function kG(t){return t.routerState.root}function jc(t,n){return{\u0275kind:t,\u0275providers:n}}function FG(){let t=y(De);return n=>{let e=t.get(sn);if(n!==e.components[0])return;let i=t.get(Hr),r=t.get(OT);t.get(bb)===1&&i.initialNavigation(),t.get(kT,null,xe.Optional)?.setUpPreloading(),t.get(RT,null,xe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function NG(){return jc(2,[{provide:bb,useValue:0},{provide:lf,multi:!0,deps:[De],useFactory:n=>{let e=n.get(_I,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(Hr),o=n.get(OT);AT(r,()=>{i(!0)}),n.get(_b).afterPreactivation=()=>(i(!0),o.closed?O(void 0):o),r.initialNavigation()}))}}])}function LG(){return jc(3,[{provide:lf,multi:!0,useFactory:()=>{let n=y(Hr);return()=>{n.setUpLocationChangeListener()}}},{provide:bb,useValue:2}])}function PG(t){return jc(0,[{provide:kT,useExisting:RG},{provide:Jh,useExisting:t}])}function jG(){return jc(8,[qA,{provide:ep,useExisting:qA}])}function VG(t){let n=[{provide:IT,useValue:_G},{provide:MT,useValue:x({skipNextTransition:!!t?.skipInitialTransition},t)}];return jc(9,n)}function UG(){return{provide:RT,useFactory:()=>{let t=y(wI),n=y(k),e=y(Pc),i=y(_b),r=y(kc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new OG(r,i,t,n,e)}}}function zG(){return{provide:Fi,useClass:xI}}function $G(){return{provide:Fi,useClass:ty}}function HG(t){return"guarded"}function GG(t){return[t.initialNavigation==="disabled"?LG().\u0275providers:[],t.initialNavigation==="enabledBlocking"?NG().\u0275providers:[]]}function WG(){return[{provide:XA,useFactory:FG},{provide:zs,multi:!0,useExisting:XA}]}var me,Oc,$_,Q$,tT,Xi,Ne,zo,kc,ka,tH,oH,sH,lH,dH,W_,zh,Aa,wc,Ct,Sn,Fa,ui,un,$h,Zi,$r,Ic,Hh,Y_,K_,Q_,Z_,X_,J_,eb,tb,nb,ib,Gh,Mc,Na,rb,Nc,Wh,dn,qh,Go,Ta,Kh,wH,lb,ep,qA,Ac,gT,SH,cb,Zh,Ra,Ph,Tc,Rc,db,ub,fb,sG,hb,ET,pG,Pc,mG,Xh,vb,yb,yG,IT,MT,xG,_b,wG,pb,EG,ST,DG,xc,MG,SG,Hr,TT,Jh,RG,RT,OG,OT,bb,kT,ZA,BG,FT,XA,xb=f(()=>{"use strict";M();M();ke();we();we();st();Gs();me="primary",Oc=Symbol("RouteTitle"),$_=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};Q$={exact:nT,subset:iT},tT={exact:Z$,subset:X$,ignored:()=>!0};Xi=class{constructor(n=new Ne([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){return tH.serialize(this)}},Ne=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vh(this)}},zo=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Oa(this.parameters),this._parameterMap}toString(){return sT(this)}};kc=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new ka,providedIn:"root"})}}return t})(),ka=class{parse(n){let e=new W_(n);return new Xi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_c(n.root,!0)}`,i=rH(n.queryParams),r=typeof n.fragment=="string"?`#${nH(n.fragment)}`:"";return`${e}${i}${r}`}},tH=new ka;oH=/^[^\/()?;#]+/;sH=/^[^\/()?;=#]+/;lH=/^[^=?&#]+/;dH=/^[^&#]+/;W_=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[me]=new Ne(n,e)),i}parseSegment(){let n=V_(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new zo(Bh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=aH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=V_(this.remaining);r&&(i=r,this.capture(i))}n[Bh(e)]=Bh(i)}parseQueryParam(n){let e=cH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=uH(this.remaining);s&&(i=s,this.capture(i))}let r=HA(e),o=HA(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=V_(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=me);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[me]:new Ne([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};zh=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Uh(i[0]))throw new S(4003,!1);let r=i.find(Dc);if(r&&r!==eT(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Aa=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};wc="imperative",Ct=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ct||{}),Sn=class{constructor(n,e){this.id=n,this.url=e}},Fa=class extends Sn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Ct.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ui=class extends Sn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),$h=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($h||{}),Zi=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$r=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationSkipped}},Ic=class extends Sn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},K_=class extends Sn{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Q_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Z_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},X_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},J_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},eb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nb=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ib=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gh=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Ct.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mc=class{},Na=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};rb=class{get injector(){return Fc(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Nc(this.rootInjector),this.attachRef=null}},Nc=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new rb(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wh=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ob(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=ob(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sb(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return sb(n,this._root).map(e=>e.value)}};dn=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};qh=class extends Wh{constructor(n,e){super(n),this.snapshot=e,mb(this,n)}toString(){return this.snapshot.toString()}};Go=class{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(P(c=>c[Oc]))??O(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(n=>Oa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(n=>Oa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};Ta=class{get title(){return this.data?.[Oc]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Oa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Kh=class extends Wh{constructor(n,e){super(e),this.url=n,mb(this,e)}toString(){return pT(this._root)}};wH=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new V,this.deactivateEvents=new V,this.attachEvents=new V,this.detachEvents=new V,this.parentContexts=y(Nc),this.location=y(_t),this.changeDetector=y(Be),this.inputBinder=y(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lb(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[He]})}}return t})(),lb=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Go?this.route:n===Nc?this.childContexts:this.parent.get(n,e)}},ep=new C(""),qA=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=so([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=x(x(x({},o),s),a),l===0?O(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=dI(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();Ac=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},gT="ngNavigationCancelingError";SH=(t,n,e,i)=>P(r=>(new cb(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),cb=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),U_(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ib(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tb(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(U_(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),U_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Zh=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ra=class{constructor(n,e){this.component=n,this.route=e}};Ph=Symbol("INITIAL_VALUE");Tc=class{constructor(n){this.segmentGroup=n||null}},Rc=class extends Error{constructor(n){super(),this.urlTree=n}};db=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return O(i);if(r.numberOfChildren>1||!r.children[me])return QH(`${n.redirectTo}`);r=r.children[me]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,params:p,data:v,title:_}=r,E=yn(o,()=>a({params:p,data:v,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,title:_}));if(E instanceof Xi)throw new Rc(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Rc(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Xi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new Ne(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},ub={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};fb=class{};sG=31,hb=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new db(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=YA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(P(({children:e,rootSnapshot:i})=>{let r=new dn(i,e),o=new Kh("",r),s=hH(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Ta([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),me,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,me,e).pipe(P(i=>({children:i,rootSnapshot:e})),en(i=>{if(i instanceof Rc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Tc?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(P(s=>s instanceof dn?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Le(o).pipe(Rn(s=>{let a=i.children[s],l=xH(e,s);return this.processSegmentGroup(n,l,a,s,r)}),xm((s,a)=>(s.push(...a),s)),rr(null),bm(),Ue(s=>{if(s===null)return Ma(i);let a=CT(s);return aG(a),O(a)}))}processSegment(n,e,i,r,o,s,a){return Le(e).pipe(Rn(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a).pipe(en(c=>{if(c instanceof Tc)return O(null);throw c}))),$n(l=>!!l),en(l=>{if(_T(l))return rG(i,r,o)?O(new fb):Ma(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return Vn(i)!==s&&(s===me||!tp(r,o,i))?Ma(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l):Ma(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:m}=xT(e,r,o);if(!l)return Ma(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>sG&&(this.allowRedirects=!1));let p=new Ta(o,c,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,KA(r),Vn(r),r.component??r._loadedComponent??null,r,QA(r)),v=Yh(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let _=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,p,n);return this.applyRedirects.lineralizeSegments(r,_).pipe(Ue(E=>this.processSegment(n,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=XH(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??n,{parameters:u,consumedSegments:m,remainingSegments:p}=l,v=new Ta(m,u,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,KA(i),Vn(i),i.component??i._loadedComponent??null,i,QA(i)),_=Yh(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(_.params),v.data=Object.freeze(_.data);let{segmentGroup:E,slicedSegments:I}=YA(e,m,p,c);if(I.length===0&&E.hasChildren())return this.processChildren(d,c,E,v).pipe(P(H=>new dn(v,H)));if(c.length===0&&I.length===0)return O(new dn(v,[]));let U=Vn(i)===o;return this.processSegment(d,c,E,I,U?me:o,!0,v).pipe(P(H=>new dn(v,H instanceof dn?[H]:[])))}))):Ma(e)))}getChildConfig(n,e,i){return e.children?O({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?O({routes:e._loadedRoutes,injector:e._loadedInjector}):YH(n,e,i,this.urlSerializer).pipe(Ue(r=>r?this.configLoader.loadChildren(n,e).pipe(Pe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ZH(e))):O({routes:[],injector:n})}};ET=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===me);return i}getResolvedTitleForRoute(e){return e.data[Oc]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(pG),providedIn:"root"})}}return t})(),pG=(()=>{class t extends ET{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(g(GI))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pc=new C("",{providedIn:"root",factory:()=>({})}),mG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["ng-component"]],standalone:!0,features:[Se],decls:1,vars:0,template:function(i,r){i&1&&oe(0,"router-outlet")},dependencies:[wH],encapsulation:2})}}return t})();Xh=new C(""),vb=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(cf)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return O(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Gr(e.loadComponent()).pipe(P(DT),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Wt(()=>{this.componentLoaders.delete(e)})),r=new to(i,()=>new R).pipe(ss());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return O({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=gG(i,this.compiler,e,this.onLoadEndListener).pipe(Wt(()=>{this.childrenLoaders.delete(i)})),s=new to(o,()=>new R).pipe(ss());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();yb=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(yG),providedIn:"root"})}}return t})(),yG=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),IT=new C(""),MT=new C("");xG=new C(""),_b=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new R,this.transitionAbortSubject=new R,this.configLoader=y(vb),this.environmentInjector=y(Dt),this.urlSerializer=y(kc),this.rootContexts=y(Nc),this.location=y(Zn),this.inputBindingEnabled=y(ep,{optional:!0})!==null,this.titleStrategy=y(ET),this.options=y(Pc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(yb),this.createViewTransition=y(IT,{optional:!0}),this.navigationErrorHandler=y(xG,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null;let e=r=>this.events.next(new X_(r)),i=r=>this.events.next(new J_(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ne(x(x({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ue(o=>o.id!==0),P(o=>ne(x({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return O(o).pipe(ze(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),Bt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ne(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.rawUrl),u,$h.IgnoredSameUrlNavigation)),l.resolve(!1),Bt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return O(l).pipe(ze(u=>{let m=this.transitions?.getValue();return this.events.next(new Fa(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),m!==this.transitions?.getValue()?Bt:Promise.resolve(u)}),cG(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Pe(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=ne(x({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let m=new Hh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:u,extractedUrl:m,source:p,restoredState:v,extras:_}=l,E=new Fa(u,this.urlSerializer.serialize(m),p,v);this.events.next(E);let I=hT(this.rootComponentType).snapshot;return this.currentTransition=o=ne(x({},l),{targetSnapshot:I,urlAfterRedirects:m,extras:ne(x({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,O(o)}else{let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.extractedUrl),u,$h.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Bt}}),Pe(l=>{let c=new Y_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=o=ne(x({},l),{guards:AH(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),BH(this.environmentInjector,l=>this.events.next(l)),Pe(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Qh(this.urlSerializer,l.guardsResult);let c=new K_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ue(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",un.GuardRejected),!1)),z_(l=>{if(l.guards.canActivateChecks.length)return O(l).pipe(Pe(c=>{let d=new Q_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),ze(c=>{let d=!1;return O(c).pipe(dG(this.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",un.NoDataFromResolver)}}))}),Pe(c=>{let d=new Z_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),z_(l=>{let c=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Pe(m=>{d.component=m}),P(()=>{})));for(let m of d.children)u.push(...c(m));return u};return so(c(l.targetSnapshot.root)).pipe(rr(null),Te(1))}),z_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Le(d).pipe(P(()=>o)):O(o)}),P(l=>{let c=EH(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ne(x({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Pe(()=>{this.events.next(new Mc)}),SH(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),Pe({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),ae(this.transitionAbortSubject.pipe(Pe(l=>{throw l}))),Wt(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(l=>{if(a=!0,yT(l))this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),MH(l)?this.events.next(new Na(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Ic(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let d=yn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Ac){let{message:u,cancellationCode:m}=Qh(this.urlSerializer,d);this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),u,m)),this.events.next(new Na(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let u=e.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Bt}))}))}cancelNavigationTransition(e,i,r){let o=new Zi(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();wG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(EG),providedIn:"root"})}}return t})(),pb=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},EG=(()=>{class t extends pb{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ST=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(DG),providedIn:"root"})}}return t})(),DG=(()=>{class t extends ST{constructor(){super(...arguments),this.location=y(Zn),this.urlSerializer=y(kc),this.options=y(Pc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(yb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Xi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=hT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Fa)this.stateMemento=this.createStateMemento();else if(e instanceof $r)this.rawUrlTree=i.initialUrl;else if(e instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Mc?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Zi&&(e.code===un.GuardRejected||e.code===un.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ic?this.restoreHistory(i,!0):e instanceof ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Xi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=x(x({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xc||{});MG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=y(af),this.stateManager=y(ST),this.options=y(Pc,{optional:!0})||{},this.pendingTasks=y(Di),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(_b),this.urlSerializer=y(kc),this.location=y(Zn),this.urlHandlingStrategy=y(yb),this._events=new R,this.errorHandler=this.options.errorHandler||IG,this.navigated=!1,this.routeReuseStrategy=y(wG),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(Xh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(ep,{optional:!0}),this.eventsSubscription=new ge,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Zi&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ui)this.navigated=!0;else if(i instanceof Na){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=x({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||CG(r.source)},s);this.scheduleNavigation(a,wc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}TG(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=x({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=x(x({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let m=r?r.snapshot:this.routerState.snapshot.root;u=cT(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return dT(u,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ho(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,wc,null,i)}navigate(e,i={skipLocationChange:!1}){return AG(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=x({},MG):i===!1?r=x({},SG):r=i,Ho(e))return $A(this.currentUrlTree,e,r);let o=this.parseUrl(e);return $A(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,m)=>{a=u,l=m});let d=this.pendingTasks.add();return AT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();TT=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new R,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ui&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Ho(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:BE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Ho(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(h(Hr),h(Go),yr("tabindex"),h(Qn),h(F),h(Fi))}}static{this.\u0275dir=j({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&K("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},standalone:!0,features:[lt,He]})}}return t})(),Jh=class{},RG=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ui),Rn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Ju(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(r).pipe(ir())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=O(null);let o=r.pipe(Ue(s=>s===null?O(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Le([o,s]).pipe(ir())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(g(Hr),g(cf),g(Dt),g(Jh),g(vb))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),RT=new C(""),OG=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ui?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $r&&e.code===$h.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Gh&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gh(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){js()}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();OT=new C("",{factory:()=>new R}),bb=new C("",{providedIn:"root",factory:()=>1});kT=new C("");ZA=new C("ROUTER_FORROOT_GUARD"),BG=[Zn,{provide:kc,useClass:ka},Hr,Nc,{provide:Go,useFactory:kG,deps:[Hr]},vb,[]],FT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[BG,[],{provide:Xh,multi:!0,useValue:e},{provide:ZA,useFactory:HG,deps:[[Hr,new ml,new Tu]]},{provide:Pc,useValue:i||{}},i?.useHash?zG():$G(),UG(),i?.preloadingStrategy?PG(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?GG(i):[],i?.bindToComponentInputs?jG().\u0275providers:[],i?.enableViewTransitions?VG().\u0275providers:[],WG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Xh,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(g(ZA,8))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})();XA=new C("")});var YG,NT,Cb=f(()=>{"use strict";M();M();ii();Yi();Ht();YG=["clearButton"],NT=(()=>{class t{constructor(){this.tldClick=new V,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["tld-close-button"]],viewQuery:function(i,r){if(i&1&&Ve(YG,5),i&2){let o;he(o=pe())&&(r.clearButton=o.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1,0),se(2,"translate"),se(3,"translate"),K("click",function(){return ve(o),ye(r.clicked())}),D(4,"span",2),le(5," close "),T()()}i&2&&(A("matTooltip",be(2,3,r.tooltip))("disabled",r.disabled),_e("aria-label",be(3,5,"ARIA_LABELS."+r.ariaCode)))},dependencies:[Or,li,En],encapsulation:2})}}return t})()});var LT,PT=f(()=>{"use strict";we();Cb();ii();Ht();Yi();M();LT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,ei,_a]})}}return t})()});function ZG(t,n){if(t&1&&(oe(0,"p",10),se(1,"translate")),t&2){let e=$();A("innerHtml",So(1,1,e.message.title,e.message.localizationParams),Ps)}}function XG(t,n){if(t&1&&(oe(0,"span",12),se(1,"translate")),t&2){let e=$(2);A("innerHtml",So(1,1,e.message.support,e.message.localizationParams),Ps)}}function JG(t,n){if(t&1&&(D(0,"p",11),oe(1,"span",12),se(2,"translate"),ee(3,XG,2,4,"span",13),T()),t&2){let e=$();w(),A("innerHtml",So(2,2,e.message.body,e.message.localizationParams),Ps),w(2),A("ngIf",e.message.support)}}function e3(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$(2);w(),pt(e.message.callbackButtonIcon)}}function t3(t,n){if(t&1){let e=Ge();D(0,"button",14),K("click",function(){ve(e);let r=$();return ye(r.message==null?null:r.message.callbackButtonClick())}),ee(1,e3,2,1,"mat-icon",15),le(2),se(3,"translate"),T()}if(t&2){let e=$();w(),A("ngIf",e.message.callbackButtonIcon),w(),it(" ",be(3,2,e.message.callbackButtonText)," ")}}function n3(t,n){if(t&1){let e=Ge();D(0,"tld-close-button",16),K("tldClick",function(){ve(e);let r=$();return ye(r.closeClick())}),T()}if(t&2){let e=$();fe("no-top-margin",!e.message.title||!e.message.body)}}function i3(t,n){if(t&1){let e=Ge();D(0,"button",21),K("click",function(){ve(e);let r=$(2);return ye(r.buttonClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);w(),it("",be(2,1,e.message.buttonText)," ")}}function r3(t,n){if(t&1){let e=Ge();D(0,"a",22),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);_e("href",e.message.linkHref,xv),w(),pt(be(2,2,e.message.linkText))}}function o3(t,n){if(t&1){let e=Ge();D(0,"a",23),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);A("routerLink",sf(4,QG,e.message.routerLink)),w(),pt(be(2,2,e.message.linkText))}}function s3(t,n){if(t&1&&(D(0,"div",17),ee(1,i3,3,3,"button",18)(2,r3,3,4,"a",19)(3,o3,3,6,"a",20),T()),t&2){let e=$();w(),A("ngIf",e.message.buttonText),w(),A("ngIf",e.message.linkHref&&e.message.linkText),w(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var QG,jT,np=f(()=>{"use strict";M();M();we();Sh();Ea();Cb();ii();xb();Fr();Ht();QG=t=>[t];jT=(()=>{class t{constructor(){this.buttonClicked=new V,this.closeClicked=new V,this.linkClicked=new V,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"div",0)(2,"span",1),le(3),T(),D(4,"div",2)(5,"div",3)(6,"div",4),ee(7,ZG,2,4,"p",5)(8,JG,4,5,"p",6),T(),ee(9,t3,4,4,"button",7)(10,n3,1,2,"tld-close-button",8),T(),ee(11,s3,4,3,"div",9),T()()()),i&2&&(tf("notification-message ",r.className,""),w(),fe("inline",r.inline),A("ngClass.lt-md","mobile"),_e("id",r.message.id),w(2),it(" ",r.iconNames[r.message.type]," "),w(4),A("ngIf",r.message.title),w(),A("ngIf",r.message.body),w(),A("ngIf",r.message.callbackButtonText),w(),A("ngIf",!r.message.hideClose&&!r.message.callbackButtonText),w(),A("ngIf",r.message.buttonText||r.message.linkHref||r.message.routerLink))},dependencies:[Hs,lA,sA,rA,iA,wa,NT,ah,TT,kr,En],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-100)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title + .message-body)[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]})}}return t})()});var VT,BT=f(()=>{"use strict";we();Ah();ii();xb();Ht();PT();np();Fr();M();VT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,Da,LT,ha,ei,FT,dh]})}}return t})()});var Wo,wb=f(()=>{"use strict";Wo=function(t){return t.BASIC="BASIC",t.INFO="INFO",t.WARNING="WARNING",t.SUCCESS="SUCCESS",t.ERROR="ERROR",t}(Wo||{})});var UT=f(()=>{"use strict";wb()});var zT=f(()=>{"use strict"});var $T=f(()=>{"use strict";zT()});var Eb=f(()=>{"use strict";BT();np();UT();$T()});var Db=f(()=>{"use strict"});var HT=f(()=>{"use strict";Eb();Db()});var GT=f(()=>{"use strict"});var WT=f(()=>{"use strict";GT()});var qT=f(()=>{"use strict";Db()});var YT=f(()=>{"use strict";HT();WT();qT()});var KT=f(()=>{"use strict"});var QT=f(()=>{"use strict"});var ZT=f(()=>{"use strict"});var XT=f(()=>{"use strict"});var JT=f(()=>{"use strict"});var eR=f(()=>{"use strict"});var tR=f(()=>{"use strict"});var nR=f(()=>{"use strict"});var iR=f(()=>{"use strict";j_()});var Ib=f(()=>{"use strict"});var rR=f(()=>{"use strict";qo();Ib()});var oR=f(()=>{"use strict";Ib()});var Mb=f(()=>{"use strict";rR();oR()});var sR=f(()=>{"use strict";Mb()});var aR=f(()=>{"use strict"});var lR=f(()=>{"use strict"});var qo=f(()=>{"use strict";KT();QT();ZT();XT();JT();eR();tR();nR();iR();sR();aR();lR()});var cR=f(()=>{"use strict"});var dR=f(()=>{"use strict"});var uR=f(()=>{"use strict"});var fR=f(()=>{"use strict"});var hR=f(()=>{"use strict"});var pR=f(()=>{"use strict"});var mR=f(()=>{"use strict"});var gR=f(()=>{"use strict"});var vR=f(()=>{"use strict";cR();dR();uR();fR();hR();pR();mR();gR()});var yR=f(()=>{"use strict"});var _R=f(()=>{"use strict"});var bR=f(()=>{"use strict";_R()});var xR=f(()=>{"use strict";qo();vR();yR();bR()});var CR=f(()=>{"use strict";xR()});var wR=f(()=>{"use strict";CR()});var Sb=f(()=>{"use strict"});var ER=f(()=>{"use strict";Sb()});var DR=f(()=>{"use strict";ER();Sb()});var Ab=f(()=>{"use strict"});var IR=f(()=>{"use strict";Ab()});var MR=f(()=>{"use strict";IR();Ab()});var Tb=f(()=>{"use strict"});var SR=f(()=>{"use strict";Tb()});var AR=f(()=>{"use strict";SR();Tb()});var TR,Rb=f(()=>{"use strict";M();Ht();TR=(()=>{class t{constructor(e){this.translate=e,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(e,i=!1){if(!e)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let r=`${e}:${i}`;if(this.translationCache.has(r))return this.translationCache.get(r);let o=this.getLanguageFromLanguageCode(e),a=this.isLanguageCodeSameAsRegion(e)?o:e,l=this.getTranslation(a,i);return this.translationCache.set(r,l),l}getTranslation(e,i){let o=this.translate.instant(this.languagesLocalizationKey)[e.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,e);return i&&(o=o.split("(")[0].trim()),o}getLanguageTranslationFromLanguageCode(e,i){let r=new Intl.DisplayNames([e],{type:"language"}),o=new Intl.DisplayNames([e],{type:"region"}),s,a=this.getLanguageFromLanguageCode(i),l=this.getRegionFromLanguageCode(i);try{let c=r.of(a),d=o.of(l);s=`${c} (${d})`}catch{try{s=r.of(i)}catch{return s=this.translations[e]?.[a]??i,s}}return this.capitalizeFirstLetter(s)}isLanguageCodeSameAsRegion(e){let[i,r,o]=e.split("-");return(i===r?.toLowerCase()||this.localeSameRegions[i]?.includes(r?.toLowerCase()))&&!o}getRegionFromLanguageCode(e){let[i,r,o]=e.split("-");return(o?`${r}-${o}`:`${r}`).toUpperCase()}getLanguageFromLanguageCode(e){return e.split("-")[0].toLowerCase()}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}static{this.\u0275fac=function(i){return new(i||t)(h(Li,16))}}static{this.\u0275pipe=ks({name:"languageTranslate",type:t,pure:!1,standalone:!0})}}return t})()});var RR=f(()=>{"use strict";Rb()});var OR=f(()=>{"use strict";RR();Rb()});var kR=f(()=>{"use strict"});var FR=f(()=>{"use strict"});var NR=f(()=>{"use strict"});var LR=f(()=>{"use strict"});var PR=f(()=>{"use strict";kR();FR();NR();LR()});var Ob=f(()=>{"use strict";PR()});var jR=f(()=>{"use strict";Ob()});var VR=f(()=>{"use strict";jR();Ob()});var kb=f(()=>{"use strict"});var BR=f(()=>{"use strict";kb()});var UR=f(()=>{"use strict";BR();kb()});var zR=f(()=>{"use strict";qo()});var $R=f(()=>{"use strict";zR()});var Fb=f(()=>{"use strict";qo()});var HR=f(()=>{"use strict";Fb()});var GR=f(()=>{"use strict";HR();Fb()});var WR=f(()=>{"use strict"});var qR=f(()=>{"use strict";WR()});var YR=f(()=>{"use strict";Lb()});var KR=f(()=>{"use strict";qR();YR()});var QR=f(()=>{"use strict";qo()});var ZR=f(()=>{"use strict";QR()});var XR=f(()=>{"use strict";qo()});var JR=f(()=>{"use strict";XR()});var eO=f(()=>{"use strict";DR();MR();AR();OR();VR();UR();$R();GR();KR();Mb();ZR();JR()});var Nb,tO=f(()=>{"use strict";eO();M();Ht();Nb=(()=>{class t{constructor(e){this.translateService=e}getLanguageCodeTranslation(e,i=!1){return new TR(this.translateService).transform(e,i)}removeRegionFromLanguageCode(e){return e.split("-")[0]}static{this.\u0275fac=function(i){return new(i||t)(g(Li))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Lb=f(()=>{"use strict";tO()});var Pb=f(()=>{"use strict"});var nO=f(()=>{"use strict";Pb()});var iO=f(()=>{"use strict"});var rO=f(()=>{"use strict";iO();Pb()});var oO=f(()=>{"use strict";nO();rO()});var jb=f(()=>{"use strict";VA();zA();YT();wR();Lb();oO()});var Wr,Vb=f(()=>{"use strict";jb();Wr=class{static addPlausible(n){let i=new BA().window;if(!i||!n)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",n),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(n,e){let i=window;i?.plausible&&i.plausible(n,{props:e})}}});var Bb=f(()=>{"use strict";Vb()});var sO=f(()=>{"use strict";Bb()});var aO=f(()=>{"use strict"});var lO=f(()=>{"use strict";aO()});var cO=f(()=>{"use strict";Vb();Bb();sO();lO()});var ip,dO=f(()=>{"use strict";ip=function(t){return t.GENERAL="General",t.PROFESSIONAL="Professional",t.ACADEMIC="Academic",t}(ip||{})});var ja,uO=f(()=>{"use strict";M();ja=new C("LLM_CONFIGURATION_TOKEN")});var fO=f(()=>{"use strict"});var rp=f(()=>{"use strict";uO();fO();Rh()});var hO,pO=f(()=>{"use strict";M();Uo();ke();wb();rp();M();Uo();hO=(()=>{class t{constructor(e){this.quotaService=e,this.llmConfiguration=y(ja),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(e){return this.llmConfiguration.useLocalQuota?O(this.setQuotaLocalStorageUsage(e)):this.quotaService.getQuotaUsage().pipe(P(i=>{let r=i.usage.find(o=>o.quotaType===qe.LLM_REQUESTS||o.quotaType===qe.LEGACY_LLM_REQUESTS);return r?r.quotaRemaining:this.setQuotaLocalStorageUsage(e)}),en(()=>O(this.setQuotaLocalStorageUsage(e))))}getExceededLimitMessage(e){return{type:Wo.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:e}}}getReachedQuotaMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(e){return{type:Wo.ERROR,body:`LLM.ERRORS.${e}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(e){let i=localStorage.getItem(this.LLMQuotaLocalStorageKey),r=new Date,o={remainingQuota:this.trialRequestCount,lastUsedAt:r};if(i){o=JSON.parse(i);let a=new Date(o.lastUsedAt);(a.getDate()!==r.getDate()||a.getMonth()!==r.getMonth()||a.getFullYear()!==r.getFullYear())&&(o.remainingQuota=this.trialRequestCount),e&&(o.remainingQuota-=1)}return o.lastUsedAt=r,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(o)),o.remainingQuota}static{this.\u0275fac=function(i){return new(i||t)(g(OA))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Ub,mO,gO,zb=f(()=>{"use strict";we();M();Ub=class{constructor(n,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let n=this._textarea,e=!1;try{if(n){let i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let n=this._textarea;n&&(n.remove(),this._textarea=void 0)}},mO=(()=>{class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new Ub(e,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});var g3,vO,$b=f(()=>{"use strict";M();ji();ke();M();zb();ii();Fr();ji();Yi();Ea();Ht();g3=["textarea"],vO=(()=>{class t{constructor(e){this.clipboard=e,this.textEditEvent=new V,this.dislikeEvent=new V,this.copyEvent=new V,this.destroy=new R}ngOnInit(){this.textareaControl=new $l(this.text)}ngAfterViewInit(){gi(this.textarea.nativeElement,"keyup").pipe(Pe(e=>{e.ctrlKey&&e.key==="c"&&this.copyEvent.emit()}),vi(300),ae(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(e){e&&e.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),e&&e.text&&(this.textareaControl=new $l(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}static{this.\u0275fac=function(i){return new(i||t)(h(mO))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(i,r){if(i&1&&Ve(g3,5),i&2){let o;he(o=pe())&&(r.textarea=o.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},features:[He],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1)(1,"div",2)(2,"textarea",3,0),le(4," "),T(),D(5,"div",4)(6,"mat-icon",5),se(7,"translate"),le(8," gpp_maybe "),T(),D(9,"div")(10,"button",6),se(11,"translate"),K("click",function(){return ve(o),ye(r.dislike())}),D(12,"mat-icon",7),le(13," thumb_down "),T()(),D(14,"button",8),se(15,"translate"),K("click",function(){return ve(o),ye(r.copy())}),D(16,"mat-icon",9),le(17," content_copy "),T()()()()()()}i&2&&(A("ngClass.gt-lg","desktop"),w(2),A("formControl",r.textareaControl),w(4),A("matTooltip",be(7,7,"LLM.EU_DATA_TOOLTIP")),w(4),A("matTooltip",be(11,9,"TOOLTIPS.DISLIKE"))("disabled",r.actionButtonsDisabled||!r.textareaControl.value),w(4),A("disabled",r.actionButtonsDisabled||!r.textareaControl.value)("matTooltip",be(15,11,"TOOLTIPS.COPY")))},dependencies:[Or,kr,Xs,Js,Ny,li,wa,En],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]})}}return t})()});function b3(t,n){if(t&1){let e=Ge();D(0,"lib-tld-notification-message",15),K("closeClicked",function(){let r=ve(e).$implicit,o=$();return ye(o.closeMessage(r))}),T()}if(t&2){let e=n.$implicit;A("message",e)}}function x3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.USE_CASE."+be(2,2,e))," ")}}function C3(t,n){if(t&1){let e=Ge();D(0,"mat-form-field",16)(1,"mat-label"),le(2),se(3,"translate"),T(),D(4,"mat-select",17),Us("ngModelChange",function(r){ve(e);let o=$();return El(o.selectedUseCase,r)||(o.selectedUseCase=r),ye(r)}),QD(5,x3,4,6,"mat-option",18,KD),T()()}if(t&2){let e=$();w(2),pt(be(3,3,"LLM.USE_CASES_LABEL")),w(2),A("disabled",e.isLoading),Bs("ngModel",e.selectedUseCase),w(),ZD(e.useCases)}}function w3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(2,2,e))," ")}}function E3(t,n){if(t&1){let e=Ge();nf(0),D(1,"mat-form-field",19)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",20),K("selectionChange",function(r){ve(e);let o=$();return ye(o.checkRephrasedTextSaves(r))}),ee(6,w3,4,6,"mat-option",21),T()(),D(7,"p",22),le(8),se(9,"uppercase"),se(10,"translate"),se(11,"translate"),D(12,"span",23),se(13,"uppercase"),se(14,"translate"),le(15," info "),T()(),rf()}if(t&2){let e=$();w(3),pt(be(4,6,"LLM.REPHRASE_MODAL.WRITING_STYLES.TITLE")),w(2),A("disabled",e.isLoading)("value",e.selectedWritingStyle),w(),A("ngForOf",e.writingStyles),w(2),it("",So(11,12,"LLM.REPHRASE_MODAL.WRITING_STYLES.SPECIFIC_STYLE",sf(19,y3,be(10,10,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(9,8,e.selectedWritingStyle))))," "),w(4),A("matTooltip",be(14,17,"LLM.REPHRASE_MODAL.WRITING_STYLES.TOOLTIP_"+be(13,15,e.selectedWritingStyle)))}}function D3(t,n){if(t&1&&(oe(0,"div",24),se(1,"translate")),t&2){let e=$();A("innerHTML",So(1,1,e.localizationKey+"LIMIT",nI(4,_3,e.quotaLeft,e.subscriptionUrl)),Ps)}}function I3(t,n){if(t&1){let e=Ge();D(0,"button",25),K("click",function(){ve(e);let r=$();return ye(r.cancel())}),le(1),se(2,"translate"),T()}if(t&2){let e=$();w(),it(" ",be(2,1,e.localizationKey+"CANCEL")," ")}}function M3(t,n){if(t&1&&(D(0,"button",26),le(1),se(2,"translate"),T()),t&2){let e=$();A("mat-dialog-close",null),w(),it(" ",be(2,2,e.localizationKey+"CLOSE")," ")}}function S3(t,n){if(t&1&&(D(0,"span"),le(1),se(2,"translate"),T()),t&2){let e=$();w(),it(" ",be(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function A3(t,n){if(t&1&&(le(0),se(1,"translate")),t&2){let e=$();it(" ",be(1,1,e.localizationKey+"ACTION")," ")}}function T3(t,n){t&1&&oe(0,"mat-spinner",27),t&2&&A("diameter",20)}var y3,_3,yO,Hb=f(()=>{"use strict";vc();Uo();ke();j_();cO();Rh();dO();M();Uo();pO();we();ii();vc();ji();ac();lc();In();np();Yi();hh();$b();Ht();y3=t=>({style:t}),_3=(t,n)=>({limit:t,subscriptionUrl:n});yO=(()=>{class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(e,i,r){this.llmService=e,this.llmHelperService=i,this.data=r,this.selectedWritingStyle=ip.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=jn,this.writingStyles=Object.values(ip),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===jn.REPHRASE?(this.useCases=Object.values(Fh),this.selectedUseCase=Fh.General):this.llmActionType===jn.SUMMARY&&(this.useCases=Object.values(Nh),this.selectedUseCase=Nh.General),this.showUseCase=this.llmActionType===jn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===jn.SUMMARY&&this.data.showUseCaseSummary,this.data.defaultUseCase&&(this.selectedUseCase=this.data.defaultUseCase)}closeMessage(e){let i=this.messages?.findIndex(r=>JSON.stringify(r)===JSON.stringify(e));(i||i===0)&&this.messages.splice(i,1)}checkRephrasedTextSaves(e){e.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=e.value);let i=this.savedRephrasings.find(o=>o.style===this.selectedWritingStyle),r=this.savedRephrasings.find(o=>o.style===this.previousWritingStyle);r?r.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=i?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===jn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(e){this.manuallyEditedText=e,this.initialText=e,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(e=>{this.initialText=e,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let e=this.maxCharLength,i=[this.initialText,this.manuallyEditedText,this.editedText],r=this.editedText&&!this.manuallyEditedText?this.editedText:i.reduce((o,s)=>o.length>s.length?o:s);if(r.length>e){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(r.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(e){this.llmHelperService.getRemainingQuota(e).subscribe(i=>{this.quotaLeft=i,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let e=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return e.length>this.maxCharLength&&(e=e.substring(0,this.maxCharLength)),(this.llmActionType===jn.REPHRASE?this.llmService.rephrase({text:e,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:e,language:this.data.language,useCase:this.selectedUseCase})).pipe(Wt(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:e=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=e,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:e=>{if(e.status===P_.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}static{this.\u0275fac=function(i){return new(i||t)(h(RA),h(hO),h(L_))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea-with-actions"]],decls:22,vars:23,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],["color","primary","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],[1,"llm-writing-style","text-m-semi-bold"],["matTooltipClass","multiline-tooltip","matTooltipPosition","above",1,"material-icons-outlined","info-icon",3,"matTooltip"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(i,r){if(i&1){let o=Ge();D(0,"h1",2),le(1),se(2,"translate"),T(),D(3,"div",3)(4,"p"),le(5),se(6,"translate"),T(),ee(7,b3,1,1,"lib-tld-notification-message",4)(8,C3,7,5,"mat-form-field",5)(9,E3,16,21,"ng-container",6),D(10,"lib-llm-textarea",7),K("textEditEvent",function(a){return ve(o),ye(r.textEditEvent(a))})("copyEvent",function(){return ve(o),ye(r.copyPlausibleEvent())})("dislikeEvent",function(){return ve(o),ye(r.dislikePlausibleEvent())}),T()(),D(11,"div",8),ee(12,D3,2,7,"div",9),D(13,"div",10),ee(14,I3,3,3,"button",11)(15,M3,3,4,"ng-template",null,0,Ao),D(17,"button",12),K("click",function(){return ve(o),ye(r.getEditedText())}),ee(18,S3,3,3,"span",13)(19,A3,2,3,"ng-template",null,1,Ao)(21,T3,1,1,"mat-spinner",14),T()()()}if(i&2){let o=Cn(16),s=Cn(20);w(),pt(be(2,19,r.localizationKey+"TITLE")),w(4),pt(be(6,21,r.localizationKey+"DESCRIPTION")),w(2),A("ngForOf",r.messages),w(),A("ngIf",r.showUseCase),w(),A("ngIf",r.llmActionType===r.llmActions.REPHRASE),w(),fe("rephrase",r.llmActionType===r.llmActions.REPHRASE),A("text",r.editedText!==""?r.editedText:r.initialText)("disabled",r.isLoading||!r.quotaLeft)("actionButtonsDisabled",!r.isEdited),w(2),A("ngIf",r.remainingQuotaMessageVisible),w(),fe("w-full",!r.remainingQuotaMessageVisible),w(),A("ngIf",r.isLoading)("ngIfElse",o),w(3),A("disabled",r.isDisabled),w(),A("ngIf",r.llmActionType===r.llmActions.SUMMARY)("ngIfElse",s),w(3),A("ngIf",r.isLoading)}},dependencies:[mf,Hs,ah,wA,DA,MA,IA,Js,Hl,_h,ba,xh,fa,jT,li,fh,vO,CI,En],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:14px}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return t})()});var R3,_O=f(()=>{"use strict";R3=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
18
  <path d="M16.1585 17.1686L14.9128 19.9564C14.5601 20.7458 13.4395 20.7458 13.0868 19.9564L11.8412 17.1686C11.6403 16.719 11.2806 16.3593 10.8311 16.1585L8.04323 14.9128C7.25382 14.5601 7.25382 13.4395 8.04323 13.0868L10.8311 11.8412C11.2806 11.6403 11.6403 11.2806 11.8412 10.8311L13.0868 8.04323C13.4395 7.25382 14.5601 7.25382 14.9128 8.04323L16.1585 10.8311C16.3593 11.2806 16.719 11.6403 17.1686 11.8412L19.9564 13.0868C20.7458 13.4395 20.7458 14.5601 19.9564 14.9128L17.1686 16.1585C16.719 16.3593 16.3593 16.719 16.1585 17.1686Z" stroke="#524345" stroke-width="1.5"/>
19
19
  <path d="M10.4838 2.31373C10.2969 1.89542 9.7031 1.89542 9.5162 2.31373L9.14485 3.14485L8.31373 3.5162C7.89542 3.7031 7.89542 4.2969 8.31373 4.4838L9.14485 4.85515L9.5162 5.68627C9.7031 6.10458 10.2969 6.10458 10.4838 5.68627L10.8552 4.85515L11.6863 4.4838C12.1046 4.2969 12.1046 3.7031 11.6863 3.5162L10.8552 3.14485L10.4838 2.31373Z" fill="#524345"/>
20
20
  <path d="M5.7257 5.47059C5.44534 4.84314 4.55466 4.84313 4.2743 5.47059L3.71727 6.71727L2.47059 7.2743C1.84314 7.55466 1.84314 8.44534 2.47059 8.7257L3.71727 9.28273L4.2743 10.5294C4.55466 11.1569 5.44534 11.1569 5.7257 10.5294L6.28273 9.28273L7.52941 8.7257C8.15687 8.44534 8.15687 7.55466 7.52941 7.2743L6.28273 6.71727L5.7257 5.47059Z" fill="#524345"/>
21
21
  </svg>
22
- `});var Gb={};wk(Gb,{LLM_MENU:()=>A3});var yO=f(()=>{"use strict";vO()});function k3(t,n){t&1&&(Do(),D(0,"svg",2),oe(1,"polygon",3),T())}function N3(t,n){if(t&1){let e=Ge();D(0,"div",0),K("keydown",function(r){ve(e);let o=$();return ye(o._handleKeydown(r))})("click",function(){ve(e);let r=$();return ye(r.closed.emit("click"))})("@transformMenu.start",function(r){ve(e);let o=$();return ye(o._onAnimationStart(r))})("@transformMenu.done",function(r){ve(e);let o=$();return ye(o._onAnimationDone(r))}),D(1,"div",1),je(2),T()()}if(t&2){let e=$();Ai(e._classList),A("id",e.panelId)("@transformMenu",e._panelAnimationState),_e("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}function V3(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}function B3(t){return()=>t.scrollStrategies.reposition()}var T3,R3,O3,F3,Wb,Vc,L3,op,nce,ice,P3,j3,Va,bO,U3,_O,xO,CO,qb=f(()=>{"use strict";M();M();ln();ln();Vi();ke();st();we();In();va();oc();cn();oi();oi();Pt();$i();T3=["mat-menu-item",""],R3=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],O3=["mat-icon, [matMenuItemIcon]","*"];F3=["*"];Wb=new C("MAT_MENU_PANEL"),Vc=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new R,this._focused=new R,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++)i[r].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(B),h(Ln),h(Wb,8),h(Be))}}static{this.\u0275cmp=re({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(i,r){i&1&&K("click",function(s){return r._checkDisabled(s)})("mouseenter",function(){return r._handleMouseEnter()}),i&2&&(_e("role",r.role)("tabindex",r._getTabIndex())("aria-disabled",r.disabled)("disabled",r.disabled||null),fe("mat-mdc-menu-item-highlighted",r._highlighted)("mat-mdc-menu-item-submenu-trigger",r._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",Ie],disableRipple:[2,"disableRipple","disableRipple",Ie]},exportAs:["matMenuItem"],standalone:!0,features:[lt,Se],attrs:T3,ngContentSelectors:O3,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(i,r){i&1&&(Lt(R3),je(0),D(1,"span",0),je(2,1),T(),oe(3,"div",1),ee(4,k3,2,0,":svg:svg",2)),i&2&&(w(3),A("matRippleDisabled",r.disableRipple||r.disabled)("matRippleTrigger",r._getHostElement()),w(),nt(r._triggersSubmenu?4:-1))},dependencies:[sh],encapsulation:2,changeDetection:0})}}return t})(),L3=new C("MatMenuContent"),op={transformMenu:Vr("transformMenu",[jo("void",jt({opacity:0,transform:"scale(0.8)"})),ai("void => enter",qi("120ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:1,transform:"scale(1)"}))),ai("* => void",qi("100ms 25ms linear",jt({opacity:0})))]),fadeInItems:Vr("fadeInItems",[jo("showing",jt({opacity:1})),ai("void => *",[jt({opacity:0}),qi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nce=op.fadeInItems,ice=op.transformMenu,P3=0,j3=new C("mat-menu-default-options",{providedIn:"root",factory:V3});Va=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let i=this._previousPanelClass,r=x({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new fr,this._classList={},this._panelAnimationState="void",this._animationDone=new R,this.closed=new V,this.close=this.closed,this.panelId=`mat-menu-panel-${P3++}`,this._injector=y(De),this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new eh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(wt(this._directDescendantItems),ze(e=>ft(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(wt(this._directDescendantItems),ze(i=>ft(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:St(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=on(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let a=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(a)}let i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){let s=x({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[r]=!0,this._previousElevation=r,this._classList=s}}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=ne(x({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(j3),h(Be))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&($t(o,L3,5),$t(o,Vc,5),$t(o,Vc,4)),i&2){let s;he(s=pe())&&(r.lazyContent=s.first),he(s=pe())&&(r._allItems=s),he(s=pe())&&(r.items=s)}},viewQuery:function(i,r){if(i&1&&Ve(Nt,5),i&2){let o;he(o=pe())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&_e("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ie],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:Ie(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[bt([{provide:Wb,useExisting:t}]),lt,Se],ngContentSelectors:F3,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(i,r){i&1&&(Lt(),ee(0,N3,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[op.transformMenu,op.fadeInItems]},changeDetection:0})}}return t})(),bO=new C("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}});U3={provide:bO,deps:[Qe],useFactory:B3},_O=ti({passive:!0}),xO=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,s,a,l,c,d){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ge.EMPTY,this._hoverSubscription=ge.EMPTY,this._menuCloseSubscription=ge.EMPTY,this._changeDetectorRef=y(Be),this._handleTouchStart=u=>{Ql(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new V,this.onMenuOpen=this.menuOpened,this.menuClosed=new V,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Va?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,_O)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,_O),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Va&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ae(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Va?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(ue(r=>r.toState==="void"),Te(1),ae(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Pr({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{let o=r.connectionPair.overlayX==="start"?"after":"before",s=r.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[d,u]=[r,o],m=0;if(this.triggersSubmenu()){if(u=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let p=this._parentMaterialMenu.items.first;this._parentInnerPadding=p?p._getHostElement().offsetTop:0}m=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=s==="top"?"bottom":"top",c=a==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:m},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:m},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-m},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-m}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:O(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ue(s=>s!==this._menuItemInstance),ue(()=>this._menuOpen)):O();return ft(e,r,o,i)}_handleMousedown(e){Kl(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ue(e=>e===this._menuItemInstance&&!e.disabled),Vd(0,ds)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Va&&this.menu._isAnimating?this.menu._animationDone.pipe(Te(1),Vd(0,ds),ae(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Hi(e.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(F),h(_t),h(bO),h(Wb,8),h(Vc,10),h(xt,8),h(Ln),h(k))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&K("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),i&2&&_e("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}}return t})(),CO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[U3],imports:[ct,Zl,We,ri,Nr,We]})}}return t})()});var wO,sp=f(()=>{"use strict";M();Rh();Hb();yO();ke();M();vc();jb();ii();Fr();qb();Yi();Ht();wO=(()=>{class t{get isTextSummarizable(){return this.text}get isTargetLanguageRephrasable(){return!this.rephrasableLanguagesCodeList||this.language&&this.rephrasableLanguagesCodeList.includes(this.languageService.removeRegionFromLanguageCode(this.language))}constructor(e,i,r){this.dialog=e,this.iconService=i,this.languageService=r,this.showUseCaseSummary=!1,this.showUseCaseRephrase=!1,this.menuTriggerClick=new V,this.llmAction=jn,this.iconService.registerIcons(Gb)}openLLMModal(e){let i;!this.text||typeof this.text=="string"?i=O(this.text??""):i=this.text;let r={text:i,language:this.language,action:e,showUseCaseSummary:this.showUseCaseSummary,showUseCaseRephrase:this.showUseCaseRephrase};this.dialog.open(gO,{panelClass:"responsive-dialog",maxWidth:"800px",width:"100%",data:r})}menuTriggerClicked(){this.menuTriggerClick.emit()}static{this.\u0275fac=function(i){return new(i||t)(h(gc),h(NA),h(Nb))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm"]],inputs:{text:"text",language:"language",isMenuDisabled:"isMenuDisabled",rephrasableLanguagesCodeList:"rephrasableLanguagesCodeList",showUseCaseSummary:"showUseCaseSummary",showUseCaseRephrase:"showUseCaseRephrase"},outputs:{menuTriggerClick:"menuTriggerClick"},decls:15,vars:21,consts:[["menu","matMenu"],["mat-icon-button","",3,"click","disabled","matTooltip","matMenuTriggerFor"],["svgIcon","llm_menu"],[3,"matTooltipPosition","matTooltip"],["mat-menu-item","",3,"click","disabled"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1),se(1,"translate"),K("click",function(){return ve(o),ye(r.menuTriggerClicked())}),oe(2,"mat-icon",2),T(),D(3,"mat-menu",null,0)(5,"div",3),se(6,"translate"),D(7,"button",4),K("click",function(){return ve(o),ye(r.openLLMModal(r.llmAction.SUMMARY))}),le(8),se(9,"translate"),T()(),D(10,"div",3),se(11,"translate"),D(12,"button",4),K("click",function(){return ve(o),ye(r.openLLMModal(r.llmAction.REPHRASE))}),le(13),se(14,"translate"),T()()()}if(i&2){let o=Cn(4);A("disabled",r.isMenuDisabled)("matTooltip",be(1,11,"LLM.MENU_TOOLTIP"))("matMenuTriggerFor",o),w(5),A("matTooltipPosition","left")("matTooltip",r.isTextSummarizable?"":be(6,13,"LLM.MENU_SUMMARY_DISABLED_TOOLTIP")),w(2),A("disabled",!r.isTextSummarizable),w(),it(" ",be(9,15,"LLM.SUMMARY")," "),w(2),A("matTooltipPosition","left")("matTooltip",r.isTargetLanguageRephrasable?"":be(11,17,"LLM.MENU_REPHRASE_DISABLED_TOOLTIP")),w(2),A("disabled",!r.isTargetLanguageRephrasable),w(),it(" ",be(14,19,"LLM.REPHRASE")," ")}},dependencies:[Or,kr,Va,Vc,xO,li,En]})}}return t})()});var EO,DO=f(()=>{"use strict";we();sp();ii();Fr();qb();Ht();vc();zb();ji();$b();lc();Eb();Yi();Ah();hh();Hb();M();EO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,dh,CO,ei,MA,pO,$f,wM,Ch,PT,_a,Da,aS]})}}return t})()});var IO=f(()=>{"use strict";sp();DO();rp()});var MO,SO=f(()=>{"use strict";MO={en:{TOOLTIPS:{COPY:"Copy to clipboard",DISLIKE:"Dislike"},LLM:{USE_CASES_LABEL:"Use case",SUMMARY:"Summarize",REPHRASE:"Rephrase",MENU_TOOLTIP:"Rephrase or summarize",MENU_DISABLED_TOOLTIP:"Summary and rephrase functions are not available",MENU_SUMMARY_DISABLED_TOOLTIP:"Summary available for texts that contain at least 100 characters",MENU_REPHRASE_DISABLED_TOOLTIP:"Rephrase is not available in selected language",UNSUPPORTED_MENU_DISABLED_TOOLTIP:"Feature unavailable",EU_DATA_TOOLTIP:"We utilise the Azure OpenAI Service, the entered data is securely processed on servers located within the EU",REPHRASE_MODAL:{TITLE:"Rephrase",DESCRIPTION:"Rephrase text into a specified writing style, adapting the language and tone to match a given target style or voice.",CLOSE:"Close",CANCEL:"Cancel",ACTION:"Rephrase",LIMIT:"Rephrases left today: <span class='text-m-semi-bold'>{{limit}}</span>. Need more? <a href='{{subscriptionUrl}}' target='_blank'>Get a subscription</a>",WRITING_STYLES:{TITLE:"Writing style",TOOLTIP_GENERAL:`Formality: Use a low to medium level of formality.
22
+ `});var Gb={};Dk(Gb,{LLM_MENU:()=>R3});var bO=f(()=>{"use strict";_O()});function N3(t,n){t&1&&(Do(),D(0,"svg",2),oe(1,"polygon",3),T())}function P3(t,n){if(t&1){let e=Ge();D(0,"div",0),K("keydown",function(r){ve(e);let o=$();return ye(o._handleKeydown(r))})("click",function(){ve(e);let r=$();return ye(r.closed.emit("click"))})("@transformMenu.start",function(r){ve(e);let o=$();return ye(o._onAnimationStart(r))})("@transformMenu.done",function(r){ve(e);let o=$();return ye(o._onAnimationDone(r))}),D(1,"div",1),je(2),T()()}if(t&2){let e=$();Ai(e._classList),A("id",e.panelId)("@transformMenu",e._panelAnimationState),_e("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}function U3(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}function z3(t){return()=>t.scrollStrategies.reposition()}var O3,k3,F3,L3,Wb,Vc,j3,op,sce,ace,V3,B3,Va,CO,$3,xO,wO,EO,qb=f(()=>{"use strict";M();M();ln();ln();Vi();ke();st();we();In();va();oc();cn();oi();oi();Pt();$i();O3=["mat-menu-item",""],k3=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],F3=["mat-icon, [matMenuItemIcon]","*"];L3=["*"];Wb=new C("MAT_MENU_PANEL"),Vc=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new R,this._focused=new R,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++)i[r].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(B),h(Ln),h(Wb,8),h(Be))}}static{this.\u0275cmp=re({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(i,r){i&1&&K("click",function(s){return r._checkDisabled(s)})("mouseenter",function(){return r._handleMouseEnter()}),i&2&&(_e("role",r.role)("tabindex",r._getTabIndex())("aria-disabled",r.disabled)("disabled",r.disabled||null),fe("mat-mdc-menu-item-highlighted",r._highlighted)("mat-mdc-menu-item-submenu-trigger",r._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",Ie],disableRipple:[2,"disableRipple","disableRipple",Ie]},exportAs:["matMenuItem"],standalone:!0,features:[lt,Se],attrs:O3,ngContentSelectors:F3,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(i,r){i&1&&(Lt(k3),je(0),D(1,"span",0),je(2,1),T(),oe(3,"div",1),ee(4,N3,2,0,":svg:svg",2)),i&2&&(w(3),A("matRippleDisabled",r.disableRipple||r.disabled)("matRippleTrigger",r._getHostElement()),w(),nt(r._triggersSubmenu?4:-1))},dependencies:[sh],encapsulation:2,changeDetection:0})}}return t})(),j3=new C("MatMenuContent"),op={transformMenu:Vr("transformMenu",[jo("void",jt({opacity:0,transform:"scale(0.8)"})),ai("void => enter",qi("120ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:1,transform:"scale(1)"}))),ai("* => void",qi("100ms 25ms linear",jt({opacity:0})))]),fadeInItems:Vr("fadeInItems",[jo("showing",jt({opacity:1})),ai("void => *",[jt({opacity:0}),qi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sce=op.fadeInItems,ace=op.transformMenu,V3=0,B3=new C("mat-menu-default-options",{providedIn:"root",factory:U3});Va=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let i=this._previousPanelClass,r=x({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new fr,this._classList={},this._panelAnimationState="void",this._animationDone=new R,this.closed=new V,this.close=this.closed,this.panelId=`mat-menu-panel-${V3++}`,this._injector=y(De),this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new eh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(wt(this._directDescendantItems),ze(e=>ft(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(wt(this._directDescendantItems),ze(i=>ft(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:St(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=on(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let a=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(a)}let i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){let s=x({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[r]=!0,this._previousElevation=r,this._classList=s}}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=ne(x({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(B3),h(Be))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&($t(o,j3,5),$t(o,Vc,5),$t(o,Vc,4)),i&2){let s;he(s=pe())&&(r.lazyContent=s.first),he(s=pe())&&(r._allItems=s),he(s=pe())&&(r.items=s)}},viewQuery:function(i,r){if(i&1&&Ve(Nt,5),i&2){let o;he(o=pe())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&_e("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ie],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:Ie(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[bt([{provide:Wb,useExisting:t}]),lt,Se],ngContentSelectors:L3,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(i,r){i&1&&(Lt(),ee(0,P3,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[op.transformMenu,op.fadeInItems]},changeDetection:0})}}return t})(),CO=new C("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.reposition()}});$3={provide:CO,deps:[Qe],useFactory:z3},xO=ti({passive:!0}),wO=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,s,a,l,c,d){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ge.EMPTY,this._hoverSubscription=ge.EMPTY,this._menuCloseSubscription=ge.EMPTY,this._changeDetectorRef=y(Be),this._handleTouchStart=u=>{Ql(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new V,this.onMenuOpen=this.menuOpened,this.menuClosed=new V,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Va?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,xO)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,xO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Va&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ae(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Va?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(ue(r=>r.toState==="void"),Te(1),ae(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Pr({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{let o=r.connectionPair.overlayX==="start"?"after":"before",s=r.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[d,u]=[r,o],m=0;if(this.triggersSubmenu()){if(u=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let p=this._parentMaterialMenu.items.first;this._parentInnerPadding=p?p._getHostElement().offsetTop:0}m=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=s==="top"?"bottom":"top",c=a==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:m},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:m},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-m},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-m}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:O(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ue(s=>s!==this._menuItemInstance),ue(()=>this._menuOpen)):O();return ft(e,r,o,i)}_handleMousedown(e){Kl(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ue(e=>e===this._menuItemInstance&&!e.disabled),Vd(0,ds)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Va&&this.menu._isAnimating?this.menu._animationDone.pipe(Te(1),Vd(0,ds),ae(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Hi(e.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(i){return new(i||t)(h(Qe),h(F),h(_t),h(CO),h(Wb,8),h(Vc,10),h(xt,8),h(Ln),h(k))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&K("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),i&2&&_e("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}}return t})(),EO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[$3],imports:[ct,Zl,We,ri,Nr,We]})}}return t})()});var DO,sp=f(()=>{"use strict";M();Rh();Hb();bO();ke();M();vc();jb();ii();Fr();qb();Yi();Ht();DO=(()=>{class t{get isTextSummarizable(){return this.text}get isTargetLanguageRephrasable(){return!this.rephrasableLanguagesCodeList||this.language&&this.rephrasableLanguagesCodeList.includes(this.languageService.removeRegionFromLanguageCode(this.language))}constructor(e,i,r){this.dialog=e,this.iconService=i,this.languageService=r,this.showUseCaseSummary=!1,this.showUseCaseRephrase=!1,this.menuTriggerClick=new V,this.llmAction=jn,this.iconService.registerIcons(Gb)}openLLMModal(e){let i;!this.text||typeof this.text=="string"?i=O(this.text??""):i=this.text;let r={text:i,language:this.language,action:e,showUseCaseSummary:this.showUseCaseSummary,showUseCaseRephrase:this.showUseCaseRephrase};this.dialog.open(yO,{panelClass:"responsive-dialog",maxWidth:"800px",width:"100%",data:r})}menuTriggerClicked(){this.menuTriggerClick.emit()}static{this.\u0275fac=function(i){return new(i||t)(h(gc),h(PA),h(Nb))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm"]],inputs:{text:"text",language:"language",isMenuDisabled:"isMenuDisabled",rephrasableLanguagesCodeList:"rephrasableLanguagesCodeList",showUseCaseSummary:"showUseCaseSummary",showUseCaseRephrase:"showUseCaseRephrase"},outputs:{menuTriggerClick:"menuTriggerClick"},decls:15,vars:21,consts:[["menu","matMenu"],["mat-icon-button","",3,"click","disabled","matTooltip","matMenuTriggerFor"],["svgIcon","llm_menu"],[3,"matTooltipPosition","matTooltip"],["mat-menu-item","",3,"click","disabled"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1),se(1,"translate"),K("click",function(){return ve(o),ye(r.menuTriggerClicked())}),oe(2,"mat-icon",2),T(),D(3,"mat-menu",null,0)(5,"div",3),se(6,"translate"),D(7,"button",4),K("click",function(){return ve(o),ye(r.openLLMModal(r.llmAction.SUMMARY))}),le(8),se(9,"translate"),T()(),D(10,"div",3),se(11,"translate"),D(12,"button",4),K("click",function(){return ve(o),ye(r.openLLMModal(r.llmAction.REPHRASE))}),le(13),se(14,"translate"),T()()()}if(i&2){let o=Cn(4);A("disabled",r.isMenuDisabled)("matTooltip",be(1,11,"LLM.MENU_TOOLTIP"))("matMenuTriggerFor",o),w(5),A("matTooltipPosition","left")("matTooltip",r.isTextSummarizable?"":be(6,13,"LLM.MENU_SUMMARY_DISABLED_TOOLTIP")),w(2),A("disabled",!r.isTextSummarizable),w(),it(" ",be(9,15,"LLM.SUMMARY")," "),w(2),A("matTooltipPosition","left")("matTooltip",r.isTargetLanguageRephrasable?"":be(11,17,"LLM.MENU_REPHRASE_DISABLED_TOOLTIP")),w(2),A("disabled",!r.isTargetLanguageRephrasable),w(),it(" ",be(14,19,"LLM.REPHRASE")," ")}},dependencies:[Or,kr,Va,Vc,wO,li,En]})}}return t})()});var IO,MO=f(()=>{"use strict";we();sp();ii();Fr();qb();Ht();vc();zb();ji();$b();lc();Eb();Yi();Ah();hh();Hb();M();IO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,dh,EO,ei,AA,gO,$f,wM,Ch,VT,_a,Da,aS]})}}return t})()});var SO=f(()=>{"use strict";sp();MO();rp()});var AO,TO=f(()=>{"use strict";AO={en:{TOOLTIPS:{COPY:"Copy to clipboard",DISLIKE:"Dislike"},LLM:{USE_CASES_LABEL:"Use case",SUMMARY:"Summarize",REPHRASE:"Rephrase",MENU_TOOLTIP:"Rephrase or summarize",MENU_DISABLED_TOOLTIP:"Summary and rephrase functions are not available",MENU_SUMMARY_DISABLED_TOOLTIP:"Summary available for texts that contain at least 100 characters",MENU_REPHRASE_DISABLED_TOOLTIP:"Rephrase is not available in selected language",UNSUPPORTED_MENU_DISABLED_TOOLTIP:"Feature unavailable",EU_DATA_TOOLTIP:"We utilise the Azure OpenAI Service, the entered data is securely processed on servers located within the EU",REPHRASE_MODAL:{TITLE:"Rephrase",DESCRIPTION:"Rephrase text into a specified writing style, adapting the language and tone to match a given target style or voice.",CLOSE:"Close",CANCEL:"Cancel",ACTION:"Rephrase",LIMIT:"Rephrases left today: <span class='text-m-semi-bold'>{{limit}}</span>. Need more? <a href='{{subscriptionUrl}}' target='_blank'>Get a subscription</a>",WRITING_STYLES:{TITLE:"Writing style",TOOLTIP_GENERAL:`Formality: Use a low to medium level of formality.
23
23
  Vocabulary: Optimal for simple and clear language, avoiding technical jargon.
24
24
  Sentence Structure: Keep sentences simple to moderately complex.
25
25
  Tone: Maintain a friendly and engaging tone.`,TOOLTIP_PROFESSIONAL:`Formality: Use a medium to high level of formality.
@@ -55,4 +55,4 @@ Teikumu strukt\u016Bra: nodro\u0161iniet, ka teikumi ir skaidri un kodol\u012Bgi
55
55
  Tonis: uzturiet profesion\u0101lu, cie\u0146pilnu un vienk\u0101r\u0161u toni.`,TOOLTIP_ACADEMIC:`Form\u0101lisms: izmantojiet augsta l\u012Bme\u0146a form\u0101lismu.
56
56
  Leksika: iek\u013Caujiet tehnisku un t\u0113mai rakstur\u012Bgu terminolo\u0123iju.
57
57
  Teikumu strukt\u016Bra: izmantojiet sare\u017E\u0123\u012Btu teikumu strukt\u016Bru, koncentr\u0113joties uz skaidr\u012Bbu un precizit\u0101ti.
58
- Tonis: uzturiet objekt\u012Bvu, anal\u012Btisku un da\u017Ek\u0101rt bezpersonisku toni.`,SPECIFIC_STYLE:"{{style}} rakst\u012Bbas stils",GENERAL:"Visp\u0101r\u012Bgs",PROFESSIONAL:"Profesion\u0101ls",ACADEMIC:"Akad\u0113misks"}},SUMMARY_MODAL:{TITLE:"Kopsavilkums",DESCRIPTION:"\u0100tri apkopojiet garus tekstus skaidros kopsavilkumos, izmantojot m\u016Bsu moderno LLM funkciju.",CANCEL:"Atcelt",CLOSE:"Aizv\u0113rt",ACTION:"Izveidot kopsavilkumu",REGENERATE:"\u0122ener\u0113t atk\u0101rtoti",LIMIT:"\u0160odien atliku\u0161\u0101s kopsavilkuma darb\u012Bbas: <span class='text-m-semi-bold'>{{limit}}</span>. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>"},USE_CASE:{MEETING:"San\u0101ksme",EVENT:"Konference",GENERAL:"Visp\u0101r\u012Bgs"},ERRORS:{QUOTA_LIMIT:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",QUOTA_LIMIT_REACHED:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",DEFAULT:"\u0160\u0137iet, mums rad\u0101s probl\u0113ma. L\u016Bdzu, <bold>atk\u0101rtojiet</bold> darb\u012Bbu. Ja tas nepal\u012Bdz, sazinieties ar m\u016Bsu <a href='mailto:{{supportEmail}}' target='_blank'>atbalsta komandu</a>."}},ERRORS:{MAX_CHAR_LENGTH:"Tikai {{maxCharLength}}/{{totalSymbols}} rakstz\u012Bmes tiks p\u0101rfraz\u0113tas/apkopotas."}}}});var ap,Yb=f(()=>{"use strict";M();IO();Dy();SO();Uo();M();sp();ap=(()=>{class t extends Sf{#e;#t;get showUseCaseSummary(){return this._showUseCaseSummary}set showUseCaseSummary(e){this._showUseCaseSummary=this.ensureTypeBool(e)}get showUseCaseRephrase(){return this._showUseCaseRephrase}set showUseCaseRephrase(e){this._showUseCaseRephrase=this.ensureTypeBool(e)}constructor(){super(MO),this.#e=y(ja),this.#t=y(yc),this.supportEmail="support@tilde.com",this.maxCharLength=1e5,this._showUseCaseSummary=!1,this._showUseCaseRephrase=!1}ngOnInit(){super.ngOnInit(),this.#n()}ngOnChanges(){super.ngOnChanges(),this.#n()}#n(){this.#r(),this.#i()}#r(){this.serviceUrl&&(this.#t.llmService.url=this.serviceUrl),this.subscriptionUrl&&(this.#e.subscriptionUrl=this.subscriptionUrl),this.supportEmail&&(this.#e.supportEmail=this.supportEmail),this.appId&&(this.#t.sharedConfiguration.xAppId=this.appId),this.maxCharLength&&(this.#e.maxCharLength=this.maxCharLength),this.useLocalQuota!==void 0&&(this.#e.useLocalQuota=this.ensureTypeBool(this.useLocalQuota))}#i(){this.quotaServiceUrl&&(this.#t.quotaService.url=this.quotaServiceUrl)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-llm"]],inputs:{serviceUrl:"serviceUrl",subscriptionUrl:"subscriptionUrl",supportEmail:"supportEmail",appId:"appId",maxCharLength:"maxCharLength",text:"text",language:"language",useLocalQuota:"useLocalQuota",quotaServiceUrl:"quotaServiceUrl",showUseCaseSummary:"showUseCaseSummary",showUseCaseRephrase:"showUseCaseRephrase"},standalone:!0,features:[Ce,He,Se],decls:1,vars:4,consts:[[3,"language","text","showUseCaseSummary","showUseCaseRephrase"]],template:function(i,r){i&1&&oe(0,"lib-llm",0),i&2&&A("language",r.language)("text",r.text)("showUseCaseSummary",r.showUseCaseSummary)("showUseCaseRephrase",r.showUseCaseRephrase)},dependencies:[EO,wO]})}}return t})()});var H3,G3,W3,q3,AO,TO=f(()=>{"use strict";we();R_();Yb();M();H3=()=>({voice:"lv-LV-male",voiceName:"Austris"}),G3=()=>({voice:"lv-LV-female",voiceName:"Marta"}),W3=()=>({voice:"lv-LV-sandra",voiceName:"Sandra"}),q3=(t,n,e)=>[t,n,e],AO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-root"]],standalone:!0,features:[bt([]),Se],decls:2,vars:12,consts:[["language","lv","text","This is shor text to be summarized or rephrased. I just want to test if it is working or not. Just to make sure. Please change this text.",3,"showUseCaseSummary","showUseCaseRephrase","useLocalQuota"],["xApiKey","f9e79feb-997c-4f85-bd9d-d0c9a626c8a0",3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"app-llm",0)(1,"app-text-to-speech",1),i&2&&(A("showUseCaseSummary",!1)("showUseCaseRephrase",!1)("useLocalQuota",!1),w(),A("voices",iI(8,q3,of(5,H3),of(6,G3),of(7,W3)))("maxCharLength",500))},dependencies:[ct,Th,ap],encapsulation:2})}}return t})()});var RO,OO=f(()=>{"use strict";RO={production:!0}});function kO(t){return new S(3e3,!1)}function Y3(){return new S(3100,!1)}function K3(){return new S(3101,!1)}function Q3(t){return new S(3001,!1)}function Z3(t){return new S(3003,!1)}function X3(t){return new S(3004,!1)}function J3(t,n){return new S(3005,!1)}function e8(){return new S(3006,!1)}function t8(){return new S(3007,!1)}function n8(t,n){return new S(3008,!1)}function i8(t){return new S(3002,!1)}function r8(t,n,e,i,r){return new S(3010,!1)}function o8(){return new S(3011,!1)}function s8(){return new S(3012,!1)}function a8(){return new S(3200,!1)}function l8(){return new S(3202,!1)}function c8(){return new S(3013,!1)}function d8(t){return new S(3014,!1)}function u8(t){return new S(3015,!1)}function f8(t){return new S(3016,!1)}function h8(t,n){return new S(3404,!1)}function p8(t){return new S(3502,!1)}function m8(t){return new S(3503,!1)}function g8(){return new S(3300,!1)}function v8(t){return new S(3504,!1)}function y8(t){return new S(3301,!1)}function _8(t,n){return new S(3302,!1)}function b8(t){return new S(3303,!1)}function x8(t,n){return new S(3400,!1)}function C8(t){return new S(3401,!1)}function w8(t){return new S(3402,!1)}function E8(t,n){return new S(3505,!1)}function qr(t){switch(t.length){case 0:return new jr;case 1:return t[0];default:return new rc(t)}}function qO(t,n,e=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((m,p)=>{let v=p,_=m;if(p!=="offset")switch(v=t.normalizePropertyName(v,r),_){case vh:_=e.get(p);break;case si:_=i.get(p);break;default:_=t.normalizeStyleValue(p,v,_,r);break}u.set(v,_)}),d||o.push(u),a=u,s=c}),r.length)throw p8(r);return o}function v0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Kb(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Kb(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Kb(e,"destroy",t)));break}}function Kb(t,n,e){let i=e.totalTime,r=!!e.disabled,o=y0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function y0(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function hn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function FO(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}function _0(t){let n=t.parentNode||t.host||null;return n===D8?null:n}function I8(t){return t.substring(1,6)=="ebkit"}function M8(t){Yo||(Yo=S8()||{},NO=Yo.style?"WebkitAppearance"in Yo.style:!1);let n=!0;return Yo.style&&!I8(t)&&(n=t in Yo.style,!n&&NO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Yo.style)),n}function S8(){return typeof document<"u"?document.body:null}function YO(t,n){for(;n;){if(n===t)return!0;n=_0(n)}return!1}function KO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}function Ji(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:i0(parseFloat(n[1]),n[2])}function i0(t,n){switch(n){case"s":return t*A8;default:return t}}function pp(t,n,e){return t.hasOwnProperty("duration")?t:R8(t,n,e)}function R8(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(i);if(a===null)return n.push(kO(t)),{duration:0,delay:0,easing:""};r=i0(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=i0(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(Y3()),a=!0),o<0&&(n.push(K3()),a=!0),a&&n.splice(l,0,kO(t))}return{duration:r,delay:o,easing:s}}function O8(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function fi(t,n,e){n.forEach((i,r)=>{let o=x0(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Qo(t,n){n.forEach((e,i)=>{let r=x0(i);t.style[r]=""})}function Bc(t){return Array.isArray(t)?t.length==1?t[0]:yS(t):t}function k8(t,n,e){let i=n.params||{},r=XO(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(Q3(o))})}function XO(t){let n=[];if(typeof t=="string"){let e;for(;e=r0.exec(t);)n.push(e[1]);r0.lastIndex=0}return n}function zc(t,n,e){let i=`${t}`,r=i.replace(r0,(o,s)=>{let a=n[s];return a==null&&(e.push(Z3(s)),a=""),a.toString()});return r==i?t:r}function x0(t){return t.replace(F8,(...n)=>n[1].toUpperCase())}function N8(t,n){return t===0||n===0}function L8(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,C0(t,a)))}}return n}function fn(t,n,e){switch(n.type){case ce.Trigger:return t.visitTrigger(n,e);case ce.State:return t.visitState(n,e);case ce.Transition:return t.visitTransition(n,e);case ce.Sequence:return t.visitSequence(n,e);case ce.Group:return t.visitGroup(n,e);case ce.Animate:return t.visitAnimate(n,e);case ce.Keyframes:return t.visitKeyframes(n,e);case ce.Style:return t.visitStyle(n,e);case ce.Reference:return t.visitReference(n,e);case ce.AnimateChild:return t.visitAnimateChild(n,e);case ce.AnimateRef:return t.visitAnimateRef(n,e);case ce.Query:return t.visitQuery(n,e);case ce.Stagger:return t.visitStagger(n,e);default:throw X3(n.type)}}function C0(t,n){return window.getComputedStyle(t)[n]}function j8(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>V8(i,e,n)):e.push(t),e}function V8(t,n,e){if(t[0]==":"){let l=B8(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(u8(t)),n;let r=i[1],o=i[2],s=i[3];n.push(PO(r,s));let a=r==gp&&s==gp;o[0]=="<"&&!a&&n.push(PO(s,r))}function B8(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(f8(t)),"* => *"}}function PO(t,n){let e=cp.has(t)||dp.has(t),i=cp.has(n)||dp.has(n);return(r,o)=>{let s=t==gp||t==r,a=n==gp||n==o;return!s&&e&&typeof r=="boolean"&&(s=r?cp.has(t):dp.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?cp.has(n):dp.has(n)),s&&a}}function ek(t,n,e,i){return new o0(t).build(n,e,i)}function z8(t){let n=!!t.split(/\s*,\s*/).find(e=>e==JO);return n&&(t=t.replace(U8,"")),t=t.replace(/@\*/g,hp).replace(/@\w+/g,e=>hp+"-"+e.slice(1)).replace(/:animating/g,n0),[t,n]}function $8(t){return t?x({},t):null}function H8(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function G8(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=pp(t,n).duration;return Qb(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Qb(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=pp(e,n);return Qb(r.duration,r.delay,r.easing)}function Ko(t){return t?(t=x({},t),t.params&&(t.params=$8(t.params))):t={},t}function Qb(t,n,e){return{duration:t,delay:n,easing:e}}function w0(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}function tk(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return new a0().buildKeyframes(t,n,e,i,r,o,s,a,l,c)}function VO(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function Z8(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,si)}else for(let[o,s]of r)e.set(o,s)}),e}function BO(t,n,e,i,r,o,s,a,l,c,d,u,m){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:m}}function X8(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function nk(t,n){let e=x({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}function J8(t,n,e){return new u0(t,n,e)}function e4(t,n,e){let i=[(s,a)=>!0],r={type:ce.Sequence,steps:[],options:null},o={type:ce.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new _p(t,o,n)}function UO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}function l4(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function c4(t){return t??null}function up(t){return t&&t.nodeType===1}function d4(t){return t=="start"||t=="done"}function $O(t,n){let e=t.style.display;return t.style.display=n??"none",e}function HO(t,n,e,i,r){let o=[];e.forEach(l=>o.push($O(l)));let s=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let m=n.computeStyle(c,u,r);d.set(u,m),(!m||m.length==0)&&(c[Bn]=a4,s.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>$O(l,o[a++])),s}function GO(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=s(c),o.set(a,l),l}return n.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function An(t,n){t.classList?.add(n)}function Ba(t,n){t.classList?.remove(n)}function u4(t,n,e){qr(e).onDone(()=>t.processLeaveNode(n))}function f4(t){let n=[];return rk(t,n),n}function rk(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof rc?rk(i.players,n):n.push(i)}}function h4(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}function WO(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}function p4(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=e0(n[0]),n.length>1&&(i=e0(n[n.length-1]))):n instanceof Map&&(e=e0(n)),e||i?new m0(t,e,i):null}function e0(t){let n=null;return t.forEach((e,i)=>{m4(i)&&(n=n||new Map,n.set(i,e))}),n}function m4(t){return t==="display"||t==="position"}function g4(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function v4(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var D8,Yo,NO,b0,Zo,Xo,A8,QO,T8,ZO,t0,lp,hp,LO,n0,r0,F8,P8,mp,gp,cp,dp,JO,U8,jO,o0,s0,$c,W8,q8,Y8,K8,Q8,a0,vp,l0,yp,c0,Zb,_p,d0,u0,t4,f0,zO,n4,Xb,i4,r4,o4,s4,ik,a4,Bn,Hc,Uc,Jb,h0,p0,Gc,Ua,m0,bp,xp,fp,ok,Cp,g0,wp,E0=f(()=>{"use strict";oc();M();M();D8=typeof document>"u"?null:document.documentElement;Yo=null,NO=!1;b0=(()=>{class t{validateStyleProperty(e){return M8(e)}containsElement(e,i){return YO(e,i)}getParentElement(e){return _0(e)}query(e,i,r){return KO(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new jr(r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Zo=class{static{this.NOOP=new b0}},Xo=class{},A8=1e3,QO="{{",T8="}}",ZO="ng-enter",t0="ng-leave",lp="ng-trigger",hp=".ng-trigger",LO="ng-animating",n0=".ng-animating";r0=new RegExp(`${QO}\\s*(.+?)\\s*${T8}`,"g");F8=/-+([a-z0-9])/g;P8=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),mp=class extends Xo{normalizePropertyName(n,e){return x0(n)}normalizeStyleValue(n,e,i,r){let o="",s=i.toString().trim();if(P8.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(J3(n,i))}return s+o}},gp="*";cp=new Set(["true","1"]),dp=new Set(["false","0"]);JO=":self",U8=new RegExp(`s*${JO}s*,?`,"g");jO="",o0=class{constructor(n){this._driver=n}build(n,e,i){let r=new s0(e);return this._resetContextStyleTimingState(r),fn(this,Bc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=jO,n.collectedStyles=new Map,n.collectedStyles.set(jO,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(e8()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==ce.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==ce.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(t8())}),{type:ce.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{XO(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(n8(n.name,[...o.values()]))}return{type:ce.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=fn(this,Bc(n.animation),e),r=j8(n.expr,e.errors);return{type:ce.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ko(n.options)}}visitSequence(n,e){return{type:ce.Sequence,steps:n.steps.map(i=>fn(this,i,e)),options:Ko(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(s=>{e.currentTime=i;let a=fn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:ce.Group,steps:o,options:Ko(n.options)}}visitAnimate(n,e){let i=G8(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:jt({});if(o.type==ce.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=jt(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:ce.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)typeof a=="string"?a===si?i.push(a):e.errors.push(i8(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(QO)>=0){o=!0;break}}}),{type:ce.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(r8(l,d.startTime,d.endTime,o,r)),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),e.options&&k8(a,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:ce.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(o8()),i;let r=1,o=0,s=[],a=!1,l=!1,c=0,d=n.steps.map(I=>{let U=this._makeStyleAst(I,e),H=U.offset!=null?U.offset:H8(U.styles),Me=0;return H!=null&&(o++,Me=U.offset=H),l=l||Me<0||Me>1,a=a||Me<c,c=Me,s.push(Me),U});l&&e.errors.push(s8()),a&&e.errors.push(a8());let u=n.steps.length,m=0;o>0&&o<u?e.errors.push(l8()):o==0&&(m=r/(u-1));let p=u-1,v=e.currentTime,_=e.currentAnimateTimings,E=_.duration;return d.forEach((I,U)=>{let H=m>0?U==p?1:m*U:s[U],Me=H*E;e.currentTime=v+_.delay+Me,_.duration=Me,this._validateStyleAst(I,e),I.offset=H,i.styles.push(I)}),i}visitReference(n,e){return{type:ce.Reference,animation:fn(this,Bc(n.animation),e),options:Ko(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:ce.AnimateChild,options:Ko(n.options)}}visitAnimateRef(n,e){return{type:ce.AnimateRef,animation:this.visitReference(n.animation,e),options:Ko(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=z8(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,hn(e.collectedStyles,e.currentQuerySelector,new Map);let a=fn(this,Bc(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:ce.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ko(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(c8());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:pp(n.timings,e.errors,!0);return{type:ce.Stagger,animation:fn(this,Bc(n.animation),e),timings:i,options:null}}};s0=class{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};$c=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},W8=1,q8=":enter",Y8=new RegExp(q8,"g"),K8=":leave",Q8=new RegExp(K8,"g");a0=class{buildKeyframes(n,e,i,r,o,s,a,l,c,d=[]){c=c||new $c;let u=new l0(n,e,c,r,o,d,[]);u.options=l;let m=l.delay?Ji(l.delay):0;u.currentTimeline.delayNextStep(m),u.currentTimeline.setStyles([s],null,u.errors,l),fn(this,i,u);let p=u.timelines.filter(v=>v.containsAnimation());if(p.length&&a.size){let v;for(let _=p.length-1;_>=0;_--){let E=p[_];if(E.element===e){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,u.errors,l)}return p.length?p.map(v=>v.buildKeyframes()):[w0(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let s=typeof o=="number"?o:Ji(zc(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,s=i.duration!=null?Ji(i.duration):null,a=i.delay!=null?Ji(i.delay):null;return s!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),fn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==ce.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=vp);let s=Ji(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>fn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?Ji(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),fn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?zc(i,e.params,e.errors):i;return pp(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==ce.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ji(r.delay):0;o&&(e.previousNode.type===ce.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vp);let s=i,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(n.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),fn(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe();let m=u.currentTimeline.currentTime;s=Math.max(s,m)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;fn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},vp={},l0=class t{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new yp(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=Ji(i.duration)),i.delay!=null&&(r.delay=Ji(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=zc(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=vp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new c0(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=n.replace(Y8,"."+this._enterClassName),n=n.replace(Q8,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&a.length==0&&s.push(d8(e)),a}},yp=class t{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=W8,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||si),this._currentKeyframe.set(e,si);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=Z8(n,this._globalTimelineStyles);for(let[a,l]of s){let c=zc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??si),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===vh?n.add(u):d===si&&e.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...n.values()],s=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return w0(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},c0=class extends yp{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=i+e,a=e/s,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",VO(a)),o.push(c);let d=n.length-1;for(let u=1;u<=d;u++){let m=new Map(n[u]),p=m.get("offset"),v=e+p*i;m.set("offset",VO(v/s)),o.push(m)}i=s,e=0,r="",n=o}return w0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};Zb={},_p=class{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return X8(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,d){let u=[],m=this.ast.options&&this.ast.options.params||Zb,p=a&&a.params||Zb,v=this.buildStyles(i,p,u),_=l&&l.params||Zb,E=this.buildStyles(r,_,u),I=new Set,U=new Map,H=new Map,Me=r==="void",rt={params:nk(_,m),delay:this.ast.options?.delay},Oe=d?[]:tk(n,e,this.ast.animation,o,s,v,E,rt,c,u),Ye=0;return Oe.forEach(mt=>{Ye=Math.max(mt.duration+mt.delay,Ye)}),u.length?BO(e,this._triggerName,i,r,Me,v,E,[],[],U,H,Ye,u):(Oe.forEach(mt=>{let hi=mt.element,Jo=hn(U,hi,new Set);mt.preStyleProps.forEach(Yr=>Jo.add(Yr));let I0=hn(H,hi,new Set);mt.postStyleProps.forEach(Yr=>I0.add(Yr)),hi!==e&&I.add(hi)}),BO(e,this._triggerName,i,r,Me,v,E,Oe,[...I.values()],U,H,Ye))}};d0=class{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=nk(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=zc(s,r,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};u0=class{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new d0(r.style,o,i))}),UO(this.states,"true","1"),UO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new _p(n,r,this.states))}),this.fallbackTransition=e4(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};t4=new $c,f0=class{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){let i=[],r=[],o=ek(this._driver,e,i,r);if(i.length)throw m8(i);r.length&&void 0,this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=qO(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),s,a=new Map;if(o?(s=tk(this._driver,e,o,ZO,t0,new Map,new Map,i,t4,r),s.forEach(d=>{let u=hn(a,d.element,new Map);d.postStyleProps.forEach(m=>u.set(m,null))})):(r.push(g8()),s=[]),r.length)throw v8(r);a.forEach((d,u)=>{d.forEach((m,p)=>{d.set(p,this._driver.computeStyle(u,p,si))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=qr(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw y8(n);return e}listen(n,e,i,r){let o=y0(e,"","","");return v0(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},zO="ng-animate-queued",n4=".ng-animate-queued",Xb="ng-animate-disabled",i4=".ng-animate-disabled",r4="ng-star-inserted",o4=".ng-star-inserted",s4=[],ik={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},a4={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bn="__ng_removed",Hc=class{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=c4(r),i){let o=n,{value:s}=o,a=Ip(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Uc="void",Jb=new Hc(Uc),h0=class{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,An(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw _8(i,e);if(i==null||i.length==0)throw b8(e);if(!d4(i))throw x8(i,e);let o=hn(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);let a=hn(this._engine.statesByElement,n,new Map);return a.has(e)||(An(n,lp),An(n,lp+"-"+e),a.set(e,Jb)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw C8(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),s=new Gc(this.id,e,n),a=this._engine.statesByElement.get(n);a||(An(n,lp),An(n,lp+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new Hc(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Jb),!(c.value===Uc)&&l.value===c.value){if(!h4(l.params,c.params)){let _=[],E=o.matchStyles(l.value,l.params,_),I=o.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Qo(n,E),fi(n,I)})}return}let m=hn(this._engine.playersByElement,n,[]);m.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let p=o.matchTransition(l.value,c.value,n,c.params),v=!1;if(!p){if(!r)return;p=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:v}),v||(An(n,zO),s.onStart(()=>{Ba(n,zO)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let E=this._engine.playersByElement.get(n);if(E){let I=E.indexOf(s);I>=0&&E.splice(I,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,hp,!0);i.forEach(r=>{if(r[Bn])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(n,c,Uc,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&qr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jb,d=new Hc(Uc),u=new Gc(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Bn];(!o||o===ik)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){An(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=y0(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,v0(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},p0=class{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new h0(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(up(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!up(e))return;let o=e[Bn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),An(n,Xb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ba(n,Xb))}removeNode(n,e,i){if(up(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Bn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return up(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,hp,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,n0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return qr(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Bn];if(e&&e.setForRemoval){if(n[Bn]=ik,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Xb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,i4,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];An(r,r4)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?qr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw w8(n)}_flushAnimations(n,e){let i=new $c,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(z=>{d.add(z);let G=this.driver.query(z,n4,!0);for(let Y=0;Y<G.length;Y++)d.add(G[Y])});let u=this.bodyNode,m=Array.from(this.statesByElement.keys()),p=GO(m,this.collectedEnterElements),v=new Map,_=0;p.forEach((z,G)=>{let Y=ZO+_++;v.set(G,Y),z.forEach(Ae=>An(Ae,Y))});let E=[],I=new Set,U=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){let G=this.collectedLeaveElements[z],Y=G[Bn];Y&&Y.setForRemoval&&(E.push(G),I.add(G),Y.hasAnimation?this.driver.query(G,o4,!0).forEach(Ae=>I.add(Ae)):U.add(G))}let H=new Map,Me=GO(m,Array.from(I));Me.forEach((z,G)=>{let Y=t0+_++;H.set(G,Y),z.forEach(Ae=>An(Ae,Y))}),n.push(()=>{p.forEach((z,G)=>{let Y=v.get(G);z.forEach(Ae=>Ba(Ae,Y))}),Me.forEach((z,G)=>{let Y=H.get(G);z.forEach(Ae=>Ba(Ae,Y))}),E.forEach(z=>{this.processLeaveNode(z)})});let rt=[],Oe=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(Y=>{let Ae=Y.player,gt=Y.element;if(rt.push(Ae),this.collectedEnterElements.length){let At=gt[Bn];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(Y.triggerName)){let Kr=At.previousTriggersValues.get(Y.triggerName),pn=this.statesByElement.get(Y.element);if(pn&&pn.has(Y.triggerName)){let Wc=pn.get(Y.triggerName);Wc.value=Kr,pn.set(Y.triggerName,Wc)}}Ae.destroy();return}}let Un=!u||!this.driver.containsElement(u,gt),Zt=H.get(gt),er=v.get(gt),Ze=this._buildInstruction(Y,i,er,Zt,Un);if(Ze.errors&&Ze.errors.length){Oe.push(Ze);return}if(Un){Ae.onStart(()=>Qo(gt,Ze.fromStyles)),Ae.onDestroy(()=>fi(gt,Ze.toStyles)),r.push(Ae);return}if(Y.isFallbackTransition){Ae.onStart(()=>Qo(gt,Ze.fromStyles)),Ae.onDestroy(()=>fi(gt,Ze.toStyles)),r.push(Ae);return}let A0=[];Ze.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||A0.push(At)}),Ze.timelines=A0,i.append(gt,Ze.timelines);let _k={instruction:Ze,player:Ae,element:gt};s.push(_k),Ze.queriedElements.forEach(At=>hn(a,At,[]).push(Ae)),Ze.preStyleProps.forEach((At,Kr)=>{if(At.size){let pn=l.get(Kr);pn||l.set(Kr,pn=new Set),At.forEach((Wc,Dp)=>pn.add(Dp))}}),Ze.postStyleProps.forEach((At,Kr)=>{let pn=c.get(Kr);pn||c.set(Kr,pn=new Set),At.forEach((Wc,Dp)=>pn.add(Dp))})});if(Oe.length){let z=[];Oe.forEach(G=>{z.push(E8(G.triggerName,G.errors))}),rt.forEach(G=>G.destroy()),this.reportError(z)}let Ye=new Map,mt=new Map;s.forEach(z=>{let G=z.element;i.has(G)&&(mt.set(G,G),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,Ye))}),r.forEach(z=>{let G=z.element;this._getPreviousPlayers(G,!1,z.namespaceId,z.triggerName,null).forEach(Ae=>{hn(Ye,G,[]).push(Ae),Ae.destroy()})});let hi=E.filter(z=>WO(z,l,c)),Jo=new Map;HO(Jo,this.driver,U,c,si).forEach(z=>{WO(z,l,c)&&hi.push(z)});let Yr=new Map;p.forEach((z,G)=>{HO(Yr,this.driver,new Set(z),l,vh)}),hi.forEach(z=>{let G=Jo.get(z),Y=Yr.get(z);Jo.set(z,new Map([...G?.entries()??[],...Y?.entries()??[]]))});let Ep=[],M0=[],S0={};s.forEach(z=>{let{element:G,player:Y,instruction:Ae}=z;if(i.has(G)){if(d.has(G)){Y.onDestroy(()=>fi(G,Ae.toStyles)),Y.disabled=!0,Y.overrideTotalTime(Ae.totalTime),r.push(Y);return}let gt=S0;if(mt.size>1){let Zt=G,er=[];for(;Zt=Zt.parentNode;){let Ze=mt.get(Zt);if(Ze){gt=Ze;break}er.push(Zt)}er.forEach(Ze=>mt.set(Ze,gt))}let Un=this._buildAnimation(Y.namespaceId,Ae,Ye,o,Yr,Jo);if(Y.setRealPlayer(Un),gt===S0)Ep.push(Y);else{let Zt=this.playersByElement.get(gt);Zt&&Zt.length&&(Y.parentPlayer=qr(Zt)),r.push(Y)}}else Qo(G,Ae.fromStyles),Y.onDestroy(()=>fi(G,Ae.toStyles)),M0.push(Y),d.has(G)&&r.push(Y)}),M0.forEach(z=>{let G=o.get(z.element);if(G&&G.length){let Y=qr(G);z.setRealPlayer(Y)}}),r.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<E.length;z++){let G=E[z],Y=G[Bn];if(Ba(G,t0),Y&&Y.hasAnimation)continue;let Ae=[];if(a.size){let Un=a.get(G);Un&&Un.length&&Ae.push(...Un);let Zt=this.driver.query(G,n0,!0);for(let er=0;er<Zt.length;er++){let Ze=a.get(Zt[er]);Ze&&Ze.length&&Ae.push(...Ze)}}let gt=Ae.filter(Un=>!Un.destroyed);gt.length?u4(this,G,gt):this.processLeaveNode(G)}return E.length=0,Ep.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();let G=this.players.indexOf(z);this.players.splice(G,1)}),z.play()}),Ep}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let l=!o||o==Uc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,d=c!==o,u=hn(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(p=>{let v=p.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),p.destroy(),u.push(p)})}Qo(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,m=e.timelines.map(v=>{let _=v.element;d.add(_);let E=_[Bn];if(E&&E.removedBeforeQueried)return new jr(v.duration,v.delay);let I=_!==l,U=f4((i.get(_)||s4).map(Ye=>Ye.getRealPlayer())).filter(Ye=>{let mt=Ye;return mt.element?mt.element===_:!1}),H=o.get(_),Me=s.get(_),rt=qO(this._normalizer,v.keyframes,H,Me),Oe=this._buildPlayer(v,rt,U);if(v.subTimeline&&r&&u.add(_),I){let Ye=new Gc(n,a,_);Ye.setRealPlayer(Oe),c.push(Ye)}return Oe});c.forEach(v=>{hn(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>l4(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>An(v,LO));let p=qr(m);return p.onDestroy(()=>{d.forEach(v=>Ba(v,LO)),fi(l,e.toStyles)}),u.forEach(v=>{hn(r,v,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new jr(n.duration,n.delay)}},Gc=class{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new jr,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>v0(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){hn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};Ua=class{constructor(n,e,i){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new p0(n.body,e,i),this._timelineEngine=new f0(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let s=n+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],d=ek(this._driver,o,l,c);if(l.length)throw h8(r,l);c.length&&void 0,a=J8(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,s]=FO(i),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[s,a]=FO(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};m0=class t{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(n);r||t.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&fi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fi(this._element,this._initialStyles),this._endStyles&&(fi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Qo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),fi(this._element,this._initialStyles),this._state=3)}};bp=class{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:C0(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},xp=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return YO(n,e)}getParentElement(n){return _0(n)}query(n,e,i){return KO(n,e,i)}computeStyle(n,e,i){return C0(n,e)}animate(n,e,i,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};o&&(l.easing=o);let c=new Map,d=s.filter(p=>p instanceof bp);N8(i,r)&&d.forEach(p=>{p.currentSnapshot.forEach((v,_)=>c.set(_,v))});let u=O8(e).map(p=>new Map(p));u=L8(n,u,c);let m=p4(n,u);return new bp(n,u,l,m)}},fp="@",ok="@.disabled",Cp=class{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==fp&&e==ok?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},g0=class extends Cp{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==fp?e.charAt(1)=="."&&e==ok?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if(e.charAt(0)==fp){let r=g4(n),o=e.slice(1),s="";return o.charAt(0)!=fp&&([o,s]=v4(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(n,e,i)}};wp=class{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Cp(i,r,this.engine,u),c.set(r,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return e.data.animation.forEach(a),new g0(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function b4(){return new mp}function x4(t,n,e){return new wp(t,n,e)}function ak(){return xn("NgEagerAnimations"),[...C4]}var _4,sk,C4,lde,lk=f(()=>{"use strict";M();M();Gs();E0();E0();we();_4=(()=>{class t extends Ua{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Zo),g(Xo))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();sk=[{provide:Xo,useFactory:b4},{provide:Ua,useClass:_4},{provide:pr,useFactory:x4,deps:[Cf,Ua,k]}],C4=[{provide:Zo,useFactory:()=>new xp},{provide:at,useValue:"BrowserAnimations"},...sk],lde=[{provide:Zo,useClass:b0},{provide:at,useValue:"NoopAnimations"},...sk]});var ck,dk=f(()=>{"use strict";rp();ck=()=>({provide:ja,useFactory:()=>({supportEmail:"",maxCharLength:1e4,subscriptionUrl:"",useLocalQuota:!0})})});var uk,fk=f(()=>{"use strict";Mf();uk=()=>({provide:Ks,useValue:{}})});var hk,pk=f(()=>{"use strict";M();Mf();ke();hk=(t,n)=>{let e=y(Ks),i=window;if(e.skipAuthUrls?.find(r=>t.url.includes(r)))return n(t);if(i.getTildeWebComponentAuthToken){let r=i.getTildeWebComponentAuthToken;return Le(r()).pipe(Ue(o=>{let s=t.clone({setHeaders:{Authorization:`Bearer ${o}`}});return n(s)}))}if(e.xApiKey){let r=t.clone({setHeaders:{"X-Api-Key":`${e.xApiKey}`}});return n(r)}return n(t)}});var mk,gk=f(()=>{"use strict";Uo();mk=()=>{let t="https://services.tilde.com/service";return{provide:yc,useFactory:()=>({sharedConfiguration:{xAppId:""},quotaService:{url:`${t}/quota/usage`},llmService:{url:`${t}/language-assistant`}})}}});var D0,vk=f(()=>{"use strict";Al();M();lk();Ht();dk();fk();pk();gk();D0={providers:[FI(NI([hk])),ak(),tv(ei.forRoot()),ck(),mk(),uk()]}});var w4=Ck(yk=>{uI();Gs();TO();Yb();OO();vk();R_();es(yk,null,function*(){let t=yield $I(D0),n=qv(Th,{injector:t.injector}),e=qv(ap,{injector:t.injector});customElements.define("tilde-text-to-speech",n),customElements.define("tilde-llm",e)});RO.production||zI(AO,D0).catch(t=>console.error(t))});export default w4();
58
+ Tonis: uzturiet objekt\u012Bvu, anal\u012Btisku un da\u017Ek\u0101rt bezpersonisku toni.`,SPECIFIC_STYLE:"{{style}} rakst\u012Bbas stils",GENERAL:"Visp\u0101r\u012Bgs",PROFESSIONAL:"Profesion\u0101ls",ACADEMIC:"Akad\u0113misks"}},SUMMARY_MODAL:{TITLE:"Kopsavilkums",DESCRIPTION:"\u0100tri apkopojiet garus tekstus skaidros kopsavilkumos, izmantojot m\u016Bsu moderno LLM funkciju.",CANCEL:"Atcelt",CLOSE:"Aizv\u0113rt",ACTION:"Izveidot kopsavilkumu",REGENERATE:"\u0122ener\u0113t atk\u0101rtoti",LIMIT:"\u0160odien atliku\u0161\u0101s kopsavilkuma darb\u012Bbas: <span class='text-m-semi-bold'>{{limit}}</span>. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>"},USE_CASE:{MEETING:"San\u0101ksme",EVENT:"Konference",GENERAL:"Visp\u0101r\u012Bgs"},ERRORS:{QUOTA_LIMIT:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",QUOTA_LIMIT_REACHED:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",DEFAULT:"\u0160\u0137iet, mums rad\u0101s probl\u0113ma. L\u016Bdzu, <bold>atk\u0101rtojiet</bold> darb\u012Bbu. Ja tas nepal\u012Bdz, sazinieties ar m\u016Bsu <a href='mailto:{{supportEmail}}' target='_blank'>atbalsta komandu</a>."}},ERRORS:{MAX_CHAR_LENGTH:"Tikai {{maxCharLength}}/{{totalSymbols}} rakstz\u012Bmes tiks p\u0101rfraz\u0113tas/apkopotas."}}}});var ap,Yb=f(()=>{"use strict";M();SO();Dy();TO();Uo();M();sp();ap=(()=>{class t extends Sf{#e;#t;get showUseCaseSummary(){return this._showUseCaseSummary}set showUseCaseSummary(e){this._showUseCaseSummary=this.ensureTypeBool(e)}get showUseCaseRephrase(){return this._showUseCaseRephrase}set showUseCaseRephrase(e){this._showUseCaseRephrase=this.ensureTypeBool(e)}constructor(){super(AO),this.#e=y(ja),this.#t=y(yc),this.supportEmail="support@tilde.com",this.maxCharLength=1e5,this._showUseCaseSummary=!1,this._showUseCaseRephrase=!1}ngOnInit(){super.ngOnInit(),this.#n()}ngOnChanges(){super.ngOnChanges(),this.#n()}#n(){this.#r(),this.#i()}#r(){this.serviceUrl&&(this.#t.llmService.url=this.serviceUrl),this.subscriptionUrl&&(this.#e.subscriptionUrl=this.subscriptionUrl),this.supportEmail&&(this.#e.supportEmail=this.supportEmail),this.appId&&(this.#t.sharedConfiguration.xAppId=this.appId),this.maxCharLength&&(this.#e.maxCharLength=this.maxCharLength),this.useLocalQuota!==void 0&&(this.#e.useLocalQuota=this.ensureTypeBool(this.useLocalQuota))}#i(){this.quotaServiceUrl&&(this.#t.quotaService.url=this.quotaServiceUrl)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-llm"]],inputs:{serviceUrl:"serviceUrl",subscriptionUrl:"subscriptionUrl",supportEmail:"supportEmail",appId:"appId",maxCharLength:"maxCharLength",text:"text",language:"language",useLocalQuota:"useLocalQuota",quotaServiceUrl:"quotaServiceUrl",showUseCaseSummary:"showUseCaseSummary",showUseCaseRephrase:"showUseCaseRephrase"},standalone:!0,features:[Ce,He,Se],decls:1,vars:4,consts:[[3,"language","text","showUseCaseSummary","showUseCaseRephrase"]],template:function(i,r){i&1&&oe(0,"lib-llm",0),i&2&&A("language",r.language)("text",r.text)("showUseCaseSummary",r.showUseCaseSummary)("showUseCaseRephrase",r.showUseCaseRephrase)},dependencies:[IO,DO]})}}return t})()});var W3,q3,Y3,K3,RO,OO=f(()=>{"use strict";we();R_();Yb();M();W3=()=>({voice:"lv-LV-male",voiceName:"Austris"}),q3=()=>({voice:"lv-LV-female",voiceName:"Marta"}),Y3=()=>({voice:"lv-LV-sandra",voiceName:"Sandra"}),K3=(t,n,e)=>[t,n,e],RO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-root"]],standalone:!0,features:[bt([]),Se],decls:2,vars:12,consts:[["language","lv","text","This is shor text to be summarized or rephrased. I just want to test if it is working or not. Just to make sure. Please change this text.",3,"showUseCaseSummary","showUseCaseRephrase","useLocalQuota"],["xApiKey","f9e79feb-997c-4f85-bd9d-d0c9a626c8a0",3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"app-llm",0)(1,"app-text-to-speech",1),i&2&&(A("showUseCaseSummary",!1)("showUseCaseRephrase",!1)("useLocalQuota",!1),w(),A("voices",iI(8,K3,of(5,W3),of(6,q3),of(7,Y3)))("maxCharLength",500))},dependencies:[ct,Th,ap],encapsulation:2})}}return t})()});var kO,FO=f(()=>{"use strict";kO={production:!0}});function NO(t){return new S(3e3,!1)}function Q3(){return new S(3100,!1)}function Z3(){return new S(3101,!1)}function X3(t){return new S(3001,!1)}function J3(t){return new S(3003,!1)}function e8(t){return new S(3004,!1)}function t8(t,n){return new S(3005,!1)}function n8(){return new S(3006,!1)}function i8(){return new S(3007,!1)}function r8(t,n){return new S(3008,!1)}function o8(t){return new S(3002,!1)}function s8(t,n,e,i,r){return new S(3010,!1)}function a8(){return new S(3011,!1)}function l8(){return new S(3012,!1)}function c8(){return new S(3200,!1)}function d8(){return new S(3202,!1)}function u8(){return new S(3013,!1)}function f8(t){return new S(3014,!1)}function h8(t){return new S(3015,!1)}function p8(t){return new S(3016,!1)}function m8(t,n){return new S(3404,!1)}function g8(t){return new S(3502,!1)}function v8(t){return new S(3503,!1)}function y8(){return new S(3300,!1)}function _8(t){return new S(3504,!1)}function b8(t){return new S(3301,!1)}function x8(t,n){return new S(3302,!1)}function C8(t){return new S(3303,!1)}function w8(t,n){return new S(3400,!1)}function E8(t){return new S(3401,!1)}function D8(t){return new S(3402,!1)}function I8(t,n){return new S(3505,!1)}function qr(t){switch(t.length){case 0:return new jr;case 1:return t[0];default:return new rc(t)}}function KO(t,n,e=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((m,p)=>{let v=p,_=m;if(p!=="offset")switch(v=t.normalizePropertyName(v,r),_){case vh:_=e.get(p);break;case si:_=i.get(p);break;default:_=t.normalizeStyleValue(p,v,_,r);break}u.set(v,_)}),d||o.push(u),a=u,s=c}),r.length)throw g8(r);return o}function v0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Kb(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Kb(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Kb(e,"destroy",t)));break}}function Kb(t,n,e){let i=e.totalTime,r=!!e.disabled,o=y0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function y0(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function hn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function LO(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}function _0(t){let n=t.parentNode||t.host||null;return n===M8?null:n}function S8(t){return t.substring(1,6)=="ebkit"}function A8(t){Yo||(Yo=T8()||{},PO=Yo.style?"WebkitAppearance"in Yo.style:!1);let n=!0;return Yo.style&&!S8(t)&&(n=t in Yo.style,!n&&PO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Yo.style)),n}function T8(){return typeof document<"u"?document.body:null}function QO(t,n){for(;n;){if(n===t)return!0;n=_0(n)}return!1}function ZO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}function Ji(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:i0(parseFloat(n[1]),n[2])}function i0(t,n){switch(n){case"s":return t*R8;default:return t}}function pp(t,n,e){return t.hasOwnProperty("duration")?t:k8(t,n,e)}function k8(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(i);if(a===null)return n.push(NO(t)),{duration:0,delay:0,easing:""};r=i0(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=i0(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(Q3()),a=!0),o<0&&(n.push(Z3()),a=!0),a&&n.splice(l,0,NO(t))}return{duration:r,delay:o,easing:s}}function F8(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function fi(t,n,e){n.forEach((i,r)=>{let o=x0(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Qo(t,n){n.forEach((e,i)=>{let r=x0(i);t.style[r]=""})}function Bc(t){return Array.isArray(t)?t.length==1?t[0]:yS(t):t}function N8(t,n,e){let i=n.params||{},r=ek(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(X3(o))})}function ek(t){let n=[];if(typeof t=="string"){let e;for(;e=r0.exec(t);)n.push(e[1]);r0.lastIndex=0}return n}function zc(t,n,e){let i=`${t}`,r=i.replace(r0,(o,s)=>{let a=n[s];return a==null&&(e.push(J3(s)),a=""),a.toString()});return r==i?t:r}function x0(t){return t.replace(L8,(...n)=>n[1].toUpperCase())}function P8(t,n){return t===0||n===0}function j8(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,C0(t,a)))}}return n}function fn(t,n,e){switch(n.type){case ce.Trigger:return t.visitTrigger(n,e);case ce.State:return t.visitState(n,e);case ce.Transition:return t.visitTransition(n,e);case ce.Sequence:return t.visitSequence(n,e);case ce.Group:return t.visitGroup(n,e);case ce.Animate:return t.visitAnimate(n,e);case ce.Keyframes:return t.visitKeyframes(n,e);case ce.Style:return t.visitStyle(n,e);case ce.Reference:return t.visitReference(n,e);case ce.AnimateChild:return t.visitAnimateChild(n,e);case ce.AnimateRef:return t.visitAnimateRef(n,e);case ce.Query:return t.visitQuery(n,e);case ce.Stagger:return t.visitStagger(n,e);default:throw e8(n.type)}}function C0(t,n){return window.getComputedStyle(t)[n]}function B8(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>U8(i,e,n)):e.push(t),e}function U8(t,n,e){if(t[0]==":"){let l=z8(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(h8(t)),n;let r=i[1],o=i[2],s=i[3];n.push(VO(r,s));let a=r==gp&&s==gp;o[0]=="<"&&!a&&n.push(VO(s,r))}function z8(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(p8(t)),"* => *"}}function VO(t,n){let e=cp.has(t)||dp.has(t),i=cp.has(n)||dp.has(n);return(r,o)=>{let s=t==gp||t==r,a=n==gp||n==o;return!s&&e&&typeof r=="boolean"&&(s=r?cp.has(t):dp.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?cp.has(n):dp.has(n)),s&&a}}function nk(t,n,e,i){return new o0(t).build(n,e,i)}function H8(t){let n=!!t.split(/\s*,\s*/).find(e=>e==tk);return n&&(t=t.replace($8,"")),t=t.replace(/@\*/g,hp).replace(/@\w+/g,e=>hp+"-"+e.slice(1)).replace(/:animating/g,n0),[t,n]}function G8(t){return t?x({},t):null}function W8(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function q8(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=pp(t,n).duration;return Qb(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Qb(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=pp(e,n);return Qb(r.duration,r.delay,r.easing)}function Ko(t){return t?(t=x({},t),t.params&&(t.params=G8(t.params))):t={},t}function Qb(t,n,e){return{duration:t,delay:n,easing:e}}function w0(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}function ik(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return new a0().buildKeyframes(t,n,e,i,r,o,s,a,l,c)}function UO(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function J8(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,si)}else for(let[o,s]of r)e.set(o,s)}),e}function zO(t,n,e,i,r,o,s,a,l,c,d,u,m){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:m}}function e4(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function rk(t,n){let e=x({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}function t4(t,n,e){return new u0(t,n,e)}function n4(t,n,e){let i=[(s,a)=>!0],r={type:ce.Sequence,steps:[],options:null},o={type:ce.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new _p(t,o,n)}function $O(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}function d4(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function u4(t){return t??null}function up(t){return t&&t.nodeType===1}function f4(t){return t=="start"||t=="done"}function GO(t,n){let e=t.style.display;return t.style.display=n??"none",e}function WO(t,n,e,i,r){let o=[];e.forEach(l=>o.push(GO(l)));let s=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let m=n.computeStyle(c,u,r);d.set(u,m),(!m||m.length==0)&&(c[Bn]=c4,s.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>GO(l,o[a++])),s}function qO(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=s(c),o.set(a,l),l}return n.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function An(t,n){t.classList?.add(n)}function Ba(t,n){t.classList?.remove(n)}function h4(t,n,e){qr(e).onDone(()=>t.processLeaveNode(n))}function p4(t){let n=[];return sk(t,n),n}function sk(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof rc?sk(i.players,n):n.push(i)}}function m4(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}function YO(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}function g4(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=e0(n[0]),n.length>1&&(i=e0(n[n.length-1]))):n instanceof Map&&(e=e0(n)),e||i?new m0(t,e,i):null}function e0(t){let n=null;return t.forEach((e,i)=>{v4(i)&&(n=n||new Map,n.set(i,e))}),n}function v4(t){return t==="display"||t==="position"}function y4(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _4(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var M8,Yo,PO,b0,Zo,Xo,R8,XO,O8,JO,t0,lp,hp,jO,n0,r0,L8,V8,mp,gp,cp,dp,tk,$8,BO,o0,s0,$c,Y8,K8,Q8,Z8,X8,a0,vp,l0,yp,c0,Zb,_p,d0,u0,i4,f0,HO,r4,Xb,o4,s4,a4,l4,ok,c4,Bn,Hc,Uc,Jb,h0,p0,Gc,Ua,m0,bp,xp,fp,ak,Cp,g0,wp,E0=f(()=>{"use strict";oc();M();M();M8=typeof document>"u"?null:document.documentElement;Yo=null,PO=!1;b0=(()=>{class t{validateStyleProperty(e){return A8(e)}containsElement(e,i){return QO(e,i)}getParentElement(e){return _0(e)}query(e,i,r){return ZO(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new jr(r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Zo=class{static{this.NOOP=new b0}},Xo=class{},R8=1e3,XO="{{",O8="}}",JO="ng-enter",t0="ng-leave",lp="ng-trigger",hp=".ng-trigger",jO="ng-animating",n0=".ng-animating";r0=new RegExp(`${XO}\\s*(.+?)\\s*${O8}`,"g");L8=/-+([a-z0-9])/g;V8=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),mp=class extends Xo{normalizePropertyName(n,e){return x0(n)}normalizeStyleValue(n,e,i,r){let o="",s=i.toString().trim();if(V8.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(t8(n,i))}return s+o}},gp="*";cp=new Set(["true","1"]),dp=new Set(["false","0"]);tk=":self",$8=new RegExp(`s*${tk}s*,?`,"g");BO="",o0=class{constructor(n){this._driver=n}build(n,e,i){let r=new s0(e);return this._resetContextStyleTimingState(r),fn(this,Bc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=BO,n.collectedStyles=new Map,n.collectedStyles.set(BO,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(n8()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==ce.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==ce.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(i8())}),{type:ce.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ek(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(r8(n.name,[...o.values()]))}return{type:ce.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=fn(this,Bc(n.animation),e),r=B8(n.expr,e.errors);return{type:ce.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ko(n.options)}}visitSequence(n,e){return{type:ce.Sequence,steps:n.steps.map(i=>fn(this,i,e)),options:Ko(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(s=>{e.currentTime=i;let a=fn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:ce.Group,steps:o,options:Ko(n.options)}}visitAnimate(n,e){let i=q8(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:jt({});if(o.type==ce.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=jt(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:ce.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)typeof a=="string"?a===si?i.push(a):e.errors.push(o8(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(XO)>=0){o=!0;break}}}),{type:ce.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(s8(l,d.startTime,d.endTime,o,r)),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),e.options&&N8(a,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:ce.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(a8()),i;let r=1,o=0,s=[],a=!1,l=!1,c=0,d=n.steps.map(I=>{let U=this._makeStyleAst(I,e),H=U.offset!=null?U.offset:W8(U.styles),Me=0;return H!=null&&(o++,Me=U.offset=H),l=l||Me<0||Me>1,a=a||Me<c,c=Me,s.push(Me),U});l&&e.errors.push(l8()),a&&e.errors.push(c8());let u=n.steps.length,m=0;o>0&&o<u?e.errors.push(d8()):o==0&&(m=r/(u-1));let p=u-1,v=e.currentTime,_=e.currentAnimateTimings,E=_.duration;return d.forEach((I,U)=>{let H=m>0?U==p?1:m*U:s[U],Me=H*E;e.currentTime=v+_.delay+Me,_.duration=Me,this._validateStyleAst(I,e),I.offset=H,i.styles.push(I)}),i}visitReference(n,e){return{type:ce.Reference,animation:fn(this,Bc(n.animation),e),options:Ko(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:ce.AnimateChild,options:Ko(n.options)}}visitAnimateRef(n,e){return{type:ce.AnimateRef,animation:this.visitReference(n.animation,e),options:Ko(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=H8(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,hn(e.collectedStyles,e.currentQuerySelector,new Map);let a=fn(this,Bc(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:ce.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ko(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(u8());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:pp(n.timings,e.errors,!0);return{type:ce.Stagger,animation:fn(this,Bc(n.animation),e),timings:i,options:null}}};s0=class{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};$c=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},Y8=1,K8=":enter",Q8=new RegExp(K8,"g"),Z8=":leave",X8=new RegExp(Z8,"g");a0=class{buildKeyframes(n,e,i,r,o,s,a,l,c,d=[]){c=c||new $c;let u=new l0(n,e,c,r,o,d,[]);u.options=l;let m=l.delay?Ji(l.delay):0;u.currentTimeline.delayNextStep(m),u.currentTimeline.setStyles([s],null,u.errors,l),fn(this,i,u);let p=u.timelines.filter(v=>v.containsAnimation());if(p.length&&a.size){let v;for(let _=p.length-1;_>=0;_--){let E=p[_];if(E.element===e){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,u.errors,l)}return p.length?p.map(v=>v.buildKeyframes()):[w0(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let s=typeof o=="number"?o:Ji(zc(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,s=i.duration!=null?Ji(i.duration):null,a=i.delay!=null?Ji(i.delay):null;return s!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),fn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==ce.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=vp);let s=Ji(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>fn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?Ji(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),fn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?zc(i,e.params,e.errors):i;return pp(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==ce.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ji(r.delay):0;o&&(e.previousNode.type===ce.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vp);let s=i,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(n.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),fn(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe();let m=u.currentTimeline.currentTime;s=Math.max(s,m)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;fn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},vp={},l0=class t{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new yp(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=Ji(i.duration)),i.delay!=null&&(r.delay=Ji(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=zc(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=vp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new c0(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=n.replace(Q8,"."+this._enterClassName),n=n.replace(X8,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&a.length==0&&s.push(f8(e)),a}},yp=class t{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Y8,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||si),this._currentKeyframe.set(e,si);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=J8(n,this._globalTimelineStyles);for(let[a,l]of s){let c=zc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??si),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===vh?n.add(u):d===si&&e.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...n.values()],s=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return w0(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},c0=class extends yp{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=i+e,a=e/s,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",UO(a)),o.push(c);let d=n.length-1;for(let u=1;u<=d;u++){let m=new Map(n[u]),p=m.get("offset"),v=e+p*i;m.set("offset",UO(v/s)),o.push(m)}i=s,e=0,r="",n=o}return w0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};Zb={},_p=class{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return e4(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,d){let u=[],m=this.ast.options&&this.ast.options.params||Zb,p=a&&a.params||Zb,v=this.buildStyles(i,p,u),_=l&&l.params||Zb,E=this.buildStyles(r,_,u),I=new Set,U=new Map,H=new Map,Me=r==="void",rt={params:rk(_,m),delay:this.ast.options?.delay},Oe=d?[]:ik(n,e,this.ast.animation,o,s,v,E,rt,c,u),Ye=0;return Oe.forEach(mt=>{Ye=Math.max(mt.duration+mt.delay,Ye)}),u.length?zO(e,this._triggerName,i,r,Me,v,E,[],[],U,H,Ye,u):(Oe.forEach(mt=>{let hi=mt.element,Jo=hn(U,hi,new Set);mt.preStyleProps.forEach(Yr=>Jo.add(Yr));let I0=hn(H,hi,new Set);mt.postStyleProps.forEach(Yr=>I0.add(Yr)),hi!==e&&I.add(hi)}),zO(e,this._triggerName,i,r,Me,v,E,Oe,[...I.values()],U,H,Ye))}};d0=class{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=rk(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=zc(s,r,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};u0=class{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new d0(r.style,o,i))}),$O(this.states,"true","1"),$O(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new _p(n,r,this.states))}),this.fallbackTransition=n4(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};i4=new $c,f0=class{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){let i=[],r=[],o=nk(this._driver,e,i,r);if(i.length)throw v8(i);r.length&&void 0,this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=KO(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),s,a=new Map;if(o?(s=ik(this._driver,e,o,JO,t0,new Map,new Map,i,i4,r),s.forEach(d=>{let u=hn(a,d.element,new Map);d.postStyleProps.forEach(m=>u.set(m,null))})):(r.push(y8()),s=[]),r.length)throw _8(r);a.forEach((d,u)=>{d.forEach((m,p)=>{d.set(p,this._driver.computeStyle(u,p,si))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=qr(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw b8(n);return e}listen(n,e,i,r){let o=y0(e,"","","");return v0(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},HO="ng-animate-queued",r4=".ng-animate-queued",Xb="ng-animate-disabled",o4=".ng-animate-disabled",s4="ng-star-inserted",a4=".ng-star-inserted",l4=[],ok={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},c4={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bn="__ng_removed",Hc=class{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=u4(r),i){let o=n,{value:s}=o,a=Ip(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Uc="void",Jb=new Hc(Uc),h0=class{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,An(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw x8(i,e);if(i==null||i.length==0)throw C8(e);if(!f4(i))throw w8(i,e);let o=hn(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);let a=hn(this._engine.statesByElement,n,new Map);return a.has(e)||(An(n,lp),An(n,lp+"-"+e),a.set(e,Jb)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw E8(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),s=new Gc(this.id,e,n),a=this._engine.statesByElement.get(n);a||(An(n,lp),An(n,lp+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new Hc(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Jb),!(c.value===Uc)&&l.value===c.value){if(!m4(l.params,c.params)){let _=[],E=o.matchStyles(l.value,l.params,_),I=o.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Qo(n,E),fi(n,I)})}return}let m=hn(this._engine.playersByElement,n,[]);m.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let p=o.matchTransition(l.value,c.value,n,c.params),v=!1;if(!p){if(!r)return;p=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:v}),v||(An(n,HO),s.onStart(()=>{Ba(n,HO)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let E=this._engine.playersByElement.get(n);if(E){let I=E.indexOf(s);I>=0&&E.splice(I,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,hp,!0);i.forEach(r=>{if(r[Bn])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(n,c,Uc,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&qr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jb,d=new Hc(Uc),u=new Gc(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Bn];(!o||o===ok)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){An(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=y0(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,v0(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},p0=class{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new h0(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(up(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!up(e))return;let o=e[Bn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),An(n,Xb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ba(n,Xb))}removeNode(n,e,i){if(up(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Bn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return up(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,hp,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,n0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return qr(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Bn];if(e&&e.setForRemoval){if(n[Bn]=ok,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Xb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,o4,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];An(r,s4)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?qr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw D8(n)}_flushAnimations(n,e){let i=new $c,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(z=>{d.add(z);let G=this.driver.query(z,r4,!0);for(let Y=0;Y<G.length;Y++)d.add(G[Y])});let u=this.bodyNode,m=Array.from(this.statesByElement.keys()),p=qO(m,this.collectedEnterElements),v=new Map,_=0;p.forEach((z,G)=>{let Y=JO+_++;v.set(G,Y),z.forEach(Ae=>An(Ae,Y))});let E=[],I=new Set,U=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){let G=this.collectedLeaveElements[z],Y=G[Bn];Y&&Y.setForRemoval&&(E.push(G),I.add(G),Y.hasAnimation?this.driver.query(G,a4,!0).forEach(Ae=>I.add(Ae)):U.add(G))}let H=new Map,Me=qO(m,Array.from(I));Me.forEach((z,G)=>{let Y=t0+_++;H.set(G,Y),z.forEach(Ae=>An(Ae,Y))}),n.push(()=>{p.forEach((z,G)=>{let Y=v.get(G);z.forEach(Ae=>Ba(Ae,Y))}),Me.forEach((z,G)=>{let Y=H.get(G);z.forEach(Ae=>Ba(Ae,Y))}),E.forEach(z=>{this.processLeaveNode(z)})});let rt=[],Oe=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(Y=>{let Ae=Y.player,gt=Y.element;if(rt.push(Ae),this.collectedEnterElements.length){let At=gt[Bn];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(Y.triggerName)){let Kr=At.previousTriggersValues.get(Y.triggerName),pn=this.statesByElement.get(Y.element);if(pn&&pn.has(Y.triggerName)){let Wc=pn.get(Y.triggerName);Wc.value=Kr,pn.set(Y.triggerName,Wc)}}Ae.destroy();return}}let Un=!u||!this.driver.containsElement(u,gt),Zt=H.get(gt),er=v.get(gt),Ze=this._buildInstruction(Y,i,er,Zt,Un);if(Ze.errors&&Ze.errors.length){Oe.push(Ze);return}if(Un){Ae.onStart(()=>Qo(gt,Ze.fromStyles)),Ae.onDestroy(()=>fi(gt,Ze.toStyles)),r.push(Ae);return}if(Y.isFallbackTransition){Ae.onStart(()=>Qo(gt,Ze.fromStyles)),Ae.onDestroy(()=>fi(gt,Ze.toStyles)),r.push(Ae);return}let A0=[];Ze.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||A0.push(At)}),Ze.timelines=A0,i.append(gt,Ze.timelines);let xk={instruction:Ze,player:Ae,element:gt};s.push(xk),Ze.queriedElements.forEach(At=>hn(a,At,[]).push(Ae)),Ze.preStyleProps.forEach((At,Kr)=>{if(At.size){let pn=l.get(Kr);pn||l.set(Kr,pn=new Set),At.forEach((Wc,Dp)=>pn.add(Dp))}}),Ze.postStyleProps.forEach((At,Kr)=>{let pn=c.get(Kr);pn||c.set(Kr,pn=new Set),At.forEach((Wc,Dp)=>pn.add(Dp))})});if(Oe.length){let z=[];Oe.forEach(G=>{z.push(I8(G.triggerName,G.errors))}),rt.forEach(G=>G.destroy()),this.reportError(z)}let Ye=new Map,mt=new Map;s.forEach(z=>{let G=z.element;i.has(G)&&(mt.set(G,G),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,Ye))}),r.forEach(z=>{let G=z.element;this._getPreviousPlayers(G,!1,z.namespaceId,z.triggerName,null).forEach(Ae=>{hn(Ye,G,[]).push(Ae),Ae.destroy()})});let hi=E.filter(z=>YO(z,l,c)),Jo=new Map;WO(Jo,this.driver,U,c,si).forEach(z=>{YO(z,l,c)&&hi.push(z)});let Yr=new Map;p.forEach((z,G)=>{WO(Yr,this.driver,new Set(z),l,vh)}),hi.forEach(z=>{let G=Jo.get(z),Y=Yr.get(z);Jo.set(z,new Map([...G?.entries()??[],...Y?.entries()??[]]))});let Ep=[],M0=[],S0={};s.forEach(z=>{let{element:G,player:Y,instruction:Ae}=z;if(i.has(G)){if(d.has(G)){Y.onDestroy(()=>fi(G,Ae.toStyles)),Y.disabled=!0,Y.overrideTotalTime(Ae.totalTime),r.push(Y);return}let gt=S0;if(mt.size>1){let Zt=G,er=[];for(;Zt=Zt.parentNode;){let Ze=mt.get(Zt);if(Ze){gt=Ze;break}er.push(Zt)}er.forEach(Ze=>mt.set(Ze,gt))}let Un=this._buildAnimation(Y.namespaceId,Ae,Ye,o,Yr,Jo);if(Y.setRealPlayer(Un),gt===S0)Ep.push(Y);else{let Zt=this.playersByElement.get(gt);Zt&&Zt.length&&(Y.parentPlayer=qr(Zt)),r.push(Y)}}else Qo(G,Ae.fromStyles),Y.onDestroy(()=>fi(G,Ae.toStyles)),M0.push(Y),d.has(G)&&r.push(Y)}),M0.forEach(z=>{let G=o.get(z.element);if(G&&G.length){let Y=qr(G);z.setRealPlayer(Y)}}),r.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<E.length;z++){let G=E[z],Y=G[Bn];if(Ba(G,t0),Y&&Y.hasAnimation)continue;let Ae=[];if(a.size){let Un=a.get(G);Un&&Un.length&&Ae.push(...Un);let Zt=this.driver.query(G,n0,!0);for(let er=0;er<Zt.length;er++){let Ze=a.get(Zt[er]);Ze&&Ze.length&&Ae.push(...Ze)}}let gt=Ae.filter(Un=>!Un.destroyed);gt.length?h4(this,G,gt):this.processLeaveNode(G)}return E.length=0,Ep.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();let G=this.players.indexOf(z);this.players.splice(G,1)}),z.play()}),Ep}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let l=!o||o==Uc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,d=c!==o,u=hn(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(p=>{let v=p.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),p.destroy(),u.push(p)})}Qo(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,m=e.timelines.map(v=>{let _=v.element;d.add(_);let E=_[Bn];if(E&&E.removedBeforeQueried)return new jr(v.duration,v.delay);let I=_!==l,U=p4((i.get(_)||l4).map(Ye=>Ye.getRealPlayer())).filter(Ye=>{let mt=Ye;return mt.element?mt.element===_:!1}),H=o.get(_),Me=s.get(_),rt=KO(this._normalizer,v.keyframes,H,Me),Oe=this._buildPlayer(v,rt,U);if(v.subTimeline&&r&&u.add(_),I){let Ye=new Gc(n,a,_);Ye.setRealPlayer(Oe),c.push(Ye)}return Oe});c.forEach(v=>{hn(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>d4(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>An(v,jO));let p=qr(m);return p.onDestroy(()=>{d.forEach(v=>Ba(v,jO)),fi(l,e.toStyles)}),u.forEach(v=>{hn(r,v,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new jr(n.duration,n.delay)}},Gc=class{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new jr,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>v0(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){hn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};Ua=class{constructor(n,e,i){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new p0(n.body,e,i),this._timelineEngine=new f0(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let s=n+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],d=nk(this._driver,o,l,c);if(l.length)throw m8(r,l);c.length&&void 0,a=t4(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,s]=LO(i),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[s,a]=LO(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};m0=class t{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(n);r||t.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&fi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fi(this._element,this._initialStyles),this._endStyles&&(fi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Qo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),fi(this._element,this._initialStyles),this._state=3)}};bp=class{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:C0(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},xp=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return QO(n,e)}getParentElement(n){return _0(n)}query(n,e,i){return ZO(n,e,i)}computeStyle(n,e,i){return C0(n,e)}animate(n,e,i,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};o&&(l.easing=o);let c=new Map,d=s.filter(p=>p instanceof bp);P8(i,r)&&d.forEach(p=>{p.currentSnapshot.forEach((v,_)=>c.set(_,v))});let u=F8(e).map(p=>new Map(p));u=j8(n,u,c);let m=g4(n,u);return new bp(n,u,l,m)}},fp="@",ak="@.disabled",Cp=class{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==fp&&e==ak?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},g0=class extends Cp{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==fp?e.charAt(1)=="."&&e==ak?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if(e.charAt(0)==fp){let r=y4(n),o=e.slice(1),s="";return o.charAt(0)!=fp&&([o,s]=_4(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(n,e,i)}};wp=class{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Cp(i,r,this.engine,u),c.set(r,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return e.data.animation.forEach(a),new g0(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function C4(){return new mp}function w4(t,n,e){return new wp(t,n,e)}function ck(){return xn("NgEagerAnimations"),[...E4]}var x4,lk,E4,fde,dk=f(()=>{"use strict";M();M();Gs();E0();E0();we();x4=(()=>{class t extends Ua{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(g(B),g(Zo),g(Xo))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();lk=[{provide:Xo,useFactory:C4},{provide:Ua,useClass:x4},{provide:pr,useFactory:w4,deps:[Cf,Ua,k]}],E4=[{provide:Zo,useFactory:()=>new xp},{provide:at,useValue:"BrowserAnimations"},...lk],fde=[{provide:Zo,useClass:b0},{provide:at,useValue:"NoopAnimations"},...lk]});var uk,fk=f(()=>{"use strict";rp();uk=()=>({provide:ja,useFactory:()=>({supportEmail:"",maxCharLength:1e4,subscriptionUrl:"",useLocalQuota:!0})})});var hk,pk=f(()=>{"use strict";Mf();hk=()=>({provide:Ks,useValue:{}})});var mk,gk=f(()=>{"use strict";M();Mf();ke();mk=(t,n)=>{let e=y(Ks),i=window;if(e.skipAuthUrls?.find(r=>t.url.includes(r)))return n(t);if(i.getTildeWebComponentAuthToken){let r=i.getTildeWebComponentAuthToken;return Le(r()).pipe(Ue(o=>{let s=t.clone({setHeaders:{Authorization:`Bearer ${o}`}});return n(s)}))}if(e.xApiKey){let r=t.clone({setHeaders:{"X-Api-Key":`${e.xApiKey}`}});return n(r)}return n(t)}});var vk,yk=f(()=>{"use strict";Uo();vk=()=>{let t="https://services.tilde.com/service";return{provide:yc,useFactory:()=>({sharedConfiguration:{xAppId:""},quotaService:{url:`${t}/quota/usage`},llmService:{url:`${t}/language-assistant`}})}}});var D0,_k=f(()=>{"use strict";Al();M();dk();Ht();fk();pk();gk();yk();D0={providers:[FI(NI([mk])),ck(),tv(ei.forRoot()),uk(),vk(),hk()]}});var D4=Ek(bk=>{uI();Gs();OO();Yb();FO();_k();R_();es(bk,null,function*(){let t=yield $I(D0),n=qv(Th,{injector:t.injector}),e=qv(ap,{injector:t.injector});customElements.define("tilde-text-to-speech",n),customElements.define("tilde-llm",e)});kO.production||zI(RO,D0).catch(t=>console.error(t))});export default D4();