@mbubela/oaa-assistant 0.0.2 → 0.0.3

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,10 +1,12 @@
1
- "use strict";var WebComponents=(()=>{var yi=Object.defineProperty;var uf=Object.getOwnPropertyDescriptor;var cf=Object.getOwnPropertyNames;var df=Object.prototype.hasOwnProperty;var hf=(e,t)=>{for(var n in t)yi(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cf(t))!df.call(e,i)&&i!==n&&yi(e,i,{get:()=>t[i],enumerable:!(r=uf(t,i))||r.enumerable});return e};var pf=e=>ff(yi({},"__esModule",{value:!0}),e);var DC={};hf(DC,{initializeApp:()=>af});var gf=Object.defineProperty,mf=Object.defineProperties,yf=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,vf=Object.prototype.hasOwnProperty,bf=Object.prototype.propertyIsEnumerable,cl=(e,t,n)=>t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||={})vf.call(t,n)&&cl(e,n,t[n]);if(ul)for(var n of ul(t))bf.call(t,n)&&cl(e,n,t[n]);return e},ne=(e,t)=>mf(e,yf(t)),La=(e,t,n)=>new Promise((r,i)=>{var s=a=>{try{l(n.next(a))}catch(u){i(u)}},o=a=>{try{l(n.throw(a))}catch(u){i(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,o);l((n=n.apply(e,t)).next())}),Yi;function ja(){return Yi}function Qe(e){let t=Yi;return Yi=e,t}var _f=Symbol("NotFound");function $s(e){return e===_f||e?.name==="\u0275NotFound"}var X=null,ir=!1,qs=1,wf=null,De=Symbol("SIGNAL");function P(e){let t=X;return X=e,t}function Cf(){return X}var Gr={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ha(e){if(ir)throw new Error("");if(X===null)return;X.consumerOnSignalRead(e);let t=X.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=X.recomputing;if(r&&(n=t!==void 0?t.nextProducer:X.producers,n!==void 0&&n.producer===e)){X.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===X&&(!r||Ef(i,X)))return;let s=Zt(X),o={producer:e,consumer:X,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};X.producersTail=o,t!==void 0?t.nextProducer=o:X.producers=o,s&&Ga(e,o)}function xf(){qs++}function za(e){if(!(Zt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qs)){if(!e.producerMustRecompute(e)&&!$a(e)){dl(e);return}e.producerRecomputeValue(e),dl(e)}}function Ba(e){if(e.consumers===void 0)return;let t=ir;ir=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||kf(r)}}finally{ir=t}}function Ua(){return X?.consumerAllowSignalWrites!==!1}function kf(e){e.dirty=!0,Ba(e),e.consumerMarkedDirty?.(e)}function dl(e){e.dirty=!1,e.lastCleanEpoch=qs}function Ki(e){return e&&Of(e),P(e)}function Of(e){e.producersTail=void 0,e.recomputing=!0}function Za(e,t){P(t),e&&Sf(e)}function Sf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Zt(e))do n=Gs(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function $a(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(za(n),r!==n.version))return!0}return!1}function qa(e){if(Zt(e)){let t=e.producers;for(;t!==void 0;)t=Gs(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ga(e,t){let n=e.consumersTail,r=Zt(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)Ga(i.producer,i)}function Gs(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Zt(t)){let s=t.producers;for(;s!==void 0;)s=Gs(s)}return n}function Zt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Wa(e){wf?.(e)}function Ef(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Qa(e,t){return Object.is(e,t)}function Tf(e,t){let n=Object.create(Mf);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(za(n),Ha(n),n.value===sr)throw n.error;return n.value};return r[De]=n,Wa(n),r}var vi=Symbol("UNSET"),bi=Symbol("COMPUTING"),sr=Symbol("ERRORED"),Mf=ne(q({},Gr),{value:vi,dirty:!0,error:null,equal:Qa,kind:"computed",producerMustRecompute(e){return e.value===vi||e.value===bi},producerRecomputeValue(e){if(e.value===bi)throw new Error("");let t=e.value;e.value=bi;let n=Ki(e),r,i=!1;try{r=e.computation(),P(null),i=t!==vi&&t!==sr&&r!==sr&&e.equal(t,r)}catch(s){r=sr,e.error=s}finally{Za(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Pf(){throw new Error}var Ya=Pf;function Ka(e){Ya(e)}function If(e){Ya=e}var Df=null;function Af(e,t){let n=Object.create(Rf);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Vf(n);return r[De]=n,Wa(n),[r,i=>Ja(n,i),i=>Nf(n,i)]}function Vf(e){return Ha(e),e.value}function Ja(e,t){Ua()||Ka(e),e.equal(e.value,t)||(e.value=t,Ff(e))}function Nf(e,t){Ua()||Ka(e),Ja(e,t(e.value))}var Rf=ne(q({},Gr),{equal:Qa,value:void 0,kind:"signal"});function Ff(e){e.version++,xf(),Ba(e),Df?.(e)}function B(e){return typeof e=="function"}function Ws(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var _i=Ws(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
1
+ "use strict";var WebComponents=(()=>{var yi=Object.defineProperty;var uf=Object.getOwnPropertyDescriptor;var cf=Object.getOwnPropertyNames;var df=Object.prototype.hasOwnProperty;var hf=(e,t)=>{for(var n in t)yi(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cf(t))!df.call(e,i)&&i!==n&&yi(e,i,{get:()=>t[i],enumerable:!(r=uf(t,i))||r.enumerable});return e};var pf=e=>ff(yi({},"__esModule",{value:!0}),e);var Vx={};hf(Vx,{initializeApp:()=>af});var gf=Object.defineProperty,mf=Object.defineProperties,yf=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,vf=Object.prototype.hasOwnProperty,bf=Object.prototype.propertyIsEnumerable,cl=(e,t,n)=>t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||={})vf.call(t,n)&&cl(e,n,t[n]);if(ul)for(var n of ul(t))bf.call(t,n)&&cl(e,n,t[n]);return e},ne=(e,t)=>mf(e,yf(t)),La=(e,t,n)=>new Promise((r,i)=>{var s=a=>{try{l(n.next(a))}catch(u){i(u)}},o=a=>{try{l(n.throw(a))}catch(u){i(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,o);l((n=n.apply(e,t)).next())}),Yi;function ja(){return Yi}function Qe(e){let t=Yi;return Yi=e,t}var wf=Symbol("NotFound");function $s(e){return e===wf||e?.name==="\u0275NotFound"}var X=null,ir=!1,qs=1,_f=null,Ve=Symbol("SIGNAL");function D(e){let t=X;return X=e,t}function xf(){return X}var Gr={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ha(e){if(ir)throw new Error("");if(X===null)return;X.consumerOnSignalRead(e);let t=X.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=X.recomputing;if(r&&(n=t!==void 0?t.nextProducer:X.producers,n!==void 0&&n.producer===e)){X.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===X&&(!r||Tf(i,X)))return;let s=Zt(X),o={producer:e,consumer:X,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};X.producersTail=o,t!==void 0?t.nextProducer=o:X.producers=o,s&&Ga(e,o)}function Cf(){qs++}function za(e){if(!(Zt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qs)){if(!e.producerMustRecompute(e)&&!$a(e)){dl(e);return}e.producerRecomputeValue(e),dl(e)}}function Ba(e){if(e.consumers===void 0)return;let t=ir;ir=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||kf(r)}}finally{ir=t}}function Ua(){return X?.consumerAllowSignalWrites!==!1}function kf(e){e.dirty=!0,Ba(e),e.consumerMarkedDirty?.(e)}function dl(e){e.dirty=!1,e.lastCleanEpoch=qs}function Ki(e){return e&&Sf(e),D(e)}function Sf(e){e.producersTail=void 0,e.recomputing=!0}function Za(e,t){D(t),e&&Ef(e)}function Ef(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Zt(e))do n=Gs(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function $a(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(za(n),r!==n.version))return!0}return!1}function qa(e){if(Zt(e)){let t=e.producers;for(;t!==void 0;)t=Gs(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ga(e,t){let n=e.consumersTail,r=Zt(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)Ga(i.producer,i)}function Gs(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Zt(t)){let s=t.producers;for(;s!==void 0;)s=Gs(s)}return n}function Zt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Wa(e){_f?.(e)}function Tf(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Qa(e,t){return Object.is(e,t)}function If(e,t){let n=Object.create(Of);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(za(n),Ha(n),n.value===sr)throw n.error;return n.value};return r[Ve]=n,Wa(n),r}var vi=Symbol("UNSET"),bi=Symbol("COMPUTING"),sr=Symbol("ERRORED"),Of=ne(q({},Gr),{value:vi,dirty:!0,error:null,equal:Qa,kind:"computed",producerMustRecompute(e){return e.value===vi||e.value===bi},producerRecomputeValue(e){if(e.value===bi)throw new Error("");let t=e.value;e.value=bi;let n=Ki(e),r,i=!1;try{r=e.computation(),D(null),i=t!==vi&&t!==sr&&r!==sr&&e.equal(t,r)}catch(s){r=sr,e.error=s}finally{Za(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Df(){throw new Error}var Ya=Df;function Ka(e){Ya(e)}function Af(e){Ya=e}var Vf=null;function Mf(e,t){let n=Object.create(Pf);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Nf(n);return r[Ve]=n,Wa(n),[r,i=>Ja(n,i),i=>Rf(n,i)]}function Nf(e){return Ha(e),e.value}function Ja(e,t){Ua()||Ka(e),e.equal(e.value,t)||(e.value=t,Ff(e))}function Rf(e,t){Ua()||Ka(e),Ja(e,t(e.value))}var Pf=ne(q({},Gr),{equal:Qa,value:void 0,kind:"signal"});function Ff(e){e.version++,Cf(),Ba(e),Vf?.(e)}function B(e){return typeof e=="function"}function Ws(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var wi=Ws(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
2
2
  ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=t});function _r(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ae=class Ji{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let s of n)s.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(B(r))try{r()}catch(s){t=s instanceof _i?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{hl(s)}catch(o){t=t??[],o instanceof _i?t=[...t,...o.errors]:t.push(o)}}if(t)throw new _i(t)}}add(t){var n;if(t&&t!==this)if(this.closed)hl(t);else{if(t instanceof Ji){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&_r(n,t)}remove(t){let{_finalizers:n}=this;n&&_r(n,t),t instanceof Ji&&t._removeParent(this)}};Ae.EMPTY=(()=>{let e=new Ae;return e.closed=!0,e})();var Xa=Ae.EMPTY;function eu(e){return e instanceof Ae||e&&"closed"in e&&B(e.remove)&&B(e.add)&&B(e.unsubscribe)}function hl(e){B(e)?e():e.unsubscribe()}var bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wr={setTimeout(e,t,...n){let{delegate:r}=wr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=wr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function tu(e){wr.setTimeout(()=>{let{onUnhandledError:t}=bt;if(t)t(e);else throw e})}function fl(){}var Lf=Qs("C",void 0,void 0);function jf(e){return Qs("E",void 0,e)}function Hf(e){return Qs("N",e,void 0)}function Qs(e,t,n){return{kind:e,value:t,error:n}}var ot=null;function or(e){if(bt.useDeprecatedSynchronousErrorHandling){let t=!ot;if(t&&(ot={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ot;if(ot=null,n)throw r}}else e()}function zf(e){bt.useDeprecatedSynchronousErrorHandling&&ot&&(ot.errorThrown=!0,ot.error=e)}var Ys=class extends Ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,eu(e)&&e.add(this)):this.destination=$f}static create(e,t,n){return new At(e,t,n)}next(e){this.isStopped?Ci(Hf(e),this):this._next(e)}error(e){this.isStopped?Ci(jf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ci(Lf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Bf=Function.prototype.bind;function wi(e,t){return Bf.call(e,t)}var Uf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Bn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Bn(n)}else Bn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Bn(t)}}},At=class extends Ys{constructor(e,t,n){super();let r;if(B(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&bt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&wi(e.next,i),error:e.error&&wi(e.error,i),complete:e.complete&&wi(e.complete,i)}):r=e}this.destination=new Uf(r)}};function Bn(e){bt.useDeprecatedSynchronousErrorHandling?zf(e):tu(e)}function Zf(e){throw e}function Ci(e,t){let{onStoppedNotification:n}=bt;n&&wr.setTimeout(()=>n(e,t))}var $f={closed:!0,next:fl,error:Zf,complete:fl},Ks=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Js(e){return e}function qf(e){return e.length===0?Js:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var Y=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let s=Wf(n)?n:new At(n,r,i);return or(()=>{let{operator:o,source:l}=this;s.add(o?o.call(s,l):l?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=pl(r),new r((i,s)=>{let o=new At({next:l=>{try{n(l)}catch(a){s(a),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ks](){return this}pipe(...n){return qf(n)(this)}toPromise(n){return n=pl(n),new n((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=t=>new e(t),e})();function pl(e){var t;return(t=e??bt.Promise)!==null&&t!==void 0?t:Promise}function Gf(e){return e&&B(e.next)&&B(e.error)&&B(e.complete)}function Wf(e){return e&&e instanceof Ys||Gf(e)&&eu(e)}function Qf(e){return B(e?.lift)}function Se(e){return t=>{if(Qf(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pe(e,t,n,r,i){return new Yf(e,t,n,r,i)}var Yf=class extends Ys{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(l){e.error(l)}}:super._next,this._error=r?function(o){try{r(o)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},Kf=Ws(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),nt=(()=>{class e extends Y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new gl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Kf}next(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:s}=this;return r||i?Xa:(this.currentObservers=null,s.push(n),new Ae(()=>{this.currentObservers=null,_r(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new Y;return n.source=this,n}}return e.create=(t,n)=>new gl(t,n),e})(),gl=class extends nt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:Xa}},nu=class extends nt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},Xs={now(){return(Xs.delegate||Date).now()},delegate:void 0},ru=class extends nt{constructor(e=1/0,t=1/0,n=Xs){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:s}=this;t||(n.push(e),!r&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let s=0;s<i.length&&!e.closed;s+=n?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let s=t.now(),o=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)o=l;o&&n.splice(0,o+1)}}},Jf=class extends Ae{constructor(e,t){super()}schedule(e,t=0){return this}},Cr={setInterval(e,t,...n){let{delegate:r}=Cr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Cr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Xf=class extends Jf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return Cr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&Cr.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,_r(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},Xi=class iu{constructor(t,n=iu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Xi.now=Xs.now;var ep=class extends Xi{constructor(e,t=Xi.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},tp=new ep(Xf),np=tp,su=new Y(e=>e.complete());function ou(e){return e&&B(e.schedule)}function eo(e){return e[e.length-1]}function rp(e){return B(eo(e))?e.pop():void 0}function lu(e){return ou(eo(e))?e.pop():void 0}function ip(e,t){return typeof eo(e)=="number"?e.pop():t}function sp(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function ml(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mt(e){return this instanceof Mt?(this.v=e,this):new Mt(e)}function op(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(g){return Promise.resolve(g).then(h,d)}}function l(h,g){r[h]&&(i[h]=function(m){return new Promise(function(v,I){s.push([h,m,v,I])>1||a(h,m)})},g&&(i[h]=g(i[h])))}function a(h,g){try{u(r[h](g))}catch(m){f(s[0][3],m)}}function u(h){h.value instanceof Mt?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){a("next",h)}function d(h){a("throw",h)}function f(h,g){h(g),s.shift(),s.length&&a(s[0][0],s[0][1])}}function lp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ml=="function"?ml(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}var au=e=>e&&typeof e.length=="number"&&typeof e!="function";function uu(e){return B(e?.then)}function cu(e){return B(e[Ks])}function du(e){return Symbol.asyncIterator&&B(e?.[Symbol.asyncIterator])}function hu(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ap(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fu=ap();function pu(e){return B(e?.[fu])}function gu(e){return op(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Mt(t.read());if(r)return yield Mt(void 0);yield yield Mt(n)}}finally{t.releaseLock()}})}function mu(e){return B(e?.getReader)}function me(e){if(e instanceof Y)return e;if(e!=null){if(cu(e))return up(e);if(au(e))return cp(e);if(uu(e))return dp(e);if(du(e))return yu(e);if(pu(e))return hp(e);if(mu(e))return fp(e)}throw hu(e)}function up(e){return new Y(t=>{let n=e[Ks]();if(B(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cp(e){return new Y(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function dp(e){return new Y(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,tu)})}function hp(e){return new Y(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function yu(e){return new Y(t=>{pp(e,t).catch(n=>t.error(n))})}function fp(e){return yu(gu(e))}function pp(e,t){var n,r,i,s;return sp(this,void 0,void 0,function*(){try{for(n=lp(e);r=yield n.next(),!r.done;){let o=r.value;if(t.next(o),t.closed)return}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}t.complete()})}function Xe(e,t,n,r=0,i=!1){let s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function vu(e,t=0){return Se((n,r)=>{n.subscribe(pe(r,i=>Xe(r,e,()=>r.next(i),t),()=>Xe(r,e,()=>r.complete(),t),i=>Xe(r,e,()=>r.error(i),t)))})}function bu(e,t=0){return Se((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function gp(e,t){return me(e).pipe(bu(t),vu(t))}function mp(e,t){return me(e).pipe(bu(t),vu(t))}function yp(e,t){return new Y(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vp(e,t){return new Y(n=>{let r;return Xe(n,t,()=>{r=e[fu](),Xe(n,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),()=>B(r?.return)&&r.return()})}function _u(e,t){if(!e)throw new Error("Iterable cannot be null");return new Y(n=>{Xe(n,t,()=>{let r=e[Symbol.asyncIterator]();Xe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function bp(e,t){return _u(gu(e),t)}function _p(e,t){if(e!=null){if(cu(e))return gp(e,t);if(au(e))return yp(e,t);if(uu(e))return mp(e,t);if(du(e))return _u(e,t);if(pu(e))return vp(e,t);if(mu(e))return bp(e,t)}throw hu(e)}function to(e,t){return t?_p(e,t):me(e)}function ze(...e){let t=lu(e);return to(e,t)}function wp(e,t){let n=B(e)?e:()=>e,r=i=>i.error(n());return new Y(t?i=>t.schedule(r,0,i):r)}function Cp(e){return!!e&&(e instanceof Y||B(e.lift)&&B(e.subscribe))}var xp=Ws(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function kp(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new At({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new xp)}});e.subscribe(s)})}function Op(e){return e instanceof Date&&!isNaN(e)}function Ce(e,t){return Se((n,r)=>{let i=0;n.subscribe(pe(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Sp}=Array;function Ep(e,t){return Sp(t)?e(...t):e(t)}function Tp(e){return Ce(t=>Ep(e,t))}var{isArray:Mp}=Array,{getPrototypeOf:Pp,prototype:Ip,keys:Dp}=Object;function Ap(e){if(e.length===1){let t=e[0];if(Mp(t))return{args:t,keys:null};if(Vp(t)){let n=Dp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Vp(e){return e&&typeof e=="object"&&Pp(e)===Ip}function Np(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Rp(e,t,n,r,i,s,o,l){let a=[],u=0,c=0,d=!1,f=()=>{d&&!a.length&&!u&&t.complete()},h=m=>u<r?g(m):a.push(m),g=m=>{s&&t.next(m),u++;let v=!1;me(n(m,c++)).subscribe(pe(t,I=>{i?.(I),s?h(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;a.length&&u<r;){let I=a.shift();o?Xe(t,o,()=>g(I)):g(I)}f()}catch(I){t.error(I)}}))};return e.subscribe(pe(t,h,()=>{d=!0,f()})),()=>{l?.()}}function xr(e,t,n=1/0){return B(t)?xr((r,i)=>Ce((s,o)=>t(r,s,i,o))(me(e(r,i))),n):(typeof t=="number"&&(n=t),Se((r,i)=>Rp(r,i,e,n)))}function Fp(e=1/0){return xr(Js,e)}function Lp(...e){let t=rp(e),{args:n,keys:r}=Ap(e),i=new Y(s=>{let{length:o}=n;if(!o){s.complete();return}let l=new Array(o),a=o,u=o;for(let c=0;c<o;c++){let d=!1;me(n[c]).subscribe(pe(s,f=>{d||(d=!0,u--),l[c]=f},()=>a--,void 0,()=>{(!a||!d)&&(u||s.next(r?Np(r,l):l),s.complete())}))}});return t?i.pipe(Tp(t)):i}function wu(e=0,t,n=np){let r=-1;return t!=null&&(ou(t)?n=t:r=t),new Y(i=>{let s=Op(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function jp(...e){let t=lu(e),n=ip(e,1/0),r=e;return r.length?r.length===1?me(r[0]):Fp(n)(to(r,t)):su}function kr(e,t){return Se((n,r)=>{let i=0;n.subscribe(pe(r,s=>e.call(t,s,i++)&&r.next(s)))})}function no(e){return Se((t,n)=>{let r=null,i=!1,s;r=t.subscribe(pe(n,void 0,void 0,o=>{s=me(e(o,no(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Cu(e,t){return B(t)?xr(e,t,1):xr(e,1)}function xu(e){return e<=0?()=>su:Se((t,n)=>{let r=0;t.subscribe(pe(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ku(e){return Se((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Hp(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:i=!1}=t;return n<=0?Js:Se((s,o)=>{let l=0,a,u=()=>{let c=!1;a=s.subscribe(pe(o,d=>{i&&(l=0),o.next(d)},void 0,d=>{if(l++<n){let f=()=>{a?(a.unsubscribe(),a=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?wu(r):me(r(d,l)),g=pe(o,()=>{g.unsubscribe(),f()},()=>{o.complete()});h.subscribe(g)}else f()}else o.error(d)})),c&&(a.unsubscribe(),a=null,u())};u()})}function zp(e={}){let{connector:t=()=>new nt,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,l,a,u=0,c=!1,d=!1,f=()=>{l?.unsubscribe(),l=void 0},h=()=>{f(),o=a=void 0,c=d=!1},g=()=>{let m=o;h(),m?.unsubscribe()};return Se((m,v)=>{u++,!d&&!c&&f();let I=a=a??t();v.add(()=>{u--,u===0&&!d&&!c&&(l=xi(g,i))}),I.subscribe(v),!o&&u>0&&(o=new At({next:ve=>I.next(ve),error:ve=>{d=!0,f(),l=xi(h,n,ve),I.error(ve)},complete:()=>{c=!0,f(),l=xi(h,r),I.complete()}}),me(m).subscribe(o))})(s)}}function xi(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new At({next:()=>{r.unsubscribe(),e()}});return me(t(...n)).subscribe(r)}function yl(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,zp({connector:()=>new ru(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Ou(e,t){return Se((n,r)=>{let i=null,s=0,o=!1,l=()=>o&&!i&&r.complete();n.subscribe(pe(r,a=>{i?.unsubscribe();let u=0,c=s++;me(e(a,c)).subscribe(i=pe(r,d=>r.next(t?t(a,d,c,u++):d),()=>{i=null,l()}))},()=>{o=!0,l()}))})}function Bp(e){let t=P(null);try{return e()}finally{P(t)}}var Su="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(e,t){super(Zp(e,t)),this.code=e}};function Up(e){return`NG0${Math.abs(e)}`}function Zp(e,t){return`${Up(e)}${t?": "+t:""}`}var Ke=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function $p(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Vt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Vt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function vl(e,t){return e?t?`${e} ${t}`:e:t||""}var qp=L({__forward_ref__:L});function Pn(e){return e.__forward_ref__=Pn,e.toString=function(){return Vt(this())},e}function re(e){return Eu(e)?e():e}function Eu(e){return typeof e=="function"&&e.hasOwnProperty(qp)&&e.__forward_ref__===Pn}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wr(e){return{providers:e.providers||[],imports:e.imports||[]}}function ro(e){return Gp(e,Tu)}function Gp(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Wp(e){return(e?.[Tu]??null)||null}function bl(e){return e&&e.hasOwnProperty(_l)?e[_l]:null}var Tu=L({\u0275prov:L}),_l=L({\u0275inj:L}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=T({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mu(e){return e&&!!e.\u0275providers}var Qp=L({\u0275cmp:L}),Yp=L({\u0275dir:L}),Kp=L({\u0275pipe:L}),Or=L({\u0275fac:L}),hn=L({__NG_ELEMENT_ID__:L}),wl=L({__NG_ENV_ID__:L});function Qr(e){return typeof e=="string"?e:e==null?"":String(e)}function Jp(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Qr(e)}var Pu=L({ngErrorCode:L}),Xp=L({ngErrorMessage:L}),eg=L({ngTokenPath:L});function Iu(e,t){return Du("",-200,t)}function io(e,t){throw new w(-201,!1)}function Du(e,t,n){let r=new w(t,e);return r[Pu]=t,r[Xp]=e,n&&(r[eg]=n),r}function tg(e){return e[Pu]}var es;function Au(){return es}function de(e){let t=es;return es=e,t}function Vu(e,t,n){let r=ro(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;io(e,"Injector")}var ng={},at=ng,rg="__NG_DI_FLAG__",ig=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=wn(t)||0;try{return this.injector.get(e,n&8?null:at,n)}catch(r){if($s(r))return r;throw r}}};function sg(e,t=0){let n=ja();if(n===void 0)throw new w(-203,!1);if(n===null)return Vu(e,void 0,t);{let r=og(t),i=n.retrieve(e,r);if($s(i)){if(r.optional)return null;throw i}return i}}function b(e,t=0){return(Au()||sg)(re(e),t)}function _(e,t){return b(e,wn(t))}function wn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function og(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ts(e){let t=[];for(let n=0;n<e.length;n++){let r=re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new w(900,!1);let i,s=0;for(let o=0;o<r.length;o++){let l=r[o],a=lg(l);typeof a=="number"?a===-1?i=l.token:s|=a:i=l}t.push(b(i,s))}else t.push(b(r))}return t}function lg(e){return e[rg]}function Nt(e,t){return e.hasOwnProperty(Or)?e[Or]:null}function ag(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}function ug(e){return e.flat(Number.POSITIVE_INFINITY)}function so(e,t){e.forEach(n=>Array.isArray(n)?so(n,t):t(n))}function Nu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let s=i-2;e[i]=e[s],i--}e[t]=n,e[t+1]=r}}function dg(e,t,n){let r=In(e,t);return r>=0?e[r|1]=n:(r=~r,cg(e,r,t,n)),r}function ki(e,t){let n=In(e,t);if(n>=0)return e[n|1]}function In(e,t){return hg(e,t,1)}function hg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}var ct={},he=[],Rt=new k(""),Ru=new k("",-1),Fu=new k(""),Lu=class{get(e,t=at){if(t===at){let n=Du("",-201);throw n.name="\u0275NotFound",n}return t}};function Cn(e){return e[Qp]||null}function ju(e){return e[Yp]||null}function fg(e){return e[Kp]||null}function Yr(e){return{\u0275providers:e}}function pg(e){return Yr([{provide:Rt,multi:!0,useValue:e}])}function gg(...e){return{\u0275providers:Hu(!0,e),\u0275fromNgModule:!0}}function Hu(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return so(t,o=>{let l=o;ns(l,s,[],r)&&(i||=[],i.push(l))}),i!==void 0&&zu(i,s),n}function zu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];oo(i,s=>{t(s,r)})}}function ns(e,t,n,r){if(e=re(e),!e)return!1;let i=null,s=bl(e),o=!s&&Cn(e);if(!s&&!o){let a=e.ngModule;if(s=bl(a),s)i=a;else return!1}else{if(o&&!o.standalone)return!1;i=e}let l=r.has(i);if(o){if(l)return!1;if(r.add(i),o.dependencies){let a=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of a)ns(u,t,n,r)}}else if(s){if(s.imports!=null&&!l){r.add(i);let u;so(s.imports,c=>{ns(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&zu(u,t)}if(!l){let u=Nt(i)||(()=>new i);t({provide:i,useFactory:u,deps:he},i),t({provide:Fu,useValue:i,multi:!0},i),t({provide:Rt,useValue:()=>b(i),multi:!0},i)}let a=s.providers;if(a!=null&&!l){let u=e;oo(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function oo(e,t){for(let n of e)Mu(n)&&(n=n.\u0275providers),Array.isArray(n)?oo(n,t):t(n)}var mg=L({provide:String,useValue:L});function Bu(e){return e!==null&&typeof e=="object"&&mg in e}function yg(e){return!!(e&&e.useExisting)}function vg(e){return!!(e&&e.useFactory)}function Ft(e){return typeof e=="function"}function bg(e){return!!e.useClass}var lo=new k(""),lr={},Cl={},Oi;function ao(){return Oi===void 0&&(Oi=new Lu),Oi}var Be=class{},uo=class extends Be{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,is(e,s=>this.processProvider(s)),this.records.set(Ru,St(void 0,this)),r.has("environment")&&this.records.set(Be,St(void 0,this));let i=this.records.get(lo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Fu,he,{self:!0}))}retrieve(e,t){let n=wn(t)||0;try{return this.get(e,at,n)}catch(r){if($s(r))return r;throw r}}destroy(){un(this),this._destroyed=!0;let e=P(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(e)}}onDestroy(e){return un(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){un(this);let t=Qe(this),n=de(void 0),r;try{return e()}finally{Qe(t),de(n)}}get(e,t=at,n){if(un(this),e.hasOwnProperty(wl))return e[wl](this);let r=wn(n),i,s=Qe(this),o=de(void 0);try{if(!(r&4)){let a=this.records.get(e);if(a===void 0){let u=kg(e)&&ro(e);u&&this.injectableDefInScope(u)?a=St(rs(e),lr):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a,r)}let l=r&2?ao():this.parent;return t=r&8&&t===at?null:t,l.get(e,t)}catch(l){let a=tg(l);throw a===-200||a===-201?new w(a,null):l}finally{de(o),Qe(s)}}resolveInjectorInitializers(){let e=P(null),t=Qe(this),n=de(void 0),r;try{let i=this.get(Rt,he,{self:!0});for(let s of i)s()}finally{Qe(t),de(n),P(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Vt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=re(e);let t=Ft(e)?e:re(e&&e.provide),n=wg(e);if(!Ft(e)&&e.multi===!0){let r=this.records.get(t);r||(r=St(void 0,lr,!0),r.factory=()=>ts(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=P(null);try{if(t.value===Cl)throw Iu(Vt(e));return t.value===lr&&(t.value=Cl,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&xg(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{P(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=re(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function rs(e){let t=ro(e),n=t!==null?t.factory:Nt(e);if(n!==null)return n;if(e instanceof k)throw new w(204,!1);if(e instanceof Function)return _g(e);throw new w(204,!1)}function _g(e){if(e.length>0)throw new w(204,!1);let t=Wp(e);return t!==null?()=>t.factory(e):()=>new e}function wg(e){if(Bu(e))return St(void 0,e.useValue);{let t=Uu(e);return St(t,lr)}}function Uu(e,t,n){let r;if(Ft(e)){let i=re(e);return Nt(i)||rs(i)}else if(Bu(e))r=()=>re(e.useValue);else if(vg(e))r=()=>e.useFactory(...ts(e.deps||[]));else if(yg(e))r=(i,s)=>b(re(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=re(e&&(e.useClass||e.provide));if(Cg(e))r=()=>new i(...ts(e.deps));else return Nt(i)||rs(i)}return r}function un(e){if(e.destroyed)throw new w(205,!1)}function St(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Cg(e){return!!e.deps}function xg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function kg(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function is(e,t){for(let n of e)Array.isArray(n)?is(n,t):n&&Mu(n)?is(n.\u0275providers,t):t(n)}function co(e,t){let n;e instanceof uo?(un(e),n=e):n=new ig(e);let r,i=Qe(n),s=de(void 0);try{return t()}finally{Qe(i),de(s)}}function Og(){return Au()!==void 0||ja()!=null}var qe=0,C=1,x=2,ee=3,xe=4,Ee=5,Er=6,Tr=7,oe=8,dt=9,Ue=10,U=11,xn=12,xl=13,$t=14,Ve=15,ht=16,Et=17,Ze=18,Kr=19,Zu=20,et=21,Si=22,Mr=23,fe=24,Ei=25,Pr=26,ue=27,$u=1,ft=7,Ir=8,Lt=9,ae=10;function tt(e){return Array.isArray(e)&&typeof e[$u]=="object"}function Ge(e){return Array.isArray(e)&&e[$u]===!0}function qu(e){return(e.flags&4)!==0}function qt(e){return e.componentOffset>-1}function Dn(e){return(e.flags&1)===1}function $e(e){return!!e.template}function Dr(e){return(e[x]&512)!==0}function Gt(e){return(e[x]&256)===256}var Gu="svg",Sg="math";function Ne(e){for(;Array.isArray(e);)e=e[qe];return e}function Wu(e,t){return Ne(t[e])}function Le(e,t){return Ne(t[e.index])}function Qu(e,t){return e.data[t]}function Re(e,t){let n=t[e];return tt(n)?n:n[qe]}function Eg(e){return(e[x]&4)===4}function ho(e){return(e[x]&128)===128}function Tg(e){return Ge(e[ee])}function jt(e,t){return t==null?null:e[t]}function Yu(e){e[Et]=0}function fo(e){e[x]&1024||(e[x]|=1024,ho(e)&&Jr(e))}function Mg(e,t){for(;e>0;)t=t[$t],e--;return t}function kn(e){return!!(e[x]&9216||e[fe]?.dirty)}function ss(e){e[Ue].changeDetectionScheduler?.notify(8),e[x]&64&&(e[x]|=1024),kn(e)&&Jr(e)}function Jr(e){e[Ue].changeDetectionScheduler?.notify(0);let t=pt(e);for(;t!==null&&!(t[x]&8192||(t[x]|=8192,!ho(t)));)t=pt(t)}function Ku(e,t){if(Gt(e))throw new w(911,!1);e[et]===null&&(e[et]=[]),e[et].push(t)}function Pg(e,t){if(e[et]===null)return;let n=e[et].indexOf(t);n!==-1&&e[et].splice(n,1)}function pt(e){let t=e[ee];return Ge(t)?t[ee]:t}function Ju(e){return e[Tr]??=[]}function Xu(e){return e.cleanup??=[]}function Ig(e,t,n,r){let i=Ju(t);i.push(n),e.firstCreatePass&&Xu(e).push(r,i.length-1)}var S={lFrame:uc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},os=!1;function Dg(){return S.lFrame.elementDepthCount}function Ag(){S.lFrame.elementDepthCount++}function ec(){S.lFrame.elementDepthCount--}function po(){return S.bindingsEnabled}function Vg(){return S.skipHydrationRootTNode!==null}function tc(e){return S.skipHydrationRootTNode===e}function nc(){S.skipHydrationRootTNode=null}function V(){return S.lFrame.lView}function J(){return S.lFrame.tView}function G(e){return S.lFrame.contextLView=e,e[oe]}function W(e){return S.lFrame.contextLView=null,e}function se(){let e=rc();for(;e!==null&&e.type===64;)e=e.parent;return e}function rc(){return S.lFrame.currentTNode}function Ng(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function An(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function ic(){return S.lFrame.isParent}function Rg(){S.lFrame.isParent=!1}function sc(){return os}function kl(e){let t=os;return os=e,t}function Fg(e){return S.lFrame.bindingIndex=e}function Vn(){return S.lFrame.bindingIndex++}function Lg(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jg(){return S.lFrame.inI18n}function Hg(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,ls(t)}function zg(){return S.lFrame.currentDirectiveIndex}function ls(e){S.lFrame.currentDirectiveIndex=e}function Bg(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function oc(){return S.lFrame.currentQueryIndex}function go(e){S.lFrame.currentQueryIndex=e}function Ug(e){let t=e[C];return t.type===2?t.declTNode:t.type===1?e[Ee]:null}function lc(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=Ug(s),!(i===null||(s=s[$t],i.type&10))););if(i===null)return!1;t=i,e=s}let r=S.lFrame=ac();return r.currentTNode=t,r.lView=e,!0}function mo(e){let t=ac(),n=e[C];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ac(){let e=S.lFrame,t=e===null?null:e.child;return t===null?uc(e):t}function uc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function cc(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var dc=cc;function yo(){let e=cc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Zg(e){return(S.lFrame.contextLView=Mg(e,S.lFrame.contextLView))[oe]}function Wt(){return S.lFrame.selectedIndex}function gt(e){S.lFrame.selectedIndex=e}function Xr(){let e=S.lFrame;return Qu(e.tView,e.selectedIndex)}function $g(){S.lFrame.currentNamespace=Gu}function qg(){return S.lFrame.currentNamespace}var hc=!0;function vo(){return hc}function ei(e){hc=e}function Ol(e,t=null,n=null,r){let i=Gg(e,t,n,r);return i.resolveInjectorInitializers(),i}function Gg(e,t=null,n=null,r,i=new Set){let s=[n||he,gg(e)];return r=r||(typeof e=="object"?void 0:Vt(e)),new uo(s,t||ao(),r||null,i)}var ti=class fc{static THROW_IF_NOT_FOUND=at;static NULL=new Lu;static create(t,n){if(Array.isArray(t))return Ol({name:""},n,t,"");{let r=t.name??"";return Ol({name:r},t.parent,t.providers,r)}}static \u0275prov=T({token:fc,providedIn:"any",factory:()=>b(Ru)});static __NG_ELEMENT_ID__=-1},Fe=new k(""),bo=(()=>{class e{static __NG_ELEMENT_ID__=Qg;static __NG_ENV_ID__=n=>n}return e})(),Wg=class extends bo{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Gt(this._lView)}onDestroy(e){let t=this._lView;return Ku(t,e),()=>Pg(t,e)}};function Qg(){return new Wg(V())}var Nn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},rt=new k("",{providedIn:"root",factory:()=>{let e=_(Be),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Nn),t.handleError(n))}}}),Yg={provide:Rt,useValue:()=>{_(Nn)},multi:!0},Kg=new k("",{providedIn:"root",factory:()=>{let e=_(Fe).defaultView;if(!e)return;let t=_(rt),n=s=>{t(s.reason),s.preventDefault()},r=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),_(bo).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function Jg(){return Yr([pg(()=>{_(Kg)})])}function Xg(e){return typeof e=="function"&&e[De]!==void 0}function Pt(e,t){let[n,r,i]=Af(e,t?.equal),s=n,o=s[De];return s.set=r,s.update=i,s.asReadonly=em.bind(s),s}function em(){let e=this[De];if(e.readonlyFn===void 0){let t=()=>this();t[De]=e,e.readonlyFn=t}return e.readonlyFn}function pc(e){return Xg(e)&&typeof e.set=="function"}var Rn=class{},_o=new k("",{providedIn:"root",factory:()=>!1}),gc=new k(""),mc=new k(""),Qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new nu(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Y(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})(),yc=(()=>{class e{internalPendingTasks=_(Qt);scheduler=_(Rn);errorHandler=_(rt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ar(...e){}var tm=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>new nm})}return e})(),nm=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)t===null?e||=this.flushQueue(n):e||=t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}};function ni(e){return{toString:e}.toString()}function rm(e){return typeof e=="function"}var im=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function vc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ri=(()=>{let e=()=>bc;return e.ngInherit=!0,e})();function bc(e){return e.type.prototype.ngOnChanges&&(e.setInput=om),sm}function sm(){let e=wc(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function om(e,t,n,r,i){let s=this.declaredInputs[r],o=wc(e)||lm(e,{previous:ct,current:null}),l=o.current||(o.current={}),a=o.previous,u=a[s];l[s]=new im(u&&u.currentValue,n,a===ct),vc(e,t,i,n)}var _c="__ngSimpleChanges__";function wc(e){return e[_c]||null}function lm(e,t){return e[_c]=t}var Sl=[],H=function(e,t=null,n){for(let r=0;r<Sl.length;r++){let i=Sl[r];i(e,t,n)}};function am(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=bc(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function Cc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ar(e,t,n){xc(e,t,3,n)}function ur(e,t,n,r){(e[x]&3)===n&&xc(e,t,n,r)}function Ti(e,t){let n=e[x];(n&3)===t&&(n&=16383,n+=1,e[x]=n)}function xc(e,t,n,r){let i=r!==void 0?e[Et]&65535:0,s=r??-1,o=t.length-1,l=0;for(let a=i;a<o;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[Et]+=65536),(l<s||s==-1)&&(um(e,n,t,a),e[Et]=(e[Et]&4294901760)+a+2),a++}function El(e,t){H(4,e,t);let n=P(null);try{t.call(e)}finally{P(n),H(5,e,t)}}function um(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],l=e[o];i?e[x]>>14<e[Et]>>16&&(e[x]&3)===t&&(e[x]+=16384,El(l,s)):El(l,s)}var It=-1,Fn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function cm(e){return(e.flags&8)!==0}function dm(e){return(e.flags&16)!==0}function hm(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let s=n[r++],o=n[r++],l=n[r++];e.setAttribute(t,o,l,s)}else{let s=i,o=n[++r];pm(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function fm(e){return e===3||e===4||e===6}function pm(e){return e.charCodeAt(0)===64}function Ht(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Tl(e,n,i,null,t[++r]):Tl(e,n,i,null,null))}}return e}function Tl(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let l=e[s++];if(typeof l=="number"){if(l===t){o=-1;break}else if(l>t){o=s-1;break}}}for(;s<e.length;){let l=e[s];if(typeof l=="number")break;if(l===n){i!==null&&(e[s+1]=i);return}s++,i!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),i!==null&&e.splice(s++,0,i)}function kc(e){return e!==It}function Vr(e){return e&32767}function gm(e){return e>>16}function Nr(e,t){let n=gm(e),r=t;for(;n>0;)r=r[$t],n--;return r}var as=!0;function Ml(e){let t=as;return as=e,t}var mm=256,Oc=mm-1,Sc=5,ym=0,Ie={};function vm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(hn)&&(r=n[hn]),r==null&&(r=n[hn]=ym++);let i=r&Oc,s=1<<i;t.data[e+(i>>Sc)]|=s}function Rr(e,t){let n=Ec(e,t);if(n!==-1)return n;let r=t[C];r.firstCreatePass&&(e.injectorIndex=t.length,Mi(r.data,e),Mi(t,null),Mi(r.blueprint,null));let i=wo(e,t),s=e.injectorIndex;if(kc(i)){let o=Vr(i),l=Nr(i,t),a=l[C].data;for(let u=0;u<8;u++)t[s+u]=l[o+u]|a[o+u]}return t[s+8]=i,s}function Mi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ec(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function wo(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ac(i),r===null)return It;if(n++,i=i[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return It}function us(e,t,n){vm(e,t,n)}function Tc(e,t,n){if(n&8||e!==void 0)return e;io(t,"NodeInjector")}function Mc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[dt],s=de(void 0);try{return i?i.get(t,r,n&8):Vu(t,r,n&8)}finally{de(s)}}return Tc(r,t,n)}function Pc(e,t,n,r=0,i){if(e!==null){if(t[x]&2048&&!(r&2)){let o=Cm(e,t,n,r,Ie);if(o!==Ie)return o}let s=Ic(e,t,n,r,Ie);if(s!==Ie)return s}return Mc(t,n,r,i)}function Ic(e,t,n,r,i){let s=_m(n);if(typeof s=="function"){if(!lc(t,e,r))return r&1?Tc(i,n,r):Mc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))io(n);else return o}finally{dc()}}else if(typeof s=="number"){let o=null,l=Ec(e,t),a=It,u=r&1?t[Ve][Ee]:null;for((l===-1||r&4)&&(a=l===-1?wo(e,t):t[l+8],a===It||!Il(r,!1)?l=-1:(o=t[C],l=Vr(a),t=Nr(a,t)));l!==-1;){let c=t[C];if(Pl(s,l,c.data)){let d=bm(l,t,n,o,r,u);if(d!==Ie)return d}a=t[l+8],a!==It&&Il(r,t[C].data[l+8]===u)&&Pl(s,l,t)?(o=c,l=Vr(a),t=Nr(a,t)):l=-1}}return i}function bm(e,t,n,r,i,s){let o=t[C],l=o.data[e+8],a=r==null?qt(l)&&as:r!=o&&(l.type&3)!==0,u=i&1&&s===l,c=cr(l,o,n,a,u);return c!==null?On(t,o,c,l,i):Ie}function cr(e,t,n,r,i){let s=e.providerIndexes,o=t.data,l=s&1048575,a=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?l:l+c,f=i?l+c:u;for(let h=d;h<f;h++){let g=o[h];if(h<a&&n===g||h>=a&&g.type===n)return h}if(i){let h=o[a];if(h&&$e(h)&&h.type===n)return a}return null}function On(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Fn){let l=s;if(l.resolving){let h=Jp(o[n]);throw Iu(h)}let a=Ml(l.canSeeViewProviders);l.resolving=!0;let u=o[n].type||o[n],c,d=l.injectImpl?de(l.injectImpl):null,f=lc(e,r,0);try{s=e[n]=l.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&am(n,o[n],t)}finally{d!==null&&de(d),Ml(a),l.resolving=!1,dc()}}return s}function _m(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(hn)?e[hn]:void 0;return typeof t=="number"?t>=0?t&Oc:wm:t}function Pl(e,t,n){let r=1<<e;return!!(n[t+(e>>Sc)]&r)}function Il(e,t){return!(e&2)&&!(e&1&&t)}var fn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Pc(this._tNode,this._lView,e,wn(n),t)}};function wm(){return new fn(se(),V())}function Dc(e){return ni(()=>{let t=e.prototype.constructor,n=t[Or]||cs(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Or]||cs(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function cs(e){return Eu(e)?()=>{let t=cs(re(e));return t&&t()}:Nt(e)}function Cm(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[x]&2048&&!Dr(o);){let l=Ic(s,o,n,r|2,Ie);if(l!==Ie)return l;let a=s.parent;if(!a){let u=o[Zu];if(u){let c=u.get(n,Ie,r);if(c!==Ie)return c}a=Ac(o),o=o[$t]}s=a}return i}function Ac(e){let t=e[C],n=t.type;return n===2?t.declTNode:n===1?e[Ee]:null}function xm(){return Yt(se(),V())}function Yt(e,t){return new Kt(Le(e,t))}var Kt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=xm}return e})();function km(e){return e instanceof Kt?e.nativeElement:e}function Om(){return this._results[Symbol.iterator]()}var Sm=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new nt}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=ug(e);(this._changesDetected=!ag(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Om};function Vc(e){return(e.flags&128)===128}var Nc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Nc||{}),Rc=new Map,Em=0;function Tm(){return Em++}function Mm(e){Rc.set(e[Kr],e)}function ds(e){Rc.delete(e[Kr])}var Dl="__ngContext__";function zt(e,t){tt(t)?(e[Dl]=t[Kr],Mm(t)):e[Dl]=t}function Fc(e){return jc(e[xn])}function Lc(e){return jc(e[xe])}function jc(e){for(;e!==null&&!Ge(e);)e=e[xe];return e}var hs;function Pm(e){hs=e}function Hc(){if(hs!==void 0)return hs;if(typeof document<"u")return document;throw new w(210,!1)}var zc=new k("",{providedIn:"root",factory:()=>Im}),Im="ng",Bc=new k(""),Co=new k("",{providedIn:"platform",factory:()=>"unknown"}),Uc=new k("",{providedIn:"root",factory:()=>Hc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Dm="h",Am="b",Zc=!1,Vm=new k("",{providedIn:"root",factory:()=>Zc}),Nm=(e,t,n,r)=>{};function Rm(e,t,n,r){Nm(e,t,n,r)}function $c(e){return(e.flags&32)===32}var Fm=()=>null;function qc(e,t,n=!1){return Fm(e,t,n)}function Gc(e,t){let n=e.contentQueries;if(n!==null){let r=P(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let l=e.data[o];go(s),l.contentQueries(2,t[o],o)}}}finally{P(r)}}}function fs(e,t,n){go(0);let r=P(null);try{t(e,n)}finally{P(r)}}function xo(e,t,n){if(qu(t)){let r=P(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let l=e.data[o];if(l.contentQueries){let a=n[o];l.contentQueries(1,a,o)}}}finally{P(r)}}}var mt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(mt||{}),Un;function Lm(){if(Un===void 0&&(Un=null,Ke.trustedTypes))try{Un=Ke.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Un}function ii(e){return Lm()?.createHTML(e)||e}var Zn;function jm(){if(Zn===void 0&&(Zn=null,Ke.trustedTypes))try{Zn=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Zn}function Al(e){return jm()?.createHTML(e)||e}var _t=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Su})`}},Hm=class extends _t{getTypeName(){return"HTML"}},zm=class extends _t{getTypeName(){return"Style"}},Bm=class extends _t{getTypeName(){return"Script"}},Um=class extends _t{getTypeName(){return"URL"}},Zm=class extends _t{getTypeName(){return"ResourceURL"}};function st(e){return e instanceof _t?e.changingThisBreaksApplicationSecurity:e}function Ot(e,t){let n=$m(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Su})`)}return n===t}function $m(e){return e instanceof _t&&e.getTypeName()||null}function qm(e){return new Hm(e)}function Gm(e){return new zm(e)}function Wm(e){return new Bm(e)}function Qm(e){return new Um(e)}function Ym(e){return new Zm(e)}function Km(e){let t=new Xm(e);return ey()?new Jm(t):t}var Jm=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(ii(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},Xm=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=ii(e),t}};function ey(){try{return!!new window.DOMParser().parseFromString(ii(""),"text/html")}catch{return!1}}var ty=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wc(e){return e=String(e),e.match(ty)?e:"unsafe:"+e}function We(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ln(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Qc=We("area,br,col,hr,img,wbr"),Yc=We("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kc=We("rp,rt"),ny=Ln(Kc,Yc),ry=Ln(Yc,We("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")),iy=Ln(Kc,We("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")),Vl=Ln(Qc,ry,iy,ny),Jc=We("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sy=We("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"),oy=We("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"),ly=Ln(Jc,sy,oy),ay=We("script,style,template"),uy=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=hy(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=dy(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Nl(e).toLowerCase();if(!Vl.hasOwnProperty(t))return this.sanitizedSomething=!0,!ay.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),s=i.name,o=s.toLowerCase();if(!ly.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let l=i.value;Jc[o]&&(l=Wc(l)),this.buf.push(" ",s,'="',Rl(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=Nl(e).toLowerCase();Vl.hasOwnProperty(t)&&!Qc.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Rl(e))}};function cy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function dy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xc(t);return t}function hy(e){let t=e.firstChild;if(t&&cy(e,t))throw Xc(t);return t}function Nl(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Xc(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var fy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,py=/([^\#-~ |!])/g;function Rl(e){return e.replace(/&/g,"&amp;").replace(fy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(py,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var $n;function ed(e,t){let n=null;try{$n=$n||Km(e);let r=t?String(t):"";n=$n.getInertBodyElement(r);let i=5,s=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=$n.getInertBodyElement(r)}while(r!==s);let o=new uy().sanitizeChildren(Fl(n)||n);return ii(o)}finally{if(n){let r=Fl(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Fl(e){return"content"in e&&gy(e)?e.content:null}function gy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var my=/^>|^->|<!--|-->|--!>|<!-$/g,yy=/(<|>)/g,vy="\u200B$1\u200B";function by(e){return e.replace(my,t=>t.replace(yy,vy))}function _y(e,t){return e.createText(t)}function wy(e,t,n){e.setValue(t,n)}function Cy(e,t){return e.createComment(by(t))}function td(e,t,n){return e.createElement(t,n)}function Fr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function nd(e,t,n){e.appendChild(t,n)}function Ll(e,t,n,r,i){r!==null?Fr(e,t,n,r,i):nd(e,t,n)}function xy(e,t,n,r){e.removeChild(null,t,n,r)}function ky(e,t,n){e.setAttribute(t,"style",n)}function Oy(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function rd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&hm(e,t,r),i!==null&&Oy(e,t,i),s!==null&&ky(e,t,s)}var Ye=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Ye||{});function id(e){let t=Sy();return t?Al(t.sanitize(Ye.HTML,e)||""):Ot(e,"HTML")?Al(st(e)):ed(Hc(),Qr(e))}function Sy(){let e=V();return e&&e[Ue].sanitizer}function Ey(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}var sd="ng-template";function Ty(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Ey(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(ko(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&typeof(s=t[i])=="string";)if(s.toLowerCase()===n)return!0}return!1}function ko(e){return e.type===4&&e.value!==sd}function My(e,t,n){let r=e.type===4&&!n?sd:e.value;return t===r}function Py(e,t,n){let r=4,i=e.attrs,s=i!==null?Ay(i):0,o=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!o&&!_e(r)&&!_e(a))return!1;if(o&&_e(a))continue;o=!1,r=a|r&1;continue}if(!o)if(r&4){if(r=2|r&1,a!==""&&!My(e,a,n)||a===""&&t.length===1){if(_e(r))return!1;o=!0}}else if(r&8){if(i===null||!Ty(e,i,a,n)){if(_e(r))return!1;o=!0}}else{let u=t[++l],c=Iy(a,i,ko(e),n);if(c===-1){if(_e(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(_e(r))return!1;o=!0}}}}return _e(r)||o}function _e(e){return(e&1)===0}function Iy(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){let o=t[i];if(o===e)return i;if(o===3||o===6)s=!0;else if(o===1||o===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return Vy(t,e)}function Dy(e,t,n=!1){for(let r=0;r<t.length;r++)if(Py(e,t[r],n))return!0;return!1}function Ay(e){for(let t=0;t<e.length;t++){let n=e[t];if(fm(n))return t}return e.length}function Vy(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function jl(e,t){return e?":not("+t.trim()+")":t}function Ny(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(r&2){let l=e[++n];i+="["+o+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!_e(o)&&(t+=jl(s,i),i=""),r=o,s=s||!_e(r);n++}return i!==""&&(t+=jl(s,i)),t}function Ry(e){return e.map(Ny).join(",")}function Fy(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let s=e[r];if(typeof s=="string")i===2?s!==""&&t.push(s,e[++r]):i===8&&n.push(s);else{if(!_e(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var wt={};function Oo(e,t,n,r,i,s,o,l,a,u,c){let d=ue+r,f=d+i,h=Ly(d,f),g=typeof u=="function"?u():u;return h[C]={type:e,blueprint:h,template:n,queries:null,viewQuery:l,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:a,consts:g,incompleteFirstPass:!1,ssrId:c}}function Ly(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:wt);return n}function jy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Oo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function So(e,t,n,r,i,s,o,l,a,u,c){let d=t.blueprint.slice();return d[qe]=i,d[x]=r|4|128|8|64|1024,(u!==null||e&&e[x]&2048)&&(d[x]|=2048),Yu(d),d[ee]=d[$t]=e,d[oe]=n,d[Ue]=o||e&&e[Ue],d[U]=l||e&&e[U],d[dt]=a||e&&e[dt]||null,d[Ee]=s,d[Kr]=Tm(),d[Er]=c,d[Zu]=u,d[Ve]=t.type==2?e[Ve]:d,d}function Hy(e,t,n){let r=Le(t,e),i=jy(n),s=e[Ue].rendererFactory,o=Eo(e,So(e,i,null,od(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function od(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ld(e,t,n,r){if(n===0)return-1;let i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Eo(e,t){return e[xn]?e[xl][xe]=t:e[xn]=t,e[xl]=t,t}function O(e=1){ad(J(),V(),Wt()+e,!1)}function ad(e,t,n,r){if(!r)if((t[x]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ar(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ur(t,i,0,n)}gt(n)}var si=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(si||{});function ps(e,t,n,r){let i=P(null);try{let[s,o,l]=e.inputs[n],a=null;(o&si.SignalBased)!==0&&(a=t[s][De]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,s):vc(t,a,s,r)}finally{P(i)}}var lt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(lt||{}),zy;function To(e,t){return zy(e,t)}var Lr=new Set,ud=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ud||{}),Mo=new k(""),Hl=new Set;function cd(e){Hl.has(e)||(Hl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var dd=!1,By=class extends nt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Og()&&(this.destroyRef=_(bo,{optional:!0})??void 0,this.pendingTasks=_(Qt,{optional:!0})??void 0)}emit(e){let t=P(null);try{super.next(e)}finally{P(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let o=super.subscribe({next:r,error:i,complete:s});return e instanceof Ae&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},M=By;function hd(e){let t,n;function r(){e=Ar;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function zl(e){return queueMicrotask(()=>e()),()=>{e=Ar}}var Po="isAngularZone",jr=Po+"_ID",Uy=0,ie=class gs{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new M(!1);onMicrotaskEmpty=new M(!1);onStable=new M(!1);onError=new M(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=dd}=t;if(typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,qy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Po)===!0}static assertInAngularZone(){if(!gs.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(gs.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,Zy,Ar,Ar);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Zy={};function Io(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $y(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){hd(()=>{e.callbackScheduled=!1,ms(e),e.isCheckStableRunning=!0,Io(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ms(e)}function qy(e){let t=()=>{$y(e)},n=Uy++;e._inner=e._inner.fork({name:"angular",properties:{[Po]:!0,[jr]:n,[jr+n]:!0},onInvokeTask:(r,i,s,o,l,a)=>{if(Wy(a))return r.invokeTask(s,o,l,a);try{return Bl(e),r.invokeTask(s,o,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ul(e)}},onInvoke:(r,i,s,o,l,a,u)=>{try{return Bl(e),r.invoke(s,o,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Qy(a)&&t(),Ul(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,ms(e),Io(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function ms(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Bl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ul(e){e._nesting--,Io(e)}var Gy=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new M;onMicrotaskEmpty=new M;onStable=new M;onError=new M;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Wy(e){return fd(e,"__ignore_ng_zone__")}function Qy(e){return fd(e,"__scheduler_tick__")}function fd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Yy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ky=new k("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function pd(e,t,n){let r=e.get(Ky);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Jy(e,t){for(let[n,r]of t)pd(e,r.animateFns)}function Zl(e,t,n,r){let i=e?.[Pr]?.enter;t!==null&&i&&i.has(n.index)&&Jy(r,i)}function Tt(e,t,n,r,i,s,o,l){if(i!=null){let a,u=!1;Ge(i)?a=i:tt(i)&&(u=!0,i=i[qe]);let c=Ne(i);e===0&&r!==null?(Zl(l,r,s,n),o==null?nd(t,r,c):Fr(t,r,c,o||null,!0)):e===1&&r!==null?(Zl(l,r,s,n),Fr(t,r,c,o||null,!0)):e===2?$l(l,s,n,d=>{xy(t,c,u,d)}):e===3&&$l(l,s,n,()=>{t.destroyNode(c)}),a!=null&&dv(t,e,n,a,s,r,o)}}function Xy(e,t){gd(e,t),t[qe]=null,t[Ee]=null}function ev(e,t,n,r,i,s){r[qe]=i,r[Ee]=t,oi(e,r,n,1,i,s)}function gd(e,t){t[Ue].changeDetectionScheduler?.notify(9),oi(e,t,t[U],2,null,null)}function tv(e){let t=e[xn];if(!t)return Pi(e[C],e);for(;t;){let n=null;if(tt(t))n=t[xn];else{let r=t[ae];r&&(n=r)}if(!n){for(;t&&!t[xe]&&t!==e;)tt(t)&&Pi(t[C],t),t=t[ee];t===null&&(t=e),tt(t)&&Pi(t[C],t),n=t&&t[xe]}t=n}}function Do(e,t){let n=e[Lt],r=n.indexOf(t);n.splice(r,1)}function md(e,t){if(Gt(t))return;let n=t[U];n.destroyNode&&oi(e,t,n,3,null,null),tv(t)}function Pi(e,t){if(Gt(t))return;let n=P(null);try{t[x]&=-129,t[x]|=256,t[fe]&&qa(t[fe]),iv(e,t),rv(e,t),t[C].type===1&&t[U].destroy();let r=t[ht];if(r!==null&&Ge(t[ee])){r!==t[ee]&&Do(r,t);let i=t[Ze];i!==null&&i.detachView(e)}ds(t)}finally{P(n)}}function $l(e,t,n,r){let i=e?.[Pr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&Lr.add(e),pd(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let l=0;l<s.animateFns.length;l++){let a=s.animateFns[l],{promise:u}=a();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),nv(e,r)}else e&&Lr.delete(e),r(!1)},i)}function nv(e,t){let n=e[Pr]?.running;if(n){n.then(()=>{e[Pr].running=void 0,Lr.delete(e),t(!0)});return}t(!1)}function rv(e,t){let n=e.cleanup,r=t[Tr];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let l=n[o+3];l>=0?r[l]():r[-l].unsubscribe(),o+=2}else{let l=r[n[o+1]];n[o].call(l)}r!==null&&(t[Tr]=null);let i=t[et];if(i!==null){t[et]=null;for(let o=0;o<i.length;o++){let l=i[o];l()}}let s=t[Mr];if(s!==null){t[Mr]=null;for(let o of s)o.destroy()}}function iv(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Fn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let l=i[s[o]],a=s[o+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,s);try{s.call(i)}finally{H(5,i,s)}}}}}function sv(e,t,n){return ov(e,t.parent,n)}function ov(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[qe];if(qt(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===mt.None||i===mt.Emulated)return null}return Le(r,n)}function lv(e,t,n){return uv(e,t,n)}function av(e,t,n){return e.type&40?Le(e,n):null}var uv=av,ql;function Ao(e,t,n,r){let i=sv(e,r,t),s=t[U],o=r.parent||t[Ee],l=lv(o,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ll(s,i,n[a],l,!1);else Ll(s,i,n,l,!1);ql!==void 0&&ql(s,r,t,n,i)}function cn(e,t){if(t!==null){let n=t.type;if(n&3)return Le(t,e);if(n&4)return ys(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return cn(e,r);{let i=e[t.index];return Ge(i)?ys(-1,i):Ne(i)}}else{if(n&128)return cn(e,t.next);if(n&32)return To(t,e)()||Ne(e[t.index]);{let r=yd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=pt(e[Ve]);return cn(i,r)}else return cn(e,t.next)}}}return null}function yd(e,t){if(t!==null){let n=e[Ve][Ee],r=t.projection;return n.projection[r]}return null}function ys(e,t){let n=ae+e+1;if(n<t.length){let r=t[n],i=r[C].firstChild;if(i!==null)return cn(r,i)}return t[ft]}function Vo(e,t,n,r,i,s,o){for(;n!=null;){let l=r[dt];if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(o&&t===0&&(a&&zt(Ne(a),r),n.flags|=2),!$c(n))if(u&8)Vo(e,t,n.child,r,i,s,!1),Tt(t,e,l,i,a,n,s,r);else if(u&32){let c=To(n,r),d;for(;d=c();)Tt(t,e,l,i,d,n,s,r);Tt(t,e,l,i,a,n,s,r)}else u&16?cv(e,t,r,n,i,s):Tt(t,e,l,i,a,n,s,r);n=o?n.projectionNext:n.next}}function oi(e,t,n,r,i,s){Vo(n,r,e.firstChild,t,i,s,!1)}function cv(e,t,n,r,i,s){let o=n[Ve],l=o[Ee].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];Tt(t,e,n[dt],i,u,r,s,n)}else{let a=l,u=o[ee];Vc(r)&&(a.flags|=128),Vo(e,t,a,u,i,s,!0)}}function dv(e,t,n,r,i,s,o){let l=r[ft],a=Ne(r);l!==a&&Tt(t,e,n,s,l,i,o);for(let u=ae;u<r.length;u++){let c=r[u];oi(c[C],c,e,t,s,l)}}function hv(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:lt.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=lt.Important),e.setStyle(n,r,i,s))}}function vd(e,t,n,r,i){let s=Wt(),o=r&2;try{gt(-1),o&&t.length>ue&&ad(e,t,ue,!1),H(o?2:0,i,n),n(r,i)}finally{gt(s),H(o?3:1,i,n)}}function li(e,t,n){vv(e,t,n),(n.flags&64)===64&&bv(e,t,n)}function ai(e,t,n=Le){let r=t.localNames;if(r!==null){let i=t.index+1;for(let s=0;s<r.length;s+=2){let o=r[s+1],l=o===-1?n(t,e):e[o];e[i++]=l}}}function fv(e,t,n,r){let i=r.get(Vm,Zc)||n===mt.ShadowDom,s=e.selectRootElement(t,i);return pv(s),s}function pv(e){gv(e)}var gv=()=>null;function mv(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function bd(e,t,n,r,i,s){let o=t[C];if(Lo(e,o,t,n,r)){qt(e)&&yv(t,e.index);return}e.type&3&&(n=mv(n)),_d(e,t,n,r,i,s)}function _d(e,t,n,r,i,s){if(e.type&3){let o=Le(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function yv(e,t){let n=Re(t,e);n[x]&16||(n[x]|=64)}function vv(e,t,n){let r=n.directiveStart,i=n.directiveEnd;qt(n)&&Hy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Rr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let l=e.data[o],a=On(t,e,o,n);if(zt(a,t),s!==null&&xv(t,o-r,a,l,n,s),$e(l)){let u=Re(n.index,t);u[oe]=On(t,e,o,n)}}}function bv(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=zg();try{gt(s);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];ls(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&_v(a,u)}}finally{gt(-1),ls(o)}}function _v(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function No(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];Dy(t,s.selectors,!1)&&(r??=[],$e(s)?r.unshift(s):r.push(s))}return r}function wv(e,t,n,r,i,s){let o=Le(e,t);Cv(t[U],o,s,e.value,n,r,i)}function Cv(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let l=o==null?Qr(s):o(s,r||"",i);e.setAttribute(t,i,l,n)}}function xv(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let l=0;l<o.length;l+=2){let a=o[l],u=o[l+1];ps(r,n,a,u)}}function Ro(e,t,n,r,i){let s=ue+n,o=t[C],l=i(o,t,e,r,n);t[s]=l,An(e,!0);let a=e.type===2;return a?(rd(t[U],l,e),(Dg()===0||Dn(e))&&zt(l,t),Ag()):zt(l,t),vo()&&(!a||!$c(e))&&Ao(o,t,l,e),e}function Fo(e){let t=e;return ic()?Rg():(t=t.parent,An(t,!1)),t}function kv(e,t){let n=e[dt];if(!n)return;let r;try{r=n.get(rt,null)}catch{r=null}r?.(t)}function Lo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],l=!1;if(o)for(let a=0;a<o.length;a+=2){let u=o[a],c=o[a+1],d=t.data[u];ps(d,n[u],c,i),l=!0}if(s)for(let a of s){let u=n[a],c=t.data[a];ps(c,u,r,i),l=!0}return l}function Ov(e,t){let n=Re(t,e),r=n[C];Sv(r,n);let i=n[qe];i!==null&&n[Er]===null&&(n[Er]=qc(i,n[dt])),H(18),jo(r,n,n[oe]),H(19,n[oe])}function Sv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function jo(e,t,n){mo(t);try{let r=e.viewQuery;r!==null&&fs(1,r,n);let i=e.template;i!==null&&vd(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ze]?.finishViewCreation(e),e.staticContentQueries&&Gc(e,t),e.staticViewQueries&&fs(2,e.viewQuery,n);let s=e.components;s!==null&&Ev(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[x]&=-5,yo()}}function Ev(e,t){for(let n=0;n<t.length;n++)Ov(e,t[n])}function Tv(e,t,n,r){let i=P(null);try{let s=t.tView,o=e[x]&4096?4096:16,l=So(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[ht]=a;let u=e[Ze];return u!==null&&(l[Ze]=u.createEmbeddedView(s)),jo(s,l,n),l}finally{P(i)}}function Gl(e,t){return!t||t.firstChild===null||Vc(e)}function Hr(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let s=t[n.index];s!==null&&r.push(Ne(s)),Ge(s)&&Mv(s,r);let o=n.type;if(o&8)Hr(e,t,n.child,r);else if(o&32){let l=To(n,t),a;for(;a=l();)r.push(a)}else if(o&16){let l=yd(t,n);if(Array.isArray(l))r.push(...l);else{let a=pt(t[Ve]);Hr(a[C],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Mv(e,t){for(let n=ae;n<e.length;n++){let r=e[n],i=r[C].firstChild;i!==null&&Hr(r[C],r,i,t)}e[ft]!==e[qe]&&t.push(e[ft])}function wd(e){if(e[Ei]!==null){for(let t of e[Ei])t.impl.addSequence(t);e[Ei].length=0}}var Cd=[];function Pv(e){return e[fe]??Iv(e)}function Iv(e){let t=Cd.pop()??Object.create(Av);return t.lView=e,t}function Dv(e){e.lView[fe]!==e&&(e.lView=null,Cd.push(e))}var Av=ne(q({},Gr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Jr(e.lView)},consumerOnSignalRead(){this.lView[fe]=this}});function Vv(e){let t=e[fe]??Object.create(Nv);return t.lView=e,t}var Nv=ne(q({},Gr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=pt(e.lView);for(;t&&!xd(t[C]);)t=pt(t);t&&fo(t)},consumerOnSignalRead(){this.lView[fe]=this}});function xd(e){return e.type!==2}function kd(e){if(e[Mr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Mr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[x]&8192)}}var Rv=100;function Od(e,t=0){let n=e[Ue].rendererFactory,r=!1;r||n.begin?.();try{Fv(e,t)}finally{r||n.end?.()}}function Fv(e,t){let n=sc();try{kl(!0),vs(e,t);let r=0;for(;kn(e);){if(r===Rv)throw new w(103,!1);r++,vs(e,1)}}finally{kl(n)}}function Lv(e,t,n,r){if(Gt(t))return;let i=t[x],s=!1,o=!1;mo(t);let l=!0,a=null,u=null;s||(xd(e)?(u=Pv(t),a=Ki(u)):Cf()===null?(l=!1,u=Vv(t),a=Ki(u)):t[fe]&&(qa(t[fe]),t[fe]=null));try{Yu(t),Fg(e.bindingStartIndex),n!==null&&vd(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&ar(t,h,null)}else{let h=e.preOrderHooks;h!==null&&ur(t,h,0,null),Ti(t,0)}if(o||jv(t),kd(t),Sd(t,0),e.contentQueries!==null&&Gc(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&ar(t,h)}else{let h=e.contentHooks;h!==null&&ur(t,h,1),Ti(t,1)}zv(e,t);let d=e.components;d!==null&&Td(t,d,0);let f=e.viewQuery;if(f!==null&&fs(2,f,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&ar(t,h)}else{let h=e.viewHooks;h!==null&&ur(t,h,2),Ti(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Si]){for(let h of t[Si])h();t[Si]=null}s||(wd(t),t[x]&=-73)}catch(c){throw s||Jr(t),c}finally{u!==null&&(Za(u,a),l&&Dv(u)),yo()}}function Sd(e,t){for(let n=Fc(e);n!==null;n=Lc(n))for(let r=ae;r<n.length;r++){let i=n[r];Ed(i,t)}}function jv(e){for(let t=Fc(e);t!==null;t=Lc(t)){if(!(t[x]&2))continue;let n=t[Lt];for(let r=0;r<n.length;r++){let i=n[r];fo(i)}}}function Hv(e,t,n){H(18);let r=Re(t,e);Ed(r,n),H(19,r[oe])}function Ed(e,t){ho(e)&&vs(e,t)}function vs(e,t){let n=e[C],r=e[x],i=e[fe],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&$a(i)),s||=!1,i&&(i.dirty=!1),e[x]&=-9217,s)Lv(n,e,n.template,e[oe]);else if(r&8192){let o=P(null);try{kd(e),Sd(e,1);let l=n.components;l!==null&&Td(e,l,1),wd(e)}finally{P(o)}}}function Td(e,t,n){for(let r=0;r<t.length;r++)Hv(e,t[r],n)}function zv(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)gt(~i);else{let s=i,o=n[++r],l=n[++r];Hg(o,s);let a=t[s];H(24,a),l(2,a),H(25,a)}}}finally{gt(-1)}}function Ho(e,t){let n=sc()?64:1088;for(e[Ue].changeDetectionScheduler?.notify(t);e;){e[x]|=n;let r=pt(e);if(Dr(e)&&!r)return e;e=r}return null}function Md(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Bv(e,t,n,r=!0){let i=t[C];if(Uv(i,t,e,n),r){let o=ys(n,e),l=t[U],a=l.parentNode(e[ft]);a!==null&&ev(i,e[Ee],l,t,a,o)}let s=t[Er];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function bs(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n];if(r){let i=r[ht];i!==null&&i!==e&&Do(i,r),t>0&&(e[n-1][xe]=r[xe]);let s=Sr(e,ae+t);Xy(r[C],r);let o=s[Ze];o!==null&&o.detachView(s[C]),r[ee]=null,r[xe]=null,r[x]&=-129}return r}function Uv(e,t,n,r){let i=ae+r,s=n.length;r>0&&(n[i-1][xe]=t),r<s-ae?(t[xe]=n[i],Nu(n,ae+r,t)):(n.push(t),t[xe]=null),t[ee]=n;let o=t[ht];o!==null&&n!==o&&Pd(o,t);let l=t[Ze];l!==null&&l.insertView(e),ss(t),t[x]|=128}function Pd(e,t){let n=e[Lt],r=t[ee];if(tt(r))e[x]|=2;else{let i=r[ee][Ve];t[Ve]!==i&&(e[x]|=2)}n===null?e[Lt]=[t]:n.push(t)}var Sn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[C];return Hr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[oe]}set context(e){this._lView[oe]=e}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ee];if(Ge(e)){let t=e[Ir],n=t?t.indexOf(this):-1;n>-1&&(bs(e,n),Sr(t,n))}this._attachedToViewContainer=!1}md(this._lView[C],this._lView)}onDestroy(e){Ku(this._lView,e)}markForCheck(){Ho(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){ss(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Od(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Dr(this._lView),t=this._lView[ht];t!==null&&!e&&Do(t,this._lView),gd(this._lView[C],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let t=Dr(this._lView),n=this._lView[ht];n!==null&&!t&&Pd(n,this._lView),ss(this._lView)}};function Zv(e){return kn(e._lView)||!!(e._lView[x]&64)}function $v(e){fo(e._lView)}var yt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qv;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let s=Tv(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Sn(s)}}return e})();function qv(){return zo(se(),V())}function zo(e,t){return e.type&4?new yt(t,e,Yt(e,t)):null}function ui(e,t,n,r,i){let s=e.data[t];if(s===null)s=Gv(e,t,n,r,i),jg()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=Ng();s.injectorIndex=o===null?-1:o.injectorIndex}return An(s,!0),s}function Gv(e,t,n,r,i){let s=rc(),o=ic(),l=o?s:s&&s.parent,a=e.data[t]=Qv(e,l,n,t,r,i);return Wv(e,a,s,o),a}function Wv(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Qv(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,l=0;return Vg()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var VC=new RegExp(`^(\\d+)*(${Am}|${Dm})*(.*)`),Yv=()=>null;function Wl(e,t){return Yv(e,t)}var Kv=class{},Id=class{},Jv=class{resolveComponentFactory(e){throw new w(917,!1)}},jn=class{static NULL=new Jv},Bo=class{},Dd=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Xv()}return e})();function Xv(){let e=V(),t=se(),n=Re(t.index,e);return(tt(n)?n:e)[U]}var e0=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>null})}return e})(),Ii={},t0=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Ii,n);return r!==Ii||t===Ii?r:this.parentInjector.get(e,t,n)}};function zr(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(t!==null)for(let o=0;o<t.length;o++){let l=t[o];if(typeof l=="number")s=l;else if(s==1)i=vl(i,l);else if(s==2){let a=l,u=t[++o];r=vl(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function F(e,t=0){let n=V();if(n===null)return b(e,t);let r=se();return Pc(r,n,re(e),t)}function Ad(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let l=o,a=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[l,a,u]=c.resolveHostDirectives(o);break}i0(e,t,n,l,s,a,u)}s!==null&&r!==null&&n0(n,r,s)}function n0(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let s=n[t[i+1]];if(s==null)throw new w(-301,!1);r.push(t[i],s)}}function r0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function i0(e,t,n,r,i,s,o){let l=r.length,a=!1;for(let f=0;f<l;f++){let h=r[f];!a&&$e(h)&&(a=!0,r0(e,n,f)),us(Rr(n,t),e,h.type)}c0(n,e.data.length,l);for(let f=0;f<l;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=ld(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let f=0;f<l;f++){let h=r[f];if(n.mergedAttrs=Ht(n.mergedAttrs,h.hostAttrs),o0(e,n,t,d,h),u0(d,h,i),o!==null&&o.has(h)){let[m,v]=o.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,v+n.directiveStart])}else(s===null||!s.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}s0(e,n,s)}function s0(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Ql(0,t,i,r),Ql(1,t,i,r),Kl(t,r,!1);else{let s=n.get(i);Yl(0,t,s,r),Yl(1,t,s,r),Kl(t,r,!0)}}}function Ql(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(r),Vd(t,s)}}function Yl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o=i[s],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[o]??=[],l[o].push(r,s),Vd(t,o)}}function Vd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Kl(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||ko(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){o??=[],o.push(a,r[l+1]);break}}else if(n&&s.hasOwnProperty(a)){let u=s[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(o)}function o0(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Nt(i.type,!0)),o=new Fn(s,$e(i),F,null);e.blueprint[r]=o,n[r]=o,l0(e,t,r,ld(e,n,i.hostVars,wt),i)}function l0(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let l=~t.index;a0(o)!=l&&o.push(l),o.push(n,r,s)}}function a0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function u0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;$e(t)&&(n[""]=e)}}function c0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Uo(e,t,n,r,i,s,o,l){let a=t[C],u=a.consts,c=jt(u,o),d=ui(a,e,n,r,c);return s&&Ad(a,t,d,jt(u,l),i),d.mergedAttrs=Ht(d.mergedAttrs,d.attrs),d.attrs!==null&&zr(d,d.attrs,!1),d.mergedAttrs!==null&&zr(d,d.mergedAttrs,!0),a.queries!==null&&a.queries.elementStart(a,d),d}function Zo(e,t){Cc(e,t),qu(t)&&e.queries.elementEnd(t)}function d0(e,t,n,r,i,s){let o=t.consts,l=jt(o,i),a=ui(t,e,n,r,l);if(a.mergedAttrs=Ht(a.mergedAttrs,a.attrs),s!=null){let u=jt(o,s);a.localNames=[];for(let c=0;c<u.length;c+=2)a.localNames.push(u[c],-1)}return a.attrs!==null&&zr(a,a.attrs,!1),a.mergedAttrs!==null&&zr(a,a.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,a),a}function Nd(e){return f0(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function h0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function f0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Jt(e,t,n){if(n===wt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function dr(e,t,n){return function r(i){let s=qt(e)?Re(e.index,t):t;Ho(s,5);let o=t[oe],l=Jl(t,o,n,i),a=r.__ngNextListenerFn__;for(;a;)l=Jl(t,o,a,i)&&l,a=a.__ngNextListenerFn__;return l}}function Jl(e,t,n,r){let i=P(null);try{return H(6,t,n),n(r)!==!1}catch(s){return kv(e,s),!1}finally{H(7,t,n),P(i)}}function Rd(e,t,n,r,i,s,o,l){let a=Dn(e),u=!1,c=null;if(!r&&a&&(c=g0(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=Le(e,n),f=r?r(d):d;Rm(n,f,s,l);let h=i.listen(f,s,l);if(!p0(s)){let g=r?m=>r(Ne(m[e.index])):e.index;Fd(g,t,n,s,l,h,!1)}}return u}function p0(e){return e.startsWith("animation")||e.startsWith("transition")}function g0(e,t,n,r){let i=e.cleanup;if(i!=null)for(let s=0;s<i.length-1;s+=2){let o=i[s];if(o===n&&i[s+1]===r){let l=t[Tr],a=i[s+2];return l&&l.length>a?l[a]:null}typeof o=="string"&&(s+=2)}return null}function Fd(e,t,n,r,i,s,o){let l=t.firstCreatePass?Xu(t):null,a=Ju(n),u=a.length;a.push(i,s),l&&l.push(r,e,u,(u+1)*(o?-1:1))}function Xl(e,t,n,r,i,s){let o=t[n],l=t[C],a=l.data[n].outputs[r],u=o[a].subscribe(s);Fd(e.index,l,t,i,s,u,!0)}var _s=Symbol("BINDING"),m0=class extends jn{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Cn(e);return new Ld(t,this.ngModule)}};function y0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&si.SignalBased)!==0};return i&&(s.transform=i),s})}function v0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function b0(e,t,n){let r=t instanceof Be?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new t0(n,r):n}function _0(e){let t=e.get(Bo,null);if(t===null)throw new w(407,!1);let n=e.get(e0,null),r=e.get(Rn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function w0(e,t){let n=C0(e);return td(t,n,n==="svg"?Gu:n==="math"?Sg:null)}function C0(e){return(e.selectors[0][0]||"div").toLowerCase()}var Ld=class extends Id{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=y0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=v0(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Ry(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){H(22);let o=P(null);try{let l=this.componentDef,a=x0(n,l,s,i),u=b0(l,r||this.ngModule,e),c=_0(u),d=c.rendererFactory.createRenderer(null,l),f=n?fv(d,n,l.encapsulation,u):w0(l,d),h=s?.some(ea)||i?.some(v=>typeof v!="function"&&v.bindings.some(ea)),g=So(null,a,null,512|od(l),null,null,c,d,u,null,qc(f,u,!0));g[ue]=f,mo(g);let m=null;try{let v=Uo(ue,g,2,"#host",()=>a.directiveRegistry,!0,0);rd(d,f,v),zt(f,g),li(a,g,v),xo(a,v,g),Zo(a,v),t!==void 0&&S0(v,this.ngContentSelectors,t),m=Re(v.index,g),g[oe]=m[oe],jo(a,g,null)}catch(v){throw m!==null&&ds(m),ds(g),v}finally{H(23),yo()}return new O0(this.componentType,g,!!h)}finally{P(o)}}};function x0(e,t,n,r){let i=e?["ng-version","20.3.15"]:Fy(t.selectors[0]),s=null,o=null,l=0;if(n)for(let u of n)l+=u[_s].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let c=r[u];if(typeof c!="function")for(let d of c.bindings){l+=d[_s].requiredVars;let f=u+1;d.create&&(d.targetIdx=f,(s??=[]).push(d)),d.update&&(d.targetIdx=f,(o??=[]).push(d))}}let a=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=ju(c);a.push(d)}return Oo(0,null,k0(s,o),1,l,a,null,null,null,[i],null)}function k0(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function ea(e){let t=e[_s].kind;return t==="input"||t==="twoWay"}var O0=class extends Kv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Qu(t[C],ue),this.location=Yt(this._tNode,t),this.instance=Re(this._tNode.index,t)[oe],this.hostView=this.changeDetectorRef=new Sn(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Lo(n,r[C],r,e,t);this.previousInputValues.set(e,t);let s=Re(n.index,r);Ho(s,1)}get injector(){return new fn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function S0(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let s=n[i];r.push(s!=null&&s.length?Array.from(s):null)}}var Xt=(()=>{class e{static __NG_ELEMENT_ID__=E0}return e})();function E0(){let e=se();return Hd(e,V())}var T0=Xt,jd=class extends T0{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Yt(this._hostTNode,this._hostLView)}get injector(){return new fn(this._hostTNode,this._hostLView)}get parentInjector(){let e=wo(this._hostTNode,this._hostLView);if(kc(e)){let t=Nr(e,this._hostLView),n=Vr(e),r=t[C].data[n+8];return new fn(r,t)}else return new fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=ta(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-ae}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=Wl(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,Gl(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let l=e&&!rm(e),a;if(l)a=t;else{let m=t||{};a=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef,s=m.directives,o=m.bindings}let u=l?e:new Ld(Cn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let m=(l?c:this.parentInjector).get(Be,null);m&&(i=m)}let d=Cn(u.componentType??{}),f=Wl(this._lContainer,d?.id??null),h=f?.firstChild??null,g=u.create(c,r,h,i,s,o);return this.insertImpl(g.hostView,a,Gl(this._hostTNode,f)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Tg(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let l=r[ee],a=new jd(l,l[Ee],l[ee]);a.detach(a.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return Bv(s,r,i,n),e.attachToViewContainerRef(),Nu(Di(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=ta(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=bs(this._lContainer,t);n&&(Sr(Di(this._lContainer),t),md(n[C],n))}detach(e){let t=this._adjustIndex(e,-1),n=bs(this._lContainer,t);return n&&Sr(Di(this._lContainer),t)!=null?new Sn(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function ta(e){return e[Ir]}function Di(e){return e[Ir]||(e[Ir]=[])}function Hd(e,t){let n,r=t[e.index];return Ge(r)?n=r:(n=Md(r,t,null,e),t[e.index]=n,Eo(t,n)),P0(n,t,e,r),new jd(n,e,t)}function M0(e,t){let n=e[U],r=n.createComment(""),i=Le(t,e),s=n.parentNode(i);return Fr(n,s,r,n.nextSibling(i),!1),r}var P0=A0,I0=()=>!1;function D0(e,t,n){return I0(e,t,n)}function A0(e,t,n,r){if(e[ft])return;let i;n.type&8?i=Ne(r):i=M0(t,n),e[ft]=i}var V0=class zd{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new zd(this.queryList)}setDirty(){this.queryList.setDirty()}},N0=class Bd{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){let o=n.getByIndex(s),l=this.queries[o.indexInDeclarationView];i.push(l.clone())}return new Bd(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)$o(t,n).matches!==null&&this.queries[n].setDirty()}},R0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=q0(e):this.predicate=e}},F0=class Ud{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,n!==null?n.push(s):n=[s])}return n!==null?new Ud(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},L0=class Zd{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Zd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let s=r[i];this.matchTNodeWithReadOption(t,n,j0(n,s)),this.matchTNodeWithReadOption(t,n,cr(n,t,s,!1,!1))}else r===yt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,cr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Kt||i===Xt||i===yt&&n.type&4)this.addMatch(n.index,-2);else{let s=cr(n,t,i,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function j0(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function H0(e,t){return e.type&11?Yt(e,t):e.type&4?zo(e,t):null}function z0(e,t,n,r){return n===-1?H0(t,e):n===-2?B0(e,t,r):On(e,e[C],n,t)}function B0(e,t,n){if(n===Kt)return Yt(t,e);if(n===yt)return zo(t,e);if(n===Xt)return Hd(t,e)}function $d(e,t,n,r){let i=t[Ze].queries[r];if(i.matches===null){let s=e.data,o=n.matches,l=[];for(let a=0;o!==null&&a<o.length;a+=2){let u=o[a];if(u<0)l.push(null);else{let c=s[u];l.push(z0(t,c,o[a+1],n.metadata.read))}}i.matches=l}return i.matches}function ws(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=$d(e,t,i,n);for(let l=0;l<s.length;l+=2){let a=s[l];if(a>0)r.push(o[l/2]);else{let u=s[l+1],c=t[-a];for(let d=ae;d<c.length;d++){let f=c[d];f[ht]===f[ee]&&ws(f[C],f,u,r)}if(c[Lt]!==null){let d=c[Lt];for(let f=0;f<d.length;f++){let h=d[f];ws(h[C],h,u,r)}}}}}return r}function U0(e,t){return e[Ze].queries[t].queryList}function Z0(e,t,n){let r=new Sm((n&4)===4);return Ig(e,t,r,r.destroy),(t[Ze]??=new N0).queries.push(new V0(r))-1}function $0(e,t,n){let r=J();return r.firstCreatePass&&(G0(r,new R0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Z0(r,V(),t)}function q0(e){return e.split(",").map(t=>t.trim())}function G0(e,t,n){e.queries===null&&(e.queries=new F0),e.queries.track(new L0(t,n))}function $o(e,t){return e.queries.getByIndex(t)}function W0(e,t){let n=e[C],r=$o(n,t);return r.crossesNgTemplate?ws(n,e,t,[]):$d(n,e,r,t)}var Cs=class{},qd=class extends Cs{injector;componentFactoryResolver=new m0(this);instance=null;constructor(e){super();let t=new uo([...e.providers,{provide:Cs,useValue:this},{provide:jn,useValue:this.componentFactoryResolver}],e.parent||ao(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Q0(e,t,n=null){return new qd({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Y0=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Hu(!1,n.type),i=r.length>0?Q0([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(b(Be))})}return e})();function Te(e){return ni(()=>{let t=Gd(e),n=ne(q({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Nc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Y0).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&cd("NgStandalone"),Wd(n);let r=e.dependencies;return n.directiveDefs=na(r,K0),n.pipeDefs=na(r,fg),n.id=t1(n),n})}function K0(e){return Cn(e)||ju(e)}function ci(e){return ni(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function J0(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,l,a;Array.isArray(i)?(l=i[0],s=i[1],o=i[2]??s,a=i[3]||null):(s=i,o=i,l=si.None,a=null),n[s]=[r,l,a],t[s]=o}return n}function X0(e){if(e==null)return ct;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Me(e){return ni(()=>{let t=Gd(e);return Wd(t),t})}function e1(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:J0(e.inputs,t),outputs:X0(e.outputs),debugInfo:null}}function Wd(e){e.features?.forEach(t=>t(e))}function na(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let s=t(i);s!==null&&r.push(s)}return r}:null}function t1(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function n1(e){return Object.getPrototypeOf(e.prototype).constructor}function en(e){let t=n1(e.type),n=!0,r=[e];for(;t;){let i;if($e(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let o=e;o.inputs=Ai(e.inputs),o.declaredInputs=Ai(e.declaredInputs),o.outputs=Ai(e.outputs);let l=i.hostBindings;l&&l1(e,l);let a=i.viewQuery,u=i.contentQueries;if(a&&s1(e,a),u&&o1(e,u),r1(e,i),$p(e.outputs,i.outputs),$e(i)&&i.data.animation){let c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}let s=i.features;if(s)for(let o=0;o<s.length;o++){let l=s[o];l&&l.ngInherit&&l(e),l===en&&(n=!1)}}t=Object.getPrototypeOf(t)}i1(r)}function r1(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function i1(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ht(i.hostAttrs,n=Ht(n,i.hostAttrs))}}function Ai(e){return e===ct?{}:e===he?[]:e}function s1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function o1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function l1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function a1(e,t,n,r,i,s,o,l){if(n.firstCreatePass){e.mergedAttrs=Ht(e.mergedAttrs,e.attrs);let c=e.tView=Oo(2,e,i,s,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),c.queries=n.queries.embeddedTView(e))}l&&(e.flags|=l),An(e,!1);let a=c1(n,t,e,r);vo()&&Ao(n,t,a,e),zt(a,t);let u=Md(a,t,a,e);t[r+ue]=u,Eo(t,u),D0(u,e,t)}function u1(e,t,n,r,i,s,o,l,a,u,c){let d=n+ue,f;return t.firstCreatePass?(f=ui(t,d,4,o||null,l||null),po()&&Ad(t,e,f,jt(t.consts,u),No),Cc(t,f)):f=t.data[d],a1(f,e,t,n,r,i,s,a),Dn(f)&&li(t,e,f),u!=null&&ai(e,f,c),f}function ce(e,t,n,r,i,s,o,l){let a=V(),u=J(),c=jt(u.consts,s);return u1(a,u,e,t,n,r,i,c,void 0,o,l),ce}var c1=d1;function d1(e,t,n,r){return ei(!0),t[U].createComment("")}var h1=new k("");function qo(e){return!!e&&typeof e.then=="function"}function f1(e){return!!e&&typeof e.subscribe=="function"}var Qd=new k(""),Yd=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=_(Qd,{optional:!0})??[];injector=_(ti);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=co(this.injector,i);if(qo(s))n.push(s);else if(f1(s)){let o=new Promise((l,a)=>{s.subscribe({complete:l,error:a})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),p1=new k("");function g1(){If(()=>{let e="";throw new w(600,e)})}function m1(e){return e.isBoundToModule}var y1=10,En=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=_(rt);afterRenderManager=_(Yy);zonelessEnabled=_(_o);rootEffectScheduler=_(tm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new nt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=_(Qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Ce(n=>!n))}constructor(){_(Mo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=_(Be);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=ti.NULL){return this._injector.get(ie).run(()=>{H(10);let s=n instanceof Id;if(!this._injector.get(Yd).done){let f="";throw new w(405,f)}let o;s?o=n:o=this._injector.get(jn).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let l=m1(o)?void 0:this._injector.get(Cs),a=r||o.selector,u=o.create(i,[],a,l),c=u.location.nativeElement,d=u.injector.get(h1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),hr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),H(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(ud.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new w(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Bo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<y1;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!kn(i))continue;let s=r&&!this.zonelessEnabled?0:1;Od(i,s),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>kn(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;hr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(n),this._injector.get(p1,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Go(e,t,n,r){let i=V(),s=Vn();if(Jt(i,s,t)){let o=J(),l=Xr();wv(l,i,e,t,n,r)}return Go}var NC=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function A(e,t,n){let r=V(),i=Vn();if(Jt(r,i,t)){let s=J(),o=Xr();bd(o,r,e,t,r[U],n)}return A}function ra(e,t,n,r,i){Lo(t,e,n,i?"class":"style",r)}function p(e,t,n,r){let i=V(),s=i[C],o=e+ue,l=s.firstCreatePass?Uo(o,i,2,t,No,po(),n,r):s.data[o];if(Ro(l,i,e,t,Jd),Dn(l)){let a=i[C];li(a,i,l),xo(a,l,i)}return r!=null&&ai(i,l),p}function y(){let e=J(),t=se(),n=Fo(t);return e.firstCreatePass&&Zo(e,n),tc(n)&&nc(),ec(),n.classesWithoutHost!=null&&cm(n)&&ra(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&dm(n)&&ra(e,n,V(),n.stylesWithoutHost,!1),y}function z(e,t,n,r){return p(e,t,n,r),y(),z}function Wo(e,t,n,r){let i=V(),s=i[C],o=e+ue,l=s.firstCreatePass?d0(o,s,2,t,n,r):s.data[o];return Ro(l,i,e,t,Jd),r!=null&&ai(i,l),Wo}function Qo(){let e=se(),t=Fo(e);return tc(t)&&nc(),ec(),Qo}function Kd(e,t,n,r){return Wo(e,t,n,r),Qo(),Kd}var Jd=(e,t,n,r,i)=>(ei(!0),td(t[U],r,qg()));function Xd(e,t,n){let r=V(),i=r[C],s=e+ue,o=i.firstCreatePass?Uo(s,r,8,"ng-container",No,po(),t,n):i.data[s];if(Ro(o,r,e,"ng-container",v1),Dn(o)){let l=r[C];li(l,r,o),xo(l,o,r)}return n!=null&&ai(r,o),Xd}function eh(){let e=J(),t=se(),n=Fo(t);return e.firstCreatePass&&Zo(e,n),eh}var v1=(e,t,n,r,i)=>(ei(!0),Cy(t[U],""));function tn(){return V()}function th(e,t,n){let r=V(),i=Vn();if(Jt(r,i,t)){let s=J(),o=Xr();_d(o,r,e,t,r[U],n)}return th}var qn=void 0;function b1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var _1=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qn,"{1} 'at' {0}",qn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b1],Vi={};function Pe(e){let t=w1(e),n=ia(t);if(n)return n;let r=t.split("-")[0];if(n=ia(r),n)return n;if(r==="en")return _1;throw new w(701,!1)}function ia(e){return e in Vi||(Vi[e]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[e]),Vi[e]}var Q=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(Q||{});function w1(e){return e.toLowerCase().replace(/_/g,"-")}var Br="en-US",C1=Br;function x1(e){typeof e=="string"&&(C1=e.toLowerCase().replace(/_/g,"-"))}function E(e,t,n){let r=V(),i=J(),s=se();return rh(i,r,r[U],s,e,t,n),E}function nh(e,t,n){let r=V(),i=J(),s=se();return(s.type&3||n)&&Rd(s,i,r,n,r[U],e,t,dr(s,r,t)),nh}function rh(e,t,n,r,i,s,o){let l=!0,a=null;if((r.type&3||o)&&(a??=dr(r,t,s),Rd(r,e,t,o,n,i,s,a)&&(l=!1)),l){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let d=0;d<c.length;d+=2){let f=c[d],h=c[d+1];a??=dr(r,t,s),Xl(r,t,f,h,i,a)}if(u&&u.length)for(let d of u)a??=dr(r,t,s),Xl(r,t,d,i,i,a)}}function D(e=1){return Zg(e)}function k1(e,t,n){$0(e,t,n)}function O1(e){let t=V(),n=J(),r=oc();go(r+1);let i=$o(n,r);if(e.dirty&&Eg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=W0(t,r);e.reset(s,km),e.notifyOnChanges()}return!0}return!1}function S1(){return U0(V(),oc())}function Gn(e,t){return e<<17|t<<2}function vt(e){return e>>17&32767}function E1(e){return(e&2)==2}function T1(e,t){return e&131071|t<<17}function xs(e){return e|2}function Bt(e){return(e&131068)>>2}function Ni(e,t){return e&-131069|t<<2}function M1(e){return(e&1)===1}function ks(e){return e|1}function P1(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,l=vt(o),a=Bt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||In(d,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let d=vt(e[l+1]);e[r+1]=Gn(d,l),d!==0&&(e[d+1]=Ni(e[d+1],r)),e[l+1]=T1(e[l+1],r)}else e[r+1]=Gn(l,0),l!==0&&(e[l+1]=Ni(e[l+1],r)),l=r;else e[r+1]=Gn(a,0),l===0?l=r:e[a+1]=Ni(e[a+1],r),a=r;u&&(e[r+1]=xs(e[r+1])),sa(e,c,r,!0),sa(e,c,r,!1),I1(t,c,e,r,s),o=Gn(l,a),s?t.classBindings=o:t.styleBindings=o}function I1(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&In(s,t)>=0&&(n[r+1]=ks(n[r+1]))}function sa(e,t,n,r){let i=e[n+1],s=t===null,o=r?vt(i):Bt(i),l=!1;for(;o!==0&&(l===!1||s);){let a=e[o],u=e[o+1];D1(a,t)&&(l=!0,e[o+1]=r?ks(u):xs(u)),o=r?vt(u):Bt(u)}l&&(e[n+1]=r?xs(i):ks(i))}function D1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?In(e,t)>=0:!1}function ih(e,t,n){return sh(e,t,n,!1),ih}function Oe(e,t){return sh(e,t,null,!0),Oe}function sh(e,t,n,r){let i=V(),s=J(),o=Lg(2);if(s.firstUpdatePass&&V1(s,e,o,r),t!==wt&&Jt(i,o,t)){let l=s.data[Wt()];j1(s,l,i,i[U],e,i[o+1]=H1(t,n),r,o)}}function A1(e,t){return t>=e.expandoStartIndex}function V1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[Wt()],o=A1(e,n);z1(s,r)&&t===null&&!o&&(t=!1),t=N1(i,s,t,r),P1(i,s,t,n,o,r)}}function N1(e,t,n,r){let i=Bg(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ri(null,e,t,n,r),n=Tn(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Ri(i,e,t,n,r),s===null){let l=R1(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Ri(null,e,t,l[1],r),l=Tn(l,t.attrs,r),F1(e,t,r,l))}else s=L1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function R1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Bt(r)!==0)return e[vt(r)]}function F1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[vt(i)]=r}function L1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=Tn(r,o,n)}return Tn(r,t.attrs,n)}function Ri(e,t,n,r,i){let s=null,o=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<o&&(s=t[l],r=Tn(r,s.hostAttrs,i),s!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function Tn(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?i=o:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),dg(e,o,n?!0:t[++s]))}return e===void 0?null:e}function j1(e,t,n,r,i,s,o,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=M1(u)?oa(a,t,n,i,Bt(u),o):void 0;if(!Ur(c)){Ur(s)||E1(u)&&(s=oa(a,null,n,i,l,o));let d=Wu(Wt(),n);hv(r,o,d,i,s)}}function oa(e,t,n,r,i,s){let o=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,d=c===null,f=n[i+1];f===wt&&(f=d?he:void 0);let h=d?ki(f,r):c===r?f:void 0;if(u&&!Ur(h)&&(h=ki(a,r)),Ur(h)&&(l=h,o))return l;let g=e[i+1];i=o?vt(g):Bt(g)}if(t!==null){let a=s?t.residualClasses:t.residualStyles;a!=null&&(l=ki(a,r))}return l}function Ur(e){return e!==void 0}function H1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Vt(st(e)))),e}function z1(e,t){return(e.flags&(t?8:16))!==0}function N(e,t=""){let n=V(),r=J(),i=e+ue,s=r.firstCreatePass?ui(r,i,1,t,null):r.data[i],o=B1(r,n,s,t,e);n[i]=o,vo()&&Ao(r,n,o,s),An(s,!1)}var B1=(e,t,n,r,i)=>(ei(!0),_y(t[U],r));function U1(e,t,n,r=""){return Jt(e,Vn(),n)?t+Qr(n)+r:wt}function ke(e){return Mn("",e),ke}function Mn(e,t,n){let r=V(),i=U1(r,e,t,n);return i!==wt&&Z1(r,Wt(),i),Mn}function Z1(e,t,n){let r=Wu(t,e);wy(e[U],r,n)}function Yo(e,t,n){pc(t)&&(t=t());let r=V(),i=Vn();if(Jt(r,i,t)){let s=J(),o=Xr();bd(o,r,e,t,r[U],n)}return Yo}function oh(e,t){let n=pc(e);return n&&e.set(t),n}function Ko(e,t){let n=V(),r=J(),i=se();return rh(r,n,n[U],i,e,t),Ko}function $1(e,t,n){let r=J();if(r.firstCreatePass){let i=$e(e);Os(n,r.data,r.blueprint,i,!0),Os(t,r.data,r.blueprint,i,!1)}}function Os(e,t,n,r,i){if(e=re(e),Array.isArray(e))for(let s=0;s<e.length;s++)Os(e[s],t,n,r,i);else{let s=J(),o=V(),l=se(),a=Ft(e)?e:re(e.provide),u=Uu(e),c=l.providerIndexes&1048575,d=l.directiveStart,f=l.providerIndexes>>20;if(Ft(e)||!e.multi){let h=new Fn(u,i,F,null),g=Li(a,t,i?c:c+f,d);g===-1?(us(Rr(l,o),s,a),Fi(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(h),o.push(h)):(n[g]=h,o[g]=h)}else{let h=Li(a,t,c+f,d),g=Li(a,t,c,c+f),m=h>=0&&n[h],v=g>=0&&n[g];if(i&&!v||!i&&!m){us(Rr(l,o),s,a);let I=W1(i?G1:q1,n.length,i,r,u,e);!i&&v&&(n[g].providerFactory=I),Fi(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(I),o.push(I)}else{let I=lh(n[i?g:h],u,!i&&r);Fi(s,e,h>-1?h:g,I)}!i&&r&&v&&n[g].componentProviders++}}}function Fi(e,t,n,r){let i=Ft(t),s=bg(t);if(i||s){let o=(s?re(t.useClass):t).prototype.ngOnDestroy;if(o){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let a=l.indexOf(n);a===-1?l.push(n,[r,o]):l[a+1].push(r,o)}else l.push(n,o)}}}function lh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Li(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function q1(e,t,n,r,i){return Ss(this.multi,[])}function G1(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let l=this.providerFactory.componentProviders,a=On(r,r[C],this.providerFactory.index,i);o=a.slice(0,l),Ss(s,o);for(let u=l;u<a.length;u++)o.push(a[u])}else o=[],Ss(s,o);return o}function Ss(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function W1(e,t,n,r,i,s){let o=new Fn(e,n,F,null);return o.multi=[],o.index=t,o.componentProviders=0,lh(o,i,r&&!n),o}function Jo(e,t=[]){return n=>{n.providersResolver=(r,i)=>$1(r,i?i(e):e,t)}}var Q1=(()=>{class e{zone=_(ie);changeDetectionScheduler=_(Rn);applicationRef=_(En);applicationErrorHandler=_(rt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Y1=new k("",{factory:()=>!1});function ah({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ie(ne(q({},uh()),{scheduleInRootZone:n})),[{provide:ie,useFactory:e},{provide:Rt,multi:!0,useFactory:()=>{let r=_(Q1,{optional:!0});return()=>r.initialize()}},{provide:Rt,multi:!0,useFactory:()=>{let r=_(J1);return()=>{r.initialize()}}},t===!0?{provide:gc,useValue:!0}:[],{provide:mc,useValue:n??dd},{provide:rt,useFactory:()=>{let r=_(ie),i=_(Be),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(Nn),s.handleError(o))})}}}]}function K1(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=ah({ngZoneFactory:()=>{let i=uh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&cd("NgZone_CoalesceEvent"),new ie(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Yr([{provide:Y1,useValue:!0},{provide:_o,useValue:!1},r])}function uh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var J1=(()=>{class e{subscription=new Ae;initialized=!1;zone=_(ie);pendingTasks=_(Qt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X1=(()=>{class e{applicationErrorHandler=_(rt);appRef=_(En);taskService=_(Qt);ngZone=_(ie);zonelessEnabled=_(_o);tracing=_(Mo,{optional:!0});disableScheduling=_(gc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ae;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(jr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(_(mc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gy||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?zl:hd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(jr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,zl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eb(){return typeof $localize<"u"&&$localize.locale||Br}var Xo=new k("",{providedIn:"root",factory:()=>_(Xo,{optional:!0,skipSelf:!0})||eb()});function xt(e){return Bp(e)}function ji(e,t){return Tf(e,t?.equal)}var RC=class{[De];constructor(e){this[De]=e}destroy(){this[De].destroy()}},tb=new k("");tb.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new w(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new w(204,!1)};var Es=new k(""),nb=new k("");function on(e){return!e.moduleRef}function rb(e){let t=on(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ie);return n.run(()=>{on(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rt),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),on(e)){let s=()=>t.destroy(),o=e.platformInjector.get(Es);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(Es);o.add(s),e.moduleRef.onDestroy(()=>{hr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return sb(r,n,()=>{let s=t.get(Qt),o=s.add(),l=t.get(Yd);return l.runInitializers(),l.donePromise.then(()=>{let a=t.get(Xo,Br);if(x1(a||Br),!t.get(nb,!0))return on(e)?t.get(En):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(on(e)){let u=t.get(En);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return ib?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var ib;function sb(e,t,n){try{let r=n();return qo(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var fr=null;function ob(e=[],t){return ti.create({name:t,providers:[{provide:lo,useValue:"platform"},{provide:Es,useValue:new Set([()=>fr=null])},...e]})}function lb(e=[]){if(fr)return fr;let t=ob(e);return fr=t,g1(),ab(t),t}function ab(e){let t=e.get(Bc,null);co(e,()=>{t?.forEach(n=>n())})}var ub=(()=>{class e{static __NG_ELEMENT_ID__=cb}return e})();function cb(e){return db(se(),V(),(e&16)===16)}function db(e,t,n){if(qt(e)&&!n){let r=Re(e.index,t);return new Sn(r,r)}else if(e.type&175){let r=t[Ve];return new Sn(r,t)}return null}var hb=class{constructor(){}supports(e){return Nd(e)}create(e){return new pb(e)}},fb=(e,t)=>t,pb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||fb}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){let s=!n||t&&t.currentIndex<aa(n,r,i)?t:n,o=aa(s,r,i),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let a=o-r,u=l-r;if(a!=u){for(let d=0;d<a;d++){let f=d<i.length?i[d]:i[d]=0,h=f+d;u<=h&&h<a&&(i[d]=f+1)}let c=s.previousIndex;i[c]=u-a}}o!==l&&e(s,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)e(t)}diff(e){if(e==null&&(e=[]),!Nd(e))throw new w(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._itHead,n=!1,r,i,s;if(Array.isArray(e)){this.length=e.length;for(let o=0;o<this.length;o++)i=e[o],s=this._trackByFn(o,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,o),n=!0):(n&&(t=this._verifyReinsertion(t,i,s,o)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else r=0,h0(e,o=>{s=this._trackByFn(r,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,r),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,r)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new gb(t,n),i,r)),e}_verifyReinsertion(e,t,n,r){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let t=e._next;this._addToRemovals(this._unlink(e)),e=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,i=e._nextRemoved;return r===null?this._removalsHead=i:r._nextRemoved=i,i===null?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){let r=t===null?this._itHead:t._next;return e._next=r,e._prev=t,r===null?this._itTail=e:r._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new la),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let t=e._prev,n=e._next;return t===null?this._itHead=n:t._next=n,n===null?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new la),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},gb=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,t){this.item=e,this.trackById=t}},mb=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;n!==null;n=n._nextDup)if((t===null||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let t=e._prevDup,n=e._nextDup;return t===null?this._head=n:t._nextDup=n,n===null?this._tail=t:n._prevDup=t,this._head===null}},la=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new mb,this.map.set(t,n)),n.add(e)}get(e,t){let n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){let t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function aa(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function ua(){return new ch([new hb])}var ch=(()=>{class e{factories;static \u0275prov=T({token:e,providedIn:"root",factory:ua});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=_(e,{optional:!0,skipSelf:!0});return e.create(n,r||ua())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function yb(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;H(8);try{let s=i?.injector??lb(r),o=[ah({}),{provide:Rn,useExisting:X1},Yg,...n||[]],l=new qd({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return rb({r3Injector:l.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{H(9)}}function vb(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var bb={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function _b(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function wb(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Hi;function Cb(e,t){if(!Hi){let n=Element.prototype;Hi=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Hi.call(e,t):!1}function xb(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[_b(r)]=[n,i]}),t}function kb(e,t){return t.get(jn).resolveComponentFactory(e).inputs}function Ob(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((s,o)=>s==="*"?(i=o,!0):!1);for(let s=0,o=n.length;s<o;++s){let l=n[s],a=Sb(l,t,i);a!==-1&&r[a].push(l)}return r}function Sb(e,t,n){let r=n;return wb(e)&&t.some((i,s)=>i!=="*"&&Cb(e,i)?(r=s,!0):!1),r}var Eb=10,Tb=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(jn).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Mb(this.componentFactory,e,this.inputMap)}},Mb=class{componentFactory;injector;inputMap;eventEmitters=new ru(1);events=this.eventEmitters.pipe(Ou(e=>jp(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ie),this.appRef=this.injector.get(En),this.cdScheduler=t.get(Rn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=bb.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Eb))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),Zv(this.componentRef.hostView)&&($v(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=ti.create({providers:[],parent:this.injector}),n=Ob(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new Y(s=>{let o=i.subscribe(l=>s.next({name:r,value:l}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Pb=class extends HTMLElement{ngElementEventsSubscription=null};function be(e,t){let n=kb(e,t.injector),r=t.strategyFactory||new Tb(e,t.injector),i=xb(n);class s extends Pb{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[d,f]=i[l];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:o,transform:l})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a,l)},configurable:!0,enumerable:!0})}),s}var dh=null;function Zr(){return dh}function Ib(e){dh??=e}var Db=class{},te=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(te||{}),R=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(R||{}),le=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(le||{}),Je={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ab(e){return Pe(e)[Q.LocaleId]}function Vb(e,t,n){let r=Pe(e),i=[r[Q.DayPeriodsFormat],r[Q.DayPeriodsStandalone]],s=ge(i,t);return ge(s,n)}function Nb(e,t,n){let r=Pe(e),i=[r[Q.DaysFormat],r[Q.DaysStandalone]],s=ge(i,t);return ge(s,n)}function Rb(e,t,n){let r=Pe(e),i=[r[Q.MonthsFormat],r[Q.MonthsStandalone]],s=ge(i,t);return ge(s,n)}function Fb(e,t){let n=Pe(e)[Q.Eras];return ge(n,t)}function Wn(e,t){let n=Pe(e);return ge(n[Q.DateFormat],t)}function Qn(e,t){let n=Pe(e);return ge(n[Q.TimeFormat],t)}function Yn(e,t){let n=Pe(e)[Q.DateTimeFormat];return ge(n,t)}function di(e,t){let n=Pe(e),r=n[Q.NumberSymbols][t];if(typeof r>"u"){if(t===Je.CurrencyDecimal)return n[Q.NumberSymbols][Je.Decimal];if(t===Je.CurrencyGroup)return n[Q.NumberSymbols][Je.Group]}return r}function hh(e){if(!e[Q.ExtraData])throw new w(2303,!1)}function Lb(e){let t=Pe(e);return hh(t),(t[Q.ExtraData][2]||[]).map(n=>typeof n=="string"?zi(n):[zi(n[0]),zi(n[1])])}function jb(e,t,n){let r=Pe(e);hh(r);let i=[r[Q.ExtraData][0],r[Q.ExtraData][1]],s=ge(i,t)||[];return ge(s,n)||[]}function ge(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function zi(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Hb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kn={},zb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Bb(e,t,n,r){let i=Kb(e);t=je(n,t)||t;let s=[],o;for(;t;)if(o=zb.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let l=i.getTimezoneOffset();r&&(l=ph(r,l),i=Yb(i,r));let a="";return s.forEach(u=>{let c=Wb(u);a+=c?c(i,n,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}function $r(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function je(e,t){let n=Ab(e);if(Kn[n]??={},Kn[n][t])return Kn[n][t];let r="";switch(t){case"shortDate":r=Wn(e,le.Short);break;case"mediumDate":r=Wn(e,le.Medium);break;case"longDate":r=Wn(e,le.Long);break;case"fullDate":r=Wn(e,le.Full);break;case"shortTime":r=Qn(e,le.Short);break;case"mediumTime":r=Qn(e,le.Medium);break;case"longTime":r=Qn(e,le.Long);break;case"fullTime":r=Qn(e,le.Full);break;case"short":let i=je(e,"shortTime"),s=je(e,"shortDate");r=Jn(Yn(e,le.Short),[i,s]);break;case"medium":let o=je(e,"mediumTime"),l=je(e,"mediumDate");r=Jn(Yn(e,le.Medium),[o,l]);break;case"long":let a=je(e,"longTime"),u=je(e,"longDate");r=Jn(Yn(e,le.Long),[a,u]);break;case"full":let c=je(e,"fullTime"),d=je(e,"fullDate");r=Jn(Yn(e,le.Full),[c,d]);break}return r&&(Kn[n][t]=r),r}function Jn(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function we(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.slice(o.length-t)),s+o}function Ub(e,t){return we(e,3).substring(0,t)}function $(e,t,n=0,r=!1,i=!1){return function(s,o){let l=Zb(e,s);if((n>0||l>-n)&&(l+=n),e===3)l===0&&n===-12&&(l=12);else if(e===6)return Ub(l,t);let a=di(o,Je.MinusSign);return we(l,t,a,r,i)}}function Zb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new w(2301,!1)}}function j(e,t,n=te.Format,r=!1){return function(i,s){return $b(i,s,e,t,n,r)}}function $b(e,t,n,r,i,s){switch(n){case 2:return Rb(t,i,r)[e.getMonth()];case 1:return Nb(t,i,r)[e.getDay()];case 0:let o=e.getHours(),l=e.getMinutes();if(s){let u=Lb(t),c=jb(t,i,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,m=o>=h.hours&&l>=h.minutes,v=o<g.hours||o===g.hours&&l<g.minutes;if(h.hours<g.hours){if(m&&v)return!0}else if(m||v)return!0}else if(f.hours===o&&f.minutes===l)return!0;return!1});if(d!==-1)return c[d]}return Vb(t,i,r)[o<12?0:1];case 3:return Fb(t,r)[e.getFullYear()<=0?0:1];default:let a=n;throw new w(2302,!1)}}function Xn(e){return function(t,n,r){let i=-1*r,s=di(n,Je.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+we(o,2,s)+we(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+we(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+we(o,2,s)+":"+we(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+we(o,2,s)+":"+we(Math.abs(i%60),2,s);default:throw new w(2310,!1)}}}var qb=0,pr=4;function Gb(e){let t=$r(e,qb,1).getDay();return $r(e,0,1+(t<=pr?pr:pr+7)-t)}function fh(e){let t=e.getDay(),n=t===0?-3:pr-t;return $r(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Bi(e,t=!1){return function(n,r){let i;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();i=1+Math.floor((o+s)/7)}else{let s=fh(n),o=Gb(s.getFullYear()),l=s.getTime()-o.getTime();i=1+Math.round(l/6048e5)}return we(i,e,di(r,Je.MinusSign))}}function er(e,t=!1){return function(n,r){let i=fh(n).getFullYear();return we(i,e,di(r,Je.MinusSign),t)}}var Ui={};function Wb(e){if(Ui[e])return Ui[e];let t;switch(e){case"G":case"GG":case"GGG":t=j(3,R.Abbreviated);break;case"GGGG":t=j(3,R.Wide);break;case"GGGGG":t=j(3,R.Narrow);break;case"y":t=$(0,1,0,!1,!0);break;case"yy":t=$(0,2,0,!0,!0);break;case"yyy":t=$(0,3,0,!1,!0);break;case"yyyy":t=$(0,4,0,!1,!0);break;case"Y":t=er(1);break;case"YY":t=er(2,!0);break;case"YYY":t=er(3);break;case"YYYY":t=er(4);break;case"M":case"L":t=$(1,1,1);break;case"MM":case"LL":t=$(1,2,1);break;case"MMM":t=j(2,R.Abbreviated);break;case"MMMM":t=j(2,R.Wide);break;case"MMMMM":t=j(2,R.Narrow);break;case"LLL":t=j(2,R.Abbreviated,te.Standalone);break;case"LLLL":t=j(2,R.Wide,te.Standalone);break;case"LLLLL":t=j(2,R.Narrow,te.Standalone);break;case"w":t=Bi(1);break;case"ww":t=Bi(2);break;case"W":t=Bi(1,!0);break;case"d":t=$(2,1);break;case"dd":t=$(2,2);break;case"c":case"cc":t=$(7,1);break;case"ccc":t=j(1,R.Abbreviated,te.Standalone);break;case"cccc":t=j(1,R.Wide,te.Standalone);break;case"ccccc":t=j(1,R.Narrow,te.Standalone);break;case"cccccc":t=j(1,R.Short,te.Standalone);break;case"E":case"EE":case"EEE":t=j(1,R.Abbreviated);break;case"EEEE":t=j(1,R.Wide);break;case"EEEEE":t=j(1,R.Narrow);break;case"EEEEEE":t=j(1,R.Short);break;case"a":case"aa":case"aaa":t=j(0,R.Abbreviated);break;case"aaaa":t=j(0,R.Wide);break;case"aaaaa":t=j(0,R.Narrow);break;case"b":case"bb":case"bbb":t=j(0,R.Abbreviated,te.Standalone,!0);break;case"bbbb":t=j(0,R.Wide,te.Standalone,!0);break;case"bbbbb":t=j(0,R.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":t=j(0,R.Abbreviated,te.Format,!0);break;case"BBBB":t=j(0,R.Wide,te.Format,!0);break;case"BBBBB":t=j(0,R.Narrow,te.Format,!0);break;case"h":t=$(3,1,-12);break;case"hh":t=$(3,2,-12);break;case"H":t=$(3,1);break;case"HH":t=$(3,2);break;case"m":t=$(4,1);break;case"mm":t=$(4,2);break;case"s":t=$(5,1);break;case"ss":t=$(5,2);break;case"S":t=$(6,1);break;case"SS":t=$(6,2);break;case"SSS":t=$(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Xn(0);break;case"ZZZZZ":t=Xn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Xn(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Xn(2);break;default:return null}return Ui[e]=t,t}function ph(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Qb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Yb(e,t,n){let r=e.getTimezoneOffset(),i=ph(t,r);return Qb(e,-1*(i-r))}function Kb(e){if(ca(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,s=1,o=1]=e.split("-").map(l=>+l);return $r(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Hb))return Jb(r)}let t=new Date(e);if(!ca(t))throw new w(2311,!1);return t}function Jb(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,l,a,u),t}function ca(e){return e instanceof Date&&!isNaN(e.valueOf())}var Xb=class{$implicit;ngForOf;index;count;constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,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}},hi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,s,o)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Xb(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,o),da(l,i)}});for(let i=0,s=r.length;i<s;i++){let o=r.get(i).context;o.index=i,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let s=r.get(i.currentIndex);da(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt),F(ch))};static \u0275dir=Me({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function da(e,t){e.context.$implicit=t.item}var nn=(()=>{class e{_viewContainer;_context=new e_;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ha(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ha(n,!1),this._elseTemplateRef=n,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt))};static \u0275dir=Me({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),e_=class{$implicit=null;ngIf=null};function ha(e,t){if(e&&!e.createEmbeddedView)throw new w(2020,!1)}var t_=class{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},gh=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Me({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),n_=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new t_(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt),F(gh,9))};static \u0275dir=Me({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function r_(e,t){return new w(2100,!1)}var i_="mediumDate",s_=new k(""),o_=new k(""),mh=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,s){if(n==null||n===""||n!==n)return null;try{let o=r??this.defaultOptions?.dateFormat??i_,l=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bb(n,o,s||this.locale,l)}catch(o){throw r_(e,o.message)}}static \u0275fac=function(n){return new(n||e)(F(Xo,16),F(s_,24),F(o_,24))};static \u0275pipe=e1({name:"date",type:e,pure:!0})}return e})(),ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({})}return e})();function yh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,s]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}var vh=class{},bh="browser";function l_(e){return e===bh}var _h=class{_doc;constructor(e){this._doc=e}manager},Ts=(()=>{class e extends _h{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,s){return n.addEventListener(r,i,s),()=>this.removeEventListener(n,r,i,s)}removeEventListener(n,r,i,s){return n.removeEventListener(r,i,s)}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Ms=new k(""),wh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this});let i=n.filter(o=>!(o instanceof Ts));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof Ts);s&&this._plugins.push(s)}addEventListener(n,r,i,s){return this._findPluginFor(r).addEventListener(n,r,i,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(b(Ms),b(ie))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Zi="ng-app-id";function fa(e){for(let t of e)t.remove()}function pa(e,t){let n=t.createElement("style");return n.textContent=e,n}function a_(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Zi}="${t}"],link[${Zi}="${t}"]`);if(i)for(let s of i)s.removeAttribute(Zi),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&n.set(s.textContent,{usage:0,elements:[s]})}function Ps(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ch=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,s={}){this.doc=n,this.appId=r,this.nonce=i,a_(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,pa);r?.forEach(i=>this.addUsage(i,this.external,Ps))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let s=r.get(n);s?s.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(fa(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])fa(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,pa(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Ps(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(b(Fe),b(zc),b(Uc,8),b(Co))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),$i={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"},el=/%COMP%/g,xh="%COMP%",u_=`_nghost-${xh}`,c_=`_ngcontent-${xh}`,d_=!0,h_=new k("",{providedIn:"root",factory:()=>d_});function f_(e){return c_.replace(el,e)}function p_(e){return u_.replace(el,e)}function kh(e,t){return t.map(n=>n.replace(el,e))}var ga=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,l,a=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=l,this.nonce=a,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new tl(n,o,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof ya?i.applyToHost(n):i instanceof Is&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case mt.Emulated:s=new ya(a,u,r,this.appId,c,o,l,d,f);break;case mt.ShadowDom:return new g_(a,u,n,r,o,l,this.nonce,d,f);default:s=new Is(a,u,r,c,o,l,d,f);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(b(wh),b(Ch),b(zc),b(h_),b(Fe),b(ie),b(Uc),b(Mo,8))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),tl=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS($i[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ma(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ma(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=$i[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=$i[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(lt.DashCase|lt.Important)?e.style.setProperty(t,n,r&lt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&lt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Zr().getGlobalEventTarget(this.doc,e),!e))throw new w(5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function ma(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var g_=class extends tl{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=kh(r.id,u);for(let d of u){let f=document.createElement("style");o&&f.setAttribute("nonce",o),f.textContent=d,this.shadowRoot.appendChild(f)}let c=r.getExternalStyles?.();if(c)for(let d of c){let f=Ps(d,i);o&&f.setAttribute("nonce",o),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Is=class extends tl{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,o,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?kh(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Lr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ya=class extends Is{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,l,a){let u=r+"-"+n.id;super(e,t,n,i,s,o,l,a,u),this.contentAttr=f_(u),this.hostAttr=p_(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},m_=class Oh extends Db{supportsDOMEvents=!0;static makeCurrent(){Ib(new Oh)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=y_();return n==null?null:v_(n)}resetBaseElement(){dn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yh(document.cookie,t)}},dn=null;function y_(){return dn=dn||document.head.querySelector("base"),dn?dn.getAttribute("href"):null}function v_(e){return new URL(e,document.baseURI).pathname}var b_=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),va=["alt","control","meta","shift"],__={"\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"},w_={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},C_=(()=>{class e extends _h{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),l=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(n,o.domEventName,l,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(r.pop()),o="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),o="code."),va.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(n,r){let i=__[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),va.forEach(o=>{if(o!==i){let l=w_[o];l(n)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(n,r,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();function x_(e){return yb(k_(e))}function k_(e){return{appProviders:[...M_,...e?.providers??[]],platformProviders:T_}}function O_(){m_.makeCurrent()}function S_(){return new Nn}function E_(){return Pm(document),document}var T_=[{provide:Co,useValue:bh},{provide:Bc,useValue:O_,multi:!0},{provide:Fe,useFactory:E_}],M_=[{provide:lo,useValue:"root"},{provide:Nn,useFactory:S_},{provide:Ms,useClass:Ts,multi:!0,deps:[Fe]},{provide:Ms,useClass:C_,multi:!0,deps:[Fe]},ga,Ch,wh,{provide:Bo,useExisting:ga},{provide:vh,useClass:b_},[]],nl=class{},fi=class{},Ut=class gr{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),s=n.slice(r+1).trim();this.addHeaderEntry(i,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof gr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new gr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof gr?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let s=t.value;if(!s)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(l=>s.indexOf(l)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(s=>s.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}},P_=class{encodeKey(e){return ba(e)}encodeValue(e){return ba(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function I_(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{let i=r.indexOf("="),[s,o]=i==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],l=n.get(s)||[];l.push(o),n.set(s,l)}),n}var D_=/%(\d[a-f0-9])/gi,A_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ba(e){return encodeURIComponent(e).replace(D_,(t,n)=>A_[n]??t)}function tr(e){return`${e}`}var ut=class Sh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new P_,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=I_(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(tr):[tr(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new Sh({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(tr(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(tr(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}},V_=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function N_(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function _a(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function wa(e){return typeof Blob<"u"&&e instanceof Blob}function Ca(e){return typeof FormData<"u"&&e instanceof FormData}function R_(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var xa="Content-Type",ka="Accept",Eh="X-Request-URL",Th="text/plain",Mh="application/json",F_=`${Mh}, ${Th}, */*`,pn=class Ph{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let s;if(N_(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new w(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),this.transferCache=s.transferCache}if(this.headers??=new Ut,this.context??=new V_,!this.params)this.params=new ut,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let l=n.indexOf("?"),a=l===-1?"?":l<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||_a(this.body)||wa(this.body)||Ca(this.body)||R_(this.body)?this.body:this.body instanceof ut?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||Ca(this.body)?null:wa(this.body)?this.body.type||null:_a(this.body)?null:typeof this.body=="string"?Th:this.body instanceof ut?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mh:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,s=t.keepalive??this.keepalive,o=t.priority||this.priority,l=t.cache||this.cache,a=t.mode||this.mode,u=t.redirect||this.redirect,c=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,h=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,v=t.withCredentials??this.withCredentials,I=t.reportProgress??this.reportProgress,ve=t.headers||this.headers,K=t.params||this.params,rn=t.context??this.context;return t.setHeaders!==void 0&&(ve=Object.keys(t.setHeaders).reduce((sn,it)=>sn.set(it,t.setHeaders[it]),ve)),t.setParams&&(K=Object.keys(t.setParams).reduce((sn,it)=>sn.set(it,t.setParams[it]),K)),new Ph(n,r,m,{params:K,headers:ve,context:rn,reportProgress:I,responseType:i,withCredentials:v,transferCache:h,keepalive:s,cache:l,priority:o,timeout:g,mode:a,redirect:u,credentials:c,referrer:d,integrity:f})}},Dt=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Dt||{}),rl=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Ut,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},L_=class Ih extends rl{constructor(t={}){super(t)}type=Dt.ResponseHeader;clone(t={}){return new Ih({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},pi=class Dh extends rl{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Dt.Response;clone(t={}){return new Dh({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},qi=class extends rl{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},j_=200,H_=204;function Gi(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Ah=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof pn)s=n;else{let a;i.headers instanceof Ut?a=i.headers:a=new Ut(i.headers);let u;i.params&&(i.params instanceof ut?u=i.params:u=new ut({fromObject:i.params})),s=new pn(n,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let o=ze(s).pipe(Cu(a=>this.handler.handle(a)));if(n instanceof pn||i.observe==="events")return o;let l=o.pipe(kr(a=>a instanceof pi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Ce(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new w(2806,!1);return a.body}));case"blob":return l.pipe(Ce(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new w(2807,!1);return a.body}));case"text":return l.pipe(Ce(a=>{if(a.body!==null&&typeof a.body!="string")throw new w(2808,!1);return a.body}));case"json":default:return l.pipe(Ce(a=>a.body))}case"response":return l;default:throw new w(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ut().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Gi(i,r))}post(n,r,i={}){return this.request("POST",n,Gi(i,r))}put(n,r,i={}){return this.request("PUT",n,Gi(i,r))}static \u0275fac=function(n){return new(n||e)(b(nl))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),z_=new k("");function Vh(e,t){return t(e)}function B_(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function U_(e,t,n){return(r,i)=>co(n,()=>t(r,s=>e(s,i)))}var Z_=new k(""),il=new k(""),$_=new k(""),Nh=new k("",{providedIn:"root",factory:()=>!0});function q_(){let e=null;return(t,n)=>{e===null&&(e=(_(Z_,{optional:!0})??[]).reduceRight(B_,Vh));let r=_(yc);if(_(Nh)){let i=r.add();return e(t,n).pipe(ku(i))}else return e(t,n)}}var Oa=(()=>{class e extends nl{backend;injector;chain=null;pendingTasks=_(yc);contributeToStability=_(Nh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(il),...this.injector.get($_,[])]));this.chain=r.reduceRight((i,s)=>U_(i,s,this.injector),Vh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(ku(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(b(fi),b(Be))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),G_=/^\)\]\}',?\n/,W_=RegExp(`^${Eh}:`,"m");function Q_(e){return"responseURL"in e&&e.responseURL?e.responseURL:W_.test(e.getAllResponseHeaders())?e.getResponseHeader(Eh):null}var Sa=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return ze(null).pipe(Ou(()=>new Y(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,v)=>s.setRequestHeader(m,v.join(","))),n.headers.has(ka)||s.setRequestHeader(ka,F_),!n.headers.has(xa)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(xa,m)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let o=n.serializeBody(),l=null,a=()=>{if(l!==null)return l;let m=s.statusText||"OK",v=new Ut(s.getAllResponseHeaders()),I=Q_(s)||n.url;return l=new L_({headers:v,status:s.status,statusText:m,url:I}),l},u=()=>{let{headers:m,status:v,statusText:I,url:ve}=a(),K=null;v!==H_&&(K=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=K?j_:0);let rn=v>=200&&v<300;if(n.responseType==="json"&&typeof K=="string"){let sn=K;K=K.replace(G_,"");try{K=K!==""?JSON.parse(K):null}catch(it){K=sn,rn&&(rn=!1,K={error:it,text:K})}}rn?(i.next(new pi({body:K,headers:m,status:v,statusText:I,url:ve||void 0})),i.complete()):i.error(new qi({error:K,headers:m,status:v,statusText:I,url:ve||void 0}))},c=m=>{let{url:v}=a(),I=new qi({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},d=c;n.timeout&&(d=m=>{let{url:v}=a(),I=new qi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:v||void 0});i.error(I)});let f=!1,h=m=>{f||(i.next(a()),f=!0);let v={type:Dt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},g=m=>{let v={type:Dt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",c),s.addEventListener("timeout",d),s.addEventListener("abort",c),n.reportProgress&&(s.addEventListener("progress",h),o!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(o),i.next({type:Dt.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",h),o!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(b(vh))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Rh=new k(""),Y_="XSRF-TOKEN",K_=new k("",{providedIn:"root",factory:()=>Y_}),J_="X-XSRF-TOKEN",X_=new k("",{providedIn:"root",factory:()=>J_}),Fh=class{},ew=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=yh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(b(Fe),b(K_))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),tw=/^(?:https?:)?\/\//i;function nw(e,t){if(!_(Rh)||e.method==="GET"||e.method==="HEAD"||tw.test(e.url))return t(e);let n=_(Fh).getToken(),r=_(X_);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Lh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Lh||{});function rw(e,t){return{\u0275kind:e,\u0275providers:t}}function iw(...e){let t=[Ah,Sa,Oa,{provide:nl,useExisting:Oa},{provide:fi,useFactory:()=>_(z_,{optional:!0})??_(Sa)},{provide:il,useValue:nw,multi:!0},{provide:Rh,useValue:!0},{provide:Fh,useClass:ew}];for(let n of e)t.push(...n.\u0275providers);return Yr(t)}var Ea=new k("");function sw(){return rw(Lh.LegacyInterceptors,[{provide:Ea,useFactory:q_},{provide:il,useExisting:Ea,multi:!0}])}var jh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=T({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=b(ow),r},providedIn:"root"})}return e})(),ow=(()=>{class e extends jh{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Ye.NONE:return r;case Ye.HTML:return Ot(r,"HTML")?st(r):ed(this._doc,String(r)).toString();case Ye.STYLE:return Ot(r,"Style")?st(r):r;case Ye.SCRIPT:if(Ot(r,"Script"))return st(r);throw new w(5200,!1);case Ye.URL:return Ot(r,"URL")?st(r):Wc(String(r));case Ye.RESOURCE_URL:if(Ot(r,"ResourceURL"))return st(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return qm(n)}bypassSecurityTrustStyle(n){return Gm(n)}bypassSecurityTrustScript(n){return Wm(n)}bypassSecurityTrustUrl(n){return Qm(n)}bypassSecurityTrustResourceUrl(n){return Ym(n)}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hh={},lw={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){Hh[e]=t,lw[t]=e});function aw(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=Hh[e[i]];if(s===void 0)throw new Error("Invalid character ("+e[i]+")");var o=s&32;if(s&=31,r+=s<<n,o)n+=5;else{var l=r&1;r>>>=1,l?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var mr="TOKEN_LOGGER_CONFIG",uw=class{constructor(e){this.config=this._clone(e)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(e){this.config=this._clone(e)}partialUpdateConfig(e){e&&Object.keys(e).forEach(t=>{this.config[t]=e[t]})}getConfig(){return this._clone(this.config)}_clone(e){let t={level:null};return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}},gn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",cw=class{provideConfigEngine(e){return new uw(e)}},mn="TOKEN_LOGGER_MAPPER_SERVICE",dw=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,r){let i=this.getStackLine(n);if(!i)return ze({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return ze(s);let o=this.getSourceMapLocation(i);return this.getSourceMap(o,s)}getStackLine(n){let r=new Error;try{throw r}catch{try{let i=4;return r.stack.split(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=t});function wr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Me=class Ji{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let s of n)s.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(B(r))try{r()}catch(s){t=s instanceof wi?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{hl(s)}catch(o){t=t??[],o instanceof wi?t=[...t,...o.errors]:t.push(o)}}if(t)throw new wi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)hl(t);else{if(t instanceof Ji){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&wr(n,t)}remove(t){let{_finalizers:n}=this;n&&wr(n,t),t instanceof Ji&&t._removeParent(this)}};Me.EMPTY=(()=>{let e=new Me;return e.closed=!0,e})();var Xa=Me.EMPTY;function eu(e){return e instanceof Me||e&&"closed"in e&&B(e.remove)&&B(e.add)&&B(e.unsubscribe)}function hl(e){B(e)?e():e.unsubscribe()}var bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_r={setTimeout(e,t,...n){let{delegate:r}=_r;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=_r;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function tu(e){_r.setTimeout(()=>{let{onUnhandledError:t}=bt;if(t)t(e);else throw e})}function fl(){}var Lf=Qs("C",void 0,void 0);function jf(e){return Qs("E",void 0,e)}function Hf(e){return Qs("N",e,void 0)}function Qs(e,t,n){return{kind:e,value:t,error:n}}var ot=null;function or(e){if(bt.useDeprecatedSynchronousErrorHandling){let t=!ot;if(t&&(ot={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ot;if(ot=null,n)throw r}}else e()}function zf(e){bt.useDeprecatedSynchronousErrorHandling&&ot&&(ot.errorThrown=!0,ot.error=e)}var Ys=class extends Me{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,eu(e)&&e.add(this)):this.destination=$f}static create(e,t,n){return new Mt(e,t,n)}next(e){this.isStopped?xi(Hf(e),this):this._next(e)}error(e){this.isStopped?xi(jf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?xi(Lf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Bf=Function.prototype.bind;function _i(e,t){return Bf.call(e,t)}var Uf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Bn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Bn(n)}else Bn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Bn(t)}}},Mt=class extends Ys{constructor(e,t,n){super();let r;if(B(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&bt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&_i(e.next,i),error:e.error&&_i(e.error,i),complete:e.complete&&_i(e.complete,i)}):r=e}this.destination=new Uf(r)}};function Bn(e){bt.useDeprecatedSynchronousErrorHandling?zf(e):tu(e)}function Zf(e){throw e}function xi(e,t){let{onStoppedNotification:n}=bt;n&&_r.setTimeout(()=>n(e,t))}var $f={closed:!0,next:fl,error:Zf,complete:fl},Ks=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Js(e){return e}function qf(e){return e.length===0?Js:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var Y=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let s=Wf(n)?n:new Mt(n,r,i);return or(()=>{let{operator:o,source:l}=this;s.add(o?o.call(s,l):l?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=pl(r),new r((i,s)=>{let o=new Mt({next:l=>{try{n(l)}catch(a){s(a),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ks](){return this}pipe(...n){return qf(n)(this)}toPromise(n){return n=pl(n),new n((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=t=>new e(t),e})();function pl(e){var t;return(t=e??bt.Promise)!==null&&t!==void 0?t:Promise}function Gf(e){return e&&B(e.next)&&B(e.error)&&B(e.complete)}function Wf(e){return e&&e instanceof Ys||Gf(e)&&eu(e)}function Qf(e){return B(e?.lift)}function Ee(e){return t=>{if(Qf(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pe(e,t,n,r,i){return new Yf(e,t,n,r,i)}var Yf=class extends Ys{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(l){e.error(l)}}:super._next,this._error=r?function(o){try{r(o)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},Kf=Ws(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),nt=(()=>{class e extends Y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new gl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Kf}next(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:s}=this;return r||i?Xa:(this.currentObservers=null,s.push(n),new Me(()=>{this.currentObservers=null,wr(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new Y;return n.source=this,n}}return e.create=(t,n)=>new gl(t,n),e})(),gl=class extends nt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:Xa}},nu=class extends nt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},Xs={now(){return(Xs.delegate||Date).now()},delegate:void 0},ru=class extends nt{constructor(e=1/0,t=1/0,n=Xs){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:s}=this;t||(n.push(e),!r&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let s=0;s<i.length&&!e.closed;s+=n?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let s=t.now(),o=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)o=l;o&&n.splice(0,o+1)}}},Jf=class extends Me{constructor(e,t){super()}schedule(e,t=0){return this}},xr={setInterval(e,t,...n){let{delegate:r}=xr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=xr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Xf=class extends Jf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return xr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&xr.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,wr(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},Xi=class iu{constructor(t,n=iu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Xi.now=Xs.now;var ep=class extends Xi{constructor(e,t=Xi.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},tp=new ep(Xf),np=tp,su=new Y(e=>e.complete());function ou(e){return e&&B(e.schedule)}function eo(e){return e[e.length-1]}function rp(e){return B(eo(e))?e.pop():void 0}function lu(e){return ou(eo(e))?e.pop():void 0}function ip(e,t){return typeof eo(e)=="number"?e.pop():t}function sp(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function ml(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ot(e){return this instanceof Ot?(this.v=e,this):new Ot(e)}function op(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(g){return Promise.resolve(g).then(h,d)}}function l(h,g){r[h]&&(i[h]=function(m){return new Promise(function(v,A){s.push([h,m,v,A])>1||a(h,m)})},g&&(i[h]=g(i[h])))}function a(h,g){try{u(r[h](g))}catch(m){f(s[0][3],m)}}function u(h){h.value instanceof Ot?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){a("next",h)}function d(h){a("throw",h)}function f(h,g){h(g),s.shift(),s.length&&a(s[0][0],s[0][1])}}function lp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ml=="function"?ml(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}var au=e=>e&&typeof e.length=="number"&&typeof e!="function";function uu(e){return B(e?.then)}function cu(e){return B(e[Ks])}function du(e){return Symbol.asyncIterator&&B(e?.[Symbol.asyncIterator])}function hu(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ap(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fu=ap();function pu(e){return B(e?.[fu])}function gu(e){return op(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Ot(t.read());if(r)return yield Ot(void 0);yield yield Ot(n)}}finally{t.releaseLock()}})}function mu(e){return B(e?.getReader)}function me(e){if(e instanceof Y)return e;if(e!=null){if(cu(e))return up(e);if(au(e))return cp(e);if(uu(e))return dp(e);if(du(e))return yu(e);if(pu(e))return hp(e);if(mu(e))return fp(e)}throw hu(e)}function up(e){return new Y(t=>{let n=e[Ks]();if(B(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cp(e){return new Y(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function dp(e){return new Y(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,tu)})}function hp(e){return new Y(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function yu(e){return new Y(t=>{pp(e,t).catch(n=>t.error(n))})}function fp(e){return yu(gu(e))}function pp(e,t){var n,r,i,s;return sp(this,void 0,void 0,function*(){try{for(n=lp(e);r=yield n.next(),!r.done;){let o=r.value;if(t.next(o),t.closed)return}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}t.complete()})}function Xe(e,t,n,r=0,i=!1){let s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function vu(e,t=0){return Ee((n,r)=>{n.subscribe(pe(r,i=>Xe(r,e,()=>r.next(i),t),()=>Xe(r,e,()=>r.complete(),t),i=>Xe(r,e,()=>r.error(i),t)))})}function bu(e,t=0){return Ee((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function gp(e,t){return me(e).pipe(bu(t),vu(t))}function mp(e,t){return me(e).pipe(bu(t),vu(t))}function yp(e,t){return new Y(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vp(e,t){return new Y(n=>{let r;return Xe(n,t,()=>{r=e[fu](),Xe(n,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),()=>B(r?.return)&&r.return()})}function wu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Y(n=>{Xe(n,t,()=>{let r=e[Symbol.asyncIterator]();Xe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function bp(e,t){return wu(gu(e),t)}function wp(e,t){if(e!=null){if(cu(e))return gp(e,t);if(au(e))return yp(e,t);if(uu(e))return mp(e,t);if(du(e))return wu(e,t);if(pu(e))return vp(e,t);if(mu(e))return bp(e,t)}throw hu(e)}function to(e,t){return t?wp(e,t):me(e)}function ze(...e){let t=lu(e);return to(e,t)}function _p(e,t){let n=B(e)?e:()=>e,r=i=>i.error(n());return new Y(t?i=>t.schedule(r,0,i):r)}function xp(e){return!!e&&(e instanceof Y||B(e.lift)&&B(e.subscribe))}var Cp=Ws(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function kp(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new Mt({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Cp)}});e.subscribe(s)})}function Sp(e){return e instanceof Date&&!isNaN(e)}function xe(e,t){return Ee((n,r)=>{let i=0;n.subscribe(pe(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Ep}=Array;function Tp(e,t){return Ep(t)?e(...t):e(t)}function Ip(e){return xe(t=>Tp(e,t))}var{isArray:Op}=Array,{getPrototypeOf:Dp,prototype:Ap,keys:Vp}=Object;function Mp(e){if(e.length===1){let t=e[0];if(Op(t))return{args:t,keys:null};if(Np(t)){let n=Vp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Np(e){return e&&typeof e=="object"&&Dp(e)===Ap}function Rp(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Pp(e,t,n,r,i,s,o,l){let a=[],u=0,c=0,d=!1,f=()=>{d&&!a.length&&!u&&t.complete()},h=m=>u<r?g(m):a.push(m),g=m=>{s&&t.next(m),u++;let v=!1;me(n(m,c++)).subscribe(pe(t,A=>{i?.(A),s?h(A):t.next(A)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;a.length&&u<r;){let A=a.shift();o?Xe(t,o,()=>g(A)):g(A)}f()}catch(A){t.error(A)}}))};return e.subscribe(pe(t,h,()=>{d=!0,f()})),()=>{l?.()}}function Cr(e,t,n=1/0){return B(t)?Cr((r,i)=>xe((s,o)=>t(r,s,i,o))(me(e(r,i))),n):(typeof t=="number"&&(n=t),Ee((r,i)=>Pp(r,i,e,n)))}function Fp(e=1/0){return Cr(Js,e)}function Lp(...e){let t=rp(e),{args:n,keys:r}=Mp(e),i=new Y(s=>{let{length:o}=n;if(!o){s.complete();return}let l=new Array(o),a=o,u=o;for(let c=0;c<o;c++){let d=!1;me(n[c]).subscribe(pe(s,f=>{d||(d=!0,u--),l[c]=f},()=>a--,void 0,()=>{(!a||!d)&&(u||s.next(r?Rp(r,l):l),s.complete())}))}});return t?i.pipe(Ip(t)):i}function _u(e=0,t,n=np){let r=-1;return t!=null&&(ou(t)?n=t:r=t),new Y(i=>{let s=Sp(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function jp(...e){let t=lu(e),n=ip(e,1/0),r=e;return r.length?r.length===1?me(r[0]):Fp(n)(to(r,t)):su}function kr(e,t){return Ee((n,r)=>{let i=0;n.subscribe(pe(r,s=>e.call(t,s,i++)&&r.next(s)))})}function no(e){return Ee((t,n)=>{let r=null,i=!1,s;r=t.subscribe(pe(n,void 0,void 0,o=>{s=me(e(o,no(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function xu(e,t){return B(t)?Cr(e,t,1):Cr(e,1)}function Cu(e){return e<=0?()=>su:Ee((t,n)=>{let r=0;t.subscribe(pe(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ku(e){return Ee((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Hp(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:i=!1}=t;return n<=0?Js:Ee((s,o)=>{let l=0,a,u=()=>{let c=!1;a=s.subscribe(pe(o,d=>{i&&(l=0),o.next(d)},void 0,d=>{if(l++<n){let f=()=>{a?(a.unsubscribe(),a=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?_u(r):me(r(d,l)),g=pe(o,()=>{g.unsubscribe(),f()},()=>{o.complete()});h.subscribe(g)}else f()}else o.error(d)})),c&&(a.unsubscribe(),a=null,u())};u()})}function zp(e={}){let{connector:t=()=>new nt,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,l,a,u=0,c=!1,d=!1,f=()=>{l?.unsubscribe(),l=void 0},h=()=>{f(),o=a=void 0,c=d=!1},g=()=>{let m=o;h(),m?.unsubscribe()};return Ee((m,v)=>{u++,!d&&!c&&f();let A=a=a??t();v.add(()=>{u--,u===0&&!d&&!c&&(l=Ci(g,i))}),A.subscribe(v),!o&&u>0&&(o=new Mt({next:ve=>A.next(ve),error:ve=>{d=!0,f(),l=Ci(h,n,ve),A.error(ve)},complete:()=>{c=!0,f(),l=Ci(h,r),A.complete()}}),me(m).subscribe(o))})(s)}}function Ci(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Mt({next:()=>{r.unsubscribe(),e()}});return me(t(...n)).subscribe(r)}function yl(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,zp({connector:()=>new ru(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Su(e,t){return Ee((n,r)=>{let i=null,s=0,o=!1,l=()=>o&&!i&&r.complete();n.subscribe(pe(r,a=>{i?.unsubscribe();let u=0,c=s++;me(e(a,c)).subscribe(i=pe(r,d=>r.next(t?t(a,d,c,u++):d),()=>{i=null,l()}))},()=>{o=!0,l()}))})}function Bp(e){let t=D(null);try{return e()}finally{D(t)}}var Eu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(e,t){super(Zp(e,t)),this.code=e}};function Up(e){return`NG0${Math.abs(e)}`}function Zp(e,t){return`${Up(e)}${t?": "+t:""}`}var Ke=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function $p(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Nt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Nt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function vl(e,t){return e?t?`${e} ${t}`:e:t||""}var qp=L({__forward_ref__:L});function Dn(e){return e.__forward_ref__=Dn,e.toString=function(){return Nt(this())},e}function re(e){return Tu(e)?e():e}function Tu(e){return typeof e=="function"&&e.hasOwnProperty(qp)&&e.__forward_ref__===Dn}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wr(e){return{providers:e.providers||[],imports:e.imports||[]}}function ro(e){return Gp(e,Iu)}function Gp(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Wp(e){return(e?.[Iu]??null)||null}function bl(e){return e&&e.hasOwnProperty(wl)?e[wl]:null}var Iu=L({\u0275prov:L}),wl=L({\u0275inj:L}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ou(e){return e&&!!e.\u0275providers}var Qp=L({\u0275cmp:L}),Yp=L({\u0275dir:L}),Kp=L({\u0275pipe:L}),Sr=L({\u0275fac:L}),hn=L({__NG_ELEMENT_ID__:L}),_l=L({__NG_ENV_ID__:L});function Qr(e){return typeof e=="string"?e:e==null?"":String(e)}function Jp(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Qr(e)}var Du=L({ngErrorCode:L}),Xp=L({ngErrorMessage:L}),eg=L({ngTokenPath:L});function Au(e,t){return Vu("",-200,t)}function io(e,t){throw new _(-201,!1)}function Vu(e,t,n){let r=new _(t,e);return r[Du]=t,r[Xp]=e,n&&(r[eg]=n),r}function tg(e){return e[Du]}var es;function Mu(){return es}function de(e){let t=es;return es=e,t}function Nu(e,t,n){let r=ro(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;io(e,"Injector")}var ng={},at=ng,rg="__NG_DI_FLAG__",ig=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=_n(t)||0;try{return this.injector.get(e,n&8?null:at,n)}catch(r){if($s(r))return r;throw r}}};function sg(e,t=0){let n=ja();if(n===void 0)throw new _(-203,!1);if(n===null)return Nu(e,void 0,t);{let r=og(t),i=n.retrieve(e,r);if($s(i)){if(r.optional)return null;throw i}return i}}function b(e,t=0){return(Mu()||sg)(re(e),t)}function w(e,t){return b(e,_n(t))}function _n(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function og(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ts(e){let t=[];for(let n=0;n<e.length;n++){let r=re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let i,s=0;for(let o=0;o<r.length;o++){let l=r[o],a=lg(l);typeof a=="number"?a===-1?i=l.token:s|=a:i=l}t.push(b(i,s))}else t.push(b(r))}return t}function lg(e){return e[rg]}function Rt(e,t){return e.hasOwnProperty(Sr)?e[Sr]:null}function ag(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}function ug(e){return e.flat(Number.POSITIVE_INFINITY)}function so(e,t){e.forEach(n=>Array.isArray(n)?so(n,t):t(n))}function Ru(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Er(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let s=i-2;e[i]=e[s],i--}e[t]=n,e[t+1]=r}}function dg(e,t,n){let r=An(e,t);return r>=0?e[r|1]=n:(r=~r,cg(e,r,t,n)),r}function ki(e,t){let n=An(e,t);if(n>=0)return e[n|1]}function An(e,t){return hg(e,t,1)}function hg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}var ct={},he=[],Pt=new k(""),Pu=new k("",-1),Fu=new k(""),Lu=class{get(e,t=at){if(t===at){let n=Vu("",-201);throw n.name="\u0275NotFound",n}return t}};function xn(e){return e[Qp]||null}function ju(e){return e[Yp]||null}function fg(e){return e[Kp]||null}function Yr(e){return{\u0275providers:e}}function pg(e){return Yr([{provide:Pt,multi:!0,useValue:e}])}function gg(...e){return{\u0275providers:Hu(!0,e),\u0275fromNgModule:!0}}function Hu(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return so(t,o=>{let l=o;ns(l,s,[],r)&&(i||=[],i.push(l))}),i!==void 0&&zu(i,s),n}function zu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];oo(i,s=>{t(s,r)})}}function ns(e,t,n,r){if(e=re(e),!e)return!1;let i=null,s=bl(e),o=!s&&xn(e);if(!s&&!o){let a=e.ngModule;if(s=bl(a),s)i=a;else return!1}else{if(o&&!o.standalone)return!1;i=e}let l=r.has(i);if(o){if(l)return!1;if(r.add(i),o.dependencies){let a=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of a)ns(u,t,n,r)}}else if(s){if(s.imports!=null&&!l){r.add(i);let u;so(s.imports,c=>{ns(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&zu(u,t)}if(!l){let u=Rt(i)||(()=>new i);t({provide:i,useFactory:u,deps:he},i),t({provide:Fu,useValue:i,multi:!0},i),t({provide:Pt,useValue:()=>b(i),multi:!0},i)}let a=s.providers;if(a!=null&&!l){let u=e;oo(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function oo(e,t){for(let n of e)Ou(n)&&(n=n.\u0275providers),Array.isArray(n)?oo(n,t):t(n)}var mg=L({provide:String,useValue:L});function Bu(e){return e!==null&&typeof e=="object"&&mg in e}function yg(e){return!!(e&&e.useExisting)}function vg(e){return!!(e&&e.useFactory)}function Ft(e){return typeof e=="function"}function bg(e){return!!e.useClass}var lo=new k(""),lr={},xl={},Si;function ao(){return Si===void 0&&(Si=new Lu),Si}var Be=class{},uo=class extends Be{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,is(e,s=>this.processProvider(s)),this.records.set(Pu,Et(void 0,this)),r.has("environment")&&this.records.set(Be,Et(void 0,this));let i=this.records.get(lo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Fu,he,{self:!0}))}retrieve(e,t){let n=_n(t)||0;try{return this.get(e,at,n)}catch(r){if($s(r))return r;throw r}}destroy(){un(this),this._destroyed=!0;let e=D(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),D(e)}}onDestroy(e){return un(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){un(this);let t=Qe(this),n=de(void 0),r;try{return e()}finally{Qe(t),de(n)}}get(e,t=at,n){if(un(this),e.hasOwnProperty(_l))return e[_l](this);let r=_n(n),i,s=Qe(this),o=de(void 0);try{if(!(r&4)){let a=this.records.get(e);if(a===void 0){let u=kg(e)&&ro(e);u&&this.injectableDefInScope(u)?a=Et(rs(e),lr):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a,r)}let l=r&2?ao():this.parent;return t=r&8&&t===at?null:t,l.get(e,t)}catch(l){let a=tg(l);throw a===-200||a===-201?new _(a,null):l}finally{de(o),Qe(s)}}resolveInjectorInitializers(){let e=D(null),t=Qe(this),n=de(void 0),r;try{let i=this.get(Pt,he,{self:!0});for(let s of i)s()}finally{Qe(t),de(n),D(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Nt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=re(e);let t=Ft(e)?e:re(e&&e.provide),n=_g(e);if(!Ft(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Et(void 0,lr,!0),r.factory=()=>ts(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=D(null);try{if(t.value===xl)throw Au(Nt(e));return t.value===lr&&(t.value=xl,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&Cg(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{D(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=re(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function rs(e){let t=ro(e),n=t!==null?t.factory:Rt(e);if(n!==null)return n;if(e instanceof k)throw new _(204,!1);if(e instanceof Function)return wg(e);throw new _(204,!1)}function wg(e){if(e.length>0)throw new _(204,!1);let t=Wp(e);return t!==null?()=>t.factory(e):()=>new e}function _g(e){if(Bu(e))return Et(void 0,e.useValue);{let t=Uu(e);return Et(t,lr)}}function Uu(e,t,n){let r;if(Ft(e)){let i=re(e);return Rt(i)||rs(i)}else if(Bu(e))r=()=>re(e.useValue);else if(vg(e))r=()=>e.useFactory(...ts(e.deps||[]));else if(yg(e))r=(i,s)=>b(re(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=re(e&&(e.useClass||e.provide));if(xg(e))r=()=>new i(...ts(e.deps));else return Rt(i)||rs(i)}return r}function un(e){if(e.destroyed)throw new _(205,!1)}function Et(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function xg(e){return!!e.deps}function Cg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function kg(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function is(e,t){for(let n of e)Array.isArray(n)?is(n,t):n&&Ou(n)?is(n.\u0275providers,t):t(n)}function co(e,t){let n;e instanceof uo?(un(e),n=e):n=new ig(e);let r,i=Qe(n),s=de(void 0);try{return t()}finally{Qe(i),de(s)}}function Sg(){return Mu()!==void 0||ja()!=null}var qe=0,x=1,C=2,ee=3,Ce=4,Te=5,Tr=6,Ir=7,oe=8,dt=9,Ue=10,U=11,Cn=12,Cl=13,$t=14,Ne=15,ht=16,Tt=17,Ze=18,Kr=19,Zu=20,et=21,Ei=22,Or=23,fe=24,Ti=25,Dr=26,ue=27,$u=1,ft=7,Ar=8,Lt=9,ae=10;function tt(e){return Array.isArray(e)&&typeof e[$u]=="object"}function Ge(e){return Array.isArray(e)&&e[$u]===!0}function qu(e){return(e.flags&4)!==0}function qt(e){return e.componentOffset>-1}function Vn(e){return(e.flags&1)===1}function $e(e){return!!e.template}function Vr(e){return(e[C]&512)!==0}function Gt(e){return(e[C]&256)===256}var Gu="svg",Eg="math";function Re(e){for(;Array.isArray(e);)e=e[qe];return e}function Wu(e,t){return Re(t[e])}function Le(e,t){return Re(t[e.index])}function Qu(e,t){return e.data[t]}function Pe(e,t){let n=t[e];return tt(n)?n:n[qe]}function Tg(e){return(e[C]&4)===4}function ho(e){return(e[C]&128)===128}function Ig(e){return Ge(e[ee])}function jt(e,t){return t==null?null:e[t]}function Yu(e){e[Tt]=0}function fo(e){e[C]&1024||(e[C]|=1024,ho(e)&&Jr(e))}function Og(e,t){for(;e>0;)t=t[$t],e--;return t}function kn(e){return!!(e[C]&9216||e[fe]?.dirty)}function ss(e){e[Ue].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),kn(e)&&Jr(e)}function Jr(e){e[Ue].changeDetectionScheduler?.notify(0);let t=pt(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!ho(t)));)t=pt(t)}function Ku(e,t){if(Gt(e))throw new _(911,!1);e[et]===null&&(e[et]=[]),e[et].push(t)}function Dg(e,t){if(e[et]===null)return;let n=e[et].indexOf(t);n!==-1&&e[et].splice(n,1)}function pt(e){let t=e[ee];return Ge(t)?t[ee]:t}function Ju(e){return e[Ir]??=[]}function Xu(e){return e.cleanup??=[]}function Ag(e,t,n,r){let i=Ju(t);i.push(n),e.firstCreatePass&&Xu(e).push(r,i.length-1)}var E={lFrame:uc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},os=!1;function Vg(){return E.lFrame.elementDepthCount}function Mg(){E.lFrame.elementDepthCount++}function ec(){E.lFrame.elementDepthCount--}function po(){return E.bindingsEnabled}function Ng(){return E.skipHydrationRootTNode!==null}function tc(e){return E.skipHydrationRootTNode===e}function nc(){E.skipHydrationRootTNode=null}function N(){return E.lFrame.lView}function J(){return E.lFrame.tView}function G(e){return E.lFrame.contextLView=e,e[oe]}function W(e){return E.lFrame.contextLView=null,e}function se(){let e=rc();for(;e!==null&&e.type===64;)e=e.parent;return e}function rc(){return E.lFrame.currentTNode}function Rg(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Mn(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function ic(){return E.lFrame.isParent}function Pg(){E.lFrame.isParent=!1}function sc(){return os}function kl(e){let t=os;return os=e,t}function Fg(e){return E.lFrame.bindingIndex=e}function Nn(){return E.lFrame.bindingIndex++}function Lg(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jg(){return E.lFrame.inI18n}function Hg(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,ls(t)}function zg(){return E.lFrame.currentDirectiveIndex}function ls(e){E.lFrame.currentDirectiveIndex=e}function Bg(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function oc(){return E.lFrame.currentQueryIndex}function go(e){E.lFrame.currentQueryIndex=e}function Ug(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Te]:null}function lc(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=Ug(s),!(i===null||(s=s[$t],i.type&10))););if(i===null)return!1;t=i,e=s}let r=E.lFrame=ac();return r.currentTNode=t,r.lView=e,!0}function mo(e){let t=ac(),n=e[x];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ac(){let e=E.lFrame,t=e===null?null:e.child;return t===null?uc(e):t}function uc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function cc(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var dc=cc;function yo(){let e=cc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Zg(e){return(E.lFrame.contextLView=Og(e,E.lFrame.contextLView))[oe]}function Wt(){return E.lFrame.selectedIndex}function gt(e){E.lFrame.selectedIndex=e}function Xr(){let e=E.lFrame;return Qu(e.tView,e.selectedIndex)}function $g(){E.lFrame.currentNamespace=Gu}function qg(){return E.lFrame.currentNamespace}var hc=!0;function vo(){return hc}function ei(e){hc=e}function Sl(e,t=null,n=null,r){let i=Gg(e,t,n,r);return i.resolveInjectorInitializers(),i}function Gg(e,t=null,n=null,r,i=new Set){let s=[n||he,gg(e)];return r=r||(typeof e=="object"?void 0:Nt(e)),new uo(s,t||ao(),r||null,i)}var ti=class fc{static THROW_IF_NOT_FOUND=at;static NULL=new Lu;static create(t,n){if(Array.isArray(t))return Sl({name:""},n,t,"");{let r=t.name??"";return Sl({name:r},t.parent,t.providers,r)}}static \u0275prov=I({token:fc,providedIn:"any",factory:()=>b(Pu)});static __NG_ELEMENT_ID__=-1},Fe=new k(""),bo=(()=>{class e{static __NG_ELEMENT_ID__=Qg;static __NG_ENV_ID__=n=>n}return e})(),Wg=class extends bo{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Gt(this._lView)}onDestroy(e){let t=this._lView;return Ku(t,e),()=>Dg(t,e)}};function Qg(){return new Wg(N())}var Rn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},rt=new k("",{providedIn:"root",factory:()=>{let e=w(Be),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Rn),t.handleError(n))}}}),Yg={provide:Pt,useValue:()=>{w(Rn)},multi:!0},Kg=new k("",{providedIn:"root",factory:()=>{let e=w(Fe).defaultView;if(!e)return;let t=w(rt),n=s=>{t(s.reason),s.preventDefault()},r=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),w(bo).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function Jg(){return Yr([pg(()=>{w(Kg)})])}function Xg(e){return typeof e=="function"&&e[Ve]!==void 0}function Dt(e,t){let[n,r,i]=Mf(e,t?.equal),s=n,o=s[Ve];return s.set=r,s.update=i,s.asReadonly=em.bind(s),s}function em(){let e=this[Ve];if(e.readonlyFn===void 0){let t=()=>this();t[Ve]=e,e.readonlyFn=t}return e.readonlyFn}function pc(e){return Xg(e)&&typeof e.set=="function"}var Pn=class{},wo=new k("",{providedIn:"root",factory:()=>!1}),gc=new k(""),mc=new k(""),Qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new nu(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Y(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),yc=(()=>{class e{internalPendingTasks=w(Qt);scheduler=w(Pn);errorHandler=w(rt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})();function Mr(...e){}var tm=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>new nm})}return e})(),nm=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)t===null?e||=this.flushQueue(n):e||=t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}};function ni(e){return{toString:e}.toString()}function rm(e){return typeof e=="function"}var im=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function vc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ri=(()=>{let e=()=>bc;return e.ngInherit=!0,e})();function bc(e){return e.type.prototype.ngOnChanges&&(e.setInput=om),sm}function sm(){let e=_c(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function om(e,t,n,r,i){let s=this.declaredInputs[r],o=_c(e)||lm(e,{previous:ct,current:null}),l=o.current||(o.current={}),a=o.previous,u=a[s];l[s]=new im(u&&u.currentValue,n,a===ct),vc(e,t,i,n)}var wc="__ngSimpleChanges__";function _c(e){return e[wc]||null}function lm(e,t){return e[wc]=t}var El=[],H=function(e,t=null,n){for(let r=0;r<El.length;r++){let i=El[r];i(e,t,n)}};function am(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=bc(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function xc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ar(e,t,n){Cc(e,t,3,n)}function ur(e,t,n,r){(e[C]&3)===n&&Cc(e,t,n,r)}function Ii(e,t){let n=e[C];(n&3)===t&&(n&=16383,n+=1,e[C]=n)}function Cc(e,t,n,r){let i=r!==void 0?e[Tt]&65535:0,s=r??-1,o=t.length-1,l=0;for(let a=i;a<o;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[Tt]+=65536),(l<s||s==-1)&&(um(e,n,t,a),e[Tt]=(e[Tt]&4294901760)+a+2),a++}function Tl(e,t){H(4,e,t);let n=D(null);try{t.call(e)}finally{D(n),H(5,e,t)}}function um(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],l=e[o];i?e[C]>>14<e[Tt]>>16&&(e[C]&3)===t&&(e[C]+=16384,Tl(l,s)):Tl(l,s)}var At=-1,Fn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function cm(e){return(e.flags&8)!==0}function dm(e){return(e.flags&16)!==0}function hm(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let s=n[r++],o=n[r++],l=n[r++];e.setAttribute(t,o,l,s)}else{let s=i,o=n[++r];pm(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function fm(e){return e===3||e===4||e===6}function pm(e){return e.charCodeAt(0)===64}function Ht(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Il(e,n,i,null,t[++r]):Il(e,n,i,null,null))}}return e}function Il(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let l=e[s++];if(typeof l=="number"){if(l===t){o=-1;break}else if(l>t){o=s-1;break}}}for(;s<e.length;){let l=e[s];if(typeof l=="number")break;if(l===n){i!==null&&(e[s+1]=i);return}s++,i!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),i!==null&&e.splice(s++,0,i)}function kc(e){return e!==At}function Nr(e){return e&32767}function gm(e){return e>>16}function Rr(e,t){let n=gm(e),r=t;for(;n>0;)r=r[$t],n--;return r}var as=!0;function Ol(e){let t=as;return as=e,t}var mm=256,Sc=mm-1,Ec=5,ym=0,Ae={};function vm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(hn)&&(r=n[hn]),r==null&&(r=n[hn]=ym++);let i=r&Sc,s=1<<i;t.data[e+(i>>Ec)]|=s}function Pr(e,t){let n=Tc(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,Oi(r.data,e),Oi(t,null),Oi(r.blueprint,null));let i=_o(e,t),s=e.injectorIndex;if(kc(i)){let o=Nr(i),l=Rr(i,t),a=l[x].data;for(let u=0;u<8;u++)t[s+u]=l[o+u]|a[o+u]}return t[s+8]=i,s}function Oi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Tc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function _o(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Mc(i),r===null)return At;if(n++,i=i[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return At}function us(e,t,n){vm(e,t,n)}function Ic(e,t,n){if(n&8||e!==void 0)return e;io(t,"NodeInjector")}function Oc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[dt],s=de(void 0);try{return i?i.get(t,r,n&8):Nu(t,r,n&8)}finally{de(s)}}return Ic(r,t,n)}function Dc(e,t,n,r=0,i){if(e!==null){if(t[C]&2048&&!(r&2)){let o=xm(e,t,n,r,Ae);if(o!==Ae)return o}let s=Ac(e,t,n,r,Ae);if(s!==Ae)return s}return Oc(t,n,r,i)}function Ac(e,t,n,r,i){let s=wm(n);if(typeof s=="function"){if(!lc(t,e,r))return r&1?Ic(i,n,r):Oc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))io(n);else return o}finally{dc()}}else if(typeof s=="number"){let o=null,l=Tc(e,t),a=At,u=r&1?t[Ne][Te]:null;for((l===-1||r&4)&&(a=l===-1?_o(e,t):t[l+8],a===At||!Al(r,!1)?l=-1:(o=t[x],l=Nr(a),t=Rr(a,t)));l!==-1;){let c=t[x];if(Dl(s,l,c.data)){let d=bm(l,t,n,o,r,u);if(d!==Ae)return d}a=t[l+8],a!==At&&Al(r,t[x].data[l+8]===u)&&Dl(s,l,t)?(o=c,l=Nr(a),t=Rr(a,t)):l=-1}}return i}function bm(e,t,n,r,i,s){let o=t[x],l=o.data[e+8],a=r==null?qt(l)&&as:r!=o&&(l.type&3)!==0,u=i&1&&s===l,c=cr(l,o,n,a,u);return c!==null?Sn(t,o,c,l,i):Ae}function cr(e,t,n,r,i){let s=e.providerIndexes,o=t.data,l=s&1048575,a=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?l:l+c,f=i?l+c:u;for(let h=d;h<f;h++){let g=o[h];if(h<a&&n===g||h>=a&&g.type===n)return h}if(i){let h=o[a];if(h&&$e(h)&&h.type===n)return a}return null}function Sn(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Fn){let l=s;if(l.resolving){let h=Jp(o[n]);throw Au(h)}let a=Ol(l.canSeeViewProviders);l.resolving=!0;let u=o[n].type||o[n],c,d=l.injectImpl?de(l.injectImpl):null,f=lc(e,r,0);try{s=e[n]=l.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&am(n,o[n],t)}finally{d!==null&&de(d),Ol(a),l.resolving=!1,dc()}}return s}function wm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(hn)?e[hn]:void 0;return typeof t=="number"?t>=0?t&Sc:_m:t}function Dl(e,t,n){let r=1<<e;return!!(n[t+(e>>Ec)]&r)}function Al(e,t){return!(e&2)&&!(e&1&&t)}var fn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Dc(this._tNode,this._lView,e,_n(n),t)}};function _m(){return new fn(se(),N())}function Vc(e){return ni(()=>{let t=e.prototype.constructor,n=t[Sr]||cs(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Sr]||cs(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function cs(e){return Tu(e)?()=>{let t=cs(re(e));return t&&t()}:Rt(e)}function xm(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[C]&2048&&!Vr(o);){let l=Ac(s,o,n,r|2,Ae);if(l!==Ae)return l;let a=s.parent;if(!a){let u=o[Zu];if(u){let c=u.get(n,Ae,r);if(c!==Ae)return c}a=Mc(o),o=o[$t]}s=a}return i}function Mc(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Te]:null}function Cm(){return Yt(se(),N())}function Yt(e,t){return new Kt(Le(e,t))}var Kt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Cm}return e})();function km(e){return e instanceof Kt?e.nativeElement:e}function Sm(){return this._results[Symbol.iterator]()}var Em=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new nt}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=ug(e);(this._changesDetected=!ag(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Sm};function Nc(e){return(e.flags&128)===128}var Rc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Rc||{}),Pc=new Map,Tm=0;function Im(){return Tm++}function Om(e){Pc.set(e[Kr],e)}function ds(e){Pc.delete(e[Kr])}var Vl="__ngContext__";function zt(e,t){tt(t)?(e[Vl]=t[Kr],Om(t)):e[Vl]=t}function Fc(e){return jc(e[Cn])}function Lc(e){return jc(e[Ce])}function jc(e){for(;e!==null&&!Ge(e);)e=e[Ce];return e}var hs;function Dm(e){hs=e}function Hc(){if(hs!==void 0)return hs;if(typeof document<"u")return document;throw new _(210,!1)}var zc=new k("",{providedIn:"root",factory:()=>Am}),Am="ng",Bc=new k(""),xo=new k("",{providedIn:"platform",factory:()=>"unknown"}),Uc=new k("",{providedIn:"root",factory:()=>Hc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Vm="h",Mm="b",Zc=!1,Nm=new k("",{providedIn:"root",factory:()=>Zc}),Rm=(e,t,n,r)=>{};function Pm(e,t,n,r){Rm(e,t,n,r)}function $c(e){return(e.flags&32)===32}var Fm=()=>null;function qc(e,t,n=!1){return Fm(e,t,n)}function Gc(e,t){let n=e.contentQueries;if(n!==null){let r=D(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let l=e.data[o];go(s),l.contentQueries(2,t[o],o)}}}finally{D(r)}}}function fs(e,t,n){go(0);let r=D(null);try{t(e,n)}finally{D(r)}}function Co(e,t,n){if(qu(t)){let r=D(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let l=e.data[o];if(l.contentQueries){let a=n[o];l.contentQueries(1,a,o)}}}finally{D(r)}}}var mt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(mt||{}),Un;function Lm(){if(Un===void 0&&(Un=null,Ke.trustedTypes))try{Un=Ke.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Un}function ii(e){return Lm()?.createHTML(e)||e}var Zn;function jm(){if(Zn===void 0&&(Zn=null,Ke.trustedTypes))try{Zn=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Zn}function Ml(e){return jm()?.createHTML(e)||e}var wt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Eu})`}},Hm=class extends wt{getTypeName(){return"HTML"}},zm=class extends wt{getTypeName(){return"Style"}},Bm=class extends wt{getTypeName(){return"Script"}},Um=class extends wt{getTypeName(){return"URL"}},Zm=class extends wt{getTypeName(){return"ResourceURL"}};function st(e){return e instanceof wt?e.changingThisBreaksApplicationSecurity:e}function St(e,t){let n=$m(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Eu})`)}return n===t}function $m(e){return e instanceof wt&&e.getTypeName()||null}function qm(e){return new Hm(e)}function Gm(e){return new zm(e)}function Wm(e){return new Bm(e)}function Qm(e){return new Um(e)}function Ym(e){return new Zm(e)}function Km(e){let t=new Xm(e);return ey()?new Jm(t):t}var Jm=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(ii(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},Xm=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=ii(e),t}};function ey(){try{return!!new window.DOMParser().parseFromString(ii(""),"text/html")}catch{return!1}}var ty=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wc(e){return e=String(e),e.match(ty)?e:"unsafe:"+e}function We(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ln(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Qc=We("area,br,col,hr,img,wbr"),Yc=We("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kc=We("rp,rt"),ny=Ln(Kc,Yc),ry=Ln(Yc,We("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")),iy=Ln(Kc,We("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")),Nl=Ln(Qc,ry,iy,ny),Jc=We("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sy=We("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"),oy=We("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"),ly=Ln(Jc,sy,oy),ay=We("script,style,template"),uy=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=hy(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=dy(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Rl(e).toLowerCase();if(!Nl.hasOwnProperty(t))return this.sanitizedSomething=!0,!ay.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),s=i.name,o=s.toLowerCase();if(!ly.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let l=i.value;Jc[o]&&(l=Wc(l)),this.buf.push(" ",s,'="',Pl(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=Rl(e).toLowerCase();Nl.hasOwnProperty(t)&&!Qc.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Pl(e))}};function cy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function dy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xc(t);return t}function hy(e){let t=e.firstChild;if(t&&cy(e,t))throw Xc(t);return t}function Rl(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Xc(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var fy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,py=/([^\#-~ |!])/g;function Pl(e){return e.replace(/&/g,"&amp;").replace(fy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(py,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var $n;function ed(e,t){let n=null;try{$n=$n||Km(e);let r=t?String(t):"";n=$n.getInertBodyElement(r);let i=5,s=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=$n.getInertBodyElement(r)}while(r!==s);let o=new uy().sanitizeChildren(Fl(n)||n);return ii(o)}finally{if(n){let r=Fl(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Fl(e){return"content"in e&&gy(e)?e.content:null}function gy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var my=/^>|^->|<!--|-->|--!>|<!-$/g,yy=/(<|>)/g,vy="\u200B$1\u200B";function by(e){return e.replace(my,t=>t.replace(yy,vy))}function wy(e,t){return e.createText(t)}function _y(e,t,n){e.setValue(t,n)}function xy(e,t){return e.createComment(by(t))}function td(e,t,n){return e.createElement(t,n)}function Fr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function nd(e,t,n){e.appendChild(t,n)}function Ll(e,t,n,r,i){r!==null?Fr(e,t,n,r,i):nd(e,t,n)}function Cy(e,t,n,r){e.removeChild(null,t,n,r)}function ky(e,t,n){e.setAttribute(t,"style",n)}function Sy(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function rd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&hm(e,t,r),i!==null&&Sy(e,t,i),s!==null&&ky(e,t,s)}var Ye=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Ye||{});function id(e){let t=Ey();return t?Ml(t.sanitize(Ye.HTML,e)||""):St(e,"HTML")?Ml(st(e)):ed(Hc(),Qr(e))}function Ey(){let e=N();return e&&e[Ue].sanitizer}function Ty(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}var sd="ng-template";function Iy(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Ty(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(ko(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&typeof(s=t[i])=="string";)if(s.toLowerCase()===n)return!0}return!1}function ko(e){return e.type===4&&e.value!==sd}function Oy(e,t,n){let r=e.type===4&&!n?sd:e.value;return t===r}function Dy(e,t,n){let r=4,i=e.attrs,s=i!==null?My(i):0,o=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!o&&!we(r)&&!we(a))return!1;if(o&&we(a))continue;o=!1,r=a|r&1;continue}if(!o)if(r&4){if(r=2|r&1,a!==""&&!Oy(e,a,n)||a===""&&t.length===1){if(we(r))return!1;o=!0}}else if(r&8){if(i===null||!Iy(e,i,a,n)){if(we(r))return!1;o=!0}}else{let u=t[++l],c=Ay(a,i,ko(e),n);if(c===-1){if(we(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(we(r))return!1;o=!0}}}}return we(r)||o}function we(e){return(e&1)===0}function Ay(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){let o=t[i];if(o===e)return i;if(o===3||o===6)s=!0;else if(o===1||o===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return Ny(t,e)}function Vy(e,t,n=!1){for(let r=0;r<t.length;r++)if(Dy(e,t[r],n))return!0;return!1}function My(e){for(let t=0;t<e.length;t++){let n=e[t];if(fm(n))return t}return e.length}function Ny(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function jl(e,t){return e?":not("+t.trim()+")":t}function Ry(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(r&2){let l=e[++n];i+="["+o+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!we(o)&&(t+=jl(s,i),i=""),r=o,s=s||!we(r);n++}return i!==""&&(t+=jl(s,i)),t}function Py(e){return e.map(Ry).join(",")}function Fy(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let s=e[r];if(typeof s=="string")i===2?s!==""&&t.push(s,e[++r]):i===8&&n.push(s);else{if(!we(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var _t={};function So(e,t,n,r,i,s,o,l,a,u,c){let d=ue+r,f=d+i,h=Ly(d,f),g=typeof u=="function"?u():u;return h[x]={type:e,blueprint:h,template:n,queries:null,viewQuery:l,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:a,consts:g,incompleteFirstPass:!1,ssrId:c}}function Ly(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:_t);return n}function jy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=So(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Eo(e,t,n,r,i,s,o,l,a,u,c){let d=t.blueprint.slice();return d[qe]=i,d[C]=r|4|128|8|64|1024,(u!==null||e&&e[C]&2048)&&(d[C]|=2048),Yu(d),d[ee]=d[$t]=e,d[oe]=n,d[Ue]=o||e&&e[Ue],d[U]=l||e&&e[U],d[dt]=a||e&&e[dt]||null,d[Te]=s,d[Kr]=Im(),d[Tr]=c,d[Zu]=u,d[Ne]=t.type==2?e[Ne]:d,d}function Hy(e,t,n){let r=Le(t,e),i=jy(n),s=e[Ue].rendererFactory,o=To(e,Eo(e,i,null,od(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function od(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ld(e,t,n,r){if(n===0)return-1;let i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function To(e,t){return e[Cn]?e[Cl][Ce]=t:e[Cn]=t,e[Cl]=t,t}function S(e=1){ad(J(),N(),Wt()+e,!1)}function ad(e,t,n,r){if(!r)if((t[C]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ar(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ur(t,i,0,n)}gt(n)}var si=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(si||{});function ps(e,t,n,r){let i=D(null);try{let[s,o,l]=e.inputs[n],a=null;(o&si.SignalBased)!==0&&(a=t[s][Ve]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,s):vc(t,a,s,r)}finally{D(i)}}var lt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(lt||{}),zy;function Io(e,t){return zy(e,t)}var Lr=new Set,ud=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ud||{}),Oo=new k(""),Hl=new Set;function cd(e){Hl.has(e)||(Hl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var dd=!1,By=class extends nt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Sg()&&(this.destroyRef=w(bo,{optional:!0})??void 0,this.pendingTasks=w(Qt,{optional:!0})??void 0)}emit(e){let t=D(null);try{super.next(e)}finally{D(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let o=super.subscribe({next:r,error:i,complete:s});return e instanceof Me&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},O=By;function hd(e){let t,n;function r(){e=Mr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function zl(e){return queueMicrotask(()=>e()),()=>{e=Mr}}var Do="isAngularZone",jr=Do+"_ID",Uy=0,ie=class gs{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new O(!1);onMicrotaskEmpty=new O(!1);onStable=new O(!1);onError=new O(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=dd}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,qy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Do)===!0}static assertInAngularZone(){if(!gs.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(gs.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,Zy,Mr,Mr);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Zy={};function Ao(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $y(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){hd(()=>{e.callbackScheduled=!1,ms(e),e.isCheckStableRunning=!0,Ao(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ms(e)}function qy(e){let t=()=>{$y(e)},n=Uy++;e._inner=e._inner.fork({name:"angular",properties:{[Do]:!0,[jr]:n,[jr+n]:!0},onInvokeTask:(r,i,s,o,l,a)=>{if(Wy(a))return r.invokeTask(s,o,l,a);try{return Bl(e),r.invokeTask(s,o,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ul(e)}},onInvoke:(r,i,s,o,l,a,u)=>{try{return Bl(e),r.invoke(s,o,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Qy(a)&&t(),Ul(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,ms(e),Ao(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function ms(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Bl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ul(e){e._nesting--,Ao(e)}var Gy=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new O;onMicrotaskEmpty=new O;onStable=new O;onError=new O;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Wy(e){return fd(e,"__ignore_ng_zone__")}function Qy(e){return fd(e,"__scheduler_tick__")}function fd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Yy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ky=new k("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function pd(e,t,n){let r=e.get(Ky);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Jy(e,t){for(let[n,r]of t)pd(e,r.animateFns)}function Zl(e,t,n,r){let i=e?.[Dr]?.enter;t!==null&&i&&i.has(n.index)&&Jy(r,i)}function It(e,t,n,r,i,s,o,l){if(i!=null){let a,u=!1;Ge(i)?a=i:tt(i)&&(u=!0,i=i[qe]);let c=Re(i);e===0&&r!==null?(Zl(l,r,s,n),o==null?nd(t,r,c):Fr(t,r,c,o||null,!0)):e===1&&r!==null?(Zl(l,r,s,n),Fr(t,r,c,o||null,!0)):e===2?$l(l,s,n,d=>{Cy(t,c,u,d)}):e===3&&$l(l,s,n,()=>{t.destroyNode(c)}),a!=null&&dv(t,e,n,a,s,r,o)}}function Xy(e,t){gd(e,t),t[qe]=null,t[Te]=null}function ev(e,t,n,r,i,s){r[qe]=i,r[Te]=t,oi(e,r,n,1,i,s)}function gd(e,t){t[Ue].changeDetectionScheduler?.notify(9),oi(e,t,t[U],2,null,null)}function tv(e){let t=e[Cn];if(!t)return Di(e[x],e);for(;t;){let n=null;if(tt(t))n=t[Cn];else{let r=t[ae];r&&(n=r)}if(!n){for(;t&&!t[Ce]&&t!==e;)tt(t)&&Di(t[x],t),t=t[ee];t===null&&(t=e),tt(t)&&Di(t[x],t),n=t&&t[Ce]}t=n}}function Vo(e,t){let n=e[Lt],r=n.indexOf(t);n.splice(r,1)}function md(e,t){if(Gt(t))return;let n=t[U];n.destroyNode&&oi(e,t,n,3,null,null),tv(t)}function Di(e,t){if(Gt(t))return;let n=D(null);try{t[C]&=-129,t[C]|=256,t[fe]&&qa(t[fe]),iv(e,t),rv(e,t),t[x].type===1&&t[U].destroy();let r=t[ht];if(r!==null&&Ge(t[ee])){r!==t[ee]&&Vo(r,t);let i=t[Ze];i!==null&&i.detachView(e)}ds(t)}finally{D(n)}}function $l(e,t,n,r){let i=e?.[Dr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&Lr.add(e),pd(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let l=0;l<s.animateFns.length;l++){let a=s.animateFns[l],{promise:u}=a();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),nv(e,r)}else e&&Lr.delete(e),r(!1)},i)}function nv(e,t){let n=e[Dr]?.running;if(n){n.then(()=>{e[Dr].running=void 0,Lr.delete(e),t(!0)});return}t(!1)}function rv(e,t){let n=e.cleanup,r=t[Ir];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let l=n[o+3];l>=0?r[l]():r[-l].unsubscribe(),o+=2}else{let l=r[n[o+1]];n[o].call(l)}r!==null&&(t[Ir]=null);let i=t[et];if(i!==null){t[et]=null;for(let o=0;o<i.length;o++){let l=i[o];l()}}let s=t[Or];if(s!==null){t[Or]=null;for(let o of s)o.destroy()}}function iv(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Fn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let l=i[s[o]],a=s[o+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,s);try{s.call(i)}finally{H(5,i,s)}}}}}function sv(e,t,n){return ov(e,t.parent,n)}function ov(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[qe];if(qt(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===mt.None||i===mt.Emulated)return null}return Le(r,n)}function lv(e,t,n){return uv(e,t,n)}function av(e,t,n){return e.type&40?Le(e,n):null}var uv=av,ql;function Mo(e,t,n,r){let i=sv(e,r,t),s=t[U],o=r.parent||t[Te],l=lv(o,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ll(s,i,n[a],l,!1);else Ll(s,i,n,l,!1);ql!==void 0&&ql(s,r,t,n,i)}function cn(e,t){if(t!==null){let n=t.type;if(n&3)return Le(t,e);if(n&4)return ys(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return cn(e,r);{let i=e[t.index];return Ge(i)?ys(-1,i):Re(i)}}else{if(n&128)return cn(e,t.next);if(n&32)return Io(t,e)()||Re(e[t.index]);{let r=yd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=pt(e[Ne]);return cn(i,r)}else return cn(e,t.next)}}}return null}function yd(e,t){if(t!==null){let n=e[Ne][Te],r=t.projection;return n.projection[r]}return null}function ys(e,t){let n=ae+e+1;if(n<t.length){let r=t[n],i=r[x].firstChild;if(i!==null)return cn(r,i)}return t[ft]}function No(e,t,n,r,i,s,o){for(;n!=null;){let l=r[dt];if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(o&&t===0&&(a&&zt(Re(a),r),n.flags|=2),!$c(n))if(u&8)No(e,t,n.child,r,i,s,!1),It(t,e,l,i,a,n,s,r);else if(u&32){let c=Io(n,r),d;for(;d=c();)It(t,e,l,i,d,n,s,r);It(t,e,l,i,a,n,s,r)}else u&16?cv(e,t,r,n,i,s):It(t,e,l,i,a,n,s,r);n=o?n.projectionNext:n.next}}function oi(e,t,n,r,i,s){No(n,r,e.firstChild,t,i,s,!1)}function cv(e,t,n,r,i,s){let o=n[Ne],l=o[Te].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];It(t,e,n[dt],i,u,r,s,n)}else{let a=l,u=o[ee];Nc(r)&&(a.flags|=128),No(e,t,a,u,i,s,!0)}}function dv(e,t,n,r,i,s,o){let l=r[ft],a=Re(r);l!==a&&It(t,e,n,s,l,i,o);for(let u=ae;u<r.length;u++){let c=r[u];oi(c[x],c,e,t,s,l)}}function hv(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:lt.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=lt.Important),e.setStyle(n,r,i,s))}}function vd(e,t,n,r,i){let s=Wt(),o=r&2;try{gt(-1),o&&t.length>ue&&ad(e,t,ue,!1),H(o?2:0,i,n),n(r,i)}finally{gt(s),H(o?3:1,i,n)}}function li(e,t,n){vv(e,t,n),(n.flags&64)===64&&bv(e,t,n)}function ai(e,t,n=Le){let r=t.localNames;if(r!==null){let i=t.index+1;for(let s=0;s<r.length;s+=2){let o=r[s+1],l=o===-1?n(t,e):e[o];e[i++]=l}}}function fv(e,t,n,r){let i=r.get(Nm,Zc)||n===mt.ShadowDom,s=e.selectRootElement(t,i);return pv(s),s}function pv(e){gv(e)}var gv=()=>null;function mv(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function bd(e,t,n,r,i,s){let o=t[x];if(Lo(e,o,t,n,r)){qt(e)&&yv(t,e.index);return}e.type&3&&(n=mv(n)),wd(e,t,n,r,i,s)}function wd(e,t,n,r,i,s){if(e.type&3){let o=Le(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function yv(e,t){let n=Pe(t,e);n[C]&16||(n[C]|=64)}function vv(e,t,n){let r=n.directiveStart,i=n.directiveEnd;qt(n)&&Hy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Pr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let l=e.data[o],a=Sn(t,e,o,n);if(zt(a,t),s!==null&&Cv(t,o-r,a,l,n,s),$e(l)){let u=Pe(n.index,t);u[oe]=Sn(t,e,o,n)}}}function bv(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=zg();try{gt(s);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];ls(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&wv(a,u)}}finally{gt(-1),ls(o)}}function wv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ro(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];Vy(t,s.selectors,!1)&&(r??=[],$e(s)?r.unshift(s):r.push(s))}return r}function _v(e,t,n,r,i,s){let o=Le(e,t);xv(t[U],o,s,e.value,n,r,i)}function xv(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let l=o==null?Qr(s):o(s,r||"",i);e.setAttribute(t,i,l,n)}}function Cv(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let l=0;l<o.length;l+=2){let a=o[l],u=o[l+1];ps(r,n,a,u)}}function Po(e,t,n,r,i){let s=ue+n,o=t[x],l=i(o,t,e,r,n);t[s]=l,Mn(e,!0);let a=e.type===2;return a?(rd(t[U],l,e),(Vg()===0||Vn(e))&&zt(l,t),Mg()):zt(l,t),vo()&&(!a||!$c(e))&&Mo(o,t,l,e),e}function Fo(e){let t=e;return ic()?Pg():(t=t.parent,Mn(t,!1)),t}function kv(e,t){let n=e[dt];if(!n)return;let r;try{r=n.get(rt,null)}catch{r=null}r?.(t)}function Lo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],l=!1;if(o)for(let a=0;a<o.length;a+=2){let u=o[a],c=o[a+1],d=t.data[u];ps(d,n[u],c,i),l=!0}if(s)for(let a of s){let u=n[a],c=t.data[a];ps(c,u,r,i),l=!0}return l}function Sv(e,t){let n=Pe(t,e),r=n[x];Ev(r,n);let i=n[qe];i!==null&&n[Tr]===null&&(n[Tr]=qc(i,n[dt])),H(18),jo(r,n,n[oe]),H(19,n[oe])}function Ev(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function jo(e,t,n){mo(t);try{let r=e.viewQuery;r!==null&&fs(1,r,n);let i=e.template;i!==null&&vd(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ze]?.finishViewCreation(e),e.staticContentQueries&&Gc(e,t),e.staticViewQueries&&fs(2,e.viewQuery,n);let s=e.components;s!==null&&Tv(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[C]&=-5,yo()}}function Tv(e,t){for(let n=0;n<t.length;n++)Sv(e,t[n])}function Iv(e,t,n,r){let i=D(null);try{let s=t.tView,o=e[C]&4096?4096:16,l=Eo(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[ht]=a;let u=e[Ze];return u!==null&&(l[Ze]=u.createEmbeddedView(s)),jo(s,l,n),l}finally{D(i)}}function Gl(e,t){return!t||t.firstChild===null||Nc(e)}function Hr(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let s=t[n.index];s!==null&&r.push(Re(s)),Ge(s)&&Ov(s,r);let o=n.type;if(o&8)Hr(e,t,n.child,r);else if(o&32){let l=Io(n,t),a;for(;a=l();)r.push(a)}else if(o&16){let l=yd(t,n);if(Array.isArray(l))r.push(...l);else{let a=pt(t[Ne]);Hr(a[x],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Ov(e,t){for(let n=ae;n<e.length;n++){let r=e[n],i=r[x].firstChild;i!==null&&Hr(r[x],r,i,t)}e[ft]!==e[qe]&&t.push(e[ft])}function _d(e){if(e[Ti]!==null){for(let t of e[Ti])t.impl.addSequence(t);e[Ti].length=0}}var xd=[];function Dv(e){return e[fe]??Av(e)}function Av(e){let t=xd.pop()??Object.create(Mv);return t.lView=e,t}function Vv(e){e.lView[fe]!==e&&(e.lView=null,xd.push(e))}var Mv=ne(q({},Gr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Jr(e.lView)},consumerOnSignalRead(){this.lView[fe]=this}});function Nv(e){let t=e[fe]??Object.create(Rv);return t.lView=e,t}var Rv=ne(q({},Gr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=pt(e.lView);for(;t&&!Cd(t[x]);)t=pt(t);t&&fo(t)},consumerOnSignalRead(){this.lView[fe]=this}});function Cd(e){return e.type!==2}function kd(e){if(e[Or]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Or])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[C]&8192)}}var Pv=100;function Sd(e,t=0){let n=e[Ue].rendererFactory,r=!1;r||n.begin?.();try{Fv(e,t)}finally{r||n.end?.()}}function Fv(e,t){let n=sc();try{kl(!0),vs(e,t);let r=0;for(;kn(e);){if(r===Pv)throw new _(103,!1);r++,vs(e,1)}}finally{kl(n)}}function Lv(e,t,n,r){if(Gt(t))return;let i=t[C],s=!1,o=!1;mo(t);let l=!0,a=null,u=null;s||(Cd(e)?(u=Dv(t),a=Ki(u)):xf()===null?(l=!1,u=Nv(t),a=Ki(u)):t[fe]&&(qa(t[fe]),t[fe]=null));try{Yu(t),Fg(e.bindingStartIndex),n!==null&&vd(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&ar(t,h,null)}else{let h=e.preOrderHooks;h!==null&&ur(t,h,0,null),Ii(t,0)}if(o||jv(t),kd(t),Ed(t,0),e.contentQueries!==null&&Gc(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&ar(t,h)}else{let h=e.contentHooks;h!==null&&ur(t,h,1),Ii(t,1)}zv(e,t);let d=e.components;d!==null&&Id(t,d,0);let f=e.viewQuery;if(f!==null&&fs(2,f,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&ar(t,h)}else{let h=e.viewHooks;h!==null&&ur(t,h,2),Ii(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ei]){for(let h of t[Ei])h();t[Ei]=null}s||(_d(t),t[C]&=-73)}catch(c){throw s||Jr(t),c}finally{u!==null&&(Za(u,a),l&&Vv(u)),yo()}}function Ed(e,t){for(let n=Fc(e);n!==null;n=Lc(n))for(let r=ae;r<n.length;r++){let i=n[r];Td(i,t)}}function jv(e){for(let t=Fc(e);t!==null;t=Lc(t)){if(!(t[C]&2))continue;let n=t[Lt];for(let r=0;r<n.length;r++){let i=n[r];fo(i)}}}function Hv(e,t,n){H(18);let r=Pe(t,e);Td(r,n),H(19,r[oe])}function Td(e,t){ho(e)&&vs(e,t)}function vs(e,t){let n=e[x],r=e[C],i=e[fe],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&$a(i)),s||=!1,i&&(i.dirty=!1),e[C]&=-9217,s)Lv(n,e,n.template,e[oe]);else if(r&8192){let o=D(null);try{kd(e),Ed(e,1);let l=n.components;l!==null&&Id(e,l,1),_d(e)}finally{D(o)}}}function Id(e,t,n){for(let r=0;r<t.length;r++)Hv(e,t[r],n)}function zv(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)gt(~i);else{let s=i,o=n[++r],l=n[++r];Hg(o,s);let a=t[s];H(24,a),l(2,a),H(25,a)}}}finally{gt(-1)}}function Ho(e,t){let n=sc()?64:1088;for(e[Ue].changeDetectionScheduler?.notify(t);e;){e[C]|=n;let r=pt(e);if(Vr(e)&&!r)return e;e=r}return null}function Od(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Bv(e,t,n,r=!0){let i=t[x];if(Uv(i,t,e,n),r){let o=ys(n,e),l=t[U],a=l.parentNode(e[ft]);a!==null&&ev(i,e[Te],l,t,a,o)}let s=t[Tr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function bs(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n];if(r){let i=r[ht];i!==null&&i!==e&&Vo(i,r),t>0&&(e[n-1][Ce]=r[Ce]);let s=Er(e,ae+t);Xy(r[x],r);let o=s[Ze];o!==null&&o.detachView(s[x]),r[ee]=null,r[Ce]=null,r[C]&=-129}return r}function Uv(e,t,n,r){let i=ae+r,s=n.length;r>0&&(n[i-1][Ce]=t),r<s-ae?(t[Ce]=n[i],Ru(n,ae+r,t)):(n.push(t),t[Ce]=null),t[ee]=n;let o=t[ht];o!==null&&n!==o&&Dd(o,t);let l=t[Ze];l!==null&&l.insertView(e),ss(t),t[C]|=128}function Dd(e,t){let n=e[Lt],r=t[ee];if(tt(r))e[C]|=2;else{let i=r[ee][Ne];t[Ne]!==i&&(e[C]|=2)}n===null?e[Lt]=[t]:n.push(t)}var En=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[x];return Hr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[oe]}set context(e){this._lView[oe]=e}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ee];if(Ge(e)){let t=e[Ar],n=t?t.indexOf(this):-1;n>-1&&(bs(e,n),Er(t,n))}this._attachedToViewContainer=!1}md(this._lView[x],this._lView)}onDestroy(e){Ku(this._lView,e)}markForCheck(){Ho(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){ss(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,Sd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Vr(this._lView),t=this._lView[ht];t!==null&&!e&&Vo(t,this._lView),gd(this._lView[x],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=e;let t=Vr(this._lView),n=this._lView[ht];n!==null&&!t&&Dd(n,this._lView),ss(this._lView)}};function Zv(e){return kn(e._lView)||!!(e._lView[C]&64)}function $v(e){fo(e._lView)}var yt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qv;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let s=Iv(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new En(s)}}return e})();function qv(){return zo(se(),N())}function zo(e,t){return e.type&4?new yt(t,e,Yt(e,t)):null}function ui(e,t,n,r,i){let s=e.data[t];if(s===null)s=Gv(e,t,n,r,i),jg()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=Rg();s.injectorIndex=o===null?-1:o.injectorIndex}return Mn(s,!0),s}function Gv(e,t,n,r,i){let s=rc(),o=ic(),l=o?s:s&&s.parent,a=e.data[t]=Qv(e,l,n,t,r,i);return Wv(e,a,s,o),a}function Wv(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Qv(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,l=0;return Ng()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Nx=new RegExp(`^(\\d+)*(${Mm}|${Vm})*(.*)`),Yv=()=>null;function Wl(e,t){return Yv(e,t)}var Kv=class{},Ad=class{},Jv=class{resolveComponentFactory(e){throw new _(917,!1)}},jn=class{static NULL=new Jv},Bo=class{},Vd=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Xv()}return e})();function Xv(){let e=N(),t=se(),n=Pe(t.index,e);return(tt(n)?n:e)[U]}var e0=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>null})}return e})(),Ai={},t0=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Ai,n);return r!==Ai||t===Ai?r:this.parentInjector.get(e,t,n)}};function zr(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(t!==null)for(let o=0;o<t.length;o++){let l=t[o];if(typeof l=="number")s=l;else if(s==1)i=vl(i,l);else if(s==2){let a=l,u=t[++o];r=vl(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function F(e,t=0){let n=N();if(n===null)return b(e,t);let r=se();return Dc(r,n,re(e),t)}function Md(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let l=o,a=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[l,a,u]=c.resolveHostDirectives(o);break}i0(e,t,n,l,s,a,u)}s!==null&&r!==null&&n0(n,r,s)}function n0(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let s=n[t[i+1]];if(s==null)throw new _(-301,!1);r.push(t[i],s)}}function r0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function i0(e,t,n,r,i,s,o){let l=r.length,a=!1;for(let f=0;f<l;f++){let h=r[f];!a&&$e(h)&&(a=!0,r0(e,n,f)),us(Pr(n,t),e,h.type)}c0(n,e.data.length,l);for(let f=0;f<l;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=ld(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let f=0;f<l;f++){let h=r[f];if(n.mergedAttrs=Ht(n.mergedAttrs,h.hostAttrs),o0(e,n,t,d,h),u0(d,h,i),o!==null&&o.has(h)){let[m,v]=o.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,v+n.directiveStart])}else(s===null||!s.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}s0(e,n,s)}function s0(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Ql(0,t,i,r),Ql(1,t,i,r),Kl(t,r,!1);else{let s=n.get(i);Yl(0,t,s,r),Yl(1,t,s,r),Kl(t,r,!0)}}}function Ql(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(r),Nd(t,s)}}function Yl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o=i[s],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[o]??=[],l[o].push(r,s),Nd(t,o)}}function Nd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Kl(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||ko(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){o??=[],o.push(a,r[l+1]);break}}else if(n&&s.hasOwnProperty(a)){let u=s[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(o)}function o0(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Rt(i.type,!0)),o=new Fn(s,$e(i),F,null);e.blueprint[r]=o,n[r]=o,l0(e,t,r,ld(e,n,i.hostVars,_t),i)}function l0(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let l=~t.index;a0(o)!=l&&o.push(l),o.push(n,r,s)}}function a0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function u0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;$e(t)&&(n[""]=e)}}function c0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Uo(e,t,n,r,i,s,o,l){let a=t[x],u=a.consts,c=jt(u,o),d=ui(a,e,n,r,c);return s&&Md(a,t,d,jt(u,l),i),d.mergedAttrs=Ht(d.mergedAttrs,d.attrs),d.attrs!==null&&zr(d,d.attrs,!1),d.mergedAttrs!==null&&zr(d,d.mergedAttrs,!0),a.queries!==null&&a.queries.elementStart(a,d),d}function Zo(e,t){xc(e,t),qu(t)&&e.queries.elementEnd(t)}function d0(e,t,n,r,i,s){let o=t.consts,l=jt(o,i),a=ui(t,e,n,r,l);if(a.mergedAttrs=Ht(a.mergedAttrs,a.attrs),s!=null){let u=jt(o,s);a.localNames=[];for(let c=0;c<u.length;c+=2)a.localNames.push(u[c],-1)}return a.attrs!==null&&zr(a,a.attrs,!1),a.mergedAttrs!==null&&zr(a,a.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,a),a}function Rd(e){return f0(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function h0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function f0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Jt(e,t,n){if(n===_t)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function dr(e,t,n){return function r(i){let s=qt(e)?Pe(e.index,t):t;Ho(s,5);let o=t[oe],l=Jl(t,o,n,i),a=r.__ngNextListenerFn__;for(;a;)l=Jl(t,o,a,i)&&l,a=a.__ngNextListenerFn__;return l}}function Jl(e,t,n,r){let i=D(null);try{return H(6,t,n),n(r)!==!1}catch(s){return kv(e,s),!1}finally{H(7,t,n),D(i)}}function Pd(e,t,n,r,i,s,o,l){let a=Vn(e),u=!1,c=null;if(!r&&a&&(c=g0(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=Le(e,n),f=r?r(d):d;Pm(n,f,s,l);let h=i.listen(f,s,l);if(!p0(s)){let g=r?m=>r(Re(m[e.index])):e.index;Fd(g,t,n,s,l,h,!1)}}return u}function p0(e){return e.startsWith("animation")||e.startsWith("transition")}function g0(e,t,n,r){let i=e.cleanup;if(i!=null)for(let s=0;s<i.length-1;s+=2){let o=i[s];if(o===n&&i[s+1]===r){let l=t[Ir],a=i[s+2];return l&&l.length>a?l[a]:null}typeof o=="string"&&(s+=2)}return null}function Fd(e,t,n,r,i,s,o){let l=t.firstCreatePass?Xu(t):null,a=Ju(n),u=a.length;a.push(i,s),l&&l.push(r,e,u,(u+1)*(o?-1:1))}function Xl(e,t,n,r,i,s){let o=t[n],l=t[x],a=l.data[n].outputs[r],u=o[a].subscribe(s);Fd(e.index,l,t,i,s,u,!0)}var ws=Symbol("BINDING"),m0=class extends jn{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=xn(e);return new Ld(t,this.ngModule)}};function y0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&si.SignalBased)!==0};return i&&(s.transform=i),s})}function v0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function b0(e,t,n){let r=t instanceof Be?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new t0(n,r):n}function w0(e){let t=e.get(Bo,null);if(t===null)throw new _(407,!1);let n=e.get(e0,null),r=e.get(Pn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function _0(e,t){let n=x0(e);return td(t,n,n==="svg"?Gu:n==="math"?Eg:null)}function x0(e){return(e.selectors[0][0]||"div").toLowerCase()}var Ld=class extends Ad{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=y0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=v0(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Py(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){H(22);let o=D(null);try{let l=this.componentDef,a=C0(n,l,s,i),u=b0(l,r||this.ngModule,e),c=w0(u),d=c.rendererFactory.createRenderer(null,l),f=n?fv(d,n,l.encapsulation,u):_0(l,d),h=s?.some(ea)||i?.some(v=>typeof v!="function"&&v.bindings.some(ea)),g=Eo(null,a,null,512|od(l),null,null,c,d,u,null,qc(f,u,!0));g[ue]=f,mo(g);let m=null;try{let v=Uo(ue,g,2,"#host",()=>a.directiveRegistry,!0,0);rd(d,f,v),zt(f,g),li(a,g,v),Co(a,v,g),Zo(a,v),t!==void 0&&E0(v,this.ngContentSelectors,t),m=Pe(v.index,g),g[oe]=m[oe],jo(a,g,null)}catch(v){throw m!==null&&ds(m),ds(g),v}finally{H(23),yo()}return new S0(this.componentType,g,!!h)}finally{D(o)}}};function C0(e,t,n,r){let i=e?["ng-version","20.3.15"]:Fy(t.selectors[0]),s=null,o=null,l=0;if(n)for(let u of n)l+=u[ws].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let c=r[u];if(typeof c!="function")for(let d of c.bindings){l+=d[ws].requiredVars;let f=u+1;d.create&&(d.targetIdx=f,(s??=[]).push(d)),d.update&&(d.targetIdx=f,(o??=[]).push(d))}}let a=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=ju(c);a.push(d)}return So(0,null,k0(s,o),1,l,a,null,null,null,[i],null)}function k0(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function ea(e){let t=e[ws].kind;return t==="input"||t==="twoWay"}var S0=class extends Kv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Qu(t[x],ue),this.location=Yt(this._tNode,t),this.instance=Pe(this._tNode.index,t)[oe],this.hostView=this.changeDetectorRef=new En(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Lo(n,r[x],r,e,t);this.previousInputValues.set(e,t);let s=Pe(n.index,r);Ho(s,1)}get injector(){return new fn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function E0(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let s=n[i];r.push(s!=null&&s.length?Array.from(s):null)}}var Xt=(()=>{class e{static __NG_ELEMENT_ID__=T0}return e})();function T0(){let e=se();return Hd(e,N())}var I0=Xt,jd=class extends I0{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Yt(this._hostTNode,this._hostLView)}get injector(){return new fn(this._hostTNode,this._hostLView)}get parentInjector(){let e=_o(this._hostTNode,this._hostLView);if(kc(e)){let t=Rr(e,this._hostLView),n=Nr(e),r=t[x].data[n+8];return new fn(r,t)}else return new fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=ta(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-ae}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=Wl(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,Gl(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let l=e&&!rm(e),a;if(l)a=t;else{let m=t||{};a=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef,s=m.directives,o=m.bindings}let u=l?e:new Ld(xn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let m=(l?c:this.parentInjector).get(Be,null);m&&(i=m)}let d=xn(u.componentType??{}),f=Wl(this._lContainer,d?.id??null),h=f?.firstChild??null,g=u.create(c,r,h,i,s,o);return this.insertImpl(g.hostView,a,Gl(this._hostTNode,f)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Ig(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let l=r[ee],a=new jd(l,l[Te],l[ee]);a.detach(a.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return Bv(s,r,i,n),e.attachToViewContainerRef(),Ru(Vi(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=ta(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=bs(this._lContainer,t);n&&(Er(Vi(this._lContainer),t),md(n[x],n))}detach(e){let t=this._adjustIndex(e,-1),n=bs(this._lContainer,t);return n&&Er(Vi(this._lContainer),t)!=null?new En(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function ta(e){return e[Ar]}function Vi(e){return e[Ar]||(e[Ar]=[])}function Hd(e,t){let n,r=t[e.index];return Ge(r)?n=r:(n=Od(r,t,null,e),t[e.index]=n,To(t,n)),D0(n,t,e,r),new jd(n,e,t)}function O0(e,t){let n=e[U],r=n.createComment(""),i=Le(t,e),s=n.parentNode(i);return Fr(n,s,r,n.nextSibling(i),!1),r}var D0=M0,A0=()=>!1;function V0(e,t,n){return A0(e,t,n)}function M0(e,t,n,r){if(e[ft])return;let i;n.type&8?i=Re(r):i=O0(t,n),e[ft]=i}var N0=class zd{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new zd(this.queryList)}setDirty(){this.queryList.setDirty()}},R0=class Bd{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){let o=n.getByIndex(s),l=this.queries[o.indexInDeclarationView];i.push(l.clone())}return new Bd(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)$o(t,n).matches!==null&&this.queries[n].setDirty()}},P0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=q0(e):this.predicate=e}},F0=class Ud{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,n!==null?n.push(s):n=[s])}return n!==null?new Ud(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},L0=class Zd{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Zd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let s=r[i];this.matchTNodeWithReadOption(t,n,j0(n,s)),this.matchTNodeWithReadOption(t,n,cr(n,t,s,!1,!1))}else r===yt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,cr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Kt||i===Xt||i===yt&&n.type&4)this.addMatch(n.index,-2);else{let s=cr(n,t,i,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function j0(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function H0(e,t){return e.type&11?Yt(e,t):e.type&4?zo(e,t):null}function z0(e,t,n,r){return n===-1?H0(t,e):n===-2?B0(e,t,r):Sn(e,e[x],n,t)}function B0(e,t,n){if(n===Kt)return Yt(t,e);if(n===yt)return zo(t,e);if(n===Xt)return Hd(t,e)}function $d(e,t,n,r){let i=t[Ze].queries[r];if(i.matches===null){let s=e.data,o=n.matches,l=[];for(let a=0;o!==null&&a<o.length;a+=2){let u=o[a];if(u<0)l.push(null);else{let c=s[u];l.push(z0(t,c,o[a+1],n.metadata.read))}}i.matches=l}return i.matches}function _s(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=$d(e,t,i,n);for(let l=0;l<s.length;l+=2){let a=s[l];if(a>0)r.push(o[l/2]);else{let u=s[l+1],c=t[-a];for(let d=ae;d<c.length;d++){let f=c[d];f[ht]===f[ee]&&_s(f[x],f,u,r)}if(c[Lt]!==null){let d=c[Lt];for(let f=0;f<d.length;f++){let h=d[f];_s(h[x],h,u,r)}}}}}return r}function U0(e,t){return e[Ze].queries[t].queryList}function Z0(e,t,n){let r=new Em((n&4)===4);return Ag(e,t,r,r.destroy),(t[Ze]??=new R0).queries.push(new N0(r))-1}function $0(e,t,n){let r=J();return r.firstCreatePass&&(G0(r,new P0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Z0(r,N(),t)}function q0(e){return e.split(",").map(t=>t.trim())}function G0(e,t,n){e.queries===null&&(e.queries=new F0),e.queries.track(new L0(t,n))}function $o(e,t){return e.queries.getByIndex(t)}function W0(e,t){let n=e[x],r=$o(n,t);return r.crossesNgTemplate?_s(n,e,t,[]):$d(n,e,r,t)}var xs=class{},qd=class extends xs{injector;componentFactoryResolver=new m0(this);instance=null;constructor(e){super();let t=new uo([...e.providers,{provide:xs,useValue:this},{provide:jn,useValue:this.componentFactoryResolver}],e.parent||ao(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Q0(e,t,n=null){return new qd({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Y0=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Hu(!1,n.type),i=r.length>0?Q0([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(b(Be))})}return e})();function Ie(e){return ni(()=>{let t=Gd(e),n=ne(q({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Y0).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&cd("NgStandalone"),Wd(n);let r=e.dependencies;return n.directiveDefs=na(r,K0),n.pipeDefs=na(r,fg),n.id=t1(n),n})}function K0(e){return xn(e)||ju(e)}function ci(e){return ni(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function J0(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,l,a;Array.isArray(i)?(l=i[0],s=i[1],o=i[2]??s,a=i[3]||null):(s=i,o=i,l=si.None,a=null),n[s]=[r,l,a],t[s]=o}return n}function X0(e){if(e==null)return ct;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Oe(e){return ni(()=>{let t=Gd(e);return Wd(t),t})}function e1(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:J0(e.inputs,t),outputs:X0(e.outputs),debugInfo:null}}function Wd(e){e.features?.forEach(t=>t(e))}function na(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let s=t(i);s!==null&&r.push(s)}return r}:null}function t1(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function n1(e){return Object.getPrototypeOf(e.prototype).constructor}function en(e){let t=n1(e.type),n=!0,r=[e];for(;t;){let i;if($e(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let o=e;o.inputs=Mi(e.inputs),o.declaredInputs=Mi(e.declaredInputs),o.outputs=Mi(e.outputs);let l=i.hostBindings;l&&l1(e,l);let a=i.viewQuery,u=i.contentQueries;if(a&&s1(e,a),u&&o1(e,u),r1(e,i),$p(e.outputs,i.outputs),$e(i)&&i.data.animation){let c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}let s=i.features;if(s)for(let o=0;o<s.length;o++){let l=s[o];l&&l.ngInherit&&l(e),l===en&&(n=!1)}}t=Object.getPrototypeOf(t)}i1(r)}function r1(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function i1(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ht(i.hostAttrs,n=Ht(n,i.hostAttrs))}}function Mi(e){return e===ct?{}:e===he?[]:e}function s1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function o1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function l1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function a1(e,t,n,r,i,s,o,l){if(n.firstCreatePass){e.mergedAttrs=Ht(e.mergedAttrs,e.attrs);let c=e.tView=So(2,e,i,s,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),c.queries=n.queries.embeddedTView(e))}l&&(e.flags|=l),Mn(e,!1);let a=c1(n,t,e,r);vo()&&Mo(n,t,a,e),zt(a,t);let u=Od(a,t,a,e);t[r+ue]=u,To(t,u),V0(u,e,t)}function u1(e,t,n,r,i,s,o,l,a,u,c){let d=n+ue,f;return t.firstCreatePass?(f=ui(t,d,4,o||null,l||null),po()&&Md(t,e,f,jt(t.consts,u),Ro),xc(t,f)):f=t.data[d],a1(f,e,t,n,r,i,s,a),Vn(f)&&li(t,e,f),u!=null&&ai(e,f,c),f}function ce(e,t,n,r,i,s,o,l){let a=N(),u=J(),c=jt(u.consts,s);return u1(a,u,e,t,n,r,i,c,void 0,o,l),ce}var c1=d1;function d1(e,t,n,r){return ei(!0),t[U].createComment("")}var h1=new k("");function qo(e){return!!e&&typeof e.then=="function"}function f1(e){return!!e&&typeof e.subscribe=="function"}var Qd=new k(""),Yd=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(Qd,{optional:!0})??[];injector=w(ti);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=co(this.injector,i);if(qo(s))n.push(s);else if(f1(s)){let o=new Promise((l,a)=>{s.subscribe({complete:l,error:a})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),p1=new k("");function g1(){Af(()=>{let e="";throw new _(600,e)})}function m1(e){return e.isBoundToModule}var y1=10,Tn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(rt);afterRenderManager=w(Yy);zonelessEnabled=w(wo);rootEffectScheduler=w(tm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new nt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=w(Qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(xe(n=>!n))}constructor(){w(Oo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(Be);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=ti.NULL){return this._injector.get(ie).run(()=>{H(10);let s=n instanceof Ad;if(!this._injector.get(Yd).done){let f="";throw new _(405,f)}let o;s?o=n:o=this._injector.get(jn).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let l=m1(o)?void 0:this._injector.get(xs),a=r||o.selector,u=o.create(i,[],a,l),c=u.location.nativeElement,d=u.injector.get(h1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),hr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),H(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(ud.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,D(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Bo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<y1;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!kn(i))continue;let s=r&&!this.zonelessEnabled?0:1;Sd(i,s),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>kn(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;hr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(n),this._injector.get(p1,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Go(e,t,n,r){let i=N(),s=Nn();if(Jt(i,s,t)){let o=J(),l=Xr();_v(l,i,e,t,n,r)}return Go}var Rx=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function M(e,t,n){let r=N(),i=Nn();if(Jt(r,i,t)){let s=J(),o=Xr();bd(o,r,e,t,r[U],n)}return M}function ra(e,t,n,r,i){Lo(t,e,n,i?"class":"style",r)}function p(e,t,n,r){let i=N(),s=i[x],o=e+ue,l=s.firstCreatePass?Uo(o,i,2,t,Ro,po(),n,r):s.data[o];if(Po(l,i,e,t,Jd),Vn(l)){let a=i[x];li(a,i,l),Co(a,l,i)}return r!=null&&ai(i,l),p}function y(){let e=J(),t=se(),n=Fo(t);return e.firstCreatePass&&Zo(e,n),tc(n)&&nc(),ec(),n.classesWithoutHost!=null&&cm(n)&&ra(e,n,N(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&dm(n)&&ra(e,n,N(),n.stylesWithoutHost,!1),y}function z(e,t,n,r){return p(e,t,n,r),y(),z}function Wo(e,t,n,r){let i=N(),s=i[x],o=e+ue,l=s.firstCreatePass?d0(o,s,2,t,n,r):s.data[o];return Po(l,i,e,t,Jd),r!=null&&ai(i,l),Wo}function Qo(){let e=se(),t=Fo(e);return tc(t)&&nc(),ec(),Qo}function Kd(e,t,n,r){return Wo(e,t,n,r),Qo(),Kd}var Jd=(e,t,n,r,i)=>(ei(!0),td(t[U],r,qg()));function Xd(e,t,n){let r=N(),i=r[x],s=e+ue,o=i.firstCreatePass?Uo(s,r,8,"ng-container",Ro,po(),t,n):i.data[s];if(Po(o,r,e,"ng-container",v1),Vn(o)){let l=r[x];li(l,r,o),Co(l,o,r)}return n!=null&&ai(r,o),Xd}function eh(){let e=J(),t=se(),n=Fo(t);return e.firstCreatePass&&Zo(e,n),eh}var v1=(e,t,n,r,i)=>(ei(!0),xy(t[U],""));function tn(){return N()}function th(e,t,n){let r=N(),i=Nn();if(Jt(r,i,t)){let s=J(),o=Xr();wd(o,r,e,t,r[U],n)}return th}var qn=void 0;function b1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var w1=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qn,"{1} 'at' {0}",qn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b1],Ni={};function De(e){let t=_1(e),n=ia(t);if(n)return n;let r=t.split("-")[0];if(n=ia(r),n)return n;if(r==="en")return w1;throw new _(701,!1)}function ia(e){return e in Ni||(Ni[e]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[e]),Ni[e]}var Q=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(Q||{});function _1(e){return e.toLowerCase().replace(/_/g,"-")}var Br="en-US",x1=Br;function C1(e){typeof e=="string"&&(x1=e.toLowerCase().replace(/_/g,"-"))}function T(e,t,n){let r=N(),i=J(),s=se();return rh(i,r,r[U],s,e,t,n),T}function nh(e,t,n){let r=N(),i=J(),s=se();return(s.type&3||n)&&Pd(s,i,r,n,r[U],e,t,dr(s,r,t)),nh}function rh(e,t,n,r,i,s,o){let l=!0,a=null;if((r.type&3||o)&&(a??=dr(r,t,s),Pd(r,e,t,o,n,i,s,a)&&(l=!1)),l){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let d=0;d<c.length;d+=2){let f=c[d],h=c[d+1];a??=dr(r,t,s),Xl(r,t,f,h,i,a)}if(u&&u.length)for(let d of u)a??=dr(r,t,s),Xl(r,t,d,i,i,a)}}function V(e=1){return Zg(e)}function k1(e,t,n){$0(e,t,n)}function S1(e){let t=N(),n=J(),r=oc();go(r+1);let i=$o(n,r);if(e.dirty&&Tg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=W0(t,r);e.reset(s,km),e.notifyOnChanges()}return!0}return!1}function E1(){return U0(N(),oc())}function Gn(e,t){return e<<17|t<<2}function vt(e){return e>>17&32767}function T1(e){return(e&2)==2}function I1(e,t){return e&131071|t<<17}function Cs(e){return e|2}function Bt(e){return(e&131068)>>2}function Ri(e,t){return e&-131069|t<<2}function O1(e){return(e&1)===1}function ks(e){return e|1}function D1(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,l=vt(o),a=Bt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||An(d,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let d=vt(e[l+1]);e[r+1]=Gn(d,l),d!==0&&(e[d+1]=Ri(e[d+1],r)),e[l+1]=I1(e[l+1],r)}else e[r+1]=Gn(l,0),l!==0&&(e[l+1]=Ri(e[l+1],r)),l=r;else e[r+1]=Gn(a,0),l===0?l=r:e[a+1]=Ri(e[a+1],r),a=r;u&&(e[r+1]=Cs(e[r+1])),sa(e,c,r,!0),sa(e,c,r,!1),A1(t,c,e,r,s),o=Gn(l,a),s?t.classBindings=o:t.styleBindings=o}function A1(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&An(s,t)>=0&&(n[r+1]=ks(n[r+1]))}function sa(e,t,n,r){let i=e[n+1],s=t===null,o=r?vt(i):Bt(i),l=!1;for(;o!==0&&(l===!1||s);){let a=e[o],u=e[o+1];V1(a,t)&&(l=!0,e[o+1]=r?ks(u):Cs(u)),o=r?vt(u):Bt(u)}l&&(e[n+1]=r?Cs(i):ks(i))}function V1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?An(e,t)>=0:!1}function ih(e,t,n){return sh(e,t,n,!1),ih}function Se(e,t){return sh(e,t,null,!0),Se}function sh(e,t,n,r){let i=N(),s=J(),o=Lg(2);if(s.firstUpdatePass&&N1(s,e,o,r),t!==_t&&Jt(i,o,t)){let l=s.data[Wt()];j1(s,l,i,i[U],e,i[o+1]=H1(t,n),r,o)}}function M1(e,t){return t>=e.expandoStartIndex}function N1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[Wt()],o=M1(e,n);z1(s,r)&&t===null&&!o&&(t=!1),t=R1(i,s,t,r),D1(i,s,t,n,o,r)}}function R1(e,t,n,r){let i=Bg(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Pi(null,e,t,n,r),n=In(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Pi(i,e,t,n,r),s===null){let l=P1(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Pi(null,e,t,l[1],r),l=In(l,t.attrs,r),F1(e,t,r,l))}else s=L1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function P1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Bt(r)!==0)return e[vt(r)]}function F1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[vt(i)]=r}function L1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=In(r,o,n)}return In(r,t.attrs,n)}function Pi(e,t,n,r,i){let s=null,o=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<o&&(s=t[l],r=In(r,s.hostAttrs,i),s!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function In(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?i=o:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),dg(e,o,n?!0:t[++s]))}return e===void 0?null:e}function j1(e,t,n,r,i,s,o,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=O1(u)?oa(a,t,n,i,Bt(u),o):void 0;if(!Ur(c)){Ur(s)||T1(u)&&(s=oa(a,null,n,i,l,o));let d=Wu(Wt(),n);hv(r,o,d,i,s)}}function oa(e,t,n,r,i,s){let o=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,d=c===null,f=n[i+1];f===_t&&(f=d?he:void 0);let h=d?ki(f,r):c===r?f:void 0;if(u&&!Ur(h)&&(h=ki(a,r)),Ur(h)&&(l=h,o))return l;let g=e[i+1];i=o?vt(g):Bt(g)}if(t!==null){let a=s?t.residualClasses:t.residualStyles;a!=null&&(l=ki(a,r))}return l}function Ur(e){return e!==void 0}function H1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Nt(st(e)))),e}function z1(e,t){return(e.flags&(t?8:16))!==0}function R(e,t=""){let n=N(),r=J(),i=e+ue,s=r.firstCreatePass?ui(r,i,1,t,null):r.data[i],o=B1(r,n,s,t,e);n[i]=o,vo()&&Mo(r,n,o,s),Mn(s,!1)}var B1=(e,t,n,r,i)=>(ei(!0),wy(t[U],r));function U1(e,t,n,r=""){return Jt(e,Nn(),n)?t+Qr(n)+r:_t}function ke(e){return On("",e),ke}function On(e,t,n){let r=N(),i=U1(r,e,t,n);return i!==_t&&Z1(r,Wt(),i),On}function Z1(e,t,n){let r=Wu(t,e);_y(e[U],r,n)}function Yo(e,t,n){pc(t)&&(t=t());let r=N(),i=Nn();if(Jt(r,i,t)){let s=J(),o=Xr();bd(o,r,e,t,r[U],n)}return Yo}function oh(e,t){let n=pc(e);return n&&e.set(t),n}function Ko(e,t){let n=N(),r=J(),i=se();return rh(r,n,n[U],i,e,t),Ko}function $1(e,t,n){let r=J();if(r.firstCreatePass){let i=$e(e);Ss(n,r.data,r.blueprint,i,!0),Ss(t,r.data,r.blueprint,i,!1)}}function Ss(e,t,n,r,i){if(e=re(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ss(e[s],t,n,r,i);else{let s=J(),o=N(),l=se(),a=Ft(e)?e:re(e.provide),u=Uu(e),c=l.providerIndexes&1048575,d=l.directiveStart,f=l.providerIndexes>>20;if(Ft(e)||!e.multi){let h=new Fn(u,i,F,null),g=Li(a,t,i?c:c+f,d);g===-1?(us(Pr(l,o),s,a),Fi(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(h),o.push(h)):(n[g]=h,o[g]=h)}else{let h=Li(a,t,c+f,d),g=Li(a,t,c,c+f),m=h>=0&&n[h],v=g>=0&&n[g];if(i&&!v||!i&&!m){us(Pr(l,o),s,a);let A=W1(i?G1:q1,n.length,i,r,u,e);!i&&v&&(n[g].providerFactory=A),Fi(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(A),o.push(A)}else{let A=lh(n[i?g:h],u,!i&&r);Fi(s,e,h>-1?h:g,A)}!i&&r&&v&&n[g].componentProviders++}}}function Fi(e,t,n,r){let i=Ft(t),s=bg(t);if(i||s){let o=(s?re(t.useClass):t).prototype.ngOnDestroy;if(o){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let a=l.indexOf(n);a===-1?l.push(n,[r,o]):l[a+1].push(r,o)}else l.push(n,o)}}}function lh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Li(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function q1(e,t,n,r,i){return Es(this.multi,[])}function G1(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let l=this.providerFactory.componentProviders,a=Sn(r,r[x],this.providerFactory.index,i);o=a.slice(0,l),Es(s,o);for(let u=l;u<a.length;u++)o.push(a[u])}else o=[],Es(s,o);return o}function Es(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function W1(e,t,n,r,i,s){let o=new Fn(e,n,F,null);return o.multi=[],o.index=t,o.componentProviders=0,lh(o,i,r&&!n),o}function Jo(e,t=[]){return n=>{n.providersResolver=(r,i)=>$1(r,i?i(e):e,t)}}var Q1=(()=>{class e{zone=w(ie);changeDetectionScheduler=w(Pn);applicationRef=w(Tn);applicationErrorHandler=w(rt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Y1=new k("",{factory:()=>!1});function ah({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ie(ne(q({},uh()),{scheduleInRootZone:n})),[{provide:ie,useFactory:e},{provide:Pt,multi:!0,useFactory:()=>{let r=w(Q1,{optional:!0});return()=>r.initialize()}},{provide:Pt,multi:!0,useFactory:()=>{let r=w(J1);return()=>{r.initialize()}}},t===!0?{provide:gc,useValue:!0}:[],{provide:mc,useValue:n??dd},{provide:rt,useFactory:()=>{let r=w(ie),i=w(Be),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(Rn),s.handleError(o))})}}}]}function K1(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=ah({ngZoneFactory:()=>{let i=uh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&cd("NgZone_CoalesceEvent"),new ie(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Yr([{provide:Y1,useValue:!0},{provide:wo,useValue:!1},r])}function uh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var J1=(()=>{class e{subscription=new Me;initialized=!1;zone=w(ie);pendingTasks=w(Qt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X1=(()=>{class e{applicationErrorHandler=w(rt);appRef=w(Tn);taskService=w(Qt);ngZone=w(ie);zonelessEnabled=w(wo);tracing=w(Oo,{optional:!0});disableScheduling=w(gc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(jr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(mc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gy||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?zl:hd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(jr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,zl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eb(){return typeof $localize<"u"&&$localize.locale||Br}var Xo=new k("",{providedIn:"root",factory:()=>w(Xo,{optional:!0,skipSelf:!0})||eb()});function Ct(e){return Bp(e)}function ji(e,t){return If(e,t?.equal)}var Px=class{[Ve];constructor(e){this[Ve]=e}destroy(){this[Ve].destroy()}},tb=new k("");tb.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new _(204,!1)};var Ts=new k(""),nb=new k("");function on(e){return!e.moduleRef}function rb(e){let t=on(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ie);return n.run(()=>{on(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rt),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),on(e)){let s=()=>t.destroy(),o=e.platformInjector.get(Ts);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(Ts);o.add(s),e.moduleRef.onDestroy(()=>{hr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return sb(r,n,()=>{let s=t.get(Qt),o=s.add(),l=t.get(Yd);return l.runInitializers(),l.donePromise.then(()=>{let a=t.get(Xo,Br);if(C1(a||Br),!t.get(nb,!0))return on(e)?t.get(Tn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(on(e)){let u=t.get(Tn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return ib?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var ib;function sb(e,t,n){try{let r=n();return qo(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var fr=null;function ob(e=[],t){return ti.create({name:t,providers:[{provide:lo,useValue:"platform"},{provide:Ts,useValue:new Set([()=>fr=null])},...e]})}function lb(e=[]){if(fr)return fr;let t=ob(e);return fr=t,g1(),ab(t),t}function ab(e){let t=e.get(Bc,null);co(e,()=>{t?.forEach(n=>n())})}var ub=(()=>{class e{static __NG_ELEMENT_ID__=cb}return e})();function cb(e){return db(se(),N(),(e&16)===16)}function db(e,t,n){if(qt(e)&&!n){let r=Pe(e.index,t);return new En(r,r)}else if(e.type&175){let r=t[Ne];return new En(r,t)}return null}var hb=class{constructor(){}supports(e){return Rd(e)}create(e){return new pb(e)}},fb=(e,t)=>t,pb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||fb}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){let s=!n||t&&t.currentIndex<aa(n,r,i)?t:n,o=aa(s,r,i),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let a=o-r,u=l-r;if(a!=u){for(let d=0;d<a;d++){let f=d<i.length?i[d]:i[d]=0,h=f+d;u<=h&&h<a&&(i[d]=f+1)}let c=s.previousIndex;i[c]=u-a}}o!==l&&e(s,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)e(t)}diff(e){if(e==null&&(e=[]),!Rd(e))throw new _(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._itHead,n=!1,r,i,s;if(Array.isArray(e)){this.length=e.length;for(let o=0;o<this.length;o++)i=e[o],s=this._trackByFn(o,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,o),n=!0):(n&&(t=this._verifyReinsertion(t,i,s,o)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else r=0,h0(e,o=>{s=this._trackByFn(r,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,r),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,r)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new gb(t,n),i,r)),e}_verifyReinsertion(e,t,n,r){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let t=e._next;this._addToRemovals(this._unlink(e)),e=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,i=e._nextRemoved;return r===null?this._removalsHead=i:r._nextRemoved=i,i===null?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){let r=t===null?this._itHead:t._next;return e._next=r,e._prev=t,r===null?this._itTail=e:r._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new la),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let t=e._prev,n=e._next;return t===null?this._itHead=n:t._next=n,n===null?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new la),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},gb=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,t){this.item=e,this.trackById=t}},mb=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;n!==null;n=n._nextDup)if((t===null||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let t=e._prevDup,n=e._nextDup;return t===null?this._head=n:t._nextDup=n,n===null?this._tail=t:n._prevDup=t,this._head===null}},la=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new mb,this.map.set(t,n)),n.add(e)}get(e,t){let n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){let t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function aa(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function ua(){return new ch([new hb])}var ch=(()=>{class e{factories;static \u0275prov=I({token:e,providedIn:"root",factory:ua});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=w(e,{optional:!0,skipSelf:!0});return e.create(n,r||ua())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new _(901,!1)}}return e})();function yb(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;H(8);try{let s=i?.injector??lb(r),o=[ah({}),{provide:Pn,useExisting:X1},Yg,...n||[]],l=new qd({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return rb({r3Injector:l.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{H(9)}}function vb(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var bb={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function wb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _b(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Hi;function xb(e,t){if(!Hi){let n=Element.prototype;Hi=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Hi.call(e,t):!1}function Cb(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[wb(r)]=[n,i]}),t}function kb(e,t){return t.get(jn).resolveComponentFactory(e).inputs}function Sb(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((s,o)=>s==="*"?(i=o,!0):!1);for(let s=0,o=n.length;s<o;++s){let l=n[s],a=Eb(l,t,i);a!==-1&&r[a].push(l)}return r}function Eb(e,t,n){let r=n;return _b(e)&&t.some((i,s)=>i!=="*"&&xb(e,i)?(r=s,!0):!1),r}var Tb=10,Ib=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(jn).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Ob(this.componentFactory,e,this.inputMap)}},Ob=class{componentFactory;injector;inputMap;eventEmitters=new ru(1);events=this.eventEmitters.pipe(Su(e=>jp(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ie),this.appRef=this.injector.get(Tn),this.cdScheduler=t.get(Pn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=bb.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Tb))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),Zv(this.componentRef.hostView)&&($v(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=ti.create({providers:[],parent:this.injector}),n=Sb(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new Y(s=>{let o=i.subscribe(l=>s.next({name:r,value:l}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Db=class extends HTMLElement{ngElementEventsSubscription=null};function be(e,t){let n=kb(e,t.injector),r=t.strategyFactory||new Ib(e,t.injector),i=Cb(n);class s extends Db{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[d,f]=i[l];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:o,transform:l})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a,l)},configurable:!0,enumerable:!0})}),s}var dh=null;function Zr(){return dh}function Ab(e){dh??=e}var Vb=class{},te=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(te||{}),P=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(P||{}),le=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(le||{}),Je={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Mb(e){return De(e)[Q.LocaleId]}function Nb(e,t,n){let r=De(e),i=[r[Q.DayPeriodsFormat],r[Q.DayPeriodsStandalone]],s=ge(i,t);return ge(s,n)}function Rb(e,t,n){let r=De(e),i=[r[Q.DaysFormat],r[Q.DaysStandalone]],s=ge(i,t);return ge(s,n)}function Pb(e,t,n){let r=De(e),i=[r[Q.MonthsFormat],r[Q.MonthsStandalone]],s=ge(i,t);return ge(s,n)}function Fb(e,t){let n=De(e)[Q.Eras];return ge(n,t)}function Wn(e,t){let n=De(e);return ge(n[Q.DateFormat],t)}function Qn(e,t){let n=De(e);return ge(n[Q.TimeFormat],t)}function Yn(e,t){let n=De(e)[Q.DateTimeFormat];return ge(n,t)}function di(e,t){let n=De(e),r=n[Q.NumberSymbols][t];if(typeof r>"u"){if(t===Je.CurrencyDecimal)return n[Q.NumberSymbols][Je.Decimal];if(t===Je.CurrencyGroup)return n[Q.NumberSymbols][Je.Group]}return r}function hh(e){if(!e[Q.ExtraData])throw new _(2303,!1)}function Lb(e){let t=De(e);return hh(t),(t[Q.ExtraData][2]||[]).map(n=>typeof n=="string"?zi(n):[zi(n[0]),zi(n[1])])}function jb(e,t,n){let r=De(e);hh(r);let i=[r[Q.ExtraData][0],r[Q.ExtraData][1]],s=ge(i,t)||[];return ge(s,n)||[]}function ge(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new _(2304,!1)}function zi(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Hb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kn={},zb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Bb(e,t,n,r){let i=Kb(e);t=je(n,t)||t;let s=[],o;for(;t;)if(o=zb.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let l=i.getTimezoneOffset();r&&(l=ph(r,l),i=Yb(i,r));let a="";return s.forEach(u=>{let c=Wb(u);a+=c?c(i,n,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}function $r(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function je(e,t){let n=Mb(e);if(Kn[n]??={},Kn[n][t])return Kn[n][t];let r="";switch(t){case"shortDate":r=Wn(e,le.Short);break;case"mediumDate":r=Wn(e,le.Medium);break;case"longDate":r=Wn(e,le.Long);break;case"fullDate":r=Wn(e,le.Full);break;case"shortTime":r=Qn(e,le.Short);break;case"mediumTime":r=Qn(e,le.Medium);break;case"longTime":r=Qn(e,le.Long);break;case"fullTime":r=Qn(e,le.Full);break;case"short":let i=je(e,"shortTime"),s=je(e,"shortDate");r=Jn(Yn(e,le.Short),[i,s]);break;case"medium":let o=je(e,"mediumTime"),l=je(e,"mediumDate");r=Jn(Yn(e,le.Medium),[o,l]);break;case"long":let a=je(e,"longTime"),u=je(e,"longDate");r=Jn(Yn(e,le.Long),[a,u]);break;case"full":let c=je(e,"fullTime"),d=je(e,"fullDate");r=Jn(Yn(e,le.Full),[c,d]);break}return r&&(Kn[n][t]=r),r}function Jn(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function _e(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.slice(o.length-t)),s+o}function Ub(e,t){return _e(e,3).substring(0,t)}function $(e,t,n=0,r=!1,i=!1){return function(s,o){let l=Zb(e,s);if((n>0||l>-n)&&(l+=n),e===3)l===0&&n===-12&&(l=12);else if(e===6)return Ub(l,t);let a=di(o,Je.MinusSign);return _e(l,t,a,r,i)}}function Zb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new _(2301,!1)}}function j(e,t,n=te.Format,r=!1){return function(i,s){return $b(i,s,e,t,n,r)}}function $b(e,t,n,r,i,s){switch(n){case 2:return Pb(t,i,r)[e.getMonth()];case 1:return Rb(t,i,r)[e.getDay()];case 0:let o=e.getHours(),l=e.getMinutes();if(s){let u=Lb(t),c=jb(t,i,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,m=o>=h.hours&&l>=h.minutes,v=o<g.hours||o===g.hours&&l<g.minutes;if(h.hours<g.hours){if(m&&v)return!0}else if(m||v)return!0}else if(f.hours===o&&f.minutes===l)return!0;return!1});if(d!==-1)return c[d]}return Nb(t,i,r)[o<12?0:1];case 3:return Fb(t,r)[e.getFullYear()<=0?0:1];default:let a=n;throw new _(2302,!1)}}function Xn(e){return function(t,n,r){let i=-1*r,s=di(n,Je.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+_e(o,2,s)+_e(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+_e(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+_e(o,2,s)+":"+_e(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+_e(o,2,s)+":"+_e(Math.abs(i%60),2,s);default:throw new _(2310,!1)}}}var qb=0,pr=4;function Gb(e){let t=$r(e,qb,1).getDay();return $r(e,0,1+(t<=pr?pr:pr+7)-t)}function fh(e){let t=e.getDay(),n=t===0?-3:pr-t;return $r(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Bi(e,t=!1){return function(n,r){let i;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();i=1+Math.floor((o+s)/7)}else{let s=fh(n),o=Gb(s.getFullYear()),l=s.getTime()-o.getTime();i=1+Math.round(l/6048e5)}return _e(i,e,di(r,Je.MinusSign))}}function er(e,t=!1){return function(n,r){let i=fh(n).getFullYear();return _e(i,e,di(r,Je.MinusSign),t)}}var Ui={};function Wb(e){if(Ui[e])return Ui[e];let t;switch(e){case"G":case"GG":case"GGG":t=j(3,P.Abbreviated);break;case"GGGG":t=j(3,P.Wide);break;case"GGGGG":t=j(3,P.Narrow);break;case"y":t=$(0,1,0,!1,!0);break;case"yy":t=$(0,2,0,!0,!0);break;case"yyy":t=$(0,3,0,!1,!0);break;case"yyyy":t=$(0,4,0,!1,!0);break;case"Y":t=er(1);break;case"YY":t=er(2,!0);break;case"YYY":t=er(3);break;case"YYYY":t=er(4);break;case"M":case"L":t=$(1,1,1);break;case"MM":case"LL":t=$(1,2,1);break;case"MMM":t=j(2,P.Abbreviated);break;case"MMMM":t=j(2,P.Wide);break;case"MMMMM":t=j(2,P.Narrow);break;case"LLL":t=j(2,P.Abbreviated,te.Standalone);break;case"LLLL":t=j(2,P.Wide,te.Standalone);break;case"LLLLL":t=j(2,P.Narrow,te.Standalone);break;case"w":t=Bi(1);break;case"ww":t=Bi(2);break;case"W":t=Bi(1,!0);break;case"d":t=$(2,1);break;case"dd":t=$(2,2);break;case"c":case"cc":t=$(7,1);break;case"ccc":t=j(1,P.Abbreviated,te.Standalone);break;case"cccc":t=j(1,P.Wide,te.Standalone);break;case"ccccc":t=j(1,P.Narrow,te.Standalone);break;case"cccccc":t=j(1,P.Short,te.Standalone);break;case"E":case"EE":case"EEE":t=j(1,P.Abbreviated);break;case"EEEE":t=j(1,P.Wide);break;case"EEEEE":t=j(1,P.Narrow);break;case"EEEEEE":t=j(1,P.Short);break;case"a":case"aa":case"aaa":t=j(0,P.Abbreviated);break;case"aaaa":t=j(0,P.Wide);break;case"aaaaa":t=j(0,P.Narrow);break;case"b":case"bb":case"bbb":t=j(0,P.Abbreviated,te.Standalone,!0);break;case"bbbb":t=j(0,P.Wide,te.Standalone,!0);break;case"bbbbb":t=j(0,P.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":t=j(0,P.Abbreviated,te.Format,!0);break;case"BBBB":t=j(0,P.Wide,te.Format,!0);break;case"BBBBB":t=j(0,P.Narrow,te.Format,!0);break;case"h":t=$(3,1,-12);break;case"hh":t=$(3,2,-12);break;case"H":t=$(3,1);break;case"HH":t=$(3,2);break;case"m":t=$(4,1);break;case"mm":t=$(4,2);break;case"s":t=$(5,1);break;case"ss":t=$(5,2);break;case"S":t=$(6,1);break;case"SS":t=$(6,2);break;case"SSS":t=$(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Xn(0);break;case"ZZZZZ":t=Xn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Xn(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Xn(2);break;default:return null}return Ui[e]=t,t}function ph(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Qb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Yb(e,t,n){let r=e.getTimezoneOffset(),i=ph(t,r);return Qb(e,-1*(i-r))}function Kb(e){if(ca(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,s=1,o=1]=e.split("-").map(l=>+l);return $r(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Hb))return Jb(r)}let t=new Date(e);if(!ca(t))throw new _(2311,!1);return t}function Jb(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,l,a,u),t}function ca(e){return e instanceof Date&&!isNaN(e.valueOf())}var Xb=class{$implicit;ngForOf;index;count;constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,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}},hi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,s,o)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Xb(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,o),da(l,i)}});for(let i=0,s=r.length;i<s;i++){let o=r.get(i).context;o.index=i,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let s=r.get(i.currentIndex);da(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt),F(ch))};static \u0275dir=Oe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function da(e,t){e.context.$implicit=t.item}var nn=(()=>{class e{_viewContainer;_context=new ew;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ha(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ha(n,!1),this._elseTemplateRef=n,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt))};static \u0275dir=Oe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),ew=class{$implicit=null;ngIf=null};function ha(e,t){if(e&&!e.createEmbeddedView)throw new _(2020,!1)}var tw=class{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},gh=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Oe({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),nw=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new tw(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(F(Xt),F(yt),F(gh,9))};static \u0275dir=Oe({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function rw(e,t){return new _(2100,!1)}var iw="mediumDate",sw=new k(""),ow=new k(""),mh=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,s){if(n==null||n===""||n!==n)return null;try{let o=r??this.defaultOptions?.dateFormat??iw,l=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bb(n,o,s||this.locale,l)}catch(o){throw rw(e,o.message)}}static \u0275fac=function(n){return new(n||e)(F(Xo,16),F(sw,24),F(ow,24))};static \u0275pipe=e1({name:"date",type:e,pure:!0})}return e})(),ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({})}return e})();function yh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,s]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}var vh=class{},bh="browser";function lw(e){return e===bh}var wh=class{_doc;constructor(e){this._doc=e}manager},Is=(()=>{class e extends wh{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,s){return n.addEventListener(r,i,s),()=>this.removeEventListener(n,r,i,s)}removeEventListener(n,r,i,s){return n.removeEventListener(r,i,s)}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Os=new k(""),_h=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this});let i=n.filter(o=>!(o instanceof Is));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof Is);s&&this._plugins.push(s)}addEventListener(n,r,i,s){return this._findPluginFor(r).addEventListener(n,r,i,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(b(Os),b(ie))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Zi="ng-app-id";function fa(e){for(let t of e)t.remove()}function pa(e,t){let n=t.createElement("style");return n.textContent=e,n}function aw(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Zi}="${t}"],link[${Zi}="${t}"]`);if(i)for(let s of i)s.removeAttribute(Zi),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&n.set(s.textContent,{usage:0,elements:[s]})}function Ds(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var xh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,s={}){this.doc=n,this.appId=r,this.nonce=i,aw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,pa);r?.forEach(i=>this.addUsage(i,this.external,Ds))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let s=r.get(n);s?s.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(fa(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])fa(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,pa(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Ds(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(b(Fe),b(zc),b(Uc,8),b(xo))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),$i={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"},el=/%COMP%/g,Ch="%COMP%",uw=`_nghost-${Ch}`,cw=`_ngcontent-${Ch}`,dw=!0,hw=new k("",{providedIn:"root",factory:()=>dw});function fw(e){return cw.replace(el,e)}function pw(e){return uw.replace(el,e)}function kh(e,t){return t.map(n=>n.replace(el,e))}var ga=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,l,a=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=l,this.nonce=a,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new tl(n,o,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof ya?i.applyToHost(n):i instanceof As&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case mt.Emulated:s=new ya(a,u,r,this.appId,c,o,l,d,f);break;case mt.ShadowDom:return new gw(a,u,n,r,o,l,this.nonce,d,f);default:s=new As(a,u,r,c,o,l,d,f);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(b(_h),b(xh),b(zc),b(hw),b(Fe),b(ie),b(Uc),b(Oo,8))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),tl=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS($i[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ma(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ma(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new _(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=$i[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=$i[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(lt.DashCase|lt.Important)?e.style.setProperty(t,n,r&lt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&lt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Zr().getGlobalEventTarget(this.doc,e),!e))throw new _(5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function ma(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var gw=class extends tl{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=kh(r.id,u);for(let d of u){let f=document.createElement("style");o&&f.setAttribute("nonce",o),f.textContent=d,this.shadowRoot.appendChild(f)}let c=r.getExternalStyles?.();if(c)for(let d of c){let f=Ds(d,i);o&&f.setAttribute("nonce",o),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},As=class extends tl{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,o,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?kh(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Lr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ya=class extends As{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,l,a){let u=r+"-"+n.id;super(e,t,n,i,s,o,l,a,u),this.contentAttr=fw(u),this.hostAttr=pw(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},mw=class Sh extends Vb{supportsDOMEvents=!0;static makeCurrent(){Ab(new Sh)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=yw();return n==null?null:vw(n)}resetBaseElement(){dn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yh(document.cookie,t)}},dn=null;function yw(){return dn=dn||document.head.querySelector("base"),dn?dn.getAttribute("href"):null}function vw(e){return new URL(e,document.baseURI).pathname}var bw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),va=["alt","control","meta","shift"],ww={"\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"},_w={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},xw=(()=>{class e extends wh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),l=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(n,o.domEventName,l,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(r.pop()),o="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),o="code."),va.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(n,r){let i=ww[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),va.forEach(o=>{if(o!==i){let l=_w[o];l(n)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(n,r,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();function Cw(e){return yb(kw(e))}function kw(e){return{appProviders:[...Ow,...e?.providers??[]],platformProviders:Iw}}function Sw(){mw.makeCurrent()}function Ew(){return new Rn}function Tw(){return Dm(document),document}var Iw=[{provide:xo,useValue:bh},{provide:Bc,useValue:Sw,multi:!0},{provide:Fe,useFactory:Tw}],Ow=[{provide:lo,useValue:"root"},{provide:Rn,useFactory:Ew},{provide:Os,useClass:Is,multi:!0,deps:[Fe]},{provide:Os,useClass:xw,multi:!0,deps:[Fe]},ga,xh,_h,{provide:Bo,useExisting:ga},{provide:vh,useClass:bw},[]],nl=class{},fi=class{},Ut=class gr{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),s=n.slice(r+1).trim();this.addHeaderEntry(i,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof gr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new gr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof gr?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let s=t.value;if(!s)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(l=>s.indexOf(l)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(s=>s.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}},Dw=class{encodeKey(e){return ba(e)}encodeValue(e){return ba(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Aw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{let i=r.indexOf("="),[s,o]=i==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],l=n.get(s)||[];l.push(o),n.set(s,l)}),n}var Vw=/%(\d[a-f0-9])/gi,Mw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ba(e){return encodeURIComponent(e).replace(Vw,(t,n)=>Mw[n]??t)}function tr(e){return`${e}`}var ut=class Eh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Dw,t.fromString){if(t.fromObject)throw new _(2805,!1);this.map=Aw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(tr):[tr(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new Eh({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(tr(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(tr(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}},Nw=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Rw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function wa(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function _a(e){return typeof Blob<"u"&&e instanceof Blob}function xa(e){return typeof FormData<"u"&&e instanceof FormData}function Pw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Ca="Content-Type",ka="Accept",Th="X-Request-URL",Ih="text/plain",Oh="application/json",Fw=`${Oh}, ${Ih}, */*`,pn=class Dh{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let s;if(Rw(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new _(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),this.transferCache=s.transferCache}if(this.headers??=new Ut,this.context??=new Nw,!this.params)this.params=new ut,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let l=n.indexOf("?"),a=l===-1?"?":l<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||wa(this.body)||_a(this.body)||xa(this.body)||Pw(this.body)?this.body:this.body instanceof ut?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||xa(this.body)?null:_a(this.body)?this.body.type||null:wa(this.body)?null:typeof this.body=="string"?Ih:this.body instanceof ut?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Oh:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,s=t.keepalive??this.keepalive,o=t.priority||this.priority,l=t.cache||this.cache,a=t.mode||this.mode,u=t.redirect||this.redirect,c=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,h=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,v=t.withCredentials??this.withCredentials,A=t.reportProgress??this.reportProgress,ve=t.headers||this.headers,K=t.params||this.params,rn=t.context??this.context;return t.setHeaders!==void 0&&(ve=Object.keys(t.setHeaders).reduce((sn,it)=>sn.set(it,t.setHeaders[it]),ve)),t.setParams&&(K=Object.keys(t.setParams).reduce((sn,it)=>sn.set(it,t.setParams[it]),K)),new Dh(n,r,m,{params:K,headers:ve,context:rn,reportProgress:A,responseType:i,withCredentials:v,transferCache:h,keepalive:s,cache:l,priority:o,timeout:g,mode:a,redirect:u,credentials:c,referrer:d,integrity:f})}},Vt=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Vt||{}),rl=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Ut,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},Lw=class Ah extends rl{constructor(t={}){super(t)}type=Vt.ResponseHeader;clone(t={}){return new Ah({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},pi=class Vh extends rl{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Vt.Response;clone(t={}){return new Vh({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},qi=class extends rl{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},jw=200,Hw=204;function Gi(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Mh=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof pn)s=n;else{let a;i.headers instanceof Ut?a=i.headers:a=new Ut(i.headers);let u;i.params&&(i.params instanceof ut?u=i.params:u=new ut({fromObject:i.params})),s=new pn(n,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let o=ze(s).pipe(xu(a=>this.handler.handle(a)));if(n instanceof pn||i.observe==="events")return o;let l=o.pipe(kr(a=>a instanceof pi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(xe(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new _(2806,!1);return a.body}));case"blob":return l.pipe(xe(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new _(2807,!1);return a.body}));case"text":return l.pipe(xe(a=>{if(a.body!==null&&typeof a.body!="string")throw new _(2808,!1);return a.body}));case"json":default:return l.pipe(xe(a=>a.body))}case"response":return l;default:throw new _(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ut().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Gi(i,r))}post(n,r,i={}){return this.request("POST",n,Gi(i,r))}put(n,r,i={}){return this.request("PUT",n,Gi(i,r))}static \u0275fac=function(n){return new(n||e)(b(nl))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),zw=new k("");function Nh(e,t){return t(e)}function Bw(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function Uw(e,t,n){return(r,i)=>co(n,()=>t(r,s=>e(s,i)))}var Zw=new k(""),il=new k(""),$w=new k(""),Rh=new k("",{providedIn:"root",factory:()=>!0});function qw(){let e=null;return(t,n)=>{e===null&&(e=(w(Zw,{optional:!0})??[]).reduceRight(Bw,Nh));let r=w(yc);if(w(Rh)){let i=r.add();return e(t,n).pipe(ku(i))}else return e(t,n)}}var Sa=(()=>{class e extends nl{backend;injector;chain=null;pendingTasks=w(yc);contributeToStability=w(Rh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(il),...this.injector.get($w,[])]));this.chain=r.reduceRight((i,s)=>Uw(i,s,this.injector),Nh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(ku(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(b(fi),b(Be))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Gw=/^\)\]\}',?\n/,Ww=RegExp(`^${Th}:`,"m");function Qw(e){return"responseURL"in e&&e.responseURL?e.responseURL:Ww.test(e.getAllResponseHeaders())?e.getResponseHeader(Th):null}var Ea=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return ze(null).pipe(Su(()=>new Y(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,v)=>s.setRequestHeader(m,v.join(","))),n.headers.has(ka)||s.setRequestHeader(ka,Fw),!n.headers.has(Ca)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(Ca,m)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let o=n.serializeBody(),l=null,a=()=>{if(l!==null)return l;let m=s.statusText||"OK",v=new Ut(s.getAllResponseHeaders()),A=Qw(s)||n.url;return l=new Lw({headers:v,status:s.status,statusText:m,url:A}),l},u=()=>{let{headers:m,status:v,statusText:A,url:ve}=a(),K=null;v!==Hw&&(K=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=K?jw:0);let rn=v>=200&&v<300;if(n.responseType==="json"&&typeof K=="string"){let sn=K;K=K.replace(Gw,"");try{K=K!==""?JSON.parse(K):null}catch(it){K=sn,rn&&(rn=!1,K={error:it,text:K})}}rn?(i.next(new pi({body:K,headers:m,status:v,statusText:A,url:ve||void 0})),i.complete()):i.error(new qi({error:K,headers:m,status:v,statusText:A,url:ve||void 0}))},c=m=>{let{url:v}=a(),A=new qi({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(A)},d=c;n.timeout&&(d=m=>{let{url:v}=a(),A=new qi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:v||void 0});i.error(A)});let f=!1,h=m=>{f||(i.next(a()),f=!0);let v={type:Vt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},g=m=>{let v={type:Vt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",c),s.addEventListener("timeout",d),s.addEventListener("abort",c),n.reportProgress&&(s.addEventListener("progress",h),o!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(o),i.next({type:Vt.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",h),o!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(b(vh))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Ph=new k(""),Yw="XSRF-TOKEN",Kw=new k("",{providedIn:"root",factory:()=>Yw}),Jw="X-XSRF-TOKEN",Xw=new k("",{providedIn:"root",factory:()=>Jw}),Fh=class{},e_=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=yh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(b(Fe),b(Kw))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),t_=/^(?:https?:)?\/\//i;function n_(e,t){if(!w(Ph)||e.method==="GET"||e.method==="HEAD"||t_.test(e.url))return t(e);let n=w(Fh).getToken(),r=w(Xw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Lh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Lh||{});function r_(e,t){return{\u0275kind:e,\u0275providers:t}}function i_(...e){let t=[Mh,Ea,Sa,{provide:nl,useExisting:Sa},{provide:fi,useFactory:()=>w(zw,{optional:!0})??w(Ea)},{provide:il,useValue:n_,multi:!0},{provide:Ph,useValue:!0},{provide:Fh,useClass:e_}];for(let n of e)t.push(...n.\u0275providers);return Yr(t)}var Ta=new k("");function s_(){return r_(Lh.LegacyInterceptors,[{provide:Ta,useFactory:qw},{provide:il,useExisting:Ta,multi:!0}])}var jh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=b(o_),r},providedIn:"root"})}return e})(),o_=(()=>{class e extends jh{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Ye.NONE:return r;case Ye.HTML:return St(r,"HTML")?st(r):ed(this._doc,String(r)).toString();case Ye.STYLE:return St(r,"Style")?st(r):r;case Ye.SCRIPT:if(St(r,"Script"))return st(r);throw new _(5200,!1);case Ye.URL:return St(r,"URL")?st(r):Wc(String(r));case Ye.RESOURCE_URL:if(St(r,"ResourceURL"))return st(r);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(n){return qm(n)}bypassSecurityTrustStyle(n){return Gm(n)}bypassSecurityTrustScript(n){return Wm(n)}bypassSecurityTrustUrl(n){return Qm(n)}bypassSecurityTrustResourceUrl(n){return Ym(n)}static \u0275fac=function(n){return new(n||e)(b(Fe))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hh={},l_={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){Hh[e]=t,l_[t]=e});function a_(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=Hh[e[i]];if(s===void 0)throw new Error("Invalid character ("+e[i]+")");var o=s&32;if(s&=31,r+=s<<n,o)n+=5;else{var l=r&1;r>>>=1,l?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var mr="TOKEN_LOGGER_CONFIG",u_=class{constructor(e){this.config=this._clone(e)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(e){this.config=this._clone(e)}partialUpdateConfig(e){e&&Object.keys(e).forEach(t=>{this.config[t]=e[t]})}getConfig(){return this._clone(this.config)}_clone(e){let t={level:null};return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}},gn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",c_=class{provideConfigEngine(e){return new u_(e)}},mn="TOKEN_LOGGER_MAPPER_SERVICE",d_=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,r){let i=this.getStackLine(n);if(!i)return ze({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return ze(s);let o=this.getSourceMapLocation(i);return this.getSourceMap(o,s)}getStackLine(n){let r=new Error;try{throw r}catch{try{let i=4;return r.stack.split(`
6
6
  `)[0].includes(".js:")||(i=i+1),r.stack.split(`
7
- `)[i+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){let r=n.lastIndexOf("/"),i=n.indexOf(")");i<0&&(i=void 0);let s=n.substring(r+1,i).split(":");return s.length===3?{fileName:s[0],lineNumber:+s[1],columnNumber:+s[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let r=n.indexOf("(");r<0&&(r=n.lastIndexOf("@"),r<0&&(r=n.lastIndexOf(" ")));let i=n.indexOf(")");return i<0&&(i=void 0),n.substring(r+1,i)}getSourceMapLocation(n){let r=this.getTranspileLocation(n),i=r.substring(0,r.lastIndexOf(":"));return i.substring(0,i.lastIndexOf(":"))+".map"}getMapping(n,r){let i=0,s=0,o=0,l=n.mappings.split(";");for(let a=0;a<l.length;a++){let u=0,c=l[a].split(",");for(let d=0;d<c.length;d++){let f=aw(c[d]);if(f.length>=4&&(u+=f[0],i+=f[1],s+=f[2],o+=f[3]),a===r.lineNumber){if(u===r.columnNumber)return{fileName:n.sources[i],lineNumber:s,columnNumber:o};if(d+1===c.length)return{fileName:n.sources[i],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,r){let i=new pn("GET",n),s=`${r.fileName}:${r.lineNumber}:${r.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(i).pipe(kr(l=>l instanceof pi),Ce(l=>l.body),Hp(3),yl(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,ze(null))));let o=this.sourceMapCache.get(n).pipe(Ce(l=>l?this.getMapping(l,r):r),no(()=>ze(r)),yl(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(b(fi,8))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),yn="TOKEN_LOGGER_METADATA_SERVICE",hw=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){let r=()=>new Date().toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),r()):r()}getMetadata(n,r,i,s){let o={level:n,additional:s};return i&&typeof i=="function"?o.message=i():o.message=i,o.timestamp=this.computeTimestamp(r),o}}return e.\u0275fac=function(t){return new(t||e)(b(mh,8))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),vn="TOKEN_LOGGER_RULES_SERVICE",fw=(()=>{class e{shouldCallWriter(n,r,i,s){return!r.disableConsoleLogging&&n>=r.level}shouldCallServer(n,r,i,s){return!!r.serverLoggingUrl&&n>=r.serverLogLevel}shouldCallMonitor(n,r,i,s){return this.shouldCallWriter(n,r,i,s)||this.shouldCallServer(n,r,i,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),bn="TOKEN_LOGGER_SERVER_SERVICE",pw=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new nu(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return n==null?null:n.map((r,i)=>{try{return r instanceof Error?this.secureErrorObject(r):(typeof r=="object"&&JSON.stringify(r),r)}catch{return`The additional[${i}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);typeof n!="string"&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,r,i){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),ze(null);let s=new pn("POST",n,r,i||{}),o=ze(s),l=this.alterHttpRequest(s);return Cp(l)?o=l:l?o=ze(l):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Cu(a=>a?this.httpBackend.handle(a):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),kr(a=>a instanceof pi),Ce(a=>a.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,r){let i,s=a=>{let u=q({},a);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(a=>{i.push(s(a))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new Ut;o.has("Content-Type")||o.set("Content-Type","application/json");let l=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new ut,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(no(a=>(console.error("NGXLogger: Failed to log on server",a),wp(a)))).subscribe()};if(r.serverCallsOutsideNgZone===!0){if(!this.ngZone){console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");return}this.ngZone.runOutsideAngular(l)}else l()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(q({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=wu(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(kr(s=>s===!1),xu(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(b(fi,8),b(ie,8))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),_n="TOKEN_LOGGER_WRITER_SERVICE",Z=(function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e})(Z||{}),gw=["purple","teal","gray","gray","red","red","red"],mw=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=l_(n)&&navigator&&navigator.userAgent&&!!(navigator.userAgent.indexOf("MSIE")!==-1||navigator.userAgent.match(/Trident\//)||navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,r){return n.timestamp}getLevelToWrite(n,r){return Z[n.level]}getFileDetailsToWrite(n,r){return r.disableFileDetails===!0?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,r){return r.context?`{${r.context}}`:""}prepareMetaString(n,r){let i="";return this.prepareMetaStringFuncs.forEach(s=>{let o=s(n,r);o&&(i=i+" "+o)}),i.trim()}getColor(n,r){let i=r.colorScheme??gw;if(n.level!==Z.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case Z.WARN:console.warn(`${i} `,n.message,...s);break;case Z.ERROR:case Z.FATAL:console.error(`${i} `,n.message,...s);break;case Z.INFO:console.info(`${i} `,n.message,...s);break;default:console.log(`${i} `,n.message,...s)}}logModern(n,r,i){let s=this.getColor(n,r),o=n.additional||[];switch(n.level){case Z.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.ERROR:case Z.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.DEBUG:console.debug(`%c${i}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${i}`,`color:${s}`,n.message,...o)}}writeMessage(n,r){let i=this.prepareMetaString(n,r);this.logFunc(n,r,i)}}return e.\u0275fac=function(t){return new(t||e)(b(Co))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),Ds=(()=>{class e{constructor(n,r,i,s,o,l,a){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(Z.TRACE,n,r)}debug(n,...r){this._log(Z.DEBUG,n,r)}info(n,...r){this._log(Z.INFO,n,r)}log(n,...r){this._log(Z.LOG,n,r)}warn(n,...r){this._log(Z.WARN,n,r)}error(n,...r){this._log(Z.ERROR,n,r)}fatal(n,...r){this._log(Z.FATAL,n,r)}setCustomHttpHeaders(n){let r=this.getConfigSnapshot();r.customHttpHeaders=n,this.updateConfig(r)}setCustomParams(n){let r=this.getConfigSnapshot();r.customHttpParams=n,this.updateConfig(r)}setWithCredentialsOptionValue(n){let r=this.getConfigSnapshot();r.withCredentials=n,this.updateConfig(r)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,r,i=[]){let s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,r,i),l=this.ruleService.shouldCallServer(n,s,r,i),a=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!l&&!a)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(xu(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),a&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),l&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(b(mr),b(gn),b(yn),b(vn),b(mn),b(_n),b(bn))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),yw=(()=>{class e{constructor(n,r,i,s,o,l,a){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new Ds(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&r.partialUpdateConfig(n.partialConfig),n?.logMonitor&&r.registerMonitor(n.logMonitor),r}}return e.\u0275fac=function(t){return new(t||e)(b(Ds),b(gn),b(yn),b(vn),b(mn),b(_n),b(bn))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vw=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:mr,useValue:n||{}};else if(r.configProvider.provide!==mr)throw new Error(`Wrong injection token for configProvider, it should be ${mr} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:gn,useClass:cw};else if(r.configEngineFactoryProvider.provide!==gn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${gn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:yn,useClass:hw};else if(r.metadataProvider.provide!==yn)throw new Error(`Wrong injection token for metadataProvider, it should be '${yn}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:vn,useClass:fw};else if(r.ruleProvider.provide!==vn)throw new Error(`Wrong injection token for ruleProvider, it should be '${vn}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:mn,useClass:dw};else if(r.mapperProvider.provide!==mn)throw new Error(`Wrong injection token for mapperProvider, it should be '${mn}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:_n,useClass:mw};else if(r.writerProvider.provide!==_n)throw new Error(`Wrong injection token for writerProvider, it should be '${_n}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:bn,useClass:pw};else if(r.serverProvider.provide!==bn)throw new Error(`Wrong injection token for serverProvider, it should be '${bn}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[Ds,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,yw]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ci({type:e}),e.\u0275inj=Wr({imports:[[ye]]}),e})();function bw(e,t){e&1&&(p(0,"div",6),z(1,"span")(2,"span")(3,"span"),y())}function _w(e,t){if(e&1&&z(0,"div",7),e&2){let n=D();A("innerHTML",n.message.text,id)}}var zh=class As{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||As)};static \u0275cmp=Te({type:As,selectors:[["app-message"]],inputs:{message:"message"},decls:6,vars:8,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),ce(4,bw,4,0,"div",4)(5,_w,1,1,"div",5),y()()()()),t&2&&(Oe("user",n.isUser)("assistant",n.isAssistant),O(3),Oe("typing",n.message.isTyping),O(),A("ngIf",n.message.isTyping),O(),A("ngIf",!n.message.isTyping))},dependencies:[ye,nn],styles:[".message[_ngcontent-%COMP%]{display:flex;margin-bottom:16px;animation:_ngcontent-%COMP%_fadeIn .3s ease-in}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;max-width:100%;width:100%}.message.user[_ngcontent-%COMP%] .message-container[_ngcontent-%COMP%]{justify-content:flex-end}.message-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:85%}.message.user[_ngcontent-%COMP%] .message-content[_ngcontent-%COMP%]{align-items:flex-end}.message-bubble[_ngcontent-%COMP%]{padding:12px 16px;border-radius:10px;word-wrap:break-word;width:fit-content}.message.user[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:#ff6b4a;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a}.message.assistant[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:transparent;color:#2c3e50;border:none;box-shadow:none;padding:0}.message-bubble.typing[_ngcontent-%COMP%]{padding:16px;min-width:60px}.message-text[_ngcontent-%COMP%]{margin:0;line-height:1.5;font-size:14px;white-space:normal}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:12px 0 8px;font-weight:600}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]:first-child{margin-top:0}.message-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:8px 0;padding-left:24px}.message-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:4px 0}.message-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.message-text[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:italic}.message-text[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000d;padding:2px 4px;border-radius:3px;font-family:Courier New,monospace;font-size:13px}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{background:#0000000d;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:none;padding:0}.typing-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;height:16px}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background-color:#95a5a6;animation:_ngcontent-%COMP%_typing 1.4s infinite}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}@media (max-width: 768px){.message-bubble[_ngcontent-%COMP%]{max-width:90%}}"]})},ww=["messagesContainer"];function Cw(e,t){if(e&1&&z(0,"app-message",7),e&2){let n=t.$implicit;A("message",n)}}function xw(e,t){if(e&1&&(p(0,"div",5),ce(1,Cw,1,1,"app-message",6),y()),e&2){let n=D();O(),A("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function kw(e,t){e&1&&(p(0,"div",8)(1,"p",9),N(2,"Start a conversation by typing a message or selecting a suggestion below."),y()())}var Bh=class Vs{messages=[];messagesContainer;shouldScroll=!1;ngAfterViewChecked(){this.shouldScroll&&(this.scrollToBottom(),this.shouldScroll=!1)}ngOnChanges(t){t.messages&&(this.shouldScroll=!0)}trackByMessageId(t,n){return n.id}scrollToBottom(){try{this.messagesContainer&&(this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight)}catch(t){console.error("Error scrolling to bottom:",t)}}static \u0275fac=function(t){return new(t||Vs)};static \u0275cmp=Te({type:Vs,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&k1(ww,5),t&2){let r;O1(r=S1())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages"},features:[ri],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){t&1&&(p(0,"div",1)(1,"div",2,0),ce(3,xw,2,2,"div",3)(4,kw,3,0,"div",4),y()()),t&2&&(O(3),A("ngIf",n.messages.length>0),O(),A("ngIf",n.messages.length===0))},dependencies:[ye,hi,nn,zh],styles:[".chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;width:100%;min-height:0;max-height:100%}.messages-container[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;scroll-behavior:smooth;min-height:0;-webkit-overflow-scrolling:touch}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#0000004d}.messages-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;padding:32px}.empty-text[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;text-align:center;line-height:1.6;max-width:400px}"]})},Ow=class yr{isOpenSignal=Pt(!1);configSignal=Pt(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(q({confirmText:"Confirm",cancelText:"Cancel",confirmColor:"primary"},t)),this.isOpenSignal.set(!0),new Promise(n=>{this.resolveCallback=n})}close(t){this.isOpenSignal.set(!1),this.resolveCallback&&(this.resolveCallback(t),this.resolveCallback=null)}static \u0275fac=function(t){return new(t||yr)};static \u0275prov=T({token:yr,factory:yr.\u0275fac,providedIn:"root"})},Ta={sparkle:{viewBox:"0 0 51 51",path:'<path d="M25.5 0L27.7528 6.13139C30.6703 14.0717 36.9283 20.3297 44.8686 23.2472L51 25.5L44.8686 27.7528C36.9283 30.6703 30.6703 36.9283 27.7528 44.8686L25.5 51L23.2471 44.8686C20.3297 36.9283 14.0717 30.6703 6.13139 27.7528L0 25.5L6.13139 23.2471C14.0717 20.3297 20.3297 14.0717 23.2472 6.13139L25.5 0Z" fill="url(#paint0_linear_1_3105)"/>',defs:`<defs>
7
+ `)[i+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){let r=n.lastIndexOf("/"),i=n.indexOf(")");i<0&&(i=void 0);let s=n.substring(r+1,i).split(":");return s.length===3?{fileName:s[0],lineNumber:+s[1],columnNumber:+s[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let r=n.indexOf("(");r<0&&(r=n.lastIndexOf("@"),r<0&&(r=n.lastIndexOf(" ")));let i=n.indexOf(")");return i<0&&(i=void 0),n.substring(r+1,i)}getSourceMapLocation(n){let r=this.getTranspileLocation(n),i=r.substring(0,r.lastIndexOf(":"));return i.substring(0,i.lastIndexOf(":"))+".map"}getMapping(n,r){let i=0,s=0,o=0,l=n.mappings.split(";");for(let a=0;a<l.length;a++){let u=0,c=l[a].split(",");for(let d=0;d<c.length;d++){let f=a_(c[d]);if(f.length>=4&&(u+=f[0],i+=f[1],s+=f[2],o+=f[3]),a===r.lineNumber){if(u===r.columnNumber)return{fileName:n.sources[i],lineNumber:s,columnNumber:o};if(d+1===c.length)return{fileName:n.sources[i],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,r){let i=new pn("GET",n),s=`${r.fileName}:${r.lineNumber}:${r.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(i).pipe(kr(l=>l instanceof pi),xe(l=>l.body),Hp(3),yl(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,ze(null))));let o=this.sourceMapCache.get(n).pipe(xe(l=>l?this.getMapping(l,r):r),no(()=>ze(r)),yl(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(b(fi,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),yn="TOKEN_LOGGER_METADATA_SERVICE",h_=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){let r=()=>new Date().toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),r()):r()}getMetadata(n,r,i,s){let o={level:n,additional:s};return i&&typeof i=="function"?o.message=i():o.message=i,o.timestamp=this.computeTimestamp(r),o}}return e.\u0275fac=function(t){return new(t||e)(b(mh,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),vn="TOKEN_LOGGER_RULES_SERVICE",f_=(()=>{class e{shouldCallWriter(n,r,i,s){return!r.disableConsoleLogging&&n>=r.level}shouldCallServer(n,r,i,s){return!!r.serverLoggingUrl&&n>=r.serverLogLevel}shouldCallMonitor(n,r,i,s){return this.shouldCallWriter(n,r,i,s)||this.shouldCallServer(n,r,i,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),bn="TOKEN_LOGGER_SERVER_SERVICE",p_=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new nu(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return n==null?null:n.map((r,i)=>{try{return r instanceof Error?this.secureErrorObject(r):(typeof r=="object"&&JSON.stringify(r),r)}catch{return`The additional[${i}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);typeof n!="string"&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,r,i){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),ze(null);let s=new pn("POST",n,r,i||{}),o=ze(s),l=this.alterHttpRequest(s);return xp(l)?o=l:l?o=ze(l):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(xu(a=>a?this.httpBackend.handle(a):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),kr(a=>a instanceof pi),xe(a=>a.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,r){let i,s=a=>{let u=q({},a);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(a=>{i.push(s(a))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new Ut;o.has("Content-Type")||o.set("Content-Type","application/json");let l=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new ut,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(no(a=>(console.error("NGXLogger: Failed to log on server",a),_p(a)))).subscribe()};if(r.serverCallsOutsideNgZone===!0){if(!this.ngZone){console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");return}this.ngZone.runOutsideAngular(l)}else l()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(q({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=_u(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(kr(s=>s===!1),Cu(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(b(fi,8),b(ie,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),wn="TOKEN_LOGGER_WRITER_SERVICE",Z=(function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e})(Z||{}),g_=["purple","teal","gray","gray","red","red","red"],m_=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=lw(n)&&navigator&&navigator.userAgent&&!!(navigator.userAgent.indexOf("MSIE")!==-1||navigator.userAgent.match(/Trident\//)||navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,r){return n.timestamp}getLevelToWrite(n,r){return Z[n.level]}getFileDetailsToWrite(n,r){return r.disableFileDetails===!0?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,r){return r.context?`{${r.context}}`:""}prepareMetaString(n,r){let i="";return this.prepareMetaStringFuncs.forEach(s=>{let o=s(n,r);o&&(i=i+" "+o)}),i.trim()}getColor(n,r){let i=r.colorScheme??g_;if(n.level!==Z.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case Z.WARN:console.warn(`${i} `,n.message,...s);break;case Z.ERROR:case Z.FATAL:console.error(`${i} `,n.message,...s);break;case Z.INFO:console.info(`${i} `,n.message,...s);break;default:console.log(`${i} `,n.message,...s)}}logModern(n,r,i){let s=this.getColor(n,r),o=n.additional||[];switch(n.level){case Z.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.ERROR:case Z.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case Z.DEBUG:console.debug(`%c${i}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${i}`,`color:${s}`,n.message,...o)}}writeMessage(n,r){let i=this.prepareMetaString(n,r);this.logFunc(n,r,i)}}return e.\u0275fac=function(t){return new(t||e)(b(xo))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),Vs=(()=>{class e{constructor(n,r,i,s,o,l,a){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(Z.TRACE,n,r)}debug(n,...r){this._log(Z.DEBUG,n,r)}info(n,...r){this._log(Z.INFO,n,r)}log(n,...r){this._log(Z.LOG,n,r)}warn(n,...r){this._log(Z.WARN,n,r)}error(n,...r){this._log(Z.ERROR,n,r)}fatal(n,...r){this._log(Z.FATAL,n,r)}setCustomHttpHeaders(n){let r=this.getConfigSnapshot();r.customHttpHeaders=n,this.updateConfig(r)}setCustomParams(n){let r=this.getConfigSnapshot();r.customHttpParams=n,this.updateConfig(r)}setWithCredentialsOptionValue(n){let r=this.getConfigSnapshot();r.withCredentials=n,this.updateConfig(r)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,r,i=[]){let s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,r,i),l=this.ruleService.shouldCallServer(n,s,r,i),a=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!l&&!a)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(Cu(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),a&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),l&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(b(mr),b(gn),b(yn),b(vn),b(mn),b(wn),b(bn))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),y_=(()=>{class e{constructor(n,r,i,s,o,l,a){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new Vs(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&r.partialUpdateConfig(n.partialConfig),n?.logMonitor&&r.registerMonitor(n.logMonitor),r}}return e.\u0275fac=function(t){return new(t||e)(b(Vs),b(gn),b(yn),b(vn),b(mn),b(wn),b(bn))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),v_=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:mr,useValue:n||{}};else if(r.configProvider.provide!==mr)throw new Error(`Wrong injection token for configProvider, it should be ${mr} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:gn,useClass:c_};else if(r.configEngineFactoryProvider.provide!==gn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${gn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:yn,useClass:h_};else if(r.metadataProvider.provide!==yn)throw new Error(`Wrong injection token for metadataProvider, it should be '${yn}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:vn,useClass:f_};else if(r.ruleProvider.provide!==vn)throw new Error(`Wrong injection token for ruleProvider, it should be '${vn}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:mn,useClass:d_};else if(r.mapperProvider.provide!==mn)throw new Error(`Wrong injection token for mapperProvider, it should be '${mn}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:wn,useClass:m_};else if(r.writerProvider.provide!==wn)throw new Error(`Wrong injection token for writerProvider, it should be '${wn}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:bn,useClass:p_};else if(r.serverProvider.provide!==bn)throw new Error(`Wrong injection token for serverProvider, it should be '${bn}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[Vs,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,y_]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ci({type:e}),e.\u0275inj=Wr({imports:[[ye]]}),e})();function b_(e,t){e&1&&(p(0,"div",6),z(1,"span")(2,"span")(3,"span"),y())}function w_(e,t){if(e&1&&z(0,"div",7),e&2){let n=V();M("innerHTML",n.message.text,id)}}var zh=class Ms{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||Ms)};static \u0275cmp=Ie({type:Ms,selectors:[["app-message"]],inputs:{message:"message"},decls:6,vars:8,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),ce(4,b_,4,0,"div",4)(5,w_,1,1,"div",5),y()()()()),t&2&&(Se("user",n.isUser)("assistant",n.isAssistant),S(3),Se("typing",n.message.isTyping),S(),M("ngIf",n.message.isTyping),S(),M("ngIf",!n.message.isTyping))},dependencies:[ye,nn],styles:[`.message{display:flex;margin-bottom:16px;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-container{display:flex;align-items:flex-start;max-width:100%;width:100%}.message.user .message-container{justify-content:flex-end}.message-content{display:flex;flex-direction:column;max-width:85%}.message.user .message-content{align-items:flex-end}.message-bubble{padding:12px 16px;border-radius:10px;word-wrap:break-word;width:fit-content}.message.user .message-bubble{background:#ff6b4a;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a}.message.assistant .message-bubble{background:transparent;color:#2c3e50;border:none;box-shadow:none;padding:0}.message-bubble.typing{padding:16px;min-width:60px}.message-text{margin:0;line-height:1.5;font-size:14px;white-space:normal}.message-text p{margin:0 0 8px}.message-text p:last-child{margin-bottom:0}.message-text h1,.message-text h2,.message-text h3,.message-text h4,.message-text h5,.message-text h6{margin:12px 0 8px;font-weight:600}.message-text h1:first-child,.message-text h2:first-child,.message-text h3:first-child,.message-text h4:first-child,.message-text h5:first-child,.message-text h6:first-child{margin-top:0}.message-text ul,.message-text ol{margin:8px 0;padding-left:24px}.message-text li{margin:4px 0}.message-text strong{font-weight:600}.message-text em{font-style:italic}.message-text code{background:#0000000d;padding:2px 4px;border-radius:3px;font-family:Courier New,monospace;font-size:13px}.message-text pre{background:#0000000d;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0}.message-text pre code{background:none;padding:0}.typing-indicator{display:flex;align-items:center;gap:4px;height:16px}.typing-indicator span{width:8px;height:8px;border-radius:50%;background-color:#95a5a6;animation:typing 1.4s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}@media (max-width: 768px){.message-bubble{max-width:90%}}
8
+ `],encapsulation:3})},__=["messagesContainer"];function x_(e,t){if(e&1&&z(0,"app-message",7),e&2){let n=t.$implicit;M("message",n)}}function C_(e,t){if(e&1&&(p(0,"div",5),ce(1,x_,1,1,"app-message",6),y()),e&2){let n=V();S(),M("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function k_(e,t){e&1&&(p(0,"div",8)(1,"p",9),R(2,"Start a conversation by typing a message or selecting a suggestion below."),y()())}var Bh=class Ns{messages=[];messagesContainer;shouldScroll=!1;ngAfterViewChecked(){this.shouldScroll&&(this.scrollToBottom(),this.shouldScroll=!1)}ngOnChanges(t){t.messages&&(this.shouldScroll=!0)}trackByMessageId(t,n){return n.id}scrollToBottom(){try{this.messagesContainer&&(this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight)}catch(t){console.error("Error scrolling to bottom:",t)}}static \u0275fac=function(t){return new(t||Ns)};static \u0275cmp=Ie({type:Ns,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&k1(__,5),t&2){let r;S1(r=E1())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages"},features:[ri],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){t&1&&(p(0,"div",1)(1,"div",2,0),ce(3,C_,2,2,"div",3)(4,k_,3,0,"div",4),y()()),t&2&&(S(3),M("ngIf",n.messages.length>0),S(),M("ngIf",n.messages.length===0))},dependencies:[ye,hi,nn,zh],styles:[`.chat-history{flex:1;display:flex;flex-direction:column;overflow:hidden;width:100%;min-height:0;max-height:100%}.messages-container{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;scroll-behavior:smooth;min-height:0;-webkit-overflow-scrolling:touch}.messages-container::-webkit-scrollbar{width:6px}.messages-container::-webkit-scrollbar-track{background:transparent}.messages-container::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.messages-container::-webkit-scrollbar-thumb:hover{background:#0000004d}.messages-list{display:flex;flex-direction:column;gap:8px}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;padding:32px}.empty-text{color:#95a5a6;font-size:14px;text-align:center;line-height:1.6;max-width:400px}
9
+ `],encapsulation:3})},S_=class yr{isOpenSignal=Dt(!1);configSignal=Dt(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(q({confirmText:"Confirm",cancelText:"Cancel",confirmColor:"primary"},t)),this.isOpenSignal.set(!0),new Promise(n=>{this.resolveCallback=n})}close(t){this.isOpenSignal.set(!1),this.resolveCallback&&(this.resolveCallback(t),this.resolveCallback=null)}static \u0275fac=function(t){return new(t||yr)};static \u0275prov=I({token:yr,factory:yr.\u0275fac,providedIn:"root"})},Ia={sparkle:{viewBox:"0 0 51 51",path:'<path d="M25.5 0L27.7528 6.13139C30.6703 14.0717 36.9283 20.3297 44.8686 23.2472L51 25.5L44.8686 27.7528C36.9283 30.6703 30.6703 36.9283 27.7528 44.8686L25.5 51L23.2471 44.8686C20.3297 36.9283 14.0717 30.6703 6.13139 27.7528L0 25.5L6.13139 23.2471C14.0717 20.3297 20.3297 14.0717 23.2472 6.13139L25.5 0Z" fill="url(#paint0_linear_1_3105)"/>',defs:`<defs>
8
10
  <linearGradient id="paint0_linear_1_3105" x1="12.75" y1="7.08333" x2="46.75" y2="42.5" gradientUnits="userSpaceOnUse">
9
11
  <stop stop-color="#FFBDB2"/>
10
12
  <stop offset="1" stop-color="#FF5337"/>
@@ -20,7 +22,16 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
20
22
  <path d="M21 21l-4.35-4.35" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>`},edit:{viewBox:"0 0 24 24",path:`<path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
21
23
  <path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>`},check:{viewBox:"0 0 24 24",path:'<polyline points="20 6 9 17 4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'},"chevron-left":{viewBox:"0 0 24 24",path:'<polyline points="15 18 9 12 15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'},"more-horizontal":{viewBox:"0 0 24 24",path:`<circle cx="12" cy="12" r="1.5" fill="currentColor"/>
22
24
  <circle cx="19" cy="12" r="1.5" fill="currentColor"/>
23
- <circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},Ct=class Ns{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Ta[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Ta[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||Ns)(F(jh))};static \u0275cmp=Te({type:Ns,selectors:[["app-icon"]],inputs:{name:"name",width:"width",height:"height",fill:"fill",dropShadow:"dropShadow"},decls:1,vars:7,consts:[["xmlns","http://www.w3.org/2000/svg",3,"innerHTML"]],template:function(t,n){t&1&&($g(),Kd(0,"svg",0)),t&2&&(ih("filter",n.dropShadow),th("innerHTML",n.svgContent,id),Go("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[ye],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})};function Sw(e,t){if(e&1){let n=tn();p(0,"div",1),E("click",function(){G(n);let r=D();return W(r.onOverlayClick())}),p(1,"div",2),E("click",function(r){G(n);let i=D();return W(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),E("click",function(){G(n);let r=D();return W(r.onBackClick())}),z(4,"app-icon",5),y(),p(5,"h2",6),N(6),y(),p(7,"button",7),E("click",function(){G(n);let r=D();return W(r.onCloseClick())}),z(8,"app-icon",8),y()(),p(9,"div",9)(10,"p",10),N(11),y()(),p(12,"div",11)(13,"button",12),E("click",function(){G(n);let r=D();return W(r.onCancel())}),N(14),y(),p(15,"button",13),E("click",function(){G(n);let r=D();return W(r.onConfirm())}),N(16),y()()()()}if(e&2){let n,r,i,s,o,l,a=D();O(6),ke(((n=a.config())==null?null:n.title)||"Back"),O(5),ke((r=a.config())==null?null:r.message),O(3),Mn(" ",((i=a.config())==null?null:i.cancelText)||"Cancel"," "),O(),Oe("btn-danger",((s=a.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=a.config())==null?null:o.confirmColor)==="primary"),O(),Mn(" ",((l=a.config())==null?null:l.confirmText)||"Confirm"," ")}}var Ew=class Rs{confirmationService=_(Ow);isOpen=this.confirmationService.isOpen$;config=this.confirmationService.config$;onConfirm(){this.confirmationService.close(!0)}onCancel(){this.confirmationService.close(!1)}onBackClick(){this.confirmationService.close(!1)}onCloseClick(){this.confirmationService.close(!1)}onOverlayClick(){this.confirmationService.close(!1)}onModalClick(t){t.stopPropagation()}static \u0275fac=function(t){return new(t||Rs)};static \u0275cmp=Te({type:Rs,selectors:[["app-confirmation-modal"]],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],[1,"modal-message"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-confirm",3,"click"]],template:function(t,n){t&1&&ce(0,Sw,17,8,"div",0),t&2&&A("ngIf",n.isOpen())},dependencies:[ye,nn,Ct],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:10000;animation:_ngcontent-%COMP%_fadeIn .2s ease-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:_ngcontent-%COMP%_slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title[_ngcontent-%COMP%]{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button[_ngcontent-%COMP%]{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;color:#111827}.icon-button[_ngcontent-%COMP%]:active{transform:scale(.95)}.back-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:32px 20px;flex:1;overflow-y:auto}.modal-message[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:1.5;color:#111827;text-align:left}.modal-footer[_ngcontent-%COMP%]{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn[_ngcontent-%COMP%]{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn[_ngcontent-%COMP%]:active{transform:scale(.98)}.btn-cancel[_ngcontent-%COMP%]{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel[_ngcontent-%COMP%]:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-confirm[_ngcontent-%COMP%]{color:#fff}.btn-primary[_ngcontent-%COMP%]{background-color:#3b82f6}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#2563eb}.btn-danger[_ngcontent-%COMP%]{background-color:#ef4444}.btn-danger[_ngcontent-%COMP%]:hover{background-color:#dc2626}.btn-danger[_ngcontent-%COMP%]:disabled, .btn-primary[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay[_ngcontent-%COMP%]{align-items:center}.modal-container[_ngcontent-%COMP%]{border-radius:16px;max-height:500px}}"]})},He={TITLE:"App Agent",WELCOME:{GREETING:"Hi!",TEXT:"Welcome to Open as App!",DESCRIPTION:"I'm your AI assistant, and I'm here to help you get started.",PERSONALIZATION:"To personalize my guidance, could you tell me what you're hoping to do?"},INPUT:{PLACEHOLDER:"Ask me anything..."},SUGGESTIONS:["Summarize data","What are the key columns","What is this app about"]},Uh=class Fs{title=He.TITLE;menuClick=new M;closeClick=new M;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||Fs)};static \u0275cmp=Te({type:Fs,selectors:[["app-header"]],inputs:{title:"title"},outputs:{menuClick:"menuClick",closeClick:"closeClick"},decls:9,vars:1,consts:[[1,"header"],["aria-label","Menu",1,"icon-button","menu-button",3,"click"],["name","menu","width","24","height","24"],[1,"header-title"],["name","sparkle","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"button",1),E("click",function(){return n.onMenuClick()}),z(2,"app-icon",2),y(),p(3,"div",3),z(4,"app-icon",4),p(5,"span"),N(6),y()(),p(7,"button",5),E("click",function(){return n.onCloseClick()}),z(8,"app-icon",6),y()()),t&2&&(O(6),ke(n.title))},dependencies:[ye,Ct],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#fff;border-bottom:1px solid #f0f0f0;height:64px;box-sizing:border-box}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background-color .2s;color:#333}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.icon-button[_ngcontent-%COMP%]:active{background-color:#e0e0e0}.header-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600;color:#ff6b6b;flex:1;justify-content:center}.title-icon[_ngcontent-%COMP%]{width:24px;height:24px}.menu-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{width:40px;height:40px}.close-button[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:50%}.close-button[_ngcontent-%COMP%]:hover{background-color:#e8e8e8}"]})},Zh=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(n){return new(n||e)(F(Dd),F(Kt))};static \u0275dir=Me({type:e})}return e})(),Tw=(()=>{class e extends Zh{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Dc(e)))(r||e)}})();static \u0275dir=Me({type:e,features:[en]})}return e})(),$h=new k(""),Mw={provide:$h,useExisting:Pn(()=>Hn),multi:!0};function Pw(){let e=Zr()?Zr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Iw=new k(""),Hn=(()=>{class e extends Zh{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Pw())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(n){return new(n||e)(F(Dd),F(Kt),F(Iw,8))};static \u0275dir=Me({type:e,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(n,r){n&1&&E("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},standalone:!1,features:[Jo([Mw]),en]})}return e})();function Dw(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var qh=new k(""),Aw=new k("");function Vw(e){return t=>{let n=t.value?.length??Dw(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Ma(e){return null}function Gh(e){return e!=null}function Wh(e){return qo(e)?to(e):e}function Qh(e){let t={};return e.forEach(n=>{t=n!=null?q(q({},t),n):t}),Object.keys(t).length===0?null:t}function Yh(e,t){return t.map(n=>n(e))}function Nw(e){return!e.validate}function Kh(e){return e.map(t=>Nw(t)?t:n=>t.validate(n))}function Rw(e){if(!e)return null;let t=e.filter(Gh);return t.length==0?null:function(n){return Qh(Yh(n,t))}}function Jh(e){return e!=null?Rw(Kh(e)):null}function Fw(e){if(!e)return null;let t=e.filter(Gh);return t.length==0?null:function(n){let r=Yh(n,t).map(Wh);return Lp(r).pipe(Ce(Qh))}}function Xh(e){return e!=null?Fw(Kh(e)):null}function Pa(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Lw(e){return e._rawValidators}function jw(e){return e._rawAsyncValidators}function Ls(e){return e?Array.isArray(e)?e:[e]:[]}function qr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ia(e,t){let n=Ls(t);return Ls(e).forEach(r=>{qr(n,r)||n.push(r)}),n}function Da(e,t){return Ls(t).filter(n=>!qr(e,n))}var ef=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Hw=class extends ef{name;get formDirective(){return null}get path(){return null}},sl=class extends ef{_parent=null;name=null;valueAccessor=null},zw=class{_cd;constructor(e){this._cd=e}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}},Bw={"[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"},FC=ne(q({},Bw),{"[class.ng-submitted]":"isSubmitted"}),ol=(()=>{class e extends zw{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(F(sl,2))};static \u0275dir=Me({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Oe("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)},standalone:!1,features:[en]})}return e})(),ln="VALID",nr="INVALID",kt="PENDING",an="DISABLED",zn=class{},Aa=class extends zn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},Wi=class extends zn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},Qi=class extends zn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},rr=class extends zn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},Uw=class extends zn{source;constructor(e){super(),this.source=e}};function Zw(e){return(gi(e)?e.validators:e)||null}function $w(e){return Array.isArray(e)?Jh(e):e||null}function qw(e,t){return(gi(t)?t.asyncValidators:e)||null}function Gw(e){return Array.isArray(e)?Xh(e):e||null}function gi(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Ww=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return xt(this.statusReactive)}set status(e){xt(()=>this.statusReactive.set(e))}_status=ji(()=>this.statusReactive());statusReactive=Pt(void 0);get valid(){return this.status===ln}get invalid(){return this.status===nr}get pending(){return this.status==kt}get disabled(){return this.status===an}get enabled(){return this.status!==an}errors;get pristine(){return xt(this.pristineReactive)}set pristine(e){xt(()=>this.pristineReactive.set(e))}_pristine=ji(()=>this.pristineReactive());pristineReactive=Pt(!0);get dirty(){return!this.pristine}get touched(){return xt(this.touchedReactive)}set touched(e){xt(()=>this.touchedReactive.set(e))}_touched=ji(()=>this.touchedReactive());touchedReactive=Pt(!1);get untouched(){return!this.touched}_events=new nt;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ia(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ia(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Da(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Da(e,this._rawAsyncValidators))}hasValidator(e){return qr(this._rawValidators,e)}hasAsyncValidator(e){return qr(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ne(q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Qi(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new Qi(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ne(q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Wi(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new Wi(!0,n))}markAsPending(e={}){this.status=kt;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ne(q({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=an,this.errors=null,this._forEachChild(r=>{r.disable(ne(q({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Aa(this.value,n)),this._events.next(new rr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ne(q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=ln,this._forEachChild(n=>{n.enable(ne(q({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ne(q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ln||this.status===kt)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Aa(this.value,t)),this._events.next(new rr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ne(q({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?an:ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=kt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Wh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new rr(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new M,this.statusChanges=new M}_calculateStatus(){return this._allControlsDisabled()?an:this.errors?nr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kt)?kt:this._anyControlsHaveStatus(nr)?nr:ln}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new Wi(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Qi(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){gi(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=$w(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gw(this._rawAsyncValidators)}},tf=new k("",{providedIn:"root",factory:()=>ll}),ll="always";function Qw(e,t){return[...t.path,e]}function Yw(e,t,n=ll){Jw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Xw(e,t),tC(e,t),eC(e,t),Kw(e,t)}function Va(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Kw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Jw(e,t){let n=Lw(e);t.validator!==null?e.setValidators(Pa(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=jw(e);t.asyncValidator!==null?e.setAsyncValidators(Pa(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Va(t._rawValidators,i),Va(t._rawAsyncValidators,i)}function Xw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&nf(e,t)})}function eC(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&nf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function nf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function tC(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function nC(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function rC(e){return Object.getPrototypeOf(e.constructor)===Tw}function iC(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===Hn?n=s:rC(s)?r=s:i=s}),i||r||n||null}function Na(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ra(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var sC=class extends Ww{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(Zw(t),qw(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gi(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Ra(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Uw(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Na(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Na(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Ra(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},oC={provide:sl,useExisting:Pn(()=>mi)},Fa=Promise.resolve(),mi=(()=>{class e extends sl{_changeDetectorRef;callSetDisabledState;control=new sC;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new M;constructor(n,r,i,s,o,l){super(),this._changeDetectorRef=o,this.callSetDisabledState=l,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=iC(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),nC(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Yw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Fa.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&vb(r);Fa.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Qw(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(F(Hw,9),F(qh,10),F(Aw,10),F($h,10),F(ub,8),F(tf,8))};static \u0275dir=Me({type:e,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"],standalone:!1,features:[Jo([oC]),en,ri]})}return e})();function lC(e){return typeof e=="number"?e:parseInt(e,10)}var aC=(()=>{class e{_validator=Ma;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ma,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Me({type:e,features:[ri]})}return e})(),uC={provide:qh,useExisting:Pn(()=>rf),multi:!0},rf=(()=>{class e extends aC{maxlength;inputName="maxlength";normalizeInput=n=>lC(n);createValidator=n=>Vw(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=Dc(e)))(r||e)}})();static \u0275dir=Me({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Go("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Jo([uC]),en]})}return e})(),cC=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({})}return e})(),al=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:tf,useValue:n.callSetDisabledState??ll}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({imports:[cC]})}return e})(),sf=class js{placeholder=He.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new M;submitMessage=new M;voiceClick=new M;addClick=new M;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isListening?"Listening... Speak now":this.placeholder}onInputChange(t){!this.isListening&&t!==void 0&&(this.value=t,this.valueChange.emit(this.value))}onSubmit(){if(this.value.trim()&&!this.isListening){let t=this.value;this.value="",this.valueChange.emit(this.value),this.submitMessage.emit(t)}}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}static \u0275fac=function(t){return new(t||js)};static \u0275cmp=Te({type:js,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick"},decls:7,vars:8,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["type","text",1,"input-field",3,"ngModelChange","keyup.enter","ngModel","placeholder","disabled","readonly"],["aria-label","Voice input",1,"icon-button","voice-button",3,"click"],["name","microphone","width","24","height","24","fill","currentColor"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),E("click",function(){return n.onAddClick()}),z(3,"app-icon",3),y(),p(4,"input",4),E("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),y(),p(5,"button",5),E("click",function(){return n.onVoiceClick()}),z(6,"app-icon",6),y()()()),t&2&&(O(4),Oe("listening",n.isListening),A("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),O(),Oe("active",n.isListening))},dependencies:[ye,al,Hn,ol,mi,Ct],styles:[".input-container[_ngcontent-%COMP%]{padding:16px 20px;background:#fff;border-top:1px solid #f0f0f0}.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s}.input-wrapper[_ngcontent-%COMP%]:focus-within{background:#f0f0f0}.input-field[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;font-size:15px;color:#333;outline:none;padding:8px 0}.input-field[_ngcontent-%COMP%]::placeholder{color:#999}.input-field[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.input-field.listening[_ngcontent-%COMP%]{color:#ff6b6b;font-style:italic}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s;color:#666;min-width:40px;min-height:40px}.icon-button[_ngcontent-%COMP%]:hover{background-color:#0000000d;color:#333}.icon-button[_ngcontent-%COMP%]:active{background-color:#0000001a}.voice-button.active[_ngcontent-%COMP%]{color:#ff6b6b;animation:_ngcontent-%COMP%_pulse 1.5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.6}}"]})};function dC(e,t){if(e&1){let n=tn();p(0,"div",1),E("click",function(){G(n);let r=D();return W(r.onOverlayClick())}),p(1,"div",2),E("click",function(r){G(n);let i=D();return W(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),E("click",function(){G(n);let r=D();return W(r.onBackClick())}),z(4,"app-icon",5),y(),p(5,"h2",6),N(6,"Rename Chat"),y(),p(7,"button",7),E("click",function(){G(n);let r=D();return W(r.onCloseClick())}),z(8,"app-icon",8),y()(),p(9,"div",9)(10,"input",10),Ko("ngModelChange",function(r){G(n);let i=D();return oh(i.editedTitle,r)||(i.editedTitle=r),W(r)}),E("keydown",function(r){G(n);let i=D();return W(i.onInputKeydown(r))}),y()(),p(11,"div",11)(12,"button",12),E("click",function(){G(n);let r=D();return W(r.onCancel())}),N(13," Cancel "),y(),p(14,"button",13),E("click",function(){G(n);let r=D();return W(r.onSave())}),N(15," Save "),y()()()()}if(e&2){let n=D();O(10),Yo("ngModel",n.editedTitle),A("maxlength",500)}}var of=class Hs{isOpen=!1;currentTitle="";close=new M;save=new M;editedTitle="";ngOnChanges(t){t.isOpen&&this.isOpen&&(this.editedTitle=this.currentTitle),t.currentTitle&&(this.editedTitle=this.currentTitle)}onBackClick(){this.close.emit()}onCloseClick(){this.close.emit()}onCancel(){this.close.emit()}onSave(){let t=this.editedTitle.trim();t&&t!==this.currentTitle&&this.save.emit(t),this.close.emit()}onOverlayClick(){this.close.emit()}onModalClick(t){t.stopPropagation()}onInputKeydown(t){t.key==="Enter"?(t.preventDefault(),this.onSave()):t.key==="Escape"&&(t.preventDefault(),this.onCancel())}static \u0275fac=function(t){return new(t||Hs)};static \u0275cmp=Te({type:Hs,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[ri],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],["type","text","placeholder","Enter chat name","autofocus","",1,"rename-input",3,"ngModelChange","keydown","ngModel","maxlength"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-save",3,"click"]],template:function(t,n){t&1&&ce(0,dC,16,2,"div",0),t&2&&A("ngIf",n.isOpen)},dependencies:[ye,nn,al,Hn,ol,rf,mi,Ct],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:1000;animation:_ngcontent-%COMP%_fadeIn .2s ease-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:_ngcontent-%COMP%_slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title[_ngcontent-%COMP%]{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button[_ngcontent-%COMP%]{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;color:#111827}.icon-button[_ngcontent-%COMP%]:active{transform:scale(.95)}.back-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:24px 20px;flex:1;overflow-y:auto}.rename-input[_ngcontent-%COMP%]{width:100%;padding:12px 16px;font-size:16px;border:1px solid #d1d5db;border-radius:8px;outline:none;transition:all .2s ease;font-family:inherit;color:#111827}.rename-input[_ngcontent-%COMP%]:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.rename-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.modal-footer[_ngcontent-%COMP%]{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn[_ngcontent-%COMP%]{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn[_ngcontent-%COMP%]:active{transform:scale(.98)}.btn-cancel[_ngcontent-%COMP%]{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel[_ngcontent-%COMP%]:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-save[_ngcontent-%COMP%]{background-color:#ef4444;color:#fff}.btn-save[_ngcontent-%COMP%]:hover{background-color:#dc2626}.btn-save[_ngcontent-%COMP%]:disabled{background-color:#fca5a5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay[_ngcontent-%COMP%]{align-items:center}.modal-container[_ngcontent-%COMP%]{border-radius:16px;max-height:400px}}"]})};function hC(e,t){e&1&&(p(0,"div",22),z(1,"div",23),p(2,"p",24),N(3,"Loading conversations..."),y()())}function fC(e,t){if(e&1){let n=tn();p(0,"div",36)(1,"button",37),E("click",function(r){G(n);let i=D().$implicit,s=D(2);return W(s.onEditClick(i.id,i.title,r))}),z(2,"app-icon",38),p(3,"span"),N(4,"Rename"),y()(),p(5,"button",39),E("click",function(r){G(n);let i=D().$implicit,s=D(2);return W(s.onDeleteClick(i.id,r))}),z(6,"app-icon",40),p(7,"span"),N(8,"Delete"),y()()()}}function pC(e,t){if(e&1){let n=tn();p(0,"div",27),E("click",function(){let r=G(n).$implicit,i=D(2);return W(i.onConversationClick(r.id))}),p(1,"div",28)(2,"div",29)(3,"span",30),N(4),y()(),p(5,"span",31),N(6),y()(),p(7,"div",32)(8,"button",33),E("click",function(r){let i=G(n).$implicit,s=D(2);return W(s.toggleMenu(i.id,r))}),z(9,"app-icon",34),y(),ce(10,fC,9,0,"div",35),y()()}if(e&2){let n=t.$implicit,r=D(2);O(4),ke(n.title),O(2),ke(n.date),O(4),A("ngIf",r.isMenuOpen(n.id))}}function gC(e,t){if(e&1&&(p(0,"div",25),ce(1,pC,11,3,"div",26),y()),e&2){let n=D();O(),A("ngForOf",n.conversations)}}function mC(e,t){e&1&&(p(0,"div",41)(1,"p"),N(2,"No conversations yet"),y()())}var yC=class zs{isOpen=!1;conversations=[];isLoading=!1;backClick=new M;settingsClick=new M;closeClick=new M;conversationClick=new M;deleteClick=new M;newChatClick=new M;searchChange=new M;titleUpdate=new M;searchQuery="";isRenameModalOpen=!1;renamingConversationId=null;renamingConversationTitle="";activeMenuId=null;onBackClick(){this.backClick.emit()}onSettingsClick(){this.settingsClick.emit()}onCloseClick(){this.closeClick.emit()}onOverlayClick(){this.closeClick.emit(),this.closeMenu()}onConversationClick(t){this.conversationClick.emit(t)}onDeleteClick(t,n){n.stopPropagation(),this.deleteClick.emit(t),this.closeMenu()}onNewChatClick(){this.newChatClick.emit()}onSearchChange(){this.searchChange.emit(this.searchQuery)}onEditClick(t,n,r){r.stopPropagation(),this.renamingConversationId=t,this.renamingConversationTitle=n,this.isRenameModalOpen=!0,this.closeMenu()}onRenameModalClose(){this.isRenameModalOpen=!1,this.renamingConversationId=null,this.renamingConversationTitle=""}onRenameModalSave(t){this.renamingConversationId&&t.trim()&&this.titleUpdate.emit({id:this.renamingConversationId,title:t.trim()})}toggleMenu(t,n){n.stopPropagation(),this.activeMenuId===t?this.activeMenuId=null:this.activeMenuId=t}closeMenu(){this.activeMenuId=null}isMenuOpen(t){return this.activeMenuId===t}onSidebarClick(){this.closeMenu()}static \u0275fac=function(t){return new(t||zs)};static \u0275cmp=Te({type:zs,selectors:[["app-sidebar"]],inputs:{isOpen:"isOpen",conversations:"conversations",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate"},decls:25,vars:10,consts:[[1,"sidebar-overlay",3,"click"],[1,"sidebar",3,"click"],[1,"sidebar-header"],[1,"back-text-button",3,"click"],["name","chevron-left","width","16","height","16"],[1,"header-actions"],["aria-label","Settings",1,"icon-button","settings-button",3,"click"],["name","settings","width","20","height","20"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","20","height","20"],[1,"sidebar-content"],[1,"conversations-title"],["class","loading-container",4,"ngIf"],["class","conversations-list",4,"ngIf"],["class","empty-conversations",4,"ngIf"],[1,"sidebar-footer"],[1,"search-container"],["name","search","width","18","height","18",1,"search-icon"],["type","text","placeholder","Search",1,"search-input",3,"ngModelChange","input","ngModel"],["aria-label","New Chat",1,"icon-button","new-chat-button",3,"click"],["name","edit","width","20","height","20"],[3,"close","save","isOpen","currentTitle"],[1,"loading-container"],[1,"spinner"],[1,"loading-text"],[1,"conversations-list"],["class","conversation-item",3,"click",4,"ngFor","ngForOf"],[1,"conversation-item",3,"click"],[1,"conversation-info"],[1,"conversation-title-container"],[1,"conversation-title"],[1,"conversation-date"],[1,"menu-container"],["aria-label","More options",1,"icon-button","menu-button",3,"click"],["name","more-horizontal","width","20","height","20"],["class","context-menu",4,"ngIf"],[1,"context-menu"],[1,"menu-item",3,"click"],["name","edit","width","16","height","16"],[1,"menu-item","delete-item",3,"click"],["name","trash","width","16","height","16"],[1,"empty-conversations"]],template:function(t,n){t&1&&(p(0,"div",0),E("click",function(){return n.onOverlayClick()}),y(),p(1,"div",1),E("click",function(){return n.onSidebarClick()}),p(2,"div",2)(3,"button",3),E("click",function(){return n.onBackClick()}),z(4,"app-icon",4),p(5,"span"),N(6,"Back to Chat"),y()(),p(7,"div",5)(8,"button",6),E("click",function(){return n.onSettingsClick()}),z(9,"app-icon",7),y(),p(10,"button",8),E("click",function(){return n.onCloseClick()}),z(11,"app-icon",9),y()()(),p(12,"div",10)(13,"h3",11),N(14,"Conversations"),y(),ce(15,hC,4,0,"div",12)(16,gC,2,1,"div",13)(17,mC,3,0,"div",14),y(),p(18,"div",15)(19,"div",16),z(20,"app-icon",17),p(21,"input",18),Ko("ngModelChange",function(r){return oh(n.searchQuery,r)||(n.searchQuery=r),r}),E("input",function(){return n.onSearchChange()}),y()(),p(22,"button",19),E("click",function(){return n.onNewChatClick()}),z(23,"app-icon",20),y()()(),p(24,"app-rename-modal",21),E("close",function(){return n.onRenameModalClose()})("save",function(r){return n.onRenameModalSave(r)}),y()),t&2&&(Oe("visible",n.isOpen),O(),Oe("open",n.isOpen),O(14),A("ngIf",n.isLoading),O(),A("ngIf",!n.isLoading&&n.conversations.length>0),O(),A("ngIf",!n.isLoading&&n.conversations.length===0),O(4),Yo("ngModel",n.searchQuery),O(3),A("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[ye,hi,nn,al,Hn,ol,mi,Ct,of],styles:[".sidebar-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;z-index:998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.sidebar-overlay.visible[_ngcontent-%COMP%]{opacity:1;visibility:visible}.sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:85%;max-width:400px;height:100%;background:#fff;z-index:999;transform:translate(-100%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:2px 0 8px #0000001a}.sidebar.open[_ngcontent-%COMP%]{transform:translate(0)}.sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #e8ecf1}.back-text-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;font-size:16px;font-weight:500;color:#1a1a1a;padding:8px;border-radius:8px;transition:background .2s ease}.back-text-button[_ngcontent-%COMP%]:hover{background:#f5f7fa}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background .2s ease;color:#5f6368}.icon-button[_ngcontent-%COMP%]:hover{background:#f5f7fa;color:#1a1a1a}.icon-button[_ngcontent-%COMP%]:active{background:#e8ecf1}.sidebar-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:16px}.conversations-title[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#95a5a6;text-transform:uppercase;letter-spacing:.5px;margin:0 0 16px}.conversations-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.conversation-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:12px;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s ease;gap:12px;position:relative}.conversation-item[_ngcontent-%COMP%]:hover{background:#f5f7fa}.conversation-info[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.conversation-title-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0}.conversation-title[_ngcontent-%COMP%]{flex:1;font-size:14px;font-weight:500;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-date[_ngcontent-%COMP%]{font-size:12px;color:#95a5a6}.menu-container[_ngcontent-%COMP%]{position:relative}.menu-button[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s ease}.conversation-item[_ngcontent-%COMP%]:hover .menu-button[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]:focus, .menu-container[_ngcontent-%COMP%]:focus-within .menu-button[_ngcontent-%COMP%]{opacity:1}.context-menu[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e8ecf1;padding:4px;min-width:140px;z-index:1000;display:flex;flex-direction:column;gap:2px}.menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;border:none;background:none;width:100%;text-align:left;cursor:pointer;border-radius:6px;font-size:14px;color:#1a1a1a;transition:background .2s ease}.menu-item[_ngcontent-%COMP%]:hover{background:#f5f7fa}.menu-item[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{color:#5f6368}.delete-item[_ngcontent-%COMP%]{color:#dc3545}.delete-item[_ngcontent-%COMP%]:hover{background:#fee}.delete-item[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{color:#dc3545}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px}.spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid #f5f7fa;border-top-color:#ff5337;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.loading-text[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;margin:0}.empty-conversations[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:40px 20px;text-align:center}.empty-conversations[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;margin:0}.sidebar-footer[_ngcontent-%COMP%]{padding:16px;border-top:1px solid #e8ecf1;display:flex;align-items:center;gap:12px}.search-container[_ngcontent-%COMP%]{flex:1;position:relative;display:flex;align-items:center;background:#f5f7fa;border-radius:8px;padding:8px 12px;gap:8px}.search-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#95a5a6}.search-input[_ngcontent-%COMP%]{flex:1;border:none;background:none;font-size:14px;color:#1a1a1a;outline:none;padding:0}.search-input[_ngcontent-%COMP%]::placeholder{color:#95a5a6}.new-chat-button[_ngcontent-%COMP%]{flex-shrink:0;background:#fff;border:1px solid #e8ecf1;border-radius:8px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.new-chat-button[_ngcontent-%COMP%]:hover{background:#f5f7fa;border-color:#d0d7de}@media (max-width: 480px){.sidebar[_ngcontent-%COMP%]{width:100%;max-width:none}}"]})},lf=class Bs{text="";disabled=!1;buttonClick=new M;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Bs)};static \u0275cmp=Te({type:Bs,selectors:[["app-suggestion-button"]],inputs:{text:"text",disabled:"disabled"},outputs:{buttonClick:"buttonClick"},decls:2,vars:3,consts:[[1,"suggestion-button",3,"click"]],template:function(t,n){t&1&&(Wo(0,"button",0),nh("click",function(){return n.onClick()}),N(1),Qo()),t&2&&(Oe("disabled",n.disabled),O(),Mn(" ",n.text," "))},dependencies:[ye],styles:[".suggestion-button[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #FF6B6B;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#ff6b6b;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 4px #0000000d;display:inline-block;width:auto;text-align:center}.suggestion-button[_ngcontent-%COMP%]:hover:not(.disabled){background:#fff5f5;border-color:#ff5252;transform:translateY(-1px);box-shadow:0 4px 8px #ff6b6b26}.suggestion-button[_ngcontent-%COMP%]:active:not(.disabled){transform:translateY(0);box-shadow:0 2px 4px #0000000d}.suggestion-button.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}"]})},vC=class vr{toasts=Pt([]);toasts$=this.toasts.asReadonly();show(t,n="info",r=3e3){let i=Math.random().toString(36).substring(7),s={id:i,message:t,type:n,duration:r};this.toasts.update(o=>[...o,s]),r>0&&setTimeout(()=>this.remove(i),r)}success(t,n){this.show(t,"success",n)}error(t,n){this.show(t,"error",n)}warning(t,n){this.show(t,"warning",n)}info(t,n){this.show(t,"info",n)}remove(t){this.toasts.update(n=>n.filter(r=>r.id!==t))}static \u0275fac=function(t){return new(t||vr)};static \u0275prov=T({token:vr,factory:vr.\u0275fac,providedIn:"root"})};function bC(e,t){e&1&&(p(0,"span"),N(1,"\u2713"),y())}function _C(e,t){e&1&&(p(0,"span"),N(1,"\u2715"),y())}function wC(e,t){e&1&&(p(0,"span"),N(1,"\u26A0"),y())}function CC(e,t){e&1&&(p(0,"span"),N(1,"\u2139"),y())}function xC(e,t){if(e&1){let n=tn();p(0,"div",2)(1,"div",3)(2,"span",4),Xd(3,5),ce(4,bC,2,0,"span",6)(5,_C,2,0,"span",6)(6,wC,2,0,"span",6)(7,CC,2,0,"span",6),eh(),y(),p(8,"span",7),N(9),y()(),p(10,"button",8),E("click",function(){let r=G(n).$implicit,i=D();return W(i.onClose(r.id))}),N(11,"\u2715"),y()()}if(e&2){let n=t.$implicit;Oe("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),O(3),A("ngSwitch",n.type),O(),A("ngSwitchCase","success"),O(),A("ngSwitchCase","error"),O(),A("ngSwitchCase","warning"),O(),A("ngSwitchCase","info"),O(2),ke(n.message)}}var kC=class Us{toastService=_(vC);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||Us)};static \u0275cmp=Te({type:Us,selectors:[["app-toast-container"]],decls:2,vars:1,consts:[[1,"toast-container"],["class","toast",3,"success","error","warning","info",4,"ngFor","ngForOf"],[1,"toast"],[1,"toast-content"],[1,"toast-icon"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"toast-message"],[1,"toast-close",3,"click"]],template:function(t,n){t&1&&(p(0,"div",0),ce(1,xC,12,14,"div",1),y()),t&2&&(O(),A("ngForOf",n.toasts()))},dependencies:[ye,hi,gh,n_],styles:[".toast-container[_ngcontent-%COMP%]{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:12px;max-width:400px}.toast[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;box-shadow:0 4px 12px #00000026;background:#fff;min-width:300px;animation:_ngcontent-%COMP%_slideIn .3s ease-out}@keyframes _ngcontent-%COMP%_slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex:1}.toast-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:700}.toast.success[_ngcontent-%COMP%]{border-left:4px solid #10b981}.toast.success[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#10b981;color:#fff}.toast.error[_ngcontent-%COMP%]{border-left:4px solid #ef4444}.toast.error[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#ef4444;color:#fff}.toast.warning[_ngcontent-%COMP%]{border-left:4px solid #f59e0b}.toast.warning[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#f59e0b;color:#fff}.toast.info[_ngcontent-%COMP%]{border-left:4px solid #3b82f6}.toast.info[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#3b82f6;color:#fff}.toast-message[_ngcontent-%COMP%]{flex:1;font-size:14px;color:#2c3e50;line-height:1.4}.toast-close[_ngcontent-%COMP%]{background:none;border:none;color:#95a5a6;cursor:pointer;font-size:18px;padding:4px 8px;display:flex;align-items:center;justify-content:center;transition:color .2s}.toast-close[_ngcontent-%COMP%]:hover{color:#2c3e50}@media (max-width: 768px){.toast-container[_ngcontent-%COMP%]{top:10px;right:10px;left:10px;max-width:none}.toast[_ngcontent-%COMP%]{min-width:auto}}"]})};function OC(e,t){if(e&1&&(p(0,"div",7)(1,"div",8),z(2,"app-icon",9),y(),p(3,"h1",10),N(4),y(),p(5,"p",11),N(6),y(),p(7,"p",12),N(8),y()()),e&2){let n=D();O(4),ke(n.greeting),O(2),ke(n.welcomeText),O(2),ke(n.description)}}function SC(e,t){if(e&1&&z(0,"app-chat-history",13),e&2){let n=D();A("messages",n.messages)}}function EC(e,t){if(e&1){let n=tn();p(0,"app-suggestion-button",18),E("buttonClick",function(r){G(n);let i=D(2);return W(i.onSuggestionClick(r))}),y()}if(e&2){let n=t.$implicit,r=D(2);A("text",n)("disabled",r.isLoading)}}function TC(e,t){if(e&1&&(p(0,"div",14)(1,"p",15),N(2),y(),p(3,"div",16),ce(4,EC,1,2,"app-suggestion-button",17),y()()),e&2){let n=D();O(2),ke(n.personalizationText),O(2),A("ngForOf",n.suggestions)}}var MC=class Zs{title=He.TITLE;greeting=He.WELCOME.GREETING;welcomeText=He.WELCOME.TEXT;description=He.WELCOME.DESCRIPTION;personalizationText=He.WELCOME.PERSONALIZATION;inputPlaceholder=He.INPUT.PLACEHOLDER;suggestions=[...He.SUGGESTIONS];messages=[];hasMessages=!1;isLoading=!1;voiceStatus={state:"idle",transcript:"",interimTranscript:""};inputValue="";menuClick=new M;closeClick=new M;suggestionClick=new M;messageSubmit=new M;voiceClick=new M;addClick=new M;inputValueChange=new M;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}onSuggestionClick(t){this.suggestionClick.emit(t)}onMessageSubmit(t){this.messageSubmit.emit(t)}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}onInputValueChange(t){this.inputValueChange.emit(t)}static \u0275fac=function(t){return new(t||Zs)};static \u0275cmp=Te({type:Zs,selectors:[["app-assistant"]],inputs:{title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions",messages:"messages",hasMessages:"hasMessages",isLoading:"isLoading",voiceStatus:"voiceStatus",inputValue:"inputValue"},outputs:{menuClick:"menuClick",closeClick:"closeClick",suggestionClick:"suggestionClick",messageSubmit:"messageSubmit",voiceClick:"voiceClick",addClick:"addClick",inputValueChange:"inputValueChange"},decls:7,vars:8,consts:[[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","placeholder","disabled","voiceStatus","value"],[1,"welcome-container"],[1,"icon-wrapper"],["name","sparkle","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(255, 107, 107, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"messages"],[1,"personalization-section"],[1,"personalization-text"],[1,"suggestions"],[3,"text","disabled","buttonClick",4,"ngFor","ngForOf"],[3,"buttonClick","text","disabled"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"app-header",1),E("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),y(),p(2,"div",2),ce(3,OC,9,3,"div",3)(4,SC,1,1,"app-chat-history",4)(5,TC,5,2,"div",5),y(),p(6,"app-input-field",6),E("valueChange",function(r){return n.onInputValueChange(r)})("submitMessage",function(r){return n.onMessageSubmit(r)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()}),y()()),t&2&&(O(),A("title",n.title),O(2),A("ngIf",!n.hasMessages),O(),A("ngIf",n.hasMessages),O(),A("ngIf",!n.hasMessages),O(),A("placeholder",n.inputPlaceholder)("disabled",n.isLoading)("voiceStatus",n.voiceStatus)("value",n.inputValue))},dependencies:[ye,hi,nn,Uh,lf,sf,Ct,Bh],styles:[".assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0;position:relative}app-chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.welcome-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px 24px 30px;text-align:center;flex:1}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.greeting[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin:0 0 12px;color:#1a1a1a}.welcome-text[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0 0 12px;color:#333}.description[_ngcontent-%COMP%]{font-size:15px;font-weight:400;margin:0 0 20px;color:#666;max-width:400px;line-height:1.4}.personalization-section[_ngcontent-%COMP%]{padding:0 24px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;flex-shrink:0}.personalization-text[_ngcontent-%COMP%]{font-size:15px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:400px}@media (max-width: 768px){.suggestions[_ngcontent-%COMP%]{max-width:100%}}"]})},PC=class br{constructor(t){this.http=t}config=null;loadConfig(){return La(this,null,function*(){try{this.config=yield kp(this.http.get("/config.json")),console.log("Configuration loaded:",this.config?.environmentName)}catch(t){console.error("Failed to load configuration, using defaults",t),this.config={apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}})}get apiUrl(){return this.config?.apiUrl||"https://localhost:7592"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"local"}getConfig(){return this.config||{apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}static \u0275fac=function(t){return new(t||br)(b(Ah))};static \u0275prov=T({token:br,factory:br.\u0275fac,providedIn:"root"})},IC={production:!0};function af(e){return()=>e.loadConfig()}La(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Components already registered, skipping...");return}let e=yield x_({providers:[Jg(),K1({eventCoalescing:!0}),iw(sw()),{provide:Qd,useFactory:af,deps:[PC],multi:!0},mh,vw.forRoot({level:IC.production?Z.WARN:Z.DEBUG,serverLogLevel:Z.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=be(Bh,{injector:e.injector});customElements.define("app-chat-history",t);let n=be(Ew,{injector:e.injector});customElements.define("app-confirmation-modal",n);let r=be(Uh,{injector:e.injector});customElements.define("app-header",r);let i=be(Ct,{injector:e.injector});customElements.define("app-icon",i);let s=be(sf,{injector:e.injector});customElements.define("app-input-field",s);let o=be(zh,{injector:e.injector});customElements.define("app-message",o);let l=be(of,{injector:e.injector});customElements.define("app-rename-modal",l);let a=be(yC,{injector:e.injector});customElements.define("app-sidebar",a);let u=be(lf,{injector:e.injector});customElements.define("app-suggestion-button",u);let c=be(kC,{injector:e.injector});customElements.define("app-toast-container",c);let d=be(MC,{injector:e.injector});customElements.define("app-assistant",d),console.log("\u2705 Web Components registered!"),console.log("Available components:"),console.log(" - app-chat-history"),console.log(" - app-confirmation-modal"),console.log(" - app-header"),console.log(" - app-icon"),console.log(" - app-input-field"),console.log(" - app-message"),console.log(" - app-rename-modal"),console.log(" - app-sidebar"),console.log(" - app-suggestion-button"),console.log(" - app-toast-container"),console.log(" - app-assistant")});return pf(DC);})();
25
+ <circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},xt=class Rs{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Ia[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Ia[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||Rs)(F(jh))};static \u0275cmp=Ie({type:Rs,selectors:[["app-icon"]],inputs:{name:"name",width:"width",height:"height",fill:"fill",dropShadow:"dropShadow"},decls:1,vars:7,consts:[["xmlns","http://www.w3.org/2000/svg",3,"innerHTML"]],template:function(t,n){t&1&&($g(),Kd(0,"svg",0)),t&2&&(ih("filter",n.dropShadow),th("innerHTML",n.svgContent,id),Go("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[ye],styles:[`:host{display:inline-block;line-height:0}
26
+ `],encapsulation:3})};function E_(e,t){if(e&1){let n=tn();p(0,"div",1),T("click",function(){G(n);let r=V();return W(r.onOverlayClick())}),p(1,"div",2),T("click",function(r){G(n);let i=V();return W(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),T("click",function(){G(n);let r=V();return W(r.onBackClick())}),z(4,"app-icon",5),y(),p(5,"h2",6),R(6),y(),p(7,"button",7),T("click",function(){G(n);let r=V();return W(r.onCloseClick())}),z(8,"app-icon",8),y()(),p(9,"div",9)(10,"p",10),R(11),y()(),p(12,"div",11)(13,"button",12),T("click",function(){G(n);let r=V();return W(r.onCancel())}),R(14),y(),p(15,"button",13),T("click",function(){G(n);let r=V();return W(r.onConfirm())}),R(16),y()()()()}if(e&2){let n,r,i,s,o,l,a=V();S(6),ke(((n=a.config())==null?null:n.title)||"Back"),S(5),ke((r=a.config())==null?null:r.message),S(3),On(" ",((i=a.config())==null?null:i.cancelText)||"Cancel"," "),S(),Se("btn-danger",((s=a.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=a.config())==null?null:o.confirmColor)==="primary"),S(),On(" ",((l=a.config())==null?null:l.confirmText)||"Confirm"," ")}}var T_=class Ps{confirmationService=w(S_);isOpen=this.confirmationService.isOpen$;config=this.confirmationService.config$;onConfirm(){this.confirmationService.close(!0)}onCancel(){this.confirmationService.close(!1)}onBackClick(){this.confirmationService.close(!1)}onCloseClick(){this.confirmationService.close(!1)}onOverlayClick(){this.confirmationService.close(!1)}onModalClick(t){t.stopPropagation()}static \u0275fac=function(t){return new(t||Ps)};static \u0275cmp=Ie({type:Ps,selectors:[["app-confirmation-modal"]],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],[1,"modal-message"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-confirm",3,"click"]],template:function(t,n){t&1&&ce(0,E_,17,8,"div",0),t&2&&M("ngIf",n.isOpen())},dependencies:[ye,nn,xt],styles:[`.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:10000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-container{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button:hover{background-color:#f3f4f6;color:#111827}.icon-button:active{transform:scale(.95)}.back-button,.close-button{flex-shrink:0}.modal-body{padding:32px 20px;flex:1;overflow-y:auto}.modal-message{margin:0;font-size:16px;line-height:1.5;color:#111827;text-align:left}.modal-footer{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn:active{transform:scale(.98)}.btn-cancel{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-confirm{color:#fff}.btn-primary{background-color:#3b82f6}.btn-primary:hover{background-color:#2563eb}.btn-danger{background-color:#ef4444}.btn-danger:hover{background-color:#dc2626}.btn-danger:disabled,.btn-primary:disabled{opacity:.5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay{align-items:center}.modal-container{border-radius:16px;max-height:500px}}
27
+ `],encapsulation:3})},He={TITLE:"App Agent",WELCOME:{GREETING:"Hi!",TEXT:"Welcome to Open as App!",DESCRIPTION:"I'm your AI assistant, and I'm here to help you get started.",PERSONALIZATION:"To personalize my guidance, could you tell me what you're hoping to do?"},INPUT:{PLACEHOLDER:"Ask me anything..."},SUGGESTIONS:["Summarize data","What are the key columns","What is this app about"]},Uh=class Fs{title=He.TITLE;menuClick=new O;closeClick=new O;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||Fs)};static \u0275cmp=Ie({type:Fs,selectors:[["app-header"]],inputs:{title:"title"},outputs:{menuClick:"menuClick",closeClick:"closeClick"},decls:9,vars:1,consts:[[1,"header"],["aria-label","Menu",1,"icon-button","menu-button",3,"click"],["name","menu","width","24","height","24"],[1,"header-title"],["name","sparkle","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"button",1),T("click",function(){return n.onMenuClick()}),z(2,"app-icon",2),y(),p(3,"div",3),z(4,"app-icon",4),p(5,"span"),R(6),y()(),p(7,"button",5),T("click",function(){return n.onCloseClick()}),z(8,"app-icon",6),y()()),t&2&&(S(6),ke(n.title))},dependencies:[ye,xt],styles:[`.header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#fff;border-bottom:1px solid #f0f0f0;height:64px;box-sizing:border-box}.icon-button{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background-color .2s;color:#333}.icon-button:hover{background-color:#f5f5f5}.icon-button:active{background-color:#e0e0e0}.header-title{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600;color:#ff6b6b;flex:1;justify-content:center}.title-icon{width:24px;height:24px}.menu-button,.close-button{width:40px;height:40px}.close-button{background-color:#f5f5f5;border-radius:50%}.close-button:hover{background-color:#e8e8e8}
28
+ `],encapsulation:3})},Zh=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(n){return new(n||e)(F(Vd),F(Kt))};static \u0275dir=Oe({type:e})}return e})(),I_=(()=>{class e extends Zh{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Vc(e)))(r||e)}})();static \u0275dir=Oe({type:e,features:[en]})}return e})(),$h=new k(""),O_={provide:$h,useExisting:Dn(()=>Hn),multi:!0};function D_(){let e=Zr()?Zr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var A_=new k(""),Hn=(()=>{class e extends Zh{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!D_())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(n){return new(n||e)(F(Vd),F(Kt),F(A_,8))};static \u0275dir=Oe({type:e,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(n,r){n&1&&T("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},standalone:!1,features:[Jo([O_]),en]})}return e})();function V_(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var qh=new k(""),M_=new k("");function N_(e){return t=>{let n=t.value?.length??V_(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Oa(e){return null}function Gh(e){return e!=null}function Wh(e){return qo(e)?to(e):e}function Qh(e){let t={};return e.forEach(n=>{t=n!=null?q(q({},t),n):t}),Object.keys(t).length===0?null:t}function Yh(e,t){return t.map(n=>n(e))}function R_(e){return!e.validate}function Kh(e){return e.map(t=>R_(t)?t:n=>t.validate(n))}function P_(e){if(!e)return null;let t=e.filter(Gh);return t.length==0?null:function(n){return Qh(Yh(n,t))}}function Jh(e){return e!=null?P_(Kh(e)):null}function F_(e){if(!e)return null;let t=e.filter(Gh);return t.length==0?null:function(n){let r=Yh(n,t).map(Wh);return Lp(r).pipe(xe(Qh))}}function Xh(e){return e!=null?F_(Kh(e)):null}function Da(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function L_(e){return e._rawValidators}function j_(e){return e._rawAsyncValidators}function Ls(e){return e?Array.isArray(e)?e:[e]:[]}function qr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Aa(e,t){let n=Ls(t);return Ls(e).forEach(r=>{qr(n,r)||n.push(r)}),n}function Va(e,t){return Ls(t).filter(n=>!qr(e,n))}var ef=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},H_=class extends ef{name;get formDirective(){return null}get path(){return null}},sl=class extends ef{_parent=null;name=null;valueAccessor=null},z_=class{_cd;constructor(e){this._cd=e}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}},B_={"[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"},Fx=ne(q({},B_),{"[class.ng-submitted]":"isSubmitted"}),ol=(()=>{class e extends z_{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(F(sl,2))};static \u0275dir=Oe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Se("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)},standalone:!1,features:[en]})}return e})(),ln="VALID",nr="INVALID",kt="PENDING",an="DISABLED",zn=class{},Ma=class extends zn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},Wi=class extends zn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},Qi=class extends zn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},rr=class extends zn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},U_=class extends zn{source;constructor(e){super(),this.source=e}};function Z_(e){return(gi(e)?e.validators:e)||null}function $_(e){return Array.isArray(e)?Jh(e):e||null}function q_(e,t){return(gi(t)?t.asyncValidators:e)||null}function G_(e){return Array.isArray(e)?Xh(e):e||null}function gi(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var W_=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Ct(this.statusReactive)}set status(e){Ct(()=>this.statusReactive.set(e))}_status=ji(()=>this.statusReactive());statusReactive=Dt(void 0);get valid(){return this.status===ln}get invalid(){return this.status===nr}get pending(){return this.status==kt}get disabled(){return this.status===an}get enabled(){return this.status!==an}errors;get pristine(){return Ct(this.pristineReactive)}set pristine(e){Ct(()=>this.pristineReactive.set(e))}_pristine=ji(()=>this.pristineReactive());pristineReactive=Dt(!0);get dirty(){return!this.pristine}get touched(){return Ct(this.touchedReactive)}set touched(e){Ct(()=>this.touchedReactive.set(e))}_touched=ji(()=>this.touchedReactive());touchedReactive=Dt(!1);get untouched(){return!this.touched}_events=new nt;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Aa(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Aa(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Va(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Va(e,this._rawAsyncValidators))}hasValidator(e){return qr(this._rawValidators,e)}hasAsyncValidator(e){return qr(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ne(q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Qi(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new Qi(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ne(q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Wi(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new Wi(!0,n))}markAsPending(e={}){this.status=kt;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ne(q({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=an,this.errors=null,this._forEachChild(r=>{r.disable(ne(q({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ma(this.value,n)),this._events.next(new rr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ne(q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=ln,this._forEachChild(n=>{n.enable(ne(q({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ne(q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ln||this.status===kt)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ma(this.value,t)),this._events.next(new rr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ne(q({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?an:ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=kt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Wh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new rr(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new O,this.statusChanges=new O}_calculateStatus(){return this._allControlsDisabled()?an:this.errors?nr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kt)?kt:this._anyControlsHaveStatus(nr)?nr:ln}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new Wi(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Qi(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){gi(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=$_(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=G_(this._rawAsyncValidators)}},tf=new k("",{providedIn:"root",factory:()=>ll}),ll="always";function Q_(e,t){return[...t.path,e]}function Y_(e,t,n=ll){J_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),X_(e,t),tx(e,t),ex(e,t),K_(e,t)}function Na(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function K_(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function J_(e,t){let n=L_(e);t.validator!==null?e.setValidators(Da(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=j_(e);t.asyncValidator!==null?e.setAsyncValidators(Da(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Na(t._rawValidators,i),Na(t._rawAsyncValidators,i)}function X_(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&nf(e,t)})}function ex(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&nf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function nf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function tx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function nx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function rx(e){return Object.getPrototypeOf(e.constructor)===I_}function ix(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===Hn?n=s:rx(s)?r=s:i=s}),i||r||n||null}function Ra(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Pa(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var sx=class extends W_{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(Z_(t),q_(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gi(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Pa(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new U_(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ra(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ra(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Pa(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},ox={provide:sl,useExisting:Dn(()=>mi)},Fa=Promise.resolve(),mi=(()=>{class e extends sl{_changeDetectorRef;callSetDisabledState;control=new sx;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new O;constructor(n,r,i,s,o,l){super(),this._changeDetectorRef=o,this.callSetDisabledState=l,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ix(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),nx(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Y_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Fa.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&vb(r);Fa.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Q_(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(F(H_,9),F(qh,10),F(M_,10),F($h,10),F(ub,8),F(tf,8))};static \u0275dir=Oe({type:e,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"],standalone:!1,features:[Jo([ox]),en,ri]})}return e})();function lx(e){return typeof e=="number"?e:parseInt(e,10)}var ax=(()=>{class e{_validator=Oa;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Oa,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Oe({type:e,features:[ri]})}return e})(),ux={provide:qh,useExisting:Dn(()=>rf),multi:!0},rf=(()=>{class e extends ax{maxlength;inputName="maxlength";normalizeInput=n=>lx(n);createValidator=n=>N_(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=Vc(e)))(r||e)}})();static \u0275dir=Oe({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Go("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Jo([ux]),en]})}return e})(),cx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({})}return e})(),al=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:tf,useValue:n.callSetDisabledState??ll}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=ci({type:e});static \u0275inj=Wr({imports:[cx]})}return e})(),sf=class js{placeholder=He.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new O;submitMessage=new O;voiceClick=new O;addClick=new O;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isListening?"Listening... Speak now":this.placeholder}onInputChange(t){!this.isListening&&t!==void 0&&(this.value=t,this.valueChange.emit(this.value))}onSubmit(){if(this.value.trim()&&!this.isListening){let t=this.value;this.value="",this.valueChange.emit(this.value),this.submitMessage.emit(t)}}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}static \u0275fac=function(t){return new(t||js)};static \u0275cmp=Ie({type:js,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick"},decls:7,vars:8,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["type","text",1,"input-field",3,"ngModelChange","keyup.enter","ngModel","placeholder","disabled","readonly"],["aria-label","Voice input",1,"icon-button","voice-button",3,"click"],["name","microphone","width","24","height","24","fill","currentColor"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),T("click",function(){return n.onAddClick()}),z(3,"app-icon",3),y(),p(4,"input",4),T("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),y(),p(5,"button",5),T("click",function(){return n.onVoiceClick()}),z(6,"app-icon",6),y()()()),t&2&&(S(4),Se("listening",n.isListening),M("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),S(),Se("active",n.isListening))},dependencies:[ye,al,Hn,ol,mi,xt],styles:[`.input-container{padding:16px 20px;background:#fff;border-top:1px solid #f0f0f0}.input-wrapper{display:flex;align-items:center;gap:12px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s}.input-wrapper:focus-within{background:#f0f0f0}.input-field{flex:1;border:none;background:transparent;font-size:15px;color:#333;outline:none;padding:8px 0}.input-field::placeholder{color:#999}.input-field:disabled{opacity:.5;cursor:not-allowed}.input-field.listening{color:#ff6b6b;font-style:italic}.icon-button{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s;color:#666;min-width:40px;min-height:40px}.icon-button:hover{background-color:#0000000d;color:#333}.icon-button:active{background-color:#0000001a}.voice-button.active{color:#ff6b6b;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}
29
+ `],encapsulation:3})};function dx(e,t){if(e&1){let n=tn();p(0,"div",1),T("click",function(){G(n);let r=V();return W(r.onOverlayClick())}),p(1,"div",2),T("click",function(r){G(n);let i=V();return W(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),T("click",function(){G(n);let r=V();return W(r.onBackClick())}),z(4,"app-icon",5),y(),p(5,"h2",6),R(6,"Rename Chat"),y(),p(7,"button",7),T("click",function(){G(n);let r=V();return W(r.onCloseClick())}),z(8,"app-icon",8),y()(),p(9,"div",9)(10,"input",10),Ko("ngModelChange",function(r){G(n);let i=V();return oh(i.editedTitle,r)||(i.editedTitle=r),W(r)}),T("keydown",function(r){G(n);let i=V();return W(i.onInputKeydown(r))}),y()(),p(11,"div",11)(12,"button",12),T("click",function(){G(n);let r=V();return W(r.onCancel())}),R(13," Cancel "),y(),p(14,"button",13),T("click",function(){G(n);let r=V();return W(r.onSave())}),R(15," Save "),y()()()()}if(e&2){let n=V();S(10),Yo("ngModel",n.editedTitle),M("maxlength",500)}}var of=class Hs{isOpen=!1;currentTitle="";close=new O;save=new O;editedTitle="";ngOnChanges(t){t.isOpen&&this.isOpen&&(this.editedTitle=this.currentTitle),t.currentTitle&&(this.editedTitle=this.currentTitle)}onBackClick(){this.close.emit()}onCloseClick(){this.close.emit()}onCancel(){this.close.emit()}onSave(){let t=this.editedTitle.trim();t&&t!==this.currentTitle&&this.save.emit(t),this.close.emit()}onOverlayClick(){this.close.emit()}onModalClick(t){t.stopPropagation()}onInputKeydown(t){t.key==="Enter"?(t.preventDefault(),this.onSave()):t.key==="Escape"&&(t.preventDefault(),this.onCancel())}static \u0275fac=function(t){return new(t||Hs)};static \u0275cmp=Ie({type:Hs,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[ri],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],["type","text","placeholder","Enter chat name","autofocus","",1,"rename-input",3,"ngModelChange","keydown","ngModel","maxlength"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-save",3,"click"]],template:function(t,n){t&1&&ce(0,dx,16,2,"div",0),t&2&&M("ngIf",n.isOpen)},dependencies:[ye,nn,al,Hn,ol,rf,mi,xt],styles:[`.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-container{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button:hover{background-color:#f3f4f6;color:#111827}.icon-button:active{transform:scale(.95)}.back-button,.close-button{flex-shrink:0}.modal-body{padding:24px 20px;flex:1;overflow-y:auto}.rename-input{width:100%;padding:12px 16px;font-size:16px;border:1px solid #d1d5db;border-radius:8px;outline:none;transition:all .2s ease;font-family:inherit;color:#111827}.rename-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.rename-input::placeholder{color:#9ca3af}.modal-footer{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn:active{transform:scale(.98)}.btn-cancel{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-save{background-color:#ef4444;color:#fff}.btn-save:hover{background-color:#dc2626}.btn-save:disabled{background-color:#fca5a5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay{align-items:center}.modal-container{border-radius:16px;max-height:400px}}
30
+ `],encapsulation:3})};function hx(e,t){e&1&&(p(0,"div",22),z(1,"div",23),p(2,"p",24),R(3,"Loading conversations..."),y()())}function fx(e,t){if(e&1){let n=tn();p(0,"div",36)(1,"button",37),T("click",function(r){G(n);let i=V().$implicit,s=V(2);return W(s.onEditClick(i.id,i.title,r))}),z(2,"app-icon",38),p(3,"span"),R(4,"Rename"),y()(),p(5,"button",39),T("click",function(r){G(n);let i=V().$implicit,s=V(2);return W(s.onDeleteClick(i.id,r))}),z(6,"app-icon",40),p(7,"span"),R(8,"Delete"),y()()()}}function px(e,t){if(e&1){let n=tn();p(0,"div",27),T("click",function(){let r=G(n).$implicit,i=V(2);return W(i.onConversationClick(r.id))}),p(1,"div",28)(2,"div",29)(3,"span",30),R(4),y()(),p(5,"span",31),R(6),y()(),p(7,"div",32)(8,"button",33),T("click",function(r){let i=G(n).$implicit,s=V(2);return W(s.toggleMenu(i.id,r))}),z(9,"app-icon",34),y(),ce(10,fx,9,0,"div",35),y()()}if(e&2){let n=t.$implicit,r=V(2);S(4),ke(n.title),S(2),ke(n.date),S(4),M("ngIf",r.isMenuOpen(n.id))}}function gx(e,t){if(e&1&&(p(0,"div",25),ce(1,px,11,3,"div",26),y()),e&2){let n=V();S(),M("ngForOf",n.conversations)}}function mx(e,t){e&1&&(p(0,"div",41)(1,"p"),R(2,"No conversations yet"),y()())}var yx=class zs{isOpen=!1;conversations=[];isLoading=!1;backClick=new O;settingsClick=new O;closeClick=new O;conversationClick=new O;deleteClick=new O;newChatClick=new O;searchChange=new O;titleUpdate=new O;searchQuery="";isRenameModalOpen=!1;renamingConversationId=null;renamingConversationTitle="";activeMenuId=null;onBackClick(){this.backClick.emit()}onSettingsClick(){this.settingsClick.emit()}onCloseClick(){this.closeClick.emit()}onOverlayClick(){this.closeClick.emit(),this.closeMenu()}onConversationClick(t){this.conversationClick.emit(t)}onDeleteClick(t,n){n.stopPropagation(),this.deleteClick.emit(t),this.closeMenu()}onNewChatClick(){this.newChatClick.emit()}onSearchChange(){this.searchChange.emit(this.searchQuery)}onEditClick(t,n,r){r.stopPropagation(),this.renamingConversationId=t,this.renamingConversationTitle=n,this.isRenameModalOpen=!0,this.closeMenu()}onRenameModalClose(){this.isRenameModalOpen=!1,this.renamingConversationId=null,this.renamingConversationTitle=""}onRenameModalSave(t){this.renamingConversationId&&t.trim()&&this.titleUpdate.emit({id:this.renamingConversationId,title:t.trim()})}toggleMenu(t,n){n.stopPropagation(),this.activeMenuId===t?this.activeMenuId=null:this.activeMenuId=t}closeMenu(){this.activeMenuId=null}isMenuOpen(t){return this.activeMenuId===t}onSidebarClick(){this.closeMenu()}static \u0275fac=function(t){return new(t||zs)};static \u0275cmp=Ie({type:zs,selectors:[["app-sidebar"]],inputs:{isOpen:"isOpen",conversations:"conversations",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate"},decls:25,vars:10,consts:[[1,"sidebar-overlay",3,"click"],[1,"sidebar",3,"click"],[1,"sidebar-header"],[1,"back-text-button",3,"click"],["name","chevron-left","width","16","height","16"],[1,"header-actions"],["aria-label","Settings",1,"icon-button","settings-button",3,"click"],["name","settings","width","20","height","20"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","20","height","20"],[1,"sidebar-content"],[1,"conversations-title"],["class","loading-container",4,"ngIf"],["class","conversations-list",4,"ngIf"],["class","empty-conversations",4,"ngIf"],[1,"sidebar-footer"],[1,"search-container"],["name","search","width","18","height","18",1,"search-icon"],["type","text","placeholder","Search",1,"search-input",3,"ngModelChange","input","ngModel"],["aria-label","New Chat",1,"icon-button","new-chat-button",3,"click"],["name","edit","width","20","height","20"],[3,"close","save","isOpen","currentTitle"],[1,"loading-container"],[1,"spinner"],[1,"loading-text"],[1,"conversations-list"],["class","conversation-item",3,"click",4,"ngFor","ngForOf"],[1,"conversation-item",3,"click"],[1,"conversation-info"],[1,"conversation-title-container"],[1,"conversation-title"],[1,"conversation-date"],[1,"menu-container"],["aria-label","More options",1,"icon-button","menu-button",3,"click"],["name","more-horizontal","width","20","height","20"],["class","context-menu",4,"ngIf"],[1,"context-menu"],[1,"menu-item",3,"click"],["name","edit","width","16","height","16"],[1,"menu-item","delete-item",3,"click"],["name","trash","width","16","height","16"],[1,"empty-conversations"]],template:function(t,n){t&1&&(p(0,"div",0),T("click",function(){return n.onOverlayClick()}),y(),p(1,"div",1),T("click",function(){return n.onSidebarClick()}),p(2,"div",2)(3,"button",3),T("click",function(){return n.onBackClick()}),z(4,"app-icon",4),p(5,"span"),R(6,"Back to Chat"),y()(),p(7,"div",5)(8,"button",6),T("click",function(){return n.onSettingsClick()}),z(9,"app-icon",7),y(),p(10,"button",8),T("click",function(){return n.onCloseClick()}),z(11,"app-icon",9),y()()(),p(12,"div",10)(13,"h3",11),R(14,"Conversations"),y(),ce(15,hx,4,0,"div",12)(16,gx,2,1,"div",13)(17,mx,3,0,"div",14),y(),p(18,"div",15)(19,"div",16),z(20,"app-icon",17),p(21,"input",18),Ko("ngModelChange",function(r){return oh(n.searchQuery,r)||(n.searchQuery=r),r}),T("input",function(){return n.onSearchChange()}),y()(),p(22,"button",19),T("click",function(){return n.onNewChatClick()}),z(23,"app-icon",20),y()()(),p(24,"app-rename-modal",21),T("close",function(){return n.onRenameModalClose()})("save",function(r){return n.onRenameModalSave(r)}),y()),t&2&&(Se("visible",n.isOpen),S(),Se("open",n.isOpen),S(14),M("ngIf",n.isLoading),S(),M("ngIf",!n.isLoading&&n.conversations.length>0),S(),M("ngIf",!n.isLoading&&n.conversations.length===0),S(4),Yo("ngModel",n.searchQuery),S(3),M("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[ye,hi,nn,al,Hn,ol,mi,xt,of],styles:[`.sidebar-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;z-index:998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.sidebar-overlay.visible{opacity:1;visibility:visible}.sidebar{position:fixed;top:0;left:0;width:85%;max-width:400px;height:100%;background:#fff;z-index:999;transform:translate(-100%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:2px 0 8px #0000001a}.sidebar.open{transform:translate(0)}.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #e8ecf1}.back-text-button{display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;font-size:16px;font-weight:500;color:#1a1a1a;padding:8px;border-radius:8px;transition:background .2s ease}.back-text-button:hover{background:#f5f7fa}.header-actions{display:flex;align-items:center;gap:8px}.icon-button{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background .2s ease;color:#5f6368}.icon-button:hover{background:#f5f7fa;color:#1a1a1a}.icon-button:active{background:#e8ecf1}.sidebar-content{flex:1;overflow-y:auto;padding:16px}.conversations-title{font-size:13px;font-weight:500;color:#95a5a6;text-transform:uppercase;letter-spacing:.5px;margin:0 0 16px}.conversations-list{display:flex;flex-direction:column;gap:8px}.conversation-item{display:flex;align-items:center;padding:12px;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s ease;gap:12px;position:relative}.conversation-item:hover{background:#f5f7fa}.conversation-info{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.conversation-title-container{display:flex;align-items:center;gap:8px;min-width:0}.conversation-title{flex:1;font-size:14px;font-weight:500;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-date{font-size:12px;color:#95a5a6}.menu-container{position:relative}.menu-button{opacity:0;transition:opacity .2s ease}.conversation-item:hover .menu-button,.menu-button:focus,.menu-container:focus-within .menu-button{opacity:1}.context-menu{position:absolute;top:100%;right:0;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e8ecf1;padding:4px;min-width:140px;z-index:1000;display:flex;flex-direction:column;gap:2px}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border:none;background:none;width:100%;text-align:left;cursor:pointer;border-radius:6px;font-size:14px;color:#1a1a1a;transition:background .2s ease}.menu-item:hover{background:#f5f7fa}.menu-item app-icon{color:#5f6368}.delete-item{color:#dc3545}.delete-item:hover{background:#fee}.delete-item app-icon{color:#dc3545}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px}.spinner{width:40px;height:40px;border:3px solid #f5f7fa;border-top-color:#ff5337;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{color:#95a5a6;font-size:14px;margin:0}.empty-conversations{display:flex;align-items:center;justify-content:center;padding:40px 20px;text-align:center}.empty-conversations p{color:#95a5a6;font-size:14px;margin:0}.sidebar-footer{padding:16px;border-top:1px solid #e8ecf1;display:flex;align-items:center;gap:12px}.search-container{flex:1;position:relative;display:flex;align-items:center;background:#f5f7fa;border-radius:8px;padding:8px 12px;gap:8px}.search-icon{flex-shrink:0;color:#95a5a6}.search-input{flex:1;border:none;background:none;font-size:14px;color:#1a1a1a;outline:none;padding:0}.search-input::placeholder{color:#95a5a6}.new-chat-button{flex-shrink:0;background:#fff;border:1px solid #e8ecf1;border-radius:8px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.new-chat-button:hover{background:#f5f7fa;border-color:#d0d7de}@media (max-width: 480px){.sidebar{width:100%;max-width:none}}
31
+ `],encapsulation:3})},lf=class Bs{text="";disabled=!1;buttonClick=new O;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Bs)};static \u0275cmp=Ie({type:Bs,selectors:[["app-suggestion-button"]],inputs:{text:"text",disabled:"disabled"},outputs:{buttonClick:"buttonClick"},decls:2,vars:3,consts:[[1,"suggestion-button",3,"click"]],template:function(t,n){t&1&&(Wo(0,"button",0),nh("click",function(){return n.onClick()}),R(1),Qo()),t&2&&(Se("disabled",n.disabled),S(),On(" ",n.text," "))},dependencies:[ye],styles:[`.suggestion-button{background:#fff;border:1.5px solid #FF6B6B;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#ff6b6b;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 4px #0000000d;display:inline-block;width:auto;text-align:center}.suggestion-button:hover:not(.disabled){background:#fff5f5;border-color:#ff5252;transform:translateY(-1px);box-shadow:0 4px 8px #ff6b6b26}.suggestion-button:active:not(.disabled){transform:translateY(0);box-shadow:0 2px 4px #0000000d}.suggestion-button.disabled{opacity:.5;cursor:not-allowed}
32
+ `],encapsulation:3})},vx=class vr{toasts=Dt([]);toasts$=this.toasts.asReadonly();show(t,n="info",r=3e3){let i=Math.random().toString(36).substring(7),s={id:i,message:t,type:n,duration:r};this.toasts.update(o=>[...o,s]),r>0&&setTimeout(()=>this.remove(i),r)}success(t,n){this.show(t,"success",n)}error(t,n){this.show(t,"error",n)}warning(t,n){this.show(t,"warning",n)}info(t,n){this.show(t,"info",n)}remove(t){this.toasts.update(n=>n.filter(r=>r.id!==t))}static \u0275fac=function(t){return new(t||vr)};static \u0275prov=I({token:vr,factory:vr.\u0275fac,providedIn:"root"})};function bx(e,t){e&1&&(p(0,"span"),R(1,"\u2713"),y())}function wx(e,t){e&1&&(p(0,"span"),R(1,"\u2715"),y())}function _x(e,t){e&1&&(p(0,"span"),R(1,"\u26A0"),y())}function xx(e,t){e&1&&(p(0,"span"),R(1,"\u2139"),y())}function Cx(e,t){if(e&1){let n=tn();p(0,"div",2)(1,"div",3)(2,"span",4),Xd(3,5),ce(4,bx,2,0,"span",6)(5,wx,2,0,"span",6)(6,_x,2,0,"span",6)(7,xx,2,0,"span",6),eh(),y(),p(8,"span",7),R(9),y()(),p(10,"button",8),T("click",function(){let r=G(n).$implicit,i=V();return W(i.onClose(r.id))}),R(11,"\u2715"),y()()}if(e&2){let n=t.$implicit;Se("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),S(3),M("ngSwitch",n.type),S(),M("ngSwitchCase","success"),S(),M("ngSwitchCase","error"),S(),M("ngSwitchCase","warning"),S(),M("ngSwitchCase","info"),S(2),ke(n.message)}}var kx=class Us{toastService=w(vx);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||Us)};static \u0275cmp=Ie({type:Us,selectors:[["app-toast-container"]],decls:2,vars:1,consts:[[1,"toast-container"],["class","toast",3,"success","error","warning","info",4,"ngFor","ngForOf"],[1,"toast"],[1,"toast-content"],[1,"toast-icon"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"toast-message"],[1,"toast-close",3,"click"]],template:function(t,n){t&1&&(p(0,"div",0),ce(1,Cx,12,14,"div",1),y()),t&2&&(S(),M("ngForOf",n.toasts()))},dependencies:[ye,hi,gh,nw],styles:[`.toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:12px;max-width:400px}.toast{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;box-shadow:0 4px 12px #00000026;background:#fff;min-width:300px;animation:slideIn .3s ease-out}@keyframes slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-content{display:flex;align-items:center;gap:12px;flex:1}.toast-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:700}.toast.success{border-left:4px solid #10b981}.toast.success .toast-icon{background:#10b981;color:#fff}.toast.error{border-left:4px solid #ef4444}.toast.error .toast-icon{background:#ef4444;color:#fff}.toast.warning{border-left:4px solid #f59e0b}.toast.warning .toast-icon{background:#f59e0b;color:#fff}.toast.info{border-left:4px solid #3b82f6}.toast.info .toast-icon{background:#3b82f6;color:#fff}.toast-message{flex:1;font-size:14px;color:#2c3e50;line-height:1.4}.toast-close{background:none;border:none;color:#95a5a6;cursor:pointer;font-size:18px;padding:4px 8px;display:flex;align-items:center;justify-content:center;transition:color .2s}.toast-close:hover{color:#2c3e50}@media (max-width: 768px){.toast-container{top:10px;right:10px;left:10px;max-width:none}.toast{min-width:auto}}
33
+ `],encapsulation:3})};function Sx(e,t){if(e&1&&(p(0,"div",7)(1,"div",8),z(2,"app-icon",9),y(),p(3,"h1",10),R(4),y(),p(5,"p",11),R(6),y(),p(7,"p",12),R(8),y()()),e&2){let n=V();S(4),ke(n.greeting),S(2),ke(n.welcomeText),S(2),ke(n.description)}}function Ex(e,t){if(e&1&&z(0,"app-chat-history",13),e&2){let n=V();M("messages",n.messages)}}function Tx(e,t){if(e&1){let n=tn();p(0,"app-suggestion-button",18),T("buttonClick",function(r){G(n);let i=V(2);return W(i.onSuggestionClick(r))}),y()}if(e&2){let n=t.$implicit,r=V(2);M("text",n)("disabled",r.isLoading)}}function Ix(e,t){if(e&1&&(p(0,"div",14)(1,"p",15),R(2),y(),p(3,"div",16),ce(4,Tx,1,2,"app-suggestion-button",17),y()()),e&2){let n=V();S(2),ke(n.personalizationText),S(2),M("ngForOf",n.suggestions)}}var Ox=class Zs{title=He.TITLE;greeting=He.WELCOME.GREETING;welcomeText=He.WELCOME.TEXT;description=He.WELCOME.DESCRIPTION;personalizationText=He.WELCOME.PERSONALIZATION;inputPlaceholder=He.INPUT.PLACEHOLDER;suggestions=[...He.SUGGESTIONS];messages=[];hasMessages=!1;isLoading=!1;voiceStatus={state:"idle",transcript:"",interimTranscript:""};inputValue="";menuClick=new O;closeClick=new O;suggestionClick=new O;messageSubmit=new O;voiceClick=new O;addClick=new O;inputValueChange=new O;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}onSuggestionClick(t){this.suggestionClick.emit(t)}onMessageSubmit(t){this.messageSubmit.emit(t)}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}onInputValueChange(t){this.inputValueChange.emit(t)}static \u0275fac=function(t){return new(t||Zs)};static \u0275cmp=Ie({type:Zs,selectors:[["app-assistant"]],inputs:{title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions",messages:"messages",hasMessages:"hasMessages",isLoading:"isLoading",voiceStatus:"voiceStatus",inputValue:"inputValue"},outputs:{menuClick:"menuClick",closeClick:"closeClick",suggestionClick:"suggestionClick",messageSubmit:"messageSubmit",voiceClick:"voiceClick",addClick:"addClick",inputValueChange:"inputValueChange"},decls:7,vars:8,consts:[[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","placeholder","disabled","voiceStatus","value"],[1,"welcome-container"],[1,"icon-wrapper"],["name","sparkle","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(255, 107, 107, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"messages"],[1,"personalization-section"],[1,"personalization-text"],[1,"suggestions"],[3,"text","disabled","buttonClick",4,"ngFor","ngForOf"],[3,"buttonClick","text","disabled"]],template:function(t,n){t&1&&(p(0,"div",0)(1,"app-header",1),T("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),y(),p(2,"div",2),ce(3,Sx,9,3,"div",3)(4,Ex,1,1,"app-chat-history",4)(5,Ix,5,2,"div",5),y(),p(6,"app-input-field",6),T("valueChange",function(r){return n.onInputValueChange(r)})("submitMessage",function(r){return n.onMessageSubmit(r)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()}),y()()),t&2&&(S(),M("title",n.title),S(2),M("ngIf",!n.hasMessages),S(),M("ngIf",n.hasMessages),S(),M("ngIf",!n.hasMessages),S(),M("placeholder",n.inputPlaceholder)("disabled",n.isLoading)("voiceStatus",n.voiceStatus)("value",n.inputValue))},dependencies:[ye,hi,nn,Uh,lf,sf,xt,Bh],styles:[`.assistant-page{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden}.content{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0;position:relative}app-chat-history{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.welcome-container{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px 24px 30px;text-align:center;flex:1}.icon-wrapper{margin-bottom:16px}.greeting{font-size:28px;font-weight:700;margin:0 0 12px;color:#1a1a1a}.welcome-text{font-size:18px;font-weight:500;margin:0 0 12px;color:#333}.description{font-size:15px;font-weight:400;margin:0 0 20px;color:#666;max-width:400px;line-height:1.4}.personalization-section{padding:0 24px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;flex-shrink:0}.personalization-text{font-size:15px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4}.suggestions{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:400px}@media (max-width: 768px){.suggestions{max-width:100%}}
34
+ `],encapsulation:3})},Dx=class br{constructor(t){this.http=t}config=null;loadConfig(){return La(this,null,function*(){try{this.config=yield kp(this.http.get("/config.json")),console.log("Configuration loaded:",this.config?.environmentName)}catch(t){console.error("Failed to load configuration, using defaults",t),this.config={apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}})}get apiUrl(){return this.config?.apiUrl||"https://localhost:7592"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"local"}getConfig(){return this.config||{apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}static \u0275fac=function(t){return new(t||br)(b(Mh))};static \u0275prov=I({token:br,factory:br.\u0275fac,providedIn:"root"})},Ax={production:!0};function af(e){return()=>e.loadConfig()}La(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Components already registered, skipping...");return}let e=yield Cw({providers:[Jg(),K1({eventCoalescing:!0}),i_(s_()),{provide:Qd,useFactory:af,deps:[Dx],multi:!0},mh,v_.forRoot({level:Ax.production?Z.WARN:Z.DEBUG,serverLogLevel:Z.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=be(Bh,{injector:e.injector});customElements.define("app-chat-history",t);let n=be(T_,{injector:e.injector});customElements.define("app-confirmation-modal",n);let r=be(Uh,{injector:e.injector});customElements.define("app-header",r);let i=be(xt,{injector:e.injector});customElements.define("app-icon",i);let s=be(sf,{injector:e.injector});customElements.define("app-input-field",s);let o=be(zh,{injector:e.injector});customElements.define("app-message",o);let l=be(of,{injector:e.injector});customElements.define("app-rename-modal",l);let a=be(yx,{injector:e.injector});customElements.define("app-sidebar",a);let u=be(lf,{injector:e.injector});customElements.define("app-suggestion-button",u);let c=be(kx,{injector:e.injector});customElements.define("app-toast-container",c);let d=be(Ox,{injector:e.injector});customElements.define("app-assistant",d),console.log("\u2705 Web Components registered!"),console.log("Available components:"),console.log(" - app-chat-history"),console.log(" - app-confirmation-modal"),console.log(" - app-header"),console.log(" - app-icon"),console.log(" - app-input-field"),console.log(" - app-message"),console.log(" - app-rename-modal"),console.log(" - app-sidebar"),console.log(" - app-suggestion-button"),console.log(" - app-toast-container"),console.log(" - app-assistant")});return pf(Vx);})();
24
35
  /*! Bundled license information:
25
36
 
26
37
  @angular/core/fesm2022/not_found.mjs: