@mbubela/oaa-assistant 0.0.9 → 0.0.10

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,10 @@
1
- "use strict";var WebComponents=(()=>{var Ti=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var kf=Object.getOwnPropertyNames;var Sf=Object.prototype.hasOwnProperty;var Of=(e,t)=>{for(var n in t)Ti(e,n,{get:t[n],enumerable:!0})},Ef=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kf(t))!Sf.call(e,i)&&i!==n&&Ti(e,i,{get:()=>t[i],enumerable:!(r=xf(t,i))||r.enumerable});return e};var Mf=e=>Ef(Ti({},"__esModule",{value:!0}),e);var tx={};Of(tx,{initializeApp:()=>_f});var Tf=Object.defineProperty,If=Object.defineProperties,Pf=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Df=Object.prototype.propertyIsEnumerable,_a=(e,t,n)=>t in e?Tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||={})Af.call(t,n)&&_a(e,n,t[n]);if(wa)for(var n of wa(t))Df.call(t,n)&&_a(e,n,t[n]);return e},D=(e,t)=>If(e,Pf(t)),Y=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{a(n.next(l))}catch(u){i(u)}},o=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);a((n=n.apply(e,t)).next())}),ls;function Kl(){return ls}function nt(e){let t=ls;return ls=e,t}var Vf=Symbol("NotFound");function no(e){return e===Vf||e?.name==="\u0275NotFound"}var te=null,ur=!1,ro=1,Nf=null,Ve=Symbol("SIGNAL");function I(e){let t=te;return te=e,t}function Rf(){return te}var ii={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 Jl(e){if(ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=te.recomputing;if(r&&(n=t!==void 0?t.nextProducer:te.producers,n!==void 0&&n.producer===e)){te.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===te&&(!r||zf(i,te)))return;let s=Kt(te),o={producer:e,consumer:te,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=o,t!==void 0?t.nextProducer=o:te.producers=o,s&&su(e,o)}function Lf(){ro++}function Xl(e){if(!(Kt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ro)){if(!e.producerMustRecompute(e)&&!ru(e)){xa(e);return}e.producerRecomputeValue(e),xa(e)}}function eu(e){if(e.consumers===void 0)return;let t=ur;ur=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ff(r)}}finally{ur=t}}function tu(){return te?.consumerAllowSignalWrites!==!1}function Ff(e){e.dirty=!0,eu(e),e.consumerMarkedDirty?.(e)}function xa(e){e.dirty=!1,e.lastCleanEpoch=ro}function us(e){return e&&jf(e),I(e)}function jf(e){e.producersTail=void 0,e.recomputing=!0}function nu(e,t){I(t),e&&Hf(e)}function Hf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Kt(e))do n=io(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function ru(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Xl(n),r!==n.version))return!0}return!1}function iu(e){if(Kt(e)){let t=e.producers;for(;t!==void 0;)t=io(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function su(e,t){let n=e.consumersTail,r=Kt(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)su(i.producer,i)}function io(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,!Kt(t)){let s=t.producers;for(;s!==void 0;)s=io(s)}return n}function Kt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ou(e){Nf?.(e)}function zf(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 au(e,t){return Object.is(e,t)}function Bf(e,t){let n=Object.create(Uf);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Xl(n),Jl(n),n.value===cr)throw n.error;return n.value};return r[Ve]=n,ou(n),r}var Ii=Symbol("UNSET"),Pi=Symbol("COMPUTING"),cr=Symbol("ERRORED"),Uf=D(T({},ii),{value:Ii,dirty:!0,error:null,equal:au,kind:"computed",producerMustRecompute(e){return e.value===Ii||e.value===Pi},producerRecomputeValue(e){if(e.value===Pi)throw new Error("");let t=e.value;e.value=Pi;let n=us(e),r,i=!1;try{r=e.computation(),I(null),i=t!==Ii&&t!==cr&&r!==cr&&e.equal(t,r)}catch(s){r=cr,e.error=s}finally{nu(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function $f(){throw new Error}var lu=$f;function uu(e){lu(e)}function qf(e){lu=e}var Zf=null;function Gf(e,t){let n=Object.create(Yf);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Wf(n);return r[Ve]=n,ou(n),[r,i=>cu(n,i),i=>Qf(n,i)]}function Wf(e){return Jl(e),e.value}function cu(e,t){tu()||uu(e),e.equal(e.value,t)||(e.value=t,Kf(e))}function Qf(e,t){tu()||uu(e),cu(e,t(e.value))}var Yf=D(T({},ii),{equal:au,value:void 0,kind:"signal"});function Kf(e){e.version++,Lf(),eu(e),Zf?.(e)}function Z(e){return typeof e=="function"}function si(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 Ai=si(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
1
+ "use strict";var WebComponents=(()=>{var Ti=Object.defineProperty;var wp=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var kp=Object.prototype.hasOwnProperty;var Sp=(e,t)=>{for(var n in t)Ti(e,n,{get:t[n],enumerable:!0})},Op=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xp(t))!kp.call(e,i)&&i!==n&&Ti(e,i,{get:()=>t[i],enumerable:!(r=wp(t,i))||r.enumerable});return e};var Mp=e=>Op(Ti({},"__esModule",{value:!0}),e);var tx={};Sp(tx,{initializeApp:()=>_p});var Ep=Object.defineProperty,Tp=Object.defineProperties,Pp=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertySymbols,Ip=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable,wa=(e,t,n)=>t in e?Ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||={})Ip.call(t,n)&&wa(e,n,t[n]);if(_a)for(var n of _a(t))Ap.call(t,n)&&wa(e,n,t[n]);return e},D=(e,t)=>Tp(e,Pp(t)),Y=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{a(n.next(l))}catch(u){i(u)}},o=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);a((n=n.apply(e,t)).next())}),ls;function Kl(){return ls}function nt(e){let t=ls;return ls=e,t}var Dp=Symbol("NotFound");function no(e){return e===Dp||e?.name==="\u0275NotFound"}var te=null,ur=!1,ro=1,Vp=null,Ve=Symbol("SIGNAL");function P(e){let t=te;return te=e,t}function Np(){return te}var ii={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 Jl(e){if(ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=te.recomputing;if(r&&(n=t!==void 0?t.nextProducer:te.producers,n!==void 0&&n.producer===e)){te.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===te&&(!r||zp(i,te)))return;let s=Kt(te),o={producer:e,consumer:te,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=o,t!==void 0?t.nextProducer=o:te.producers=o,s&&su(e,o)}function Rp(){ro++}function Xl(e){if(!(Kt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ro)){if(!e.producerMustRecompute(e)&&!ru(e)){xa(e);return}e.producerRecomputeValue(e),xa(e)}}function eu(e){if(e.consumers===void 0)return;let t=ur;ur=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Lp(r)}}finally{ur=t}}function tu(){return te?.consumerAllowSignalWrites!==!1}function Lp(e){e.dirty=!0,eu(e),e.consumerMarkedDirty?.(e)}function xa(e){e.dirty=!1,e.lastCleanEpoch=ro}function us(e){return e&&Fp(e),P(e)}function Fp(e){e.producersTail=void 0,e.recomputing=!0}function nu(e,t){P(t),e&&jp(e)}function jp(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Kt(e))do n=io(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function ru(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Xl(n),r!==n.version))return!0}return!1}function iu(e){if(Kt(e)){let t=e.producers;for(;t!==void 0;)t=io(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function su(e,t){let n=e.consumersTail,r=Kt(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)su(i.producer,i)}function io(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,!Kt(t)){let s=t.producers;for(;s!==void 0;)s=io(s)}return n}function Kt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ou(e){Vp?.(e)}function zp(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 au(e,t){return Object.is(e,t)}function Hp(e,t){let n=Object.create(Bp);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Xl(n),Jl(n),n.value===cr)throw n.error;return n.value};return r[Ve]=n,ou(n),r}var Pi=Symbol("UNSET"),Ii=Symbol("COMPUTING"),cr=Symbol("ERRORED"),Bp=D(T({},ii),{value:Pi,dirty:!0,error:null,equal:au,kind:"computed",producerMustRecompute(e){return e.value===Pi||e.value===Ii},producerRecomputeValue(e){if(e.value===Ii)throw new Error("");let t=e.value;e.value=Ii;let n=us(e),r,i=!1;try{r=e.computation(),P(null),i=t!==Pi&&t!==cr&&r!==cr&&e.equal(t,r)}catch(s){r=cr,e.error=s}finally{nu(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Up(){throw new Error}var lu=Up;function uu(e){lu(e)}function $p(e){lu=e}var qp=null;function Zp(e,t){let n=Object.create(Qp);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Gp(n);return r[Ve]=n,ou(n),[r,i=>cu(n,i),i=>Wp(n,i)]}function Gp(e){return Jl(e),e.value}function cu(e,t){tu()||uu(e),e.equal(e.value,t)||(e.value=t,Yp(e))}function Wp(e,t){tu()||uu(e),cu(e,t(e.value))}var Qp=D(T({},ii),{equal:au,value:void 0,kind:"signal"});function Yp(e){e.version++,Rp(),eu(e),qp?.(e)}function Z(e){return typeof e=="function"}function si(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 Ai=si(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 Ir(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ne=class cs{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(Z(r))try{r()}catch(s){t=s instanceof Ai?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{ka(s)}catch(o){t=t??[],o instanceof Ai?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Ai(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ka(t);else{if(t instanceof cs){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)&&Ir(n,t)}remove(t){let{_finalizers:n}=this;n&&Ir(n,t),t instanceof cs&&t._removeParent(this)}};Ne.EMPTY=(()=>{let e=new Ne;return e.closed=!0,e})();var du=Ne.EMPTY;function hu(e){return e instanceof Ne||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function ka(e){Z(e)?e():e.unsubscribe()}var Et={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pr={setTimeout(e,t,...n){let{delegate:r}=Pr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fu(e){Pr.setTimeout(()=>{let{onUnhandledError:t}=Et;if(t)t(e);else throw e})}function Sa(){}var Jf=so("C",void 0,void 0);function Xf(e){return so("E",void 0,e)}function ep(e){return so("N",e,void 0)}function so(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function dr(e){if(Et.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function tp(e){Et.useDeprecatedSynchronousErrorHandling&&gt&&(gt.errorThrown=!0,gt.error=e)}var oo=class extends Ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,hu(e)&&e.add(this)):this.destination=sp}static create(e,t,n){return new Ht(e,t,n)}next(e){this.isStopped?Vi(ep(e),this):this._next(e)}error(e){this.isStopped?Vi(Xf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Vi(Jf,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()}}},np=Function.prototype.bind;function Di(e,t){return np.call(e,t)}var rp=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Gn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Gn(n)}else Gn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Gn(t)}}},Ht=class extends oo{constructor(e,t,n){super();let r;if(Z(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Et.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Di(e.next,i),error:e.error&&Di(e.error,i),complete:e.complete&&Di(e.complete,i)}):r=e}this.destination=new rp(r)}};function Gn(e){Et.useDeprecatedSynchronousErrorHandling?tp(e):fu(e)}function ip(e){throw e}function Vi(e,t){let{onStoppedNotification:n}=Et;n&&Pr.setTimeout(()=>n(e,t))}var sp={closed:!0,next:Sa,error:ip,complete:Sa},ao=typeof Symbol=="function"&&Symbol.observable||"@@observable";function lo(e){return e}function op(e){return e.length===0?lo:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var J=(()=>{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=lp(n)?n:new Ht(n,r,i);return dr(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Oa(r),new r((i,s)=>{let o=new Ht({next:a=>{try{n(a)}catch(l){s(l),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)}[ao](){return this}pipe(...n){return op(n)(this)}toPromise(n){return n=Oa(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 Oa(e){var t;return(t=e??Et.Promise)!==null&&t!==void 0?t:Promise}function ap(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}function lp(e){return e&&e instanceof oo||ap(e)&&hu(e)}function up(e){return Z(e?.lift)}function be(e){return t=>{if(up(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 de(e,t,n,r,i){return new cp(e,t,n,r,i)}var cp=class extends oo{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(a){e.error(a)}}:super._next,this._error=r?function(o){try{r(o)}catch(a){e.error(a)}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))}}},dp=si(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),ut=(()=>{class e extends J{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ea(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new dp}next(n){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){dr(()=>{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(){dr(()=>{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?du:(this.currentObservers=null,s.push(n),new Ne(()=>{this.currentObservers=null,Ir(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new J;return n.source=this,n}}return e.create=(t,n)=>new Ea(t,n),e})(),Ea=class extends ut{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:du}},pu=class extends ut{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)}},uo={now(){return(uo.delegate||Date).now()},delegate:void 0},gu=class extends ut{constructor(e=1/0,t=1/0,n=uo){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 a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}}},hp=class extends Ne{constructor(e,t){super()}schedule(e,t=0){return this}},Ar={setInterval(e,t,...n){let{delegate:r}=Ar;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ar;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},fp=class extends hp{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 Ar.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&&Ar.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,Ir(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},ds=class mu{constructor(t,n=mu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};ds.now=uo.now;var pp=class extends ds{constructor(e,t=ds.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}}},vu=new pp(fp),gp=vu,yu=new J(e=>e.complete());function bu(e){return e&&Z(e.schedule)}function co(e){return e[e.length-1]}function mp(e){return Z(co(e))?e.pop():void 0}function Cu(e){return bu(co(e))?e.pop():void 0}function vp(e,t){return typeof co(e)=="number"?e.pop():t}function yp(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 a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Ma(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 Lt(e){return this instanceof Lt?(this.v=e,this):new Lt(e)}function bp(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),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(i[h]=function(m){return new Promise(function(b,R){s.push([h,m,b,R])>1||l(h,m)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(m){f(s[0][3],m)}}function u(h){h.value instanceof Lt?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Cp(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 Ma=="function"?Ma(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(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}var wu=e=>e&&typeof e.length=="number"&&typeof e!="function";function _u(e){return Z(e?.then)}function xu(e){return Z(e[ao])}function ku(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function Su(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 wp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ou=wp();function Eu(e){return Z(e?.[Ou])}function Mu(e){return bp(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Lt(t.read());if(r)return yield Lt(void 0);yield yield Lt(n)}}finally{t.releaseLock()}})}function Tu(e){return Z(e?.getReader)}function fe(e){if(e instanceof J)return e;if(e!=null){if(xu(e))return _p(e);if(wu(e))return xp(e);if(_u(e))return kp(e);if(ku(e))return Iu(e);if(Eu(e))return Sp(e);if(Tu(e))return Op(e)}throw Su(e)}function _p(e){return new J(t=>{let n=e[ao]();if(Z(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xp(e){return new J(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function kp(e){return new J(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fu)})}function Sp(e){return new J(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Iu(e){return new J(t=>{Ep(e,t).catch(n=>t.error(n))})}function Op(e){return Iu(Mu(e))}function Ep(e,t){var n,r,i,s;return yp(this,void 0,void 0,function*(){try{for(n=Cp(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 $e(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 Pu(e,t=0){return be((n,r)=>{n.subscribe(de(r,i=>$e(r,e,()=>r.next(i),t),()=>$e(r,e,()=>r.complete(),t),i=>$e(r,e,()=>r.error(i),t)))})}function Au(e,t=0){return be((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Mp(e,t){return fe(e).pipe(Au(t),Pu(t))}function Tp(e,t){return fe(e).pipe(Au(t),Pu(t))}function Ip(e,t){return new J(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Pp(e,t){return new J(n=>{let r;return $e(n,t,()=>{r=e[Ou](),$e(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)}),()=>Z(r?.return)&&r.return()})}function Du(e,t){if(!e)throw new Error("Iterable cannot be null");return new J(n=>{$e(n,t,()=>{let r=e[Symbol.asyncIterator]();$e(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ap(e,t){return Du(Mu(e),t)}function Dp(e,t){if(e!=null){if(xu(e))return Mp(e,t);if(wu(e))return Ip(e,t);if(_u(e))return Tp(e,t);if(ku(e))return Du(e,t);if(Eu(e))return Pp(e,t);if(Tu(e))return Ap(e,t)}throw Su(e)}function ho(e,t){return t?Dp(e,t):fe(e)}function Ue(...e){let t=Cu(e);return ho(e,t)}function fo(e,t){let n=Z(e)?e:()=>e,r=i=>i.error(n());return new J(t?i=>t.schedule(r,0,i):r)}function Vp(e){return!!e&&(e instanceof J||Z(e.lift)&&Z(e.subscribe))}var Np=si(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function tt(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new Ht({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Np)}});e.subscribe(s)})}function Vu(e){return e instanceof Date&&!isNaN(e)}var Rp=si(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function ft(e,t){let{first:n,each:r,with:i=Lp,scheduler:s=t??vu,meta:o=null}=Vu(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return be((a,l)=>{let u,c,d=null,f=0,h=g=>{c=$e(l,s,()=>{try{u.unsubscribe(),fe(i({meta:o,lastValue:d,seen:f})).subscribe(l)}catch(m){l.error(m)}},g)};u=a.subscribe(de(l,g=>{c?.unsubscribe(),f++,l.next(d=g),r>0&&h(r)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!f&&h(n!=null?typeof n=="number"?n:+n-s.now():r)})}function Lp(e){throw new Rp(e)}function Oe(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Fp}=Array;function jp(e,t){return Fp(t)?e(...t):e(t)}function Hp(e){return Oe(t=>jp(e,t))}var{isArray:zp}=Array,{getPrototypeOf:Bp,prototype:Up,keys:$p}=Object;function qp(e){if(e.length===1){let t=e[0];if(zp(t))return{args:t,keys:null};if(Zp(t)){let n=$p(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Zp(e){return e&&typeof e=="object"&&Bp(e)===Up}function Gp(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Wp(e,t,n,r,i,s,o,a){let l=[],u=0,c=0,d=!1,f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u<r?g(m):l.push(m),g=m=>{s&&t.next(m),u++;let b=!1;fe(n(m,c++)).subscribe(de(t,R=>{i?.(R),s?h(R):t.next(R)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;l.length&&u<r;){let R=l.shift();o?$e(t,o,()=>g(R)):g(R)}f()}catch(R){t.error(R)}}))};return e.subscribe(de(t,h,()=>{d=!0,f()})),()=>{a?.()}}function Dr(e,t,n=1/0){return Z(t)?Dr((r,i)=>Oe((s,o)=>t(r,s,i,o))(fe(e(r,i))),n):(typeof t=="number"&&(n=t),be((r,i)=>Wp(r,i,e,n)))}function Qp(e=1/0){return Dr(lo,e)}function Yp(...e){let t=mp(e),{args:n,keys:r}=qp(e),i=new J(s=>{let{length:o}=n;if(!o){s.complete();return}let a=new Array(o),l=o,u=o;for(let c=0;c<o;c++){let d=!1;fe(n[c]).subscribe(de(s,f=>{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(r?Gp(r,a):a),s.complete())}))}});return t?i.pipe(Hp(t)):i}function Nu(e=0,t,n=gp){let r=-1;return t!=null&&(bu(t)?n=t:r=t),new J(i=>{let s=Vu(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 Kp(...e){let t=Cu(e),n=vp(e,1/0),r=e;return r.length?r.length===1?fe(r[0]):Qp(n)(ho(r,t)):yu}function Vr(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>e.call(t,s,i++)&&r.next(s)))})}function ke(e){return be((t,n)=>{let r=null,i=!1,s;r=t.subscribe(de(n,void 0,void 0,o=>{s=fe(e(o,ke(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Ru(e,t){return Z(t)?Dr(e,t,1):Dr(e,1)}function Lu(e){return e<=0?()=>yu:be((t,n)=>{let r=0;t.subscribe(de(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Fu(e){return be((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Jp(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?lo:be((s,o)=>{let a=0,l,u=()=>{let c=!1;l=s.subscribe(de(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<n){let f=()=>{l?(l.unsubscribe(),l=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?Nu(r):fe(r(d,a)),g=de(o,()=>{g.unsubscribe(),f()},()=>{o.complete()});h.subscribe(g)}else f()}else o.error(d)})),c&&(l.unsubscribe(),l=null,u())};u()})}function Xp(e={}){let{connector:t=()=>new ut,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,a,l,u=0,c=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),o=l=void 0,c=d=!1},g=()=>{let m=o;h(),m?.unsubscribe()};return be((m,b)=>{u++,!d&&!c&&f();let R=l=l??t();b.add(()=>{u--,u===0&&!d&&!c&&(a=Ni(g,i))}),R.subscribe(b),!o&&u>0&&(o=new Ht({next:_e=>R.next(_e),error:_e=>{d=!0,f(),a=Ni(h,n,_e),R.error(_e)},complete:()=>{c=!0,f(),a=Ni(h,r),R.complete()}}),fe(m).subscribe(o))})(s)}}function Ni(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ht({next:()=>{r.unsubscribe(),e()}});return fe(t(...n)).subscribe(r)}function Ta(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,Xp({connector:()=>new gu(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function ju(e,t){return be((n,r)=>{let i=null,s=0,o=!1,a=()=>o&&!i&&r.complete();n.subscribe(de(r,l=>{i?.unsubscribe();let u=0,c=s++;fe(e(l,c)).subscribe(i=de(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function eg(e){let t=I(null);try{return e()}finally{I(t)}}var Hu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(e,t){super(ng(e,t)),this.code=e}};function tg(e){return`NG0${Math.abs(e)}`}function ng(e,t){return`${tg(e)}${t?": "+t:""}`}var st=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("")}function rg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function zt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(zt).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 Ia(e,t){return e?t?`${e} ${t}`:e:t||""}var ig=B({__forward_ref__:B});function Nn(e){return e.__forward_ref__=Nn,e.toString=function(){return zt(this())},e}function ie(e){return zu(e)?e():e}function zu(e){return typeof e=="function"&&e.hasOwnProperty(ig)&&e.__forward_ref__===Nn}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function oi(e){return{providers:e.providers||[],imports:e.imports||[]}}function po(e){return sg(e,Bu)}function sg(e,t){return e.hasOwnProperty(t)&&e[t]||null}function og(e){return(e?.[Bu]??null)||null}function Pa(e){return e&&e.hasOwnProperty(Aa)?e[Aa]:null}var Bu=B({\u0275prov:B}),Aa=B({\u0275inj:B}),S=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=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Uu(e){return e&&!!e.\u0275providers}var ag=B({\u0275cmp:B}),lg=B({\u0275dir:B}),ug=B({\u0275pipe:B}),Nr=B({\u0275fac:B}),vn=B({__NG_ELEMENT_ID__:B}),Da=B({__NG_ENV_ID__:B});function ai(e){return typeof e=="string"?e:e==null?"":String(e)}function cg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ai(e)}var $u=B({ngErrorCode:B}),dg=B({ngErrorMessage:B}),hg=B({ngTokenPath:B});function qu(e,t){return Zu("",-200,t)}function go(e,t){throw new w(-201,!1)}function Zu(e,t,n){let r=new w(t,e);return r[$u]=t,r[dg]=e,n&&(r[hg]=n),r}function fg(e){return e[$u]}var hs;function Gu(){return hs}function ge(e){let t=hs;return hs=e,t}function Wu(e,t,n){let r=po(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;go(e,"Injector")}var pg={},vt=pg,gg="__NG_DI_FLAG__",mg=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=On(t)||0;try{return this.injector.get(e,n&8?null:vt,n)}catch(r){if(no(r))return r;throw r}}};function vg(e,t=0){let n=Kl();if(n===void 0)throw new w(-203,!1);if(n===null)return Wu(e,void 0,t);{let r=yg(t),i=n.retrieve(e,r);if(no(i)){if(r.optional)return null;throw i}return i}}function C(e,t=0){return(Gu()||vg)(ie(e),t)}function v(e,t){return C(e,On(t))}function On(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yg(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function fs(e){let t=[];for(let n=0;n<e.length;n++){let r=ie(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 a=r[o],l=bg(a);typeof l=="number"?l===-1?i=a.token:s|=l:i=a}t.push(C(i,s))}else t.push(C(r))}return t}function bg(e){return e[gg]}function Bt(e,t){return e.hasOwnProperty(Nr)?e[Nr]:null}function Cg(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 wg(e){return e.flat(Number.POSITIVE_INFINITY)}function mo(e,t){e.forEach(n=>Array.isArray(n)?mo(n,t):t(n))}function Qu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Rr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _g(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 xg(e,t,n){let r=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,_g(e,r,t,n)),r}function Ri(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return kg(e,t,1)}function kg(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 yt={},me=[],Ut=new S(""),Yu=new S("",-1),Ku=new S(""),Ju=class{get(e,t=vt){if(t===vt){let n=Zu("",-201);throw n.name="\u0275NotFound",n}return t}};function En(e){return e[ag]||null}function Xu(e){return e[lg]||null}function Sg(e){return e[ug]||null}function li(e){return{\u0275providers:e}}function Og(e){return li([{provide:Ut,multi:!0,useValue:e}])}function Eg(...e){return{\u0275providers:ec(!0,e),\u0275fromNgModule:!0}}function ec(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return mo(t,o=>{let a=o;ps(a,s,[],r)&&(i||=[],i.push(a))}),i!==void 0&&tc(i,s),n}function tc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];vo(i,s=>{t(s,r)})}}function ps(e,t,n,r){if(e=ie(e),!e)return!1;let i=null,s=Pa(e),o=!s&&En(e);if(!s&&!o){let l=e.ngModule;if(s=Pa(l),s)i=l;else return!1}else{if(o&&!o.standalone)return!1;i=e}let a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of l)ps(u,t,n,r)}}else if(s){if(s.imports!=null&&!a){r.add(i);let u;mo(s.imports,c=>{ps(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&tc(u,t)}if(!a){let u=Bt(i)||(()=>new i);t({provide:i,useFactory:u,deps:me},i),t({provide:Ku,useValue:i,multi:!0},i),t({provide:Ut,useValue:()=>C(i),multi:!0},i)}let l=s.providers;if(l!=null&&!a){let u=e;vo(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function vo(e,t){for(let n of e)Uu(n)&&(n=n.\u0275providers),Array.isArray(n)?vo(n,t):t(n)}var Mg=B({provide:String,useValue:B});function nc(e){return e!==null&&typeof e=="object"&&Mg in e}function Tg(e){return!!(e&&e.useExisting)}function Ig(e){return!!(e&&e.useFactory)}function $t(e){return typeof e=="function"}function Pg(e){return!!e.useClass}var yo=new S(""),hr={},Va={},Li;function bo(){return Li===void 0&&(Li=new Ju),Li}var Ze=class{},Co=class extends Ze{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,ms(e,s=>this.processProvider(s)),this.records.set(Yu,Vt(void 0,this)),r.has("environment")&&this.records.set(Ze,Vt(void 0,this));let i=this.records.get(yo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ku,me,{self:!0}))}retrieve(e,t){let n=On(t)||0;try{return this.get(e,vt,n)}catch(r){if(no(r))return r;throw r}}destroy(){pn(this),this._destroyed=!0;let e=I(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(),I(e)}}onDestroy(e){return pn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){pn(this);let t=nt(this),n=ge(void 0),r;try{return e()}finally{nt(t),ge(n)}}get(e,t=vt,n){if(pn(this),e.hasOwnProperty(Da))return e[Da](this);let r=On(n),i,s=nt(this),o=ge(void 0);try{if(!(r&4)){let l=this.records.get(e);if(l===void 0){let u=Rg(e)&&po(e);u&&this.injectableDefInScope(u)?l=Vt(gs(e),hr):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,r)}let a=r&2?bo():this.parent;return t=r&8&&t===vt?null:t,a.get(e,t)}catch(a){let l=fg(a);throw l===-200||l===-201?new w(l,null):a}finally{ge(o),nt(s)}}resolveInjectorInitializers(){let e=I(null),t=nt(this),n=ge(void 0),r;try{let i=this.get(Ut,me,{self:!0});for(let s of i)s()}finally{nt(t),ge(n),I(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(zt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ie(e);let t=$t(e)?e:ie(e&&e.provide),n=Dg(e);if(!$t(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Vt(void 0,hr,!0),r.factory=()=>fs(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=I(null);try{if(t.value===Va)throw qu(zt(e));return t.value===hr&&(t.value=Va,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&Ng(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{I(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ie(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 gs(e){let t=po(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof S)throw new w(204,!1);if(e instanceof Function)return Ag(e);throw new w(204,!1)}function Ag(e){if(e.length>0)throw new w(204,!1);let t=og(e);return t!==null?()=>t.factory(e):()=>new e}function Dg(e){if(nc(e))return Vt(void 0,e.useValue);{let t=rc(e);return Vt(t,hr)}}function rc(e,t,n){let r;if($t(e)){let i=ie(e);return Bt(i)||gs(i)}else if(nc(e))r=()=>ie(e.useValue);else if(Ig(e))r=()=>e.useFactory(...fs(e.deps||[]));else if(Tg(e))r=(i,s)=>C(ie(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=ie(e&&(e.useClass||e.provide));if(Vg(e))r=()=>new i(...fs(e.deps));else return Bt(i)||gs(i)}return r}function pn(e){if(e.destroyed)throw new w(205,!1)}function Vt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vg(e){return!!e.deps}function Ng(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Rg(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ms(e,t){for(let n of e)Array.isArray(n)?ms(n,t):n&&Uu(n)?ms(n.\u0275providers,t):t(n)}function wo(e,t){let n;e instanceof Co?(pn(e),n=e):n=new mg(e);let r,i=nt(n),s=ge(void 0);try{return t()}finally{nt(i),ge(s)}}function Lg(){return Gu()!==void 0||Kl()!=null}var Ke=0,_=1,k=2,ne=3,Ee=4,Ie=5,Lr=6,Fr=7,le=8,bt=9,Ge=10,G=11,Mn=12,Na=13,Jt=14,Re=15,Ct=16,Nt=17,We=18,ui=19,ic=20,at=21,Fi=22,jr=23,ve=24,ji=25,Hr=26,he=27,sc=1,wt=7,zr=8,qt=9,ce=10;function lt(e){return Array.isArray(e)&&typeof e[sc]=="object"}function Je(e){return Array.isArray(e)&&e[sc]===!0}function oc(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function Ln(e){return(e.flags&1)===1}function Qe(e){return!!e.template}function Br(e){return(e[k]&512)!==0}function en(e){return(e[k]&256)===256}var ac="svg",Fg="math";function Le(e){for(;Array.isArray(e);)e=e[Ke];return e}function lc(e,t){return Le(t[e])}function He(e,t){return Le(t[e.index])}function uc(e,t){return e.data[t]}function Fe(e,t){let n=t[e];return lt(n)?n:n[Ke]}function jg(e){return(e[k]&4)===4}function _o(e){return(e[k]&128)===128}function Hg(e){return Je(e[ne])}function Zt(e,t){return t==null?null:e[t]}function cc(e){e[Nt]=0}function xo(e){e[k]&1024||(e[k]|=1024,_o(e)&&ci(e))}function zg(e,t){for(;e>0;)t=t[Jt],e--;return t}function Tn(e){return!!(e[k]&9216||e[ve]?.dirty)}function vs(e){e[Ge].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),Tn(e)&&ci(e)}function ci(e){e[Ge].changeDetectionScheduler?.notify(0);let t=_t(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!_o(t)));)t=_t(t)}function dc(e,t){if(en(e))throw new w(911,!1);e[at]===null&&(e[at]=[]),e[at].push(t)}function Bg(e,t){if(e[at]===null)return;let n=e[at].indexOf(t);n!==-1&&e[at].splice(n,1)}function _t(e){let t=e[ne];return Je(t)?t[ne]:t}function hc(e){return e[Fr]??=[]}function fc(e){return e.cleanup??=[]}function Ug(e,t,n,r){let i=hc(t);i.push(n),e.firstCreatePass&&fc(e).push(r,i.length-1)}var M={lFrame:xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ys=!1;function $g(){return M.lFrame.elementDepthCount}function qg(){M.lFrame.elementDepthCount++}function pc(){M.lFrame.elementDepthCount--}function ko(){return M.bindingsEnabled}function Zg(){return M.skipHydrationRootTNode!==null}function gc(e){return M.skipHydrationRootTNode===e}function mc(){M.skipHydrationRootTNode=null}function L(){return M.lFrame.lView}function ee(){return M.lFrame.tView}function V(e){return M.lFrame.contextLView=e,e[le]}function N(e){return M.lFrame.contextLView=null,e}function oe(){let e=vc();for(;e!==null&&e.type===64;)e=e.parent;return e}function vc(){return M.lFrame.currentTNode}function Gg(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fn(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function yc(){return M.lFrame.isParent}function Wg(){M.lFrame.isParent=!1}function bc(){return ys}function Ra(e){let t=ys;return ys=e,t}function Qg(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yg(e){return M.lFrame.bindingIndex=e}function jn(){return M.lFrame.bindingIndex++}function Kg(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Jg(){return M.lFrame.inI18n}function Xg(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,bs(t)}function em(){return M.lFrame.currentDirectiveIndex}function bs(e){M.lFrame.currentDirectiveIndex=e}function tm(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cc(){return M.lFrame.currentQueryIndex}function So(e){M.lFrame.currentQueryIndex=e}function nm(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Ie]:null}function wc(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=nm(s),!(i===null||(s=s[Jt],i.type&10))););if(i===null)return!1;t=i,e=s}let r=M.lFrame=_c();return r.currentTNode=t,r.lView=e,!0}function Oo(e){let t=_c(),n=e[_];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _c(){let e=M.lFrame,t=e===null?null:e.child;return t===null?xc(e):t}function xc(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 kc(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sc=kc;function Eo(){let e=kc();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 rm(e){return(M.lFrame.contextLView=zg(e,M.lFrame.contextLView))[le]}function tn(){return M.lFrame.selectedIndex}function xt(e){M.lFrame.selectedIndex=e}function di(){let e=M.lFrame;return uc(e.tView,e.selectedIndex)}function im(){M.lFrame.currentNamespace=ac}function sm(){return M.lFrame.currentNamespace}var Oc=!0;function Mo(){return Oc}function hi(e){Oc=e}function La(e,t=null,n=null,r){let i=om(e,t,n,r);return i.resolveInjectorInitializers(),i}function om(e,t=null,n=null,r,i=new Set){let s=[n||me,Eg(e)];return r=r||(typeof e=="object"?void 0:zt(e)),new Co(s,t||bo(),r||null,i)}var fi=class Ec{static THROW_IF_NOT_FOUND=vt;static NULL=new Ju;static create(t,n){if(Array.isArray(t))return La({name:""},n,t,"");{let r=t.name??"";return La({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:Ec,providedIn:"any",factory:()=>C(Yu)});static __NG_ELEMENT_ID__=-1},je=new S(""),To=(()=>{class e{static __NG_ELEMENT_ID__=lm;static __NG_ENV_ID__=n=>n}return e})(),am=class extends To{_lView;constructor(e){super(),this._lView=e}get destroyed(){return en(this._lView)}onDestroy(e){let t=this._lView;return dc(t,e),()=>Bg(t,e)}};function lm(){return new am(L())}var Hn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ct=new S("",{providedIn:"root",factory:()=>{let e=v(Ze),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Hn),t.handleError(n))}}}),um={provide:Ut,useValue:()=>{v(Hn)},multi:!0},cm=new S("",{providedIn:"root",factory:()=>{let e=v(je).defaultView;if(!e)return;let t=v(ct),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(),v(To).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function dm(){return li([Og(()=>{v(cm)})])}function hm(e){return typeof e=="function"&&e[Ve]!==void 0}function ae(e,t){let[n,r,i]=Gf(e,t?.equal),s=n,o=s[Ve];return s.set=r,s.update=i,s.asReadonly=fm.bind(s),s}function fm(){let e=this[Ve];if(e.readonlyFn===void 0){let t=()=>this();t[Ve]=e,e.readonlyFn=t}return e.readonlyFn}function Mc(e){return hm(e)&&typeof e.set=="function"}var zn=class{},Io=new S("",{providedIn:"root",factory:()=>!1}),Tc=new S(""),Ic=new S(""),nn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new pu(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new J(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=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),Pc=(()=>{class e{internalPendingTasks=v(nn);scheduler=v(zn);errorHandler=v(ct);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=O({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ur(...e){}var pm=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new gm})}return e})(),gm=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 pi(e){return{toString:e}.toString()}function mm(e){return typeof e=="function"}var vm=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ac(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var gi=(()=>{let e=()=>Dc;return e.ngInherit=!0,e})();function Dc(e){return e.type.prototype.ngOnChanges&&(e.setInput=bm),ym}function ym(){let e=Nc(this),t=e?.current;if(t){let n=e.previous;if(n===yt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bm(e,t,n,r,i){let s=this.declaredInputs[r],o=Nc(e)||Cm(e,{previous:yt,current:null}),a=o.current||(o.current={}),l=o.previous,u=l[s];a[s]=new vm(u&&u.currentValue,n,l===yt),Ac(e,t,i,n)}var Vc="__ngSimpleChanges__";function Nc(e){return e[Vc]||null}function Cm(e,t){return e[Vc]=t}var Fa=[],$=function(e,t=null,n){for(let r=0;r<Fa.length;r++){let i=Fa[r];i(e,t,n)}};function wm(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=Dc(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 Rc(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:a,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function fr(e,t,n){Lc(e,t,3,n)}function pr(e,t,n,r){(e[k]&3)===n&&Lc(e,t,n,r)}function Hi(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function Lc(e,t,n,r){let i=r!==void 0?e[Nt]&65535:0,s=r??-1,o=t.length-1,a=0;for(let l=i;l<o;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Nt]+=65536),(a<s||s==-1)&&(_m(e,n,t,l),e[Nt]=(e[Nt]&4294901760)+l+2),l++}function ja(e,t){$(4,e,t);let n=I(null);try{t.call(e)}finally{I(n),$(5,e,t)}}function _m(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],a=e[o];i?e[k]>>14<e[Nt]>>16&&(e[k]&3)===t&&(e[k]+=16384,ja(a,s)):ja(a,s)}var Ft=-1,Bn=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 xm(e){return(e.flags&8)!==0}function km(e){return(e.flags&16)!==0}function Sm(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++],a=n[r++];e.setAttribute(t,o,a,s)}else{let s=i,o=n[++r];Em(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function Om(e){return e===3||e===4||e===6}function Em(e){return e.charCodeAt(0)===64}function Gt(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?Ha(e,n,i,null,t[++r]):Ha(e,n,i,null,null))}}return e}function Ha(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let a=e[s++];if(typeof a=="number"){if(a===t){o=-1;break}else if(a>t){o=s-1;break}}}for(;s<e.length;){let a=e[s];if(typeof a=="number")break;if(a===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 Fc(e){return e!==Ft}function $r(e){return e&32767}function Mm(e){return e>>16}function qr(e,t){let n=Mm(e),r=t;for(;n>0;)r=r[Jt],n--;return r}var Cs=!0;function za(e){let t=Cs;return Cs=e,t}var Tm=256,jc=Tm-1,Hc=5,Im=0,De={};function Pm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(r=n[vn]),r==null&&(r=n[vn]=Im++);let i=r&jc,s=1<<i;t.data[e+(i>>Hc)]|=s}function Zr(e,t){let n=zc(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,zi(r.data,e),zi(t,null),zi(r.blueprint,null));let i=Po(e,t),s=e.injectorIndex;if(Fc(i)){let o=$r(i),a=qr(i,t),l=a[_].data;for(let u=0;u<8;u++)t[s+u]=a[o+u]|l[o+u]}return t[s+8]=i,s}function zi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Po(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=Gc(i),r===null)return Ft;if(n++,i=i[Jt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ft}function ws(e,t,n){Pm(e,t,n)}function Bc(e,t,n){if(n&8||e!==void 0)return e;go(t,"NodeInjector")}function Uc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[bt],s=ge(void 0);try{return i?i.get(t,r,n&8):Wu(t,r,n&8)}finally{ge(s)}}return Bc(r,t,n)}function $c(e,t,n,r=0,i){if(e!==null){if(t[k]&2048&&!(r&2)){let o=Nm(e,t,n,r,De);if(o!==De)return o}let s=qc(e,t,n,r,De);if(s!==De)return s}return Uc(t,n,r,i)}function qc(e,t,n,r,i){let s=Dm(n);if(typeof s=="function"){if(!wc(t,e,r))return r&1?Bc(i,n,r):Uc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))go(n);else return o}finally{Sc()}}else if(typeof s=="number"){let o=null,a=zc(e,t),l=Ft,u=r&1?t[Re][Ie]:null;for((a===-1||r&4)&&(l=a===-1?Po(e,t):t[a+8],l===Ft||!Ua(r,!1)?a=-1:(o=t[_],a=$r(l),t=qr(l,t)));a!==-1;){let c=t[_];if(Ba(s,a,c.data)){let d=Am(a,t,n,o,r,u);if(d!==De)return d}l=t[a+8],l!==Ft&&Ua(r,t[_].data[a+8]===u)&&Ba(s,a,t)?(o=c,a=$r(l),t=qr(l,t)):a=-1}}return i}function Am(e,t,n,r,i,s){let o=t[_],a=o.data[e+8],l=r==null?Xt(a)&&Cs:r!=o&&(a.type&3)!==0,u=i&1&&s===a,c=gr(a,o,n,l,u);return c!==null?In(t,o,c,a,i):De}function gr(e,t,n,r,i){let s=e.providerIndexes,o=t.data,a=s&1048575,l=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?a:a+c,f=i?a+c:u;for(let h=d;h<f;h++){let g=o[h];if(h<l&&n===g||h>=l&&g.type===n)return h}if(i){let h=o[l];if(h&&Qe(h)&&h.type===n)return l}return null}function In(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Bn){let a=s;if(a.resolving){let h=cg(o[n]);throw qu(h)}let l=za(a.canSeeViewProviders);a.resolving=!0;let u=o[n].type||o[n],c,d=a.injectImpl?ge(a.injectImpl):null,f=wc(e,r,0);try{s=e[n]=a.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&wm(n,o[n],t)}finally{d!==null&&ge(d),za(l),a.resolving=!1,Sc()}}return s}function Dm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vn)?e[vn]:void 0;return typeof t=="number"?t>=0?t&jc:Vm:t}function Ba(e,t,n){let r=1<<e;return!!(n[t+(e>>Hc)]&r)}function Ua(e,t){return!(e&2)&&!(e&1&&t)}var yn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return $c(this._tNode,this._lView,e,On(n),t)}};function Vm(){return new yn(oe(),L())}function Zc(e){return pi(()=>{let t=e.prototype.constructor,n=t[Nr]||_s(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Nr]||_s(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function _s(e){return zu(e)?()=>{let t=_s(ie(e));return t&&t()}:Bt(e)}function Nm(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[k]&2048&&!Br(o);){let a=qc(s,o,n,r|2,De);if(a!==De)return a;let l=s.parent;if(!l){let u=o[ic];if(u){let c=u.get(n,De,r);if(c!==De)return c}l=Gc(o),o=o[Jt]}s=l}return i}function Gc(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Ie]:null}function Rm(){return rn(oe(),L())}function rn(e,t){return new Mt(He(e,t))}var Mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Rm}return e})();function Lm(e){return e instanceof Mt?e.nativeElement:e}function Fm(){return this._results[Symbol.iterator]()}var jm=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 ut}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=wg(e);(this._changesDetected=!Cg(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]=Fm};function Wc(e){return(e.flags&128)===128}var Qc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Qc||{}),Yc=new Map,Hm=0;function zm(){return Hm++}function Bm(e){Yc.set(e[ui],e)}function xs(e){Yc.delete(e[ui])}var $a="__ngContext__";function Wt(e,t){lt(t)?(e[$a]=t[ui],Bm(t)):e[$a]=t}function Kc(e){return Xc(e[Mn])}function Jc(e){return Xc(e[Ee])}function Xc(e){for(;e!==null&&!Je(e);)e=e[Ee];return e}var ks;function Um(e){ks=e}function ed(){if(ks!==void 0)return ks;if(typeof document<"u")return document;throw new w(210,!1)}var td=new S("",{providedIn:"root",factory:()=>$m}),$m="ng",nd=new S(""),Ao=new S("",{providedIn:"platform",factory:()=>"unknown"}),rd=new S("",{providedIn:"root",factory:()=>ed().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),qm="h",Zm="b",id=!1,Gm=new S("",{providedIn:"root",factory:()=>id}),Wm=(e,t,n,r)=>{};function Qm(e,t,n,r){Wm(e,t,n,r)}function sd(e){return(e.flags&32)===32}var Ym=()=>null;function od(e,t,n=!1){return Ym(e,t,n)}function ad(e,t){let n=e.contentQueries;if(n!==null){let r=I(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let a=e.data[o];So(s),a.contentQueries(2,t[o],o)}}}finally{I(r)}}}function Ss(e,t,n){So(0);let r=I(null);try{t(e,n)}finally{I(r)}}function Do(e,t,n){if(oc(t)){let r=I(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let a=e.data[o];if(a.contentQueries){let l=n[o];a.contentQueries(1,l,o)}}}finally{I(r)}}}var kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(kt||{}),Wn;function Km(){if(Wn===void 0&&(Wn=null,st.trustedTypes))try{Wn=st.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wn}function mi(e){return Km()?.createHTML(e)||e}var Qn;function Jm(){if(Qn===void 0&&(Qn=null,st.trustedTypes))try{Qn=st.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function qa(e){return Jm()?.createHTML(e)||e}var Tt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hu})`}},Xm=class extends Tt{getTypeName(){return"HTML"}},ev=class extends Tt{getTypeName(){return"Style"}},tv=class extends Tt{getTypeName(){return"Script"}},nv=class extends Tt{getTypeName(){return"URL"}},rv=class extends Tt{getTypeName(){return"ResourceURL"}};function pt(e){return e instanceof Tt?e.changingThisBreaksApplicationSecurity:e}function Dt(e,t){let n=iv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Hu})`)}return n===t}function iv(e){return e instanceof Tt&&e.getTypeName()||null}function sv(e){return new Xm(e)}function ov(e){return new ev(e)}function av(e){return new tv(e)}function lv(e){return new nv(e)}function uv(e){return new rv(e)}function cv(e){let t=new hv(e);return fv()?new dv(t):t}var dv=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(mi(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},hv=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=mi(e),t}};function fv(){try{return!!new window.DOMParser().parseFromString(mi(""),"text/html")}catch{return!1}}var pv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ld(e){return e=String(e),e.match(pv)?e:"unsafe:"+e}function Xe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Un(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ud=Xe("area,br,col,hr,img,wbr"),cd=Xe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dd=Xe("rp,rt"),gv=Un(dd,cd),mv=Un(cd,Xe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),vv=Un(dd,Xe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Za=Un(ud,mv,vv,gv),hd=Xe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yv=Xe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bv=Xe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Cv=Un(hd,yv,bv),wv=Xe("script,style,template"),_v=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=Sv(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=kv(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ga(e).toLowerCase();if(!Za.hasOwnProperty(t))return this.sanitizedSomething=!0,!wv.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(!Cv.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let a=i.value;hd[o]&&(a=ld(a)),this.buf.push(" ",s,'="',Wa(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ga(e).toLowerCase();Za.hasOwnProperty(t)&&!ud.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Wa(e))}};function xv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw fd(t);return t}function Sv(e){let t=e.firstChild;if(t&&xv(e,t))throw fd(t);return t}function Ga(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function fd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ev=/([^\#-~ |!])/g;function Wa(e){return e.replace(/&/g,"&amp;").replace(Ov,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Ev,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yn;function pd(e,t){let n=null;try{Yn=Yn||cv(e);let r=t?String(t):"";n=Yn.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=Yn.getInertBodyElement(r)}while(r!==s);let o=new _v().sanitizeChildren(Qa(n)||n);return mi(o)}finally{if(n){let r=Qa(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Qa(e){return"content"in e&&Mv(e)?e.content:null}function Mv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Tv=/^>|^->|<!--|-->|--!>|<!-$/g,Iv=/(<|>)/g,Pv="\u200B$1\u200B";function Av(e){return e.replace(Tv,t=>t.replace(Iv,Pv))}function Dv(e,t){return e.createText(t)}function Vv(e,t,n){e.setValue(t,n)}function Nv(e,t){return e.createComment(Av(t))}function gd(e,t,n){return e.createElement(t,n)}function Gr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function md(e,t,n){e.appendChild(t,n)}function Ya(e,t,n,r,i){r!==null?Gr(e,t,n,r,i):md(e,t,n)}function Rv(e,t,n,r){e.removeChild(null,t,n,r)}function Lv(e,t,n){e.setAttribute(t,"style",n)}function Fv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function vd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&Sm(e,t,r),i!==null&&Fv(e,t,i),s!==null&&Lv(e,t,s)}var rt=(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})(rt||{});function yd(e){let t=jv();return t?qa(t.sanitize(rt.HTML,e)||""):Dt(e,"HTML")?qa(pt(e)):pd(ed(),ai(e))}function jv(){let e=L();return e&&e[Ge].sanitizer}function Hv(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 bd="ng-template";function zv(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Hv(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Vo(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 Vo(e){return e.type===4&&e.value!==bd}function Bv(e,t,n){let r=e.type===4&&!n?bd:e.value;return t===r}function Uv(e,t,n){let r=4,i=e.attrs,s=i!==null?Zv(i):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!xe(r)&&!xe(l))return!1;if(o&&xe(l))continue;o=!1,r=l|r&1;continue}if(!o)if(r&4){if(r=2|r&1,l!==""&&!Bv(e,l,n)||l===""&&t.length===1){if(xe(r))return!1;o=!0}}else if(r&8){if(i===null||!zv(e,i,l,n)){if(xe(r))return!1;o=!0}}else{let u=t[++a],c=$v(l,i,Vo(e),n);if(c===-1){if(xe(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(xe(r))return!1;o=!0}}}}return xe(r)||o}function xe(e){return(e&1)===0}function $v(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 a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return Gv(t,e)}function qv(e,t,n=!1){for(let r=0;r<t.length;r++)if(Uv(e,t[r],n))return!0;return!1}function Zv(e){for(let t=0;t<e.length;t++){let n=e[t];if(Om(n))return t}return e.length}function Gv(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 Ka(e,t){return e?":not("+t.trim()+")":t}function Wv(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 a=e[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!xe(o)&&(t+=Ka(s,i),i=""),r=o,s=s||!xe(r);n++}return i!==""&&(t+=Ka(s,i)),t}function Qv(e){return e.map(Wv).join(",")}function Yv(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(!xe(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var dt={};function No(e,t,n,r,i,s,o,a,l,u,c){let d=he+r,f=d+i,h=Kv(d,f),g=typeof u=="function"?u():u;return h[_]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,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:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function Kv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:dt);return n}function Jv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=No(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ro(e,t,n,r,i,s,o,a,l,u,c){let d=t.blueprint.slice();return d[Ke]=i,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),cc(d),d[ne]=d[Jt]=e,d[le]=n,d[Ge]=o||e&&e[Ge],d[G]=a||e&&e[G],d[bt]=l||e&&e[bt]||null,d[Ie]=s,d[ui]=zm(),d[Lr]=c,d[ic]=u,d[Re]=t.type==2?e[Re]:d,d}function Xv(e,t,n){let r=He(t,e),i=Jv(n),s=e[Ge].rendererFactory,o=Lo(e,Ro(e,i,null,Cd(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function Cd(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function wd(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 Lo(e,t){return e[Mn]?e[Na][Ee]=t:e[Mn]=t,e[Na]=t,t}function x(e=1){_d(ee(),L(),tn()+e,!1)}function _d(e,t,n,r){if(!r)if((t[k]&3)===3){let i=e.preOrderCheckHooks;i!==null&&fr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&pr(t,i,0,n)}xt(n)}var vi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(vi||{});function Os(e,t,n,r){let i=I(null);try{let[s,o,a]=e.inputs[n],l=null;(o&vi.SignalBased)!==0&&(l=t[s][Ve]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,s):Ac(t,l,s,r)}finally{I(i)}}var mt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(mt||{}),ey;function Fo(e,t){return ey(e,t)}var Wr=new Set,xd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(xd||{}),jo=new S(""),Ja=new Set;function kd(e){Ja.has(e)||(Ja.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sd=!1,ty=class extends ut{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Lg()&&(this.destroyRef=v(To,{optional:!0})??void 0,this.pendingTasks=v(nn,{optional:!0})??void 0)}emit(e){let t=I(null);try{super.next(e)}finally{I(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),s=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}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 Ne&&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)}})}}},F=ty;function Od(e){let t,n;function r(){e=Ur;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 Xa(e){return queueMicrotask(()=>e()),()=>{e=Ur}}var Ho="isAngularZone",Qr=Ho+"_ID",ny=0,se=class Es{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new F(!1);onMicrotaskEmpty=new F(!1);onStable=new F(!1);onError=new F(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=Sd}=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,sy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ho)===!0}static assertInAngularZone(){if(!Es.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Es.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,ry,Ur,Ur);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)}},ry={};function zo(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 iy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Od(()=>{e.callbackScheduled=!1,Ms(e),e.isCheckStableRunning=!0,zo(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ms(e)}function sy(e){let t=()=>{iy(e)},n=ny++;e._inner=e._inner.fork({name:"angular",properties:{[Ho]:!0,[Qr]:n,[Qr+n]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(ay(l))return r.invokeTask(s,o,a,l);try{return el(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),tl(e)}},onInvoke:(r,i,s,o,a,l,u)=>{try{return el(e),r.invoke(s,o,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ly(l)&&t(),tl(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Ms(e),zo(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 el(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tl(e){e._nesting--,zo(e)}var oy=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new F;onMicrotaskEmpty=new F;onStable=new F;onError=new F;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 ay(e){return Ed(e,"__ignore_ng_zone__")}function ly(e){return Ed(e,"__scheduler_tick__")}function Ed(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var uy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),cy=new S("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Md(e,t,n){let r=e.get(cy);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 dy(e,t){for(let[n,r]of t)Md(e,r.animateFns)}function nl(e,t,n,r){let i=e?.[Hr]?.enter;t!==null&&i&&i.has(n.index)&&dy(r,i)}function Rt(e,t,n,r,i,s,o,a){if(i!=null){let l,u=!1;Je(i)?l=i:lt(i)&&(u=!0,i=i[Ke]);let c=Le(i);e===0&&r!==null?(nl(a,r,s,n),o==null?md(t,r,c):Gr(t,r,c,o||null,!0)):e===1&&r!==null?(nl(a,r,s,n),Gr(t,r,c,o||null,!0)):e===2?rl(a,s,n,d=>{Rv(t,c,u,d)}):e===3&&rl(a,s,n,()=>{t.destroyNode(c)}),l!=null&&ky(t,e,n,l,s,r,o)}}function hy(e,t){Td(e,t),t[Ke]=null,t[Ie]=null}function fy(e,t,n,r,i,s){r[Ke]=i,r[Ie]=t,yi(e,r,n,1,i,s)}function Td(e,t){t[Ge].changeDetectionScheduler?.notify(9),yi(e,t,t[G],2,null,null)}function py(e){let t=e[Mn];if(!t)return Bi(e[_],e);for(;t;){let n=null;if(lt(t))n=t[Mn];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)lt(t)&&Bi(t[_],t),t=t[ne];t===null&&(t=e),lt(t)&&Bi(t[_],t),n=t&&t[Ee]}t=n}}function Bo(e,t){let n=e[qt],r=n.indexOf(t);n.splice(r,1)}function Id(e,t){if(en(t))return;let n=t[G];n.destroyNode&&yi(e,t,n,3,null,null),py(t)}function Bi(e,t){if(en(t))return;let n=I(null);try{t[k]&=-129,t[k]|=256,t[ve]&&iu(t[ve]),vy(e,t),my(e,t),t[_].type===1&&t[G].destroy();let r=t[Ct];if(r!==null&&Je(t[ne])){r!==t[ne]&&Bo(r,t);let i=t[We];i!==null&&i.detachView(e)}xs(t)}finally{I(n)}}function rl(e,t,n,r){let i=e?.[Hr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&Wr.add(e),Md(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let a=0;a<s.animateFns.length;a++){let l=s.animateFns[a],{promise:u}=l();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),gy(e,r)}else e&&Wr.delete(e),r(!1)},i)}function gy(e,t){let n=e[Hr]?.running;if(n){n.then(()=>{e[Hr].running=void 0,Wr.delete(e),t(!0)});return}t(!1)}function my(e,t){let n=e.cleanup,r=t[Fr];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let a=n[o+3];a>=0?r[a]():r[-a].unsubscribe(),o+=2}else{let a=r[n[o+1]];n[o].call(a)}r!==null&&(t[Fr]=null);let i=t[at];if(i!==null){t[at]=null;for(let o=0;o<i.length;o++){let a=i[o];a()}}let s=t[jr];if(s!==null){t[jr]=null;for(let o of s)o.destroy()}}function vy(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 Bn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=i[s[o]],l=s[o+1];$(4,a,l);try{l.call(a)}finally{$(5,a,l)}}else{$(4,i,s);try{s.call(i)}finally{$(5,i,s)}}}}}function yy(e,t,n){return by(e,t.parent,n)}function by(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ke];if(Xt(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===kt.None||i===kt.Emulated)return null}return He(r,n)}function Cy(e,t,n){return _y(e,t,n)}function wy(e,t,n){return e.type&40?He(e,n):null}var _y=wy,il;function Uo(e,t,n,r){let i=yy(e,r,t),s=t[G],o=r.parent||t[Ie],a=Cy(o,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Ya(s,i,n[l],a,!1);else Ya(s,i,n,a,!1);il!==void 0&&il(s,r,t,n,i)}function gn(e,t){if(t!==null){let n=t.type;if(n&3)return He(t,e);if(n&4)return Ts(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gn(e,r);{let i=e[t.index];return Je(i)?Ts(-1,i):Le(i)}}else{if(n&128)return gn(e,t.next);if(n&32)return Fo(t,e)()||Le(e[t.index]);{let r=Pd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=_t(e[Re]);return gn(i,r)}else return gn(e,t.next)}}}return null}function Pd(e,t){if(t!==null){let n=e[Re][Ie],r=t.projection;return n.projection[r]}return null}function Ts(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],i=r[_].firstChild;if(i!==null)return gn(r,i)}return t[wt]}function $o(e,t,n,r,i,s,o){for(;n!=null;){let a=r[bt];if(n.type===128){n=n.next;continue}let l=r[n.index],u=n.type;if(o&&t===0&&(l&&Wt(Le(l),r),n.flags|=2),!sd(n))if(u&8)$o(e,t,n.child,r,i,s,!1),Rt(t,e,a,i,l,n,s,r);else if(u&32){let c=Fo(n,r),d;for(;d=c();)Rt(t,e,a,i,d,n,s,r);Rt(t,e,a,i,l,n,s,r)}else u&16?xy(e,t,r,n,i,s):Rt(t,e,a,i,l,n,s,r);n=o?n.projectionNext:n.next}}function yi(e,t,n,r,i,s){$o(n,r,e.firstChild,t,i,s,!1)}function xy(e,t,n,r,i,s){let o=n[Re],a=o[Ie].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];Rt(t,e,n[bt],i,u,r,s,n)}else{let l=a,u=o[ne];Wc(r)&&(l.flags|=128),$o(e,t,l,u,i,s,!0)}}function ky(e,t,n,r,i,s,o){let a=r[wt],l=Le(r);a!==l&&Rt(t,e,n,s,a,i,o);for(let u=ce;u<r.length;u++){let c=r[u];yi(c[_],c,e,t,s,a)}}function Sy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:mt.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=mt.Important),e.setStyle(n,r,i,s))}}function Ad(e,t,n,r,i){let s=tn(),o=r&2;try{xt(-1),o&&t.length>he&&_d(e,t,he,!1),$(o?2:0,i,n),n(r,i)}finally{xt(s),$(o?3:1,i,n)}}function bi(e,t,n){Py(e,t,n),(n.flags&64)===64&&Ay(e,t,n)}function Ci(e,t,n=He){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],a=o===-1?n(t,e):e[o];e[i++]=a}}}function Oy(e,t,n,r){let i=r.get(Gm,id)||n===kt.ShadowDom,s=e.selectRootElement(t,i);return Ey(s),s}function Ey(e){My(e)}var My=()=>null;function Ty(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dd(e,t,n,r,i,s){let o=t[_];if(Wo(e,o,t,n,r)){Xt(e)&&Iy(t,e.index);return}e.type&3&&(n=Ty(n)),Vd(e,t,n,r,i,s)}function Vd(e,t,n,r,i,s){if(e.type&3){let o=He(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function Iy(e,t){let n=Fe(t,e);n[k]&16||(n[k]|=64)}function Py(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Xt(n)&&Xv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Zr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let a=e.data[o],l=In(t,e,o,n);if(Wt(l,t),s!==null&&Ry(t,o-r,l,a,n,s),Qe(a)){let u=Fe(n.index,t);u[le]=In(t,e,o,n)}}}function Ay(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=em();try{xt(s);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];bs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Dy(l,u)}}finally{xt(-1),bs(o)}}function Dy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qo(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];qv(t,s.selectors,!1)&&(r??=[],Qe(s)?r.unshift(s):r.push(s))}return r}function Vy(e,t,n,r,i,s){let o=He(e,t);Ny(t[G],o,s,e.value,n,r,i)}function Ny(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let a=o==null?ai(s):o(s,r||"",i);e.setAttribute(t,i,a,n)}}function Ry(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let a=0;a<o.length;a+=2){let l=o[a],u=o[a+1];Os(r,n,l,u)}}function Zo(e,t,n,r,i){let s=he+n,o=t[_],a=i(o,t,e,r,n);t[s]=a,Fn(e,!0);let l=e.type===2;return l?(vd(t[G],a,e),($g()===0||Ln(e))&&Wt(a,t),qg()):Wt(a,t),Mo()&&(!l||!sd(e))&&Uo(o,t,a,e),e}function Go(e){let t=e;return yc()?Wg():(t=t.parent,Fn(t,!1)),t}function Ly(e,t){let n=e[bt];if(!n)return;let r;try{r=n.get(ct,null)}catch{r=null}r?.(t)}function Wo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],a=!1;if(o)for(let l=0;l<o.length;l+=2){let u=o[l],c=o[l+1],d=t.data[u];Os(d,n[u],c,i),a=!0}if(s)for(let l of s){let u=n[l],c=t.data[l];Os(c,u,r,i),a=!0}return a}function Fy(e,t){let n=Fe(t,e),r=n[_];jy(r,n);let i=n[Ke];i!==null&&n[Lr]===null&&(n[Lr]=od(i,n[bt])),$(18),Qo(r,n,n[le]),$(19,n[le])}function jy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Qo(e,t,n){Oo(t);try{let r=e.viewQuery;r!==null&&Ss(1,r,n);let i=e.template;i!==null&&Ad(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[We]?.finishViewCreation(e),e.staticContentQueries&&ad(e,t),e.staticViewQueries&&Ss(2,e.viewQuery,n);let s=e.components;s!==null&&Hy(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Eo()}}function Hy(e,t){for(let n=0;n<t.length;n++)Fy(e,t[n])}function zy(e,t,n,r){let i=I(null);try{let s=t.tView,o=e[k]&4096?4096:16,a=Ro(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Ct]=l;let u=e[We];return u!==null&&(a[We]=u.createEmbeddedView(s)),Qo(s,a,n),a}finally{I(i)}}function sl(e,t){return!t||t.firstChild===null||Wc(e)}function Yr(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(Le(s)),Je(s)&&By(s,r);let o=n.type;if(o&8)Yr(e,t,n.child,r);else if(o&32){let a=Fo(n,t),l;for(;l=a();)r.push(l)}else if(o&16){let a=Pd(t,n);if(Array.isArray(a))r.push(...a);else{let l=_t(t[Re]);Yr(l[_],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function By(e,t){for(let n=ce;n<e.length;n++){let r=e[n],i=r[_].firstChild;i!==null&&Yr(r[_],r,i,t)}e[wt]!==e[Ke]&&t.push(e[wt])}function Nd(e){if(e[ji]!==null){for(let t of e[ji])t.impl.addSequence(t);e[ji].length=0}}var Rd=[];function Uy(e){return e[ve]??$y(e)}function $y(e){let t=Rd.pop()??Object.create(Zy);return t.lView=e,t}function qy(e){e.lView[ve]!==e&&(e.lView=null,Rd.push(e))}var Zy=D(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ci(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Gy(e){let t=e[ve]??Object.create(Wy);return t.lView=e,t}var Wy=D(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=_t(e.lView);for(;t&&!Ld(t[_]);)t=_t(t);t&&xo(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Ld(e){return e.type!==2}function Fd(e){if(e[jr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[jr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[k]&8192)}}var Qy=100;function jd(e,t=0){let n=e[Ge].rendererFactory,r=!1;r||n.begin?.();try{Yy(e,t)}finally{r||n.end?.()}}function Yy(e,t){let n=bc();try{Ra(!0),Is(e,t);let r=0;for(;Tn(e);){if(r===Qy)throw new w(103,!1);r++,Is(e,1)}}finally{Ra(n)}}function Ky(e,t,n,r){if(en(t))return;let i=t[k],s=!1,o=!1;Oo(t);let a=!0,l=null,u=null;s||(Ld(e)?(u=Uy(t),l=us(u)):Rf()===null?(a=!1,u=Gy(t),l=us(u)):t[ve]&&(iu(t[ve]),t[ve]=null));try{cc(t),Yg(e.bindingStartIndex),n!==null&&Ad(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&fr(t,h,null)}else{let h=e.preOrderHooks;h!==null&&pr(t,h,0,null),Hi(t,0)}if(o||Jy(t),Fd(t),Hd(t,0),e.contentQueries!==null&&ad(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&fr(t,h)}else{let h=e.contentHooks;h!==null&&pr(t,h,1),Hi(t,1)}e0(e,t);let d=e.components;d!==null&&Bd(t,d,0);let f=e.viewQuery;if(f!==null&&Ss(2,f,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&fr(t,h)}else{let h=e.viewHooks;h!==null&&pr(t,h,2),Hi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fi]){for(let h of t[Fi])h();t[Fi]=null}s||(Nd(t),t[k]&=-73)}catch(c){throw s||ci(t),c}finally{u!==null&&(nu(u,l),a&&qy(u)),Eo()}}function Hd(e,t){for(let n=Kc(e);n!==null;n=Jc(n))for(let r=ce;r<n.length;r++){let i=n[r];zd(i,t)}}function Jy(e){for(let t=Kc(e);t!==null;t=Jc(t)){if(!(t[k]&2))continue;let n=t[qt];for(let r=0;r<n.length;r++){let i=n[r];xo(i)}}}function Xy(e,t,n){$(18);let r=Fe(t,e);zd(r,n),$(19,r[le])}function zd(e,t){_o(e)&&Is(e,t)}function Is(e,t){let n=e[_],r=e[k],i=e[ve],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&ru(i)),s||=!1,i&&(i.dirty=!1),e[k]&=-9217,s)Ky(n,e,n.template,e[le]);else if(r&8192){let o=I(null);try{Fd(e),Hd(e,1);let a=n.components;a!==null&&Bd(e,a,1),Nd(e)}finally{I(o)}}}function Bd(e,t,n){for(let r=0;r<t.length;r++)Xy(e,t[r],n)}function e0(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)xt(~i);else{let s=i,o=n[++r],a=n[++r];Xg(o,s);let l=t[s];$(24,l),a(2,l),$(25,l)}}}finally{xt(-1)}}function Yo(e,t){let n=bc()?64:1088;for(e[Ge].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=_t(e);if(Br(e)&&!r)return e;e=r}return null}function Ud(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function t0(e,t,n,r=!0){let i=t[_];if(n0(i,t,e,n),r){let o=Ts(n,e),a=t[G],l=a.parentNode(e[wt]);l!==null&&fy(i,e[Ie],a,t,l,o)}let s=t[Lr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Ps(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let i=r[Ct];i!==null&&i!==e&&Bo(i,r),t>0&&(e[n-1][Ee]=r[Ee]);let s=Rr(e,ce+t);hy(r[_],r);let o=s[We];o!==null&&o.detachView(s[_]),r[ne]=null,r[Ee]=null,r[k]&=-129}return r}function n0(e,t,n,r){let i=ce+r,s=n.length;r>0&&(n[i-1][Ee]=t),r<s-ce?(t[Ee]=n[i],Qu(n,ce+r,t)):(n.push(t),t[Ee]=null),t[ne]=n;let o=t[Ct];o!==null&&n!==o&&$d(o,t);let a=t[We];a!==null&&a.insertView(e),vs(t),t[k]|=128}function $d(e,t){let n=e[qt],r=t[ne];if(lt(r))e[k]|=2;else{let i=r[ne][Re];t[Re]!==i&&(e[k]|=2)}n===null?e[qt]=[t]:n.push(t)}var Pn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[_];return Yr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[le]}set context(e){this._lView[le]=e}get destroyed(){return en(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(Je(e)){let t=e[zr],n=t?t.indexOf(this):-1;n>-1&&(Ps(e,n),Rr(t,n))}this._attachedToViewContainer=!1}Id(this._lView[_],this._lView)}onDestroy(e){dc(this._lView,e)}markForCheck(){Yo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){vs(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,jd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Br(this._lView),t=this._lView[Ct];t!==null&&!e&&Bo(t,this._lView),Td(this._lView[_],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let t=Br(this._lView),n=this._lView[Ct];n!==null&&!t&&$d(n,this._lView),vs(this._lView)}};function r0(e){return Tn(e._lView)||!!(e._lView[k]&64)}function i0(e){xo(e._lView)}var St=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=s0;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=zy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Pn(s)}}return e})();function s0(){return Ko(oe(),L())}function Ko(e,t){return e.type&4?new St(t,e,rn(e,t)):null}function wi(e,t,n,r,i){let s=e.data[t];if(s===null)s=o0(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=Gg();s.injectorIndex=o===null?-1:o.injectorIndex}return Fn(s,!0),s}function o0(e,t,n,r,i){let s=vc(),o=yc(),a=o?s:s&&s.parent,l=e.data[t]=l0(e,a,n,t,r,i);return a0(e,l,s,o),l}function a0(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 l0(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,a=0;return Zg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,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 rx=new RegExp(`^(\\d+)*(${Zm}|${qm})*(.*)`),u0=()=>null;function ol(e,t){return u0(e,t)}var c0=class{},qd=class{},d0=class{resolveComponentFactory(e){throw new w(917,!1)}},$n=class{static NULL=new d0},Jo=class{},Xo=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>h0()}return e})();function h0(){let e=L(),t=oe(),n=Fe(t.index,e);return(lt(n)?n:e)[G]}var f0=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})(),Ui={},p0=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Ui,n);return r!==Ui||t===Ui?r:this.parentInjector.get(e,t,n)}};function Kr(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 a=t[o];if(typeof a=="number")s=a;else if(s==1)i=Ia(i,a);else if(s==2){let l=a,u=t[++o];r=Ia(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function j(e,t=0){let n=L();if(n===null)return C(e,t);let r=oe();return $c(r,n,ie(e),t)}function Zd(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let a=o,l=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[a,l,u]=c.resolveHostDirectives(o);break}v0(e,t,n,a,s,l,u)}s!==null&&r!==null&&g0(n,r,s)}function g0(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 m0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function v0(e,t,n,r,i,s,o){let a=r.length,l=!1;for(let f=0;f<a;f++){let h=r[f];!l&&Qe(h)&&(l=!0,m0(e,n,f)),ws(Zr(n,t),e,h.type)}x0(n,e.data.length,a);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=wd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=Gt(n.mergedAttrs,h.hostAttrs),b0(e,n,t,d,h),_0(d,h,i),o!==null&&o.has(h)){let[m,b]=o.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,b+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++}y0(e,n,s)}function y0(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))al(0,t,i,r),al(1,t,i,r),ul(t,r,!1);else{let s=n.get(i);ll(0,t,s,r),ll(1,t,s,r),ul(t,r,!0)}}}function al(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),Gd(t,s)}}function ll(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],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[o]??=[],a[o].push(r,s),Gd(t,o)}}function Gd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ul(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||Vo(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let c of u)if(c===t){o??=[],o.push(l,r[a+1]);break}}else if(n&&s.hasOwnProperty(l)){let u=s[l];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(o)}function b0(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Bt(i.type,!0)),o=new Bn(s,Qe(i),j,null);e.blueprint[r]=o,n[r]=o,C0(e,t,r,wd(e,n,i.hostVars,dt),i)}function C0(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;w0(o)!=a&&o.push(a),o.push(n,r,s)}}function w0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function _0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qe(t)&&(n[""]=e)}}function x0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ea(e,t,n,r,i,s,o,a){let l=t[_],u=l.consts,c=Zt(u,o),d=wi(l,e,n,r,c);return s&&Zd(l,t,d,Zt(u,a),i),d.mergedAttrs=Gt(d.mergedAttrs,d.attrs),d.attrs!==null&&Kr(d,d.attrs,!1),d.mergedAttrs!==null&&Kr(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function ta(e,t){Rc(e,t),oc(t)&&e.queries.elementEnd(t)}function k0(e,t,n,r,i,s){let o=t.consts,a=Zt(o,i),l=wi(t,e,n,r,a);if(l.mergedAttrs=Gt(l.mergedAttrs,l.attrs),s!=null){let u=Zt(o,s);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&Kr(l,l.attrs,!1),l.mergedAttrs!==null&&Kr(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Wd(e){return O0(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function S0(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 O0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function E0(e,t,n){return e[t]=n}function It(e,t,n){if(n===dt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function mr(e,t,n){return function r(i){let s=Xt(e)?Fe(e.index,t):t;Yo(s,5);let o=t[le],a=cl(t,o,n,i),l=r.__ngNextListenerFn__;for(;l;)a=cl(t,o,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function cl(e,t,n,r){let i=I(null);try{return $(6,t,n),n(r)!==!1}catch(s){return Ly(e,s),!1}finally{$(7,t,n),I(i)}}function Qd(e,t,n,r,i,s,o,a){let l=Ln(e),u=!1,c=null;if(!r&&l&&(c=T0(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=He(e,n),f=r?r(d):d;Qm(n,f,s,a);let h=i.listen(f,s,a);if(!M0(s)){let g=r?m=>r(Le(m[e.index])):e.index;Yd(g,t,n,s,a,h,!1)}}return u}function M0(e){return e.startsWith("animation")||e.startsWith("transition")}function T0(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 a=t[Fr],l=i[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function Yd(e,t,n,r,i,s,o){let a=t.firstCreatePass?fc(t):null,l=hc(n),u=l.length;l.push(i,s),a&&a.push(r,e,u,(u+1)*(o?-1:1))}function dl(e,t,n,r,i,s){let o=t[n],a=t[_],l=a.data[n].outputs[r],u=o[l].subscribe(s);Yd(e.index,a,t,i,s,u,!0)}var As=Symbol("BINDING"),I0=class extends $n{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=En(e);return new Kd(t,this.ngModule)}};function P0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&vi.SignalBased)!==0};return i&&(s.transform=i),s})}function A0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function D0(e,t,n){let r=t instanceof Ze?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new p0(n,r):n}function V0(e){let t=e.get(Jo,null);if(t===null)throw new w(407,!1);let n=e.get(f0,null),r=e.get(zn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function N0(e,t){let n=R0(e);return gd(t,n,n==="svg"?ac:n==="math"?Fg:null)}function R0(e){return(e.selectors[0][0]||"div").toLowerCase()}var Kd=class extends qd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=P0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=A0(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Qv(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){$(22);let o=I(null);try{let a=this.componentDef,l=L0(n,a,s,i),u=D0(a,r||this.ngModule,e),c=V0(u),d=c.rendererFactory.createRenderer(null,a),f=n?Oy(d,n,a.encapsulation,u):N0(a,d),h=s?.some(hl)||i?.some(b=>typeof b!="function"&&b.bindings.some(hl)),g=Ro(null,l,null,512|Cd(a),null,null,c,d,u,null,od(f,u,!0));g[he]=f,Oo(g);let m=null;try{let b=ea(he,g,2,"#host",()=>l.directiveRegistry,!0,0);vd(d,f,b),Wt(f,g),bi(l,g,b),Do(l,b,g),ta(l,b),t!==void 0&&H0(b,this.ngContentSelectors,t),m=Fe(b.index,g),g[le]=m[le],Qo(l,g,null)}catch(b){throw m!==null&&xs(m),xs(g),b}finally{$(23),Eo()}return new j0(this.componentType,g,!!h)}finally{I(o)}}};function L0(e,t,n,r){let i=e?["ng-version","20.3.15"]:Yv(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[As].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){a+=d[As].requiredVars;let f=u+1;d.create&&(d.targetIdx=f,(s??=[]).push(d)),d.update&&(d.targetIdx=f,(o??=[]).push(d))}}let l=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=Xu(c);l.push(d)}return No(0,null,F0(s,o),1,a,l,null,null,null,[i],null)}function F0(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 hl(e){let t=e[As].kind;return t==="input"||t==="twoWay"}var j0=class extends c0{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=uc(t[_],he),this.location=rn(this._tNode,t),this.instance=Fe(this._tNode.index,t)[le],this.hostView=this.changeDetectorRef=new Pn(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=Wo(n,r[_],r,e,t);this.previousInputValues.set(e,t);let s=Fe(n.index,r);Yo(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function H0(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 sn=(()=>{class e{static __NG_ELEMENT_ID__=z0}return e})();function z0(){let e=oe();return Xd(e,L())}var B0=sn,Jd=class extends B0{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return rn(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Po(this._hostTNode,this._hostLView);if(Fc(e)){let t=qr(e,this._hostLView),n=$r(e),r=t[_].data[n+8];return new yn(r,t)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=fl(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=ol(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,sl(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let a=e&&!mm(e),l;if(a)l=t;else{let m=t||{};l=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef,s=m.directives,o=m.bindings}let u=a?e:new Kd(En(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let m=(a?c:this.parentInjector).get(Ze,null);m&&(i=m)}let d=En(u.componentType??{}),f=ol(this._lContainer,d?.id??null),h=f?.firstChild??null,g=u.create(c,r,h,i,s,o);return this.insertImpl(g.hostView,l,sl(this._hostTNode,f)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Hg(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let a=r[ne],l=new Jd(a,a[Ie],a[ne]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return t0(s,r,i,n),e.attachToViewContainerRef(),Qu($i(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=fl(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Ps(this._lContainer,t);n&&(Rr($i(this._lContainer),t),Id(n[_],n))}detach(e){let t=this._adjustIndex(e,-1),n=Ps(this._lContainer,t);return n&&Rr($i(this._lContainer),t)!=null?new Pn(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function fl(e){return e[zr]}function $i(e){return e[zr]||(e[zr]=[])}function Xd(e,t){let n,r=t[e.index];return Je(r)?n=r:(n=Ud(r,t,null,e),t[e.index]=n,Lo(t,n)),$0(n,t,e,r),new Jd(n,e,t)}function U0(e,t){let n=e[G],r=n.createComment(""),i=He(t,e),s=n.parentNode(i);return Gr(n,s,r,n.nextSibling(i),!1),r}var $0=G0,q0=()=>!1;function Z0(e,t,n){return q0(e,t,n)}function G0(e,t,n,r){if(e[wt])return;let i;n.type&8?i=Le(r):i=U0(t,n),e[wt]=i}var W0=class eh{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new eh(this.queryList)}setDirty(){this.queryList.setDirty()}},Q0=class th{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),a=this.queries[o.indexInDeclarationView];i.push(a.clone())}return new th(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++)na(t,n).matches!==null&&this.queries[n].setDirty()}},Y0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=o1(e):this.predicate=e}},K0=class nh{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 nh(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)}},J0=class rh{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 rh(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,X0(n,s)),this.matchTNodeWithReadOption(t,n,gr(n,t,s,!1,!1))}else r===St?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,gr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Mt||i===sn||i===St&&n.type&4)this.addMatch(n.index,-2);else{let s=gr(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 X0(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 e1(e,t){return e.type&11?rn(e,t):e.type&4?Ko(e,t):null}function t1(e,t,n,r){return n===-1?e1(t,e):n===-2?n1(e,t,r):In(e,e[_],n,t)}function n1(e,t,n){if(n===Mt)return rn(t,e);if(n===St)return Ko(t,e);if(n===sn)return Xd(t,e)}function ih(e,t,n,r){let i=t[We].queries[r];if(i.matches===null){let s=e.data,o=n.matches,a=[];for(let l=0;o!==null&&l<o.length;l+=2){let u=o[l];if(u<0)a.push(null);else{let c=s[u];a.push(t1(t,c,o[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Ds(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=ih(e,t,i,n);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)r.push(o[a/2]);else{let u=s[a+1],c=t[-l];for(let d=ce;d<c.length;d++){let f=c[d];f[Ct]===f[ne]&&Ds(f[_],f,u,r)}if(c[qt]!==null){let d=c[qt];for(let f=0;f<d.length;f++){let h=d[f];Ds(h[_],h,u,r)}}}}}return r}function r1(e,t){return e[We].queries[t].queryList}function i1(e,t,n){let r=new jm((n&4)===4);return Ug(e,t,r,r.destroy),(t[We]??=new Q0).queries.push(new W0(r))-1}function s1(e,t,n){let r=ee();return r.firstCreatePass&&(a1(r,new Y0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),i1(r,L(),t)}function o1(e){return e.split(",").map(t=>t.trim())}function a1(e,t,n){e.queries===null&&(e.queries=new K0),e.queries.track(new J0(t,n))}function na(e,t){return e.queries.getByIndex(t)}function l1(e,t){let n=e[_],r=na(n,t);return r.crossesNgTemplate?Ds(n,e,t,[]):ih(n,e,r,t)}var Vs=class{},sh=class extends Vs{injector;componentFactoryResolver=new I0(this);instance=null;constructor(e){super();let t=new Co([...e.providers,{provide:Vs,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],e.parent||bo(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function u1(e,t,n=null){return new sh({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var c1=(()=>{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=ec(!1,n.type),i=r.length>0?u1([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=O({token:e,providedIn:"environment",factory:()=>new e(C(Ze))})}return e})();function Pe(e){return pi(()=>{let t=oh(e),n=D(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(c1).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&kd("NgStandalone"),ah(n);let r=e.dependencies;return n.directiveDefs=pl(r,d1),n.pipeDefs=pl(r,Sg),n.id=g1(n),n})}function d1(e){return En(e)||Xu(e)}function _i(e){return pi(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function h1(e,t){if(e==null)return yt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,a,l;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s,l=i[3]||null):(s=i,o=i,a=vi.None,l=null),n[s]=[r,a,l],t[s]=o}return n}function f1(e){if(e==null)return yt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ce(e){return pi(()=>{let t=oh(e);return ah(t),t})}function p1(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 oh(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||yt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:h1(e.inputs,t),outputs:f1(e.outputs),debugInfo:null}}function ah(e){e.features?.forEach(t=>t(e))}function pl(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 g1(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 m1(e){return Object.getPrototypeOf(e.prototype).constructor}function on(e){let t=m1(e.type),n=!0,r=[e];for(;t;){let i;if(Qe(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=qi(e.inputs),o.declaredInputs=qi(e.declaredInputs),o.outputs=qi(e.outputs);let a=i.hostBindings;a&&w1(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&b1(e,l),u&&C1(e,u),v1(e,i),rg(e.outputs,i.outputs),Qe(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 a=s[o];a&&a.ngInherit&&a(e),a===on&&(n=!1)}}t=Object.getPrototypeOf(t)}y1(r)}function v1(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 y1(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=Gt(i.hostAttrs,n=Gt(n,i.hostAttrs))}}function qi(e){return e===yt?{}:e===me?[]:e}function b1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function C1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function w1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function _1(e,t,n,r,i,s,o,a){if(n.firstCreatePass){e.mergedAttrs=Gt(e.mergedAttrs,e.attrs);let c=e.tView=No(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))}a&&(e.flags|=a),Fn(e,!1);let l=k1(n,t,e,r);Mo()&&Uo(n,t,l,e),Wt(l,t);let u=Ud(l,t,l,e);t[r+he]=u,Lo(t,u),Z0(u,e,t)}function x1(e,t,n,r,i,s,o,a,l,u,c){let d=n+he,f;return t.firstCreatePass?(f=wi(t,d,4,o||null,a||null),ko()&&Zd(t,e,f,Zt(t.consts,u),qo),Rc(t,f)):f=t.data[d],_1(f,e,t,n,r,i,s,l),Ln(f)&&bi(t,e,f),u!=null&&Ci(e,f,c),f}function pe(e,t,n,r,i,s,o,a){let l=L(),u=ee(),c=Zt(u.consts,s);return x1(l,u,e,t,n,r,i,c,void 0,o,a),pe}var k1=S1;function S1(e,t,n,r){return hi(!0),t[G].createComment("")}var O1=new S("");function ra(e){return!!e&&typeof e.then=="function"}function E1(e){return!!e&&typeof e.subscribe=="function"}var lh=new S(""),uh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(lh,{optional:!0})??[];injector=v(fi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=wo(this.injector,i);if(ra(s))n.push(s);else if(E1(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),M1=new S("");function T1(){qf(()=>{let e="";throw new w(600,e)})}function I1(e){return e.isBoundToModule}var P1=10,An=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(ct);afterRenderManager=v(uy);zonelessEnabled=v(Io);rootEffectScheduler=v(pm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ut;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(nn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Oe(n=>!n))}constructor(){v(jo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(Ze);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=fi.NULL){return this._injector.get(se).run(()=>{$(10);let s=n instanceof qd;if(!this._injector.get(uh).done){let f="";throw new w(405,f)}let o;s?o=n:o=this._injector.get($n).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let a=I1(o)?void 0:this._injector.get(Vs),l=r||o.selector,u=o.create(i,[],l,a),c=u.location.nativeElement,d=u.injector.get(O1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),vr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),$(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){$(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(xd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new w(101,!1);let n=I(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),$(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Jo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<P1;)$(14),this.synchronizeOnce(),$(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&&!Tn(i))continue;let s=r&&!this.zonelessEnabled?0:1;jd(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})=>Tn(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;vr(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(M1,[]).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),()=>vr(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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ia(e,t,n,r){let i=L(),s=jn();if(It(i,s,t)){let o=ee(),a=di();Vy(a,i,e,t,n,r)}return ia}var ix=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function A(e,t,n){let r=L(),i=jn();if(It(r,i,t)){let s=ee(),o=di();Dd(o,r,e,t,r[G],n)}return A}function gl(e,t,n,r,i){Wo(t,e,n,i?"class":"style",r)}function p(e,t,n,r){let i=L(),s=i[_],o=e+he,a=s.firstCreatePass?ea(o,i,2,t,qo,ko(),n,r):s.data[o];if(Zo(a,i,e,t,dh),Ln(a)){let l=i[_];bi(l,i,a),Do(l,a,i)}return r!=null&&Ci(i,a),p}function y(){let e=ee(),t=oe(),n=Go(t);return e.firstCreatePass&&ta(e,n),gc(n)&&mc(),pc(),n.classesWithoutHost!=null&&xm(n)&&gl(e,n,L(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&km(n)&&gl(e,n,L(),n.stylesWithoutHost,!1),y}function q(e,t,n,r){return p(e,t,n,r),y(),q}function sa(e,t,n,r){let i=L(),s=i[_],o=e+he,a=s.firstCreatePass?k0(o,s,2,t,n,r):s.data[o];return Zo(a,i,e,t,dh),r!=null&&Ci(i,a),sa}function oa(){let e=oe(),t=Go(e);return gc(t)&&mc(),pc(),oa}function ch(e,t,n,r){return sa(e,t,n,r),oa(),ch}var dh=(e,t,n,r,i)=>(hi(!0),gd(t[G],r,sm()));function hh(e,t,n){let r=L(),i=r[_],s=e+he,o=i.firstCreatePass?ea(s,r,8,"ng-container",qo,ko(),t,n):i.data[s];if(Zo(o,r,e,"ng-container",A1),Ln(o)){let a=r[_];bi(a,r,o),Do(a,o,r)}return n!=null&&Ci(r,o),hh}function fh(){let e=ee(),t=oe(),n=Go(t);return e.firstCreatePass&&ta(e,n),fh}var A1=(e,t,n,r,i)=>(hi(!0),Nv(t[G],""));function et(){return L()}function ph(e,t,n){let r=L(),i=jn();if(It(r,i,t)){let s=ee(),o=di();Vd(o,r,e,t,r[G],n)}return ph}var Kn=void 0;function D1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var V1=["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"]],Kn,[["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"]],Kn,[["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}",Kn,"{1} 'at' {0}",Kn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",D1],Zi={};function Ae(e){let t=N1(e),n=ml(t);if(n)return n;let r=t.split("-")[0];if(n=ml(r),n)return n;if(r==="en")return V1;throw new w(701,!1)}function ml(e){return e in Zi||(Zi[e]=st.ng&&st.ng.common&&st.ng.common.locales&&st.ng.common.locales[e]),Zi[e]}var K=(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})(K||{});function N1(e){return e.toLowerCase().replace(/_/g,"-")}var Jr="en-US",R1=Jr;function L1(e){typeof e=="string"&&(R1=e.toLowerCase().replace(/_/g,"-"))}function E(e,t,n){let r=L(),i=ee(),s=oe();return mh(i,r,r[G],s,e,t,n),E}function gh(e,t,n){let r=L(),i=ee(),s=oe();return(s.type&3||n)&&Qd(s,i,r,n,r[G],e,t,mr(s,r,t)),gh}function mh(e,t,n,r,i,s,o){let a=!0,l=null;if((r.type&3||o)&&(l??=mr(r,t,s),Qd(r,e,t,o,n,i,s,l)&&(a=!1)),a){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];l??=mr(r,t,s),dl(r,t,f,h,i,l)}if(u&&u.length)for(let d of u)l??=mr(r,t,s),dl(r,t,d,i,i,l)}}function P(e=1){return rm(e)}function vh(e,t,n){s1(e,t,n)}function yh(e){let t=L(),n=ee(),r=Cc();So(r+1);let i=na(n,r);if(e.dirty&&jg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=l1(t,r);e.reset(s,Lm),e.notifyOnChanges()}return!0}return!1}function bh(){return r1(L(),Cc())}function Jn(e,t){return e<<17|t<<2}function Ot(e){return e>>17&32767}function F1(e){return(e&2)==2}function j1(e,t){return e&131071|t<<17}function Ns(e){return e|2}function Qt(e){return(e&131068)>>2}function Gi(e,t){return e&-131069|t<<2}function H1(e){return(e&1)===1}function Rs(e){return e|1}function z1(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Ot(o),l=Qt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||Rn(d,c)>0)&&(u=!0)}else c=n;if(i)if(l!==0){let d=Ot(e[a+1]);e[r+1]=Jn(d,a),d!==0&&(e[d+1]=Gi(e[d+1],r)),e[a+1]=j1(e[a+1],r)}else e[r+1]=Jn(a,0),a!==0&&(e[a+1]=Gi(e[a+1],r)),a=r;else e[r+1]=Jn(l,0),a===0?a=r:e[l+1]=Gi(e[l+1],r),l=r;u&&(e[r+1]=Ns(e[r+1])),vl(e,c,r,!0),vl(e,c,r,!1),B1(t,c,e,r,s),o=Jn(a,l),s?t.classBindings=o:t.styleBindings=o}function B1(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&Rn(s,t)>=0&&(n[r+1]=Rs(n[r+1]))}function vl(e,t,n,r){let i=e[n+1],s=t===null,o=r?Ot(i):Qt(i),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],u=e[o+1];U1(l,t)&&(a=!0,e[o+1]=r?Rs(u):Ns(u)),o=r?Ot(u):Qt(u)}a&&(e[n+1]=r?Ns(i):Rs(i))}function U1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Rn(e,t)>=0:!1}function Ch(e,t,n){return wh(e,t,n,!1),Ch}function Te(e,t){return wh(e,t,null,!0),Te}function wh(e,t,n,r){let i=L(),s=ee(),o=Kg(2);if(s.firstUpdatePass&&q1(s,e,o,r),t!==dt&&It(i,o,t)){let a=s.data[tn()];Y1(s,a,i,i[G],e,i[o+1]=K1(t,n),r,o)}}function $1(e,t){return t>=e.expandoStartIndex}function q1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[tn()],o=$1(e,n);J1(s,r)&&t===null&&!o&&(t=!1),t=Z1(i,s,t,r),z1(i,s,t,n,o,r)}}function Z1(e,t,n,r){let i=tm(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Wi(null,e,t,n,r),n=Dn(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Wi(i,e,t,n,r),s===null){let a=G1(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Wi(null,e,t,a[1],r),a=Dn(a,t.attrs,r),W1(e,t,r,a))}else s=Q1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function G1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Qt(r)!==0)return e[Ot(r)]}function W1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ot(i)]=r}function Q1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=Dn(r,o,n)}return Dn(r,t.attrs,n)}function Wi(e,t,n,r,i){let s=null,o=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<o&&(s=t[a],r=Dn(r,s.hostAttrs,i),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Dn(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]),xg(e,o,n?!0:t[++s]))}return e===void 0?null:e}function Y1(e,t,n,r,i,s,o,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],c=H1(u)?yl(l,t,n,i,Qt(u),o):void 0;if(!Xr(c)){Xr(s)||F1(u)&&(s=yl(l,null,n,i,a,o));let d=lc(tn(),n);Sy(r,o,d,i,s)}}function yl(e,t,n,r,i,s){let o=t===null,a;for(;i>0;){let l=e[i],u=Array.isArray(l),c=u?l[1]:l,d=c===null,f=n[i+1];f===dt&&(f=d?me:void 0);let h=d?Ri(f,r):c===r?f:void 0;if(u&&!Xr(h)&&(h=Ri(l,r)),Xr(h)&&(a=h,o))return a;let g=e[i+1];i=o?Ot(g):Qt(g)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=Ri(l,r))}return a}function Xr(e){return e!==void 0}function K1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=zt(pt(e)))),e}function J1(e,t){return(e.flags&(t?8:16))!==0}function H(e,t=""){let n=L(),r=ee(),i=e+he,s=r.firstCreatePass?wi(r,i,1,t,null):r.data[i],o=X1(r,n,s,t,e);n[i]=o,Mo()&&Uo(r,n,o,s),Fn(s,!1)}var X1=(e,t,n,r,i)=>(hi(!0),Dv(t[G],r));function eb(e,t,n,r=""){return It(e,jn(),n)?t+ai(n)+r:dt}function Me(e){return Vn("",e),Me}function Vn(e,t,n){let r=L(),i=eb(r,e,t,n);return i!==dt&&tb(r,tn(),i),Vn}function tb(e,t,n){let r=lc(t,e);Vv(e[G],r,n)}function aa(e,t,n){Mc(t)&&(t=t());let r=L(),i=jn();if(It(r,i,t)){let s=ee(),o=di();Dd(o,r,e,t,r[G],n)}return aa}function _h(e,t){let n=Mc(e);return n&&e.set(t),n}function la(e,t){let n=L(),r=ee(),i=oe();return mh(r,n,n[G],i,e,t),la}function nb(e,t,n){let r=ee();if(r.firstCreatePass){let i=Qe(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=ie(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ls(e[s],t,n,r,i);else{let s=ee(),o=L(),a=oe(),l=$t(e)?e:ie(e.provide),u=rc(e),c=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if($t(e)||!e.multi){let h=new Bn(u,i,j,null),g=Yi(l,t,i?c:c+f,d);g===-1?(ws(Zr(a,o),s,l),Qi(s,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),o.push(h)):(n[g]=h,o[g]=h)}else{let h=Yi(l,t,c+f,d),g=Yi(l,t,c,c+f),m=h>=0&&n[h],b=g>=0&&n[g];if(i&&!b||!i&&!m){ws(Zr(a,o),s,l);let R=sb(i?ib:rb,n.length,i,r,u,e);!i&&b&&(n[g].providerFactory=R),Qi(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(R),o.push(R)}else{let R=xh(n[i?g:h],u,!i&&r);Qi(s,e,h>-1?h:g,R)}!i&&r&&b&&n[g].componentProviders++}}}function Qi(e,t,n,r){let i=$t(t),s=Pg(t);if(i||s){let o=(s?ie(t.useClass):t).prototype.ngOnDestroy;if(o){let a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[r,o]):a[l+1].push(r,o)}else a.push(n,o)}}}function xh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yi(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function rb(e,t,n,r,i){return Fs(this.multi,[])}function ib(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=In(r,r[_],this.providerFactory.index,i);o=l.slice(0,a),Fs(s,o);for(let u=a;u<l.length;u++)o.push(l[u])}else o=[],Fs(s,o);return o}function Fs(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function sb(e,t,n,r,i,s){let o=new Bn(e,n,j,null);return o.multi=[],o.index=t,o.componentProviders=0,xh(o,i,r&&!n),o}function ua(e,t=[]){return n=>{n.providersResolver=(r,i)=>nb(r,i?i(e):e,t)}}function ob(e,t,n,r){return lb(L(),Qg(),e,t,n,r)}function ab(e,t){let n=e[t];return n===dt?void 0:n}function lb(e,t,n,r,i,s){let o=t+n;return It(e,o,i)?E0(e,o+1,s?r.call(s,i):r(i)):ab(e,o+1)}var ub=(()=>{class e{zone=v(se);changeDetectionScheduler=v(zn);applicationRef=v(An);applicationErrorHandler=v(ct);_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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cb=new S("",{factory:()=>!1});function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new se(D(T({},Sh()),{scheduleInRootZone:n})),[{provide:se,useFactory:e},{provide:Ut,multi:!0,useFactory:()=>{let r=v(ub,{optional:!0});return()=>r.initialize()}},{provide:Ut,multi:!0,useFactory:()=>{let r=v(hb);return()=>{r.initialize()}}},t===!0?{provide:Tc,useValue:!0}:[],{provide:Ic,useValue:n??Sd},{provide:ct,useFactory:()=>{let r=v(se),i=v(Ze),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(Hn),s.handleError(o))})}}}]}function db(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=kh({ngZoneFactory:()=>{let i=Sh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&kd("NgZone_CoalesceEvent"),new se(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return li([{provide:cb,useValue:!0},{provide:Io,useValue:!1},r])}function Sh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var hb=(()=>{class e{subscription=new Ne;initialized=!1;zone=v(se);pendingTasks=v(nn);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(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fb=(()=>{class e{applicationErrorHandler=v(ct);appRef=v(An);taskService=v(nn);ngZone=v(se);zonelessEnabled=v(Io);tracing=v(jo,{optional:!0});disableScheduling=v(Tc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Ic,{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 oy||!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?Xa:Od;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(Qr+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,Xa(()=>{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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pb(){return typeof $localize<"u"&&$localize.locale||Jr}var ca=new S("",{providedIn:"root",factory:()=>v(ca,{optional:!0,skipSelf:!0})||pb()});function Pt(e){return eg(e)}function it(e,t){return Bf(e,t?.equal)}var sx=class{[Ve];constructor(e){this[Ve]=e}destroy(){this[Ve].destroy()}},gb=new S("");gb.__NG_ELEMENT_ID__=e=>{let t=oe();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 js=new S(""),mb=new S("");function dn(e){return!e.moduleRef}function vb(e){let t=dn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(se);return n.run(()=>{dn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ct),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),dn(e)){let s=()=>t.destroy(),o=e.platformInjector.get(js);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(js);o.add(s),e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return bb(r,n,()=>{let s=t.get(nn),o=s.add(),a=t.get(uh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(ca,Jr);if(L1(l||Jr),!t.get(mb,!0))return dn(e)?t.get(An):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(dn(e)){let u=t.get(An);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return yb?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var yb;function bb(e,t,n){try{let r=n();return ra(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var yr=null;function Cb(e=[],t){return fi.create({name:t,providers:[{provide:yo,useValue:"platform"},{provide:js,useValue:new Set([()=>yr=null])},...e]})}function wb(e=[]){if(yr)return yr;let t=Cb(e);return yr=t,T1(),_b(t),t}function _b(e){let t=e.get(nd,null);wo(e,()=>{t?.forEach(n=>n())})}var xb=(()=>{class e{static __NG_ELEMENT_ID__=kb}return e})();function kb(e){return Sb(oe(),L(),(e&16)===16)}function Sb(e,t,n){if(Xt(e)&&!n){let r=Fe(e.index,t);return new Pn(r,r)}else if(e.type&175){let r=t[Re];return new Pn(r,t)}return null}var Ob=class{constructor(){}supports(e){return Wd(e)}create(e){return new Mb(e)}},Eb=(e,t)=>t,Mb=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||Eb}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<Cl(n,r,i)?t:n,o=Cl(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let l=o-r,u=a-r;if(l!=u){for(let d=0;d<l;d++){let f=d<i.length?i[d]:i[d]=0,h=f+d;u<=h&&h<l&&(i[d]=f+1)}let c=s.previousIndex;i[c]=u-l}}o!==a&&e(s,o,a)}}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=[]),!Wd(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,S0(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 Tb(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 bl),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 bl),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}},Tb=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}},Ib=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}},bl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new Ib,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 Cl(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 wl(){return new Oh([new Ob])}var Oh=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:wl});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=v(e,{optional:!0,skipSelf:!0});return e.create(n,r||wl())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function Pb(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;$(8);try{let s=i?.injector??wb(r),o=[kh({}),{provide:zn,useExisting:fb},um,...n||[]],a=new sh({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return vb({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{$(9)}}function Ab(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Db={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Vb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Nb(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Ki;function Rb(e,t){if(!Ki){let n=Element.prototype;Ki=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Ki.call(e,t):!1}function Lb(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Vb(r)]=[n,i]}),t}function Fb(e,t){return t.get($n).resolveComponentFactory(e).inputs}function jb(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 a=n[s],l=Hb(a,t,i);l!==-1&&r[l].push(a)}return r}function Hb(e,t,n){let r=n;return Nb(e)&&t.some((i,s)=>i!=="*"&&Rb(e,i)?(r=s,!0):!1),r}var zb=10,Bb=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get($n).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Ub(this.componentFactory,e,this.inputMap)}},Ub=class{componentFactory;injector;inputMap;eventEmitters=new gu(1);events=this.eventEmitters.pipe(ju(e=>Kp(...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(se),this.appRef=this.injector.get(An),this.cdScheduler=t.get(zn),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=Db.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},zb))})}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),r0(this.componentRef.hostView)&&(i0(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=fi.create({providers:[],parent:this.injector}),n=jb(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 J(s=>{let o=i.subscribe(a=>s.next({name:r,value:a}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},$b=class extends HTMLElement{ngElementEventsSubscription=null};function qb(e,t){let n=Fb(e,t.injector),r=t.strategyFactory||new Bb(e,t.injector),i=Lb(n);class s extends $b{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:u})=>{if(!this.hasOwnProperty(l))return;let c=this[l];delete this[l],a.setInputValue(l,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,u,c){let[d,f]=i[a];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(l){this.ngElementStrategy.setInputValue(o,l,a)},configurable:!0,enumerable:!0})}),s}var Eh=null;function ei(){return Eh}function Zb(e){Eh??=e}var Gb=class{},re=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(re||{}),z=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(z||{}),ue=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ue||{}),ot={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 Wb(e){return Ae(e)[K.LocaleId]}function Qb(e,t,n){let r=Ae(e),i=[r[K.DayPeriodsFormat],r[K.DayPeriodsStandalone]],s=ye(i,t);return ye(s,n)}function Yb(e,t,n){let r=Ae(e),i=[r[K.DaysFormat],r[K.DaysStandalone]],s=ye(i,t);return ye(s,n)}function Kb(e,t,n){let r=Ae(e),i=[r[K.MonthsFormat],r[K.MonthsStandalone]],s=ye(i,t);return ye(s,n)}function Jb(e,t){let n=Ae(e)[K.Eras];return ye(n,t)}function Xn(e,t){let n=Ae(e);return ye(n[K.DateFormat],t)}function er(e,t){let n=Ae(e);return ye(n[K.TimeFormat],t)}function tr(e,t){let n=Ae(e)[K.DateTimeFormat];return ye(n,t)}function xi(e,t){let n=Ae(e),r=n[K.NumberSymbols][t];if(typeof r>"u"){if(t===ot.CurrencyDecimal)return n[K.NumberSymbols][ot.Decimal];if(t===ot.CurrencyGroup)return n[K.NumberSymbols][ot.Group]}return r}function Mh(e){if(!e[K.ExtraData])throw new w(2303,!1)}function Xb(e){let t=Ae(e);return Mh(t),(t[K.ExtraData][2]||[]).map(n=>typeof n=="string"?Ji(n):[Ji(n[0]),Ji(n[1])])}function eC(e,t,n){let r=Ae(e);Mh(r);let i=[r[K.ExtraData][0],r[K.ExtraData][1]],s=ye(i,t)||[];return ye(s,n)||[]}function ye(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function Ji(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var tC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nr={},nC=/((?:[^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 rC(e,t,n,r){let i=hC(e);t=ze(n,t)||t;let s=[],o;for(;t;)if(o=nC.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let a=i.getTimezoneOffset();r&&(a=Ih(r,a),i=dC(i,r));let l="";return s.forEach(u=>{let c=uC(u);l+=c?c(i,n,a):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ti(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ze(e,t){let n=Wb(e);if(nr[n]??={},nr[n][t])return nr[n][t];let r="";switch(t){case"shortDate":r=Xn(e,ue.Short);break;case"mediumDate":r=Xn(e,ue.Medium);break;case"longDate":r=Xn(e,ue.Long);break;case"fullDate":r=Xn(e,ue.Full);break;case"shortTime":r=er(e,ue.Short);break;case"mediumTime":r=er(e,ue.Medium);break;case"longTime":r=er(e,ue.Long);break;case"fullTime":r=er(e,ue.Full);break;case"short":let i=ze(e,"shortTime"),s=ze(e,"shortDate");r=rr(tr(e,ue.Short),[i,s]);break;case"medium":let o=ze(e,"mediumTime"),a=ze(e,"mediumDate");r=rr(tr(e,ue.Medium),[o,a]);break;case"long":let l=ze(e,"longTime"),u=ze(e,"longDate");r=rr(tr(e,ue.Long),[l,u]);break;case"full":let c=ze(e,"fullTime"),d=ze(e,"fullDate");r=rr(tr(e,ue.Full),[c,d]);break}return r&&(nr[n][t]=r),r}function rr(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Se(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 iC(e,t){return Se(e,3).substring(0,t)}function Q(e,t,n=0,r=!1,i=!1){return function(s,o){let a=sC(e,s);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return iC(a,t);let l=xi(o,ot.MinusSign);return Se(a,t,l,r,i)}}function sC(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 U(e,t,n=re.Format,r=!1){return function(i,s){return oC(i,s,e,t,n,r)}}function oC(e,t,n,r,i,s){switch(n){case 2:return Kb(t,i,r)[e.getMonth()];case 1:return Yb(t,i,r)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let u=Xb(t),c=eC(t,i,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,m=o>=h.hours&&a>=h.minutes,b=o<g.hours||o===g.hours&&a<g.minutes;if(h.hours<g.hours){if(m&&b)return!0}else if(m||b)return!0}else if(f.hours===o&&f.minutes===a)return!0;return!1});if(d!==-1)return c[d]}return Qb(t,i,r)[o<12?0:1];case 3:return Jb(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new w(2302,!1)}}function ir(e){return function(t,n,r){let i=-1*r,s=xi(n,ot.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+Se(o,2,s)+Se(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+Se(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+Se(o,2,s)+":"+Se(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+Se(o,2,s)+":"+Se(Math.abs(i%60),2,s);default:throw new w(2310,!1)}}}var aC=0,br=4;function lC(e){let t=ti(e,aC,1).getDay();return ti(e,0,1+(t<=br?br:br+7)-t)}function Th(e){let t=e.getDay(),n=t===0?-3:br-t;return ti(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xi(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=Th(n),o=lC(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return Se(i,e,xi(r,ot.MinusSign))}}function sr(e,t=!1){return function(n,r){let i=Th(n).getFullYear();return Se(i,e,xi(r,ot.MinusSign),t)}}var es={};function uC(e){if(es[e])return es[e];let t;switch(e){case"G":case"GG":case"GGG":t=U(3,z.Abbreviated);break;case"GGGG":t=U(3,z.Wide);break;case"GGGGG":t=U(3,z.Narrow);break;case"y":t=Q(0,1,0,!1,!0);break;case"yy":t=Q(0,2,0,!0,!0);break;case"yyy":t=Q(0,3,0,!1,!0);break;case"yyyy":t=Q(0,4,0,!1,!0);break;case"Y":t=sr(1);break;case"YY":t=sr(2,!0);break;case"YYY":t=sr(3);break;case"YYYY":t=sr(4);break;case"M":case"L":t=Q(1,1,1);break;case"MM":case"LL":t=Q(1,2,1);break;case"MMM":t=U(2,z.Abbreviated);break;case"MMMM":t=U(2,z.Wide);break;case"MMMMM":t=U(2,z.Narrow);break;case"LLL":t=U(2,z.Abbreviated,re.Standalone);break;case"LLLL":t=U(2,z.Wide,re.Standalone);break;case"LLLLL":t=U(2,z.Narrow,re.Standalone);break;case"w":t=Xi(1);break;case"ww":t=Xi(2);break;case"W":t=Xi(1,!0);break;case"d":t=Q(2,1);break;case"dd":t=Q(2,2);break;case"c":case"cc":t=Q(7,1);break;case"ccc":t=U(1,z.Abbreviated,re.Standalone);break;case"cccc":t=U(1,z.Wide,re.Standalone);break;case"ccccc":t=U(1,z.Narrow,re.Standalone);break;case"cccccc":t=U(1,z.Short,re.Standalone);break;case"E":case"EE":case"EEE":t=U(1,z.Abbreviated);break;case"EEEE":t=U(1,z.Wide);break;case"EEEEE":t=U(1,z.Narrow);break;case"EEEEEE":t=U(1,z.Short);break;case"a":case"aa":case"aaa":t=U(0,z.Abbreviated);break;case"aaaa":t=U(0,z.Wide);break;case"aaaaa":t=U(0,z.Narrow);break;case"b":case"bb":case"bbb":t=U(0,z.Abbreviated,re.Standalone,!0);break;case"bbbb":t=U(0,z.Wide,re.Standalone,!0);break;case"bbbbb":t=U(0,z.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":t=U(0,z.Abbreviated,re.Format,!0);break;case"BBBB":t=U(0,z.Wide,re.Format,!0);break;case"BBBBB":t=U(0,z.Narrow,re.Format,!0);break;case"h":t=Q(3,1,-12);break;case"hh":t=Q(3,2,-12);break;case"H":t=Q(3,1);break;case"HH":t=Q(3,2);break;case"m":t=Q(4,1);break;case"mm":t=Q(4,2);break;case"s":t=Q(5,1);break;case"ss":t=Q(5,2);break;case"S":t=Q(6,1);break;case"SS":t=Q(6,2);break;case"SSS":t=Q(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ir(0);break;case"ZZZZZ":t=ir(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ir(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ir(2);break;default:return null}return es[e]=t,t}function Ih(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function cC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function dC(e,t,n){let r=e.getTimezoneOffset(),i=Ih(t,r);return cC(e,-1*(i-r))}function hC(e){if(_l(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(a=>+a);return ti(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(tC))return fC(r)}let t=new Date(e);if(!_l(t))throw new w(2311,!1);return t}function fC(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,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,a,l,u),t}function _l(e){return e instanceof Date&&!isNaN(e.valueOf())}var ts=/\s+/,xl=[],pC=(()=>{class e{_ngEl;_renderer;initialClasses=xl;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ts):xl}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ts):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ts).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(j(Mt),j(Xo))};static \u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),gC=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}},ki=(()=>{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 gC(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 a=r.get(s);r.move(a,o),kl(a,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);kl(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(j(sn),j(St),j(Oh))};static \u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function kl(e,t){e.context.$implicit=t.item}var an=(()=>{class e{_viewContainer;_context=new mC;_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){Sl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Sl(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)(j(sn),j(St))};static \u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),mC=class{$implicit=null;ngIf=null};function Sl(e,t){if(e&&!e.createEmbeddedView)throw new w(2020,!1)}var vC=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()}},Ph=(()=>{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=Ce({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),yC=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new vC(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(j(sn),j(St),j(Ph,9))};static \u0275dir=Ce({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function bC(e,t){return new w(2100,!1)}var CC="mediumDate",wC=new S(""),_C=new S(""),Ah=(()=>{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??CC,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return rC(n,o,s||this.locale,a)}catch(o){throw bC(e,o.message)}}static \u0275fac=function(n){return new(n||e)(j(ca,16),j(wC,24),j(_C,24))};static \u0275pipe=p1({name:"date",type:e,pure:!0})}return e})(),we=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({})}return e})();function Dh(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{},Nh="browser";function xC(e){return e===Nh}var Rh=class{_doc;constructor(e){this._doc=e}manager},Hs=(()=>{class e extends Rh{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)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),zs=new S(""),Lh=(()=>{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 Hs));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof Hs);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)(C(zs),C(se))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),ns="ng-app-id";function Ol(e){for(let t of e)t.remove()}function El(e,t){let n=t.createElement("style");return n.textContent=e,n}function kC(e,t,n,r){let i=e.head?.querySelectorAll(`style[${ns}="${t}"],link[${ns}="${t}"]`);if(i)for(let s of i)s.removeAttribute(ns),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 Bs(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Fh=(()=>{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,kC(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,El);r?.forEach(i=>this.addUsage(i,this.external,Bs))}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&&(Ol(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ol(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,El(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Bs(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)(C(je),C(td),C(rd,8),C(Ao))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),rs={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"},da=/%COMP%/g,jh="%COMP%",SC=`_nghost-${jh}`,OC=`_ngcontent-${jh}`,EC=!0,MC=new S("",{providedIn:"root",factory:()=>EC});function TC(e){return OC.replace(da,e)}function IC(e){return SC.replace(da,e)}function Hh(e,t){return t.map(n=>n.replace(da,e))}var Ml=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,a,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=a,this.nonce=l,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new ha(n,o,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Il?i.applyToHost(n):i instanceof Us&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case kt.Emulated:s=new Il(l,u,r,this.appId,c,o,a,d,f);break;case kt.ShadowDom:return new PC(l,u,n,r,o,a,this.nonce,d,f);default:s=new Us(l,u,r,c,o,a,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)(C(Lh),C(Fh),C(td),C(MC),C(je),C(se),C(rd),C(jo,8))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),ha=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(rs[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Tl(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Tl(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=rs[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=rs[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&(mt.DashCase|mt.Important)?e.style.setProperty(t,n,r&mt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&mt.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=ei().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 Tl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var PC=class extends ha{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Hh(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=Bs(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)}},Us=class extends ha{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=l?Hh(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Wr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Il=class extends Us{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,a,l){let u=r+"-"+n.id;super(e,t,n,i,s,o,a,l,u),this.contentAttr=TC(u),this.hostAttr=IC(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}},AC=class zh extends Gb{supportsDOMEvents=!0;static makeCurrent(){Zb(new zh)}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=DC();return n==null?null:VC(n)}resetBaseElement(){mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},mn=null;function DC(){return mn=mn||document.head.querySelector("base"),mn?mn.getAttribute("href"):null}function VC(e){return new URL(e,document.baseURI).pathname}var NC=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Pl=["alt","control","meta","shift"],RC={"\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"},LC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},FC=(()=>{class e extends Rh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ei().onAndCancel(n,o.domEventName,a,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="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),Pl.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 l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let i=RC[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"),Pl.forEach(o=>{if(o!==i){let a=LC[o];a(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)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function jC(e){return Pb(HC(e))}function HC(e){return{appProviders:[...qC,...e?.providers??[]],platformProviders:$C}}function zC(){AC.makeCurrent()}function BC(){return new Hn}function UC(){return Um(document),document}var $C=[{provide:Ao,useValue:Nh},{provide:nd,useValue:zC,multi:!0},{provide:je,useFactory:UC}],qC=[{provide:yo,useValue:"root"},{provide:Hn,useFactory:BC},{provide:zs,useClass:Hs,multi:!0,deps:[je]},{provide:zs,useClass:FC,multi:!0,deps:[je]},Ml,Fh,Lh,{provide:Jo,useExisting:Ml},{provide:Vh,useClass:NC},[]],fa=class{},Si=class{},Yt=class Cr{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 Cr?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 Cr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?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(a=>s.indexOf(a)===-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)))}},ZC=class{encodeKey(e){return Al(e)}encodeValue(e){return Al(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function GC(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))],a=n.get(s)||[];a.push(o),n.set(s,a)}),n}var WC=/%(\d[a-f0-9])/gi,QC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Al(e){return encodeURIComponent(e).replace(WC,(t,n)=>QC[n]??t)}function or(e){return`${e}`}var qe=class Bh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ZC,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=GC(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(or):[or(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 Bh({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(or(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(or(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)}},YC=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 KC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Dl(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Vl(e){return typeof Blob<"u"&&e instanceof Blob}function Nl(e){return typeof FormData<"u"&&e instanceof FormData}function JC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Rl="Content-Type",Ll="Accept",Uh="X-Request-URL",$h="text/plain",qh="application/json",XC=`${qh}, ${$h}, */*`,bn=class Zh{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(KC(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 Yt,this.context??=new YC,!this.params)this.params=new qe,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Dl(this.body)||Vl(this.body)||Nl(this.body)||JC(this.body)?this.body:this.body instanceof qe?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||Nl(this.body)?null:Vl(this.body)?this.body.type||null:Dl(this.body)?null:typeof this.body=="string"?$h:this.body instanceof qe?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qh: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,a=t.cache||this.cache,l=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,b=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,_e=t.headers||this.headers,X=t.params||this.params,un=t.context??this.context;return t.setHeaders!==void 0&&(_e=Object.keys(t.setHeaders).reduce((cn,ht)=>cn.set(ht,t.setHeaders[ht]),_e)),t.setParams&&(X=Object.keys(t.setParams).reduce((cn,ht)=>cn.set(ht,t.setParams[ht]),X)),new Zh(n,r,m,{params:X,headers:_e,context:un,reportProgress:R,responseType:i,withCredentials:b,transferCache:h,keepalive:s,cache:a,priority:o,timeout:g,mode:l,redirect:u,credentials:c,referrer:d,integrity:f})}},jt=(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})(jt||{}),pa=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Yt,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}},ew=class Gh extends pa{constructor(t={}){super(t)}type=jt.ResponseHeader;clone(t={}){return new Gh({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})}},Oi=class Wh extends pa{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=jt.Response;clone(t={}){return new Wh({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})}},is=class extends pa{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}},tw=200,nw=204;function ss(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 ga=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof bn)s=n;else{let l;i.headers instanceof Yt?l=i.headers:l=new Yt(i.headers);let u;i.params&&(i.params instanceof qe?u=i.params:u=new qe({fromObject:i.params})),s=new bn(n,r,i.body!==void 0?i.body:null,{headers:l,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=Ue(s).pipe(Ru(l=>this.handler.handle(l)));if(n instanceof bn||i.observe==="events")return o;let a=o.pipe(Vr(l=>l instanceof Oi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Oe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new w(2806,!1);return l.body}));case"blob":return a.pipe(Oe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new w(2807,!1);return l.body}));case"text":return a.pipe(Oe(l=>{if(l.body!==null&&typeof l.body!="string")throw new w(2808,!1);return l.body}));case"json":default:return a.pipe(Oe(l=>l.body))}case"response":return a;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 qe().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,ss(i,r))}post(n,r,i={}){return this.request("POST",n,ss(i,r))}put(n,r,i={}){return this.request("PUT",n,ss(i,r))}static \u0275fac=function(n){return new(n||e)(C(fa))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),rw=new S("");function Qh(e,t){return t(e)}function iw(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function sw(e,t,n){return(r,i)=>wo(n,()=>t(r,s=>e(s,i)))}var Yh=new S(""),ma=new S(""),ow=new S(""),Kh=new S("",{providedIn:"root",factory:()=>!0});function aw(){let e=null;return(t,n)=>{e===null&&(e=(v(Yh,{optional:!0})??[]).reduceRight(iw,Qh));let r=v(Pc);if(v(Kh)){let i=r.add();return e(t,n).pipe(Fu(i))}else return e(t,n)}}var Fl=(()=>{class e extends fa{backend;injector;chain=null;pendingTasks=v(Pc);contributeToStability=v(Kh);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(ma),...this.injector.get(ow,[])]));this.chain=r.reduceRight((i,s)=>sw(i,s,this.injector),Qh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Fu(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(C(Si),C(Ze))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),lw=/^\)\]\}',?\n/,uw=RegExp(`^${Uh}:`,"m");function cw(e){return"responseURL"in e&&e.responseURL?e.responseURL:uw.test(e.getAllResponseHeaders())?e.getResponseHeader(Uh):null}var jl=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return Ue(null).pipe(ju(()=>new J(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,b)=>s.setRequestHeader(m,b.join(","))),n.headers.has(Ll)||s.setRequestHeader(Ll,XC),!n.headers.has(Rl)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(Rl,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(),a=null,l=()=>{if(a!==null)return a;let m=s.statusText||"OK",b=new Yt(s.getAllResponseHeaders()),R=cw(s)||n.url;return a=new ew({headers:b,status:s.status,statusText:m,url:R}),a},u=()=>{let{headers:m,status:b,statusText:R,url:_e}=l(),X=null;b!==nw&&(X=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=X?tw:0);let un=b>=200&&b<300;if(n.responseType==="json"&&typeof X=="string"){let cn=X;X=X.replace(lw,"");try{X=X!==""?JSON.parse(X):null}catch(ht){X=cn,un&&(un=!1,X={error:ht,text:X})}}un?(i.next(new Oi({body:X,headers:m,status:b,statusText:R,url:_e||void 0})),i.complete()):i.error(new is({error:X,headers:m,status:b,statusText:R,url:_e||void 0}))},c=m=>{let{url:b}=l(),R=new is({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(R)},d=c;n.timeout&&(d=m=>{let{url:b}=l(),R=new is({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});i.error(R)});let f=!1,h=m=>{f||(i.next(l()),f=!0);let b={type:jt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),n.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),i.next(b)},g=m=>{let b={type:jt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),i.next(b)};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:jt.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)(C(Vh))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Jh=new S(""),dw="XSRF-TOKEN",hw=new S("",{providedIn:"root",factory:()=>dw}),fw="X-XSRF-TOKEN",pw=new S("",{providedIn:"root",factory:()=>fw}),Xh=class{},gw=(()=>{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=Dh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(C(je),C(hw))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),mw=/^(?:https?:)?\/\//i;function vw(e,t){if(!v(Jh)||e.method==="GET"||e.method==="HEAD"||mw.test(e.url))return t(e);let n=v(Xh).getToken(),r=v(pw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var ef=(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})(ef||{});function yw(e,t){return{\u0275kind:e,\u0275providers:t}}function bw(...e){let t=[ga,jl,Fl,{provide:fa,useExisting:Fl},{provide:Si,useFactory:()=>v(rw,{optional:!0})??v(jl)},{provide:ma,useValue:vw,multi:!0},{provide:Jh,useValue:!0},{provide:Xh,useClass:gw}];for(let n of e)t.push(...n.\u0275providers);return li(t)}var Hl=new S("");function Cw(){return yw(ef.LegacyInterceptors,[{provide:Hl,useFactory:aw},{provide:ma,useExisting:Hl,multi:!0}])}var tf=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=C(ww),r},providedIn:"root"})}return e})(),ww=(()=>{class e extends tf{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case rt.NONE:return r;case rt.HTML:return Dt(r,"HTML")?pt(r):pd(this._doc,String(r)).toString();case rt.STYLE:return Dt(r,"Style")?pt(r):r;case rt.SCRIPT:if(Dt(r,"Script"))return pt(r);throw new w(5200,!1);case rt.URL:return Dt(r,"URL")?pt(r):ld(String(r));case rt.RESOURCE_URL:if(Dt(r,"ResourceURL"))return pt(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return sv(n)}bypassSecurityTrustStyle(n){return ov(n)}bypassSecurityTrustScript(n){return av(n)}bypassSecurityTrustUrl(n){return lv(n)}bypassSecurityTrustResourceUrl(n){return uv(n)}static \u0275fac=function(n){return new(n||e)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nf={},_w={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){nf[e]=t,_w[t]=e});function xw(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=nf[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 a=r&1;r>>>=1,a?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var wr="TOKEN_LOGGER_CONFIG",kw=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}},Cn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",Sw=class{provideConfigEngine(e){return new kw(e)}},wn="TOKEN_LOGGER_MAPPER_SERVICE",Ow=(()=>{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 Ue({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return Ue(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 Pr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ne=class cs{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(Z(r))try{r()}catch(s){t=s instanceof Ai?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{ka(s)}catch(o){t=t??[],o instanceof Ai?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Ai(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ka(t);else{if(t instanceof cs){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)&&Pr(n,t)}remove(t){let{_finalizers:n}=this;n&&Pr(n,t),t instanceof cs&&t._removeParent(this)}};Ne.EMPTY=(()=>{let e=new Ne;return e.closed=!0,e})();var du=Ne.EMPTY;function hu(e){return e instanceof Ne||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function ka(e){Z(e)?e():e.unsubscribe()}var Mt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ir={setTimeout(e,t,...n){let{delegate:r}=Ir;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ir;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function pu(e){Ir.setTimeout(()=>{let{onUnhandledError:t}=Mt;if(t)t(e);else throw e})}function Sa(){}var Kp=so("C",void 0,void 0);function Jp(e){return so("E",void 0,e)}function Xp(e){return so("N",e,void 0)}function so(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function dr(e){if(Mt.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function ef(e){Mt.useDeprecatedSynchronousErrorHandling&&gt&&(gt.errorThrown=!0,gt.error=e)}var oo=class extends Ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,hu(e)&&e.add(this)):this.destination=sf}static create(e,t,n){return new zt(e,t,n)}next(e){this.isStopped?Vi(Xp(e),this):this._next(e)}error(e){this.isStopped?Vi(Jp(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Vi(Kp,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()}}},tf=Function.prototype.bind;function Di(e,t){return tf.call(e,t)}var nf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Gn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Gn(n)}else Gn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Gn(t)}}},zt=class extends oo{constructor(e,t,n){super();let r;if(Z(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Mt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Di(e.next,i),error:e.error&&Di(e.error,i),complete:e.complete&&Di(e.complete,i)}):r=e}this.destination=new nf(r)}};function Gn(e){Mt.useDeprecatedSynchronousErrorHandling?ef(e):pu(e)}function rf(e){throw e}function Vi(e,t){let{onStoppedNotification:n}=Mt;n&&Ir.setTimeout(()=>n(e,t))}var sf={closed:!0,next:Sa,error:rf,complete:Sa},ao=typeof Symbol=="function"&&Symbol.observable||"@@observable";function lo(e){return e}function of(e){return e.length===0?lo:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var J=(()=>{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=lf(n)?n:new zt(n,r,i);return dr(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Oa(r),new r((i,s)=>{let o=new zt({next:a=>{try{n(a)}catch(l){s(l),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)}[ao](){return this}pipe(...n){return of(n)(this)}toPromise(n){return n=Oa(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 Oa(e){var t;return(t=e??Mt.Promise)!==null&&t!==void 0?t:Promise}function af(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}function lf(e){return e&&e instanceof oo||af(e)&&hu(e)}function uf(e){return Z(e?.lift)}function be(e){return t=>{if(uf(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 de(e,t,n,r,i){return new cf(e,t,n,r,i)}var cf=class extends oo{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(a){e.error(a)}}:super._next,this._error=r?function(o){try{r(o)}catch(a){e.error(a)}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))}}},df=si(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),ut=(()=>{class e extends J{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ma(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new df}next(n){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){dr(()=>{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(){dr(()=>{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?du:(this.currentObservers=null,s.push(n),new Ne(()=>{this.currentObservers=null,Pr(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new J;return n.source=this,n}}return e.create=(t,n)=>new Ma(t,n),e})(),Ma=class extends ut{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:du}},fu=class extends ut{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)}},uo={now(){return(uo.delegate||Date).now()},delegate:void 0},gu=class extends ut{constructor(e=1/0,t=1/0,n=uo){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 a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}}},hf=class extends Ne{constructor(e,t){super()}schedule(e,t=0){return this}},Ar={setInterval(e,t,...n){let{delegate:r}=Ar;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ar;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},pf=class extends hf{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 Ar.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&&Ar.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,Pr(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},ds=class mu{constructor(t,n=mu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};ds.now=uo.now;var ff=class extends ds{constructor(e,t=ds.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}}},vu=new ff(pf),gf=vu,yu=new J(e=>e.complete());function bu(e){return e&&Z(e.schedule)}function co(e){return e[e.length-1]}function mf(e){return Z(co(e))?e.pop():void 0}function Cu(e){return bu(co(e))?e.pop():void 0}function vf(e,t){return typeof co(e)=="number"?e.pop():t}function yf(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 a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Ea(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 Lt(e){return this instanceof Lt?(this.v=e,this):new Lt(e)}function bf(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),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(i[h]=function(m){return new Promise(function(b,R){s.push([h,m,b,R])>1||l(h,m)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(m){p(s[0][3],m)}}function u(h){h.value instanceof Lt?Promise.resolve(h.value.v).then(c,d):p(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function p(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Cf(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 Ea=="function"?Ea(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(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}var _u=e=>e&&typeof e.length=="number"&&typeof e!="function";function wu(e){return Z(e?.then)}function xu(e){return Z(e[ao])}function ku(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function Su(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 _f(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ou=_f();function Mu(e){return Z(e?.[Ou])}function Eu(e){return bf(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Lt(t.read());if(r)return yield Lt(void 0);yield yield Lt(n)}}finally{t.releaseLock()}})}function Tu(e){return Z(e?.getReader)}function pe(e){if(e instanceof J)return e;if(e!=null){if(xu(e))return wf(e);if(_u(e))return xf(e);if(wu(e))return kf(e);if(ku(e))return Pu(e);if(Mu(e))return Sf(e);if(Tu(e))return Of(e)}throw Su(e)}function wf(e){return new J(t=>{let n=e[ao]();if(Z(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xf(e){return new J(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function kf(e){return new J(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,pu)})}function Sf(e){return new J(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Pu(e){return new J(t=>{Mf(e,t).catch(n=>t.error(n))})}function Of(e){return Pu(Eu(e))}function Mf(e,t){var n,r,i,s;return yf(this,void 0,void 0,function*(){try{for(n=Cf(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 $e(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 Iu(e,t=0){return be((n,r)=>{n.subscribe(de(r,i=>$e(r,e,()=>r.next(i),t),()=>$e(r,e,()=>r.complete(),t),i=>$e(r,e,()=>r.error(i),t)))})}function Au(e,t=0){return be((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ef(e,t){return pe(e).pipe(Au(t),Iu(t))}function Tf(e,t){return pe(e).pipe(Au(t),Iu(t))}function Pf(e,t){return new J(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function If(e,t){return new J(n=>{let r;return $e(n,t,()=>{r=e[Ou](),$e(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)}),()=>Z(r?.return)&&r.return()})}function Du(e,t){if(!e)throw new Error("Iterable cannot be null");return new J(n=>{$e(n,t,()=>{let r=e[Symbol.asyncIterator]();$e(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Af(e,t){return Du(Eu(e),t)}function Df(e,t){if(e!=null){if(xu(e))return Ef(e,t);if(_u(e))return Pf(e,t);if(wu(e))return Tf(e,t);if(ku(e))return Du(e,t);if(Mu(e))return If(e,t);if(Tu(e))return Af(e,t)}throw Su(e)}function ho(e,t){return t?Df(e,t):pe(e)}function Ue(...e){let t=Cu(e);return ho(e,t)}function po(e,t){let n=Z(e)?e:()=>e,r=i=>i.error(n());return new J(t?i=>t.schedule(r,0,i):r)}function Vf(e){return!!e&&(e instanceof J||Z(e.lift)&&Z(e.subscribe))}var Nf=si(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function tt(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new zt({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Nf)}});e.subscribe(s)})}function Vu(e){return e instanceof Date&&!isNaN(e)}var Rf=si(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function pt(e,t){let{first:n,each:r,with:i=Lf,scheduler:s=t??vu,meta:o=null}=Vu(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return be((a,l)=>{let u,c,d=null,p=0,h=g=>{c=$e(l,s,()=>{try{u.unsubscribe(),pe(i({meta:o,lastValue:d,seen:p})).subscribe(l)}catch(m){l.error(m)}},g)};u=a.subscribe(de(l,g=>{c?.unsubscribe(),p++,l.next(d=g),r>0&&h(r)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!p&&h(n!=null?typeof n=="number"?n:+n-s.now():r)})}function Lf(e){throw new Rf(e)}function Oe(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Ff}=Array;function jf(e,t){return Ff(t)?e(...t):e(t)}function zf(e){return Oe(t=>jf(e,t))}var{isArray:Hf}=Array,{getPrototypeOf:Bf,prototype:Uf,keys:$f}=Object;function qf(e){if(e.length===1){let t=e[0];if(Hf(t))return{args:t,keys:null};if(Zf(t)){let n=$f(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Zf(e){return e&&typeof e=="object"&&Bf(e)===Uf}function Gf(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Wf(e,t,n,r,i,s,o,a){let l=[],u=0,c=0,d=!1,p=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u<r?g(m):l.push(m),g=m=>{s&&t.next(m),u++;let b=!1;pe(n(m,c++)).subscribe(de(t,R=>{i?.(R),s?h(R):t.next(R)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;l.length&&u<r;){let R=l.shift();o?$e(t,o,()=>g(R)):g(R)}p()}catch(R){t.error(R)}}))};return e.subscribe(de(t,h,()=>{d=!0,p()})),()=>{a?.()}}function Dr(e,t,n=1/0){return Z(t)?Dr((r,i)=>Oe((s,o)=>t(r,s,i,o))(pe(e(r,i))),n):(typeof t=="number"&&(n=t),be((r,i)=>Wf(r,i,e,n)))}function Qf(e=1/0){return Dr(lo,e)}function Yf(...e){let t=mf(e),{args:n,keys:r}=qf(e),i=new J(s=>{let{length:o}=n;if(!o){s.complete();return}let a=new Array(o),l=o,u=o;for(let c=0;c<o;c++){let d=!1;pe(n[c]).subscribe(de(s,p=>{d||(d=!0,u--),a[c]=p},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(r?Gf(r,a):a),s.complete())}))}});return t?i.pipe(zf(t)):i}function Nu(e=0,t,n=gf){let r=-1;return t!=null&&(bu(t)?n=t:r=t),new J(i=>{let s=Vu(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 Kf(...e){let t=Cu(e),n=vf(e,1/0),r=e;return r.length?r.length===1?pe(r[0]):Qf(n)(ho(r,t)):yu}function Vr(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>e.call(t,s,i++)&&r.next(s)))})}function ke(e){return be((t,n)=>{let r=null,i=!1,s;r=t.subscribe(de(n,void 0,void 0,o=>{s=pe(e(o,ke(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Ru(e,t){return Z(t)?Dr(e,t,1):Dr(e,1)}function Lu(e){return e<=0?()=>yu:be((t,n)=>{let r=0;t.subscribe(de(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Fu(e){return be((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Jf(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?lo:be((s,o)=>{let a=0,l,u=()=>{let c=!1;l=s.subscribe(de(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<n){let p=()=>{l?(l.unsubscribe(),l=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?Nu(r):pe(r(d,a)),g=de(o,()=>{g.unsubscribe(),p()},()=>{o.complete()});h.subscribe(g)}else p()}else o.error(d)})),c&&(l.unsubscribe(),l=null,u())};u()})}function Xf(e={}){let{connector:t=()=>new ut,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,a,l,u=0,c=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},h=()=>{p(),o=l=void 0,c=d=!1},g=()=>{let m=o;h(),m?.unsubscribe()};return be((m,b)=>{u++,!d&&!c&&p();let R=l=l??t();b.add(()=>{u--,u===0&&!d&&!c&&(a=Ni(g,i))}),R.subscribe(b),!o&&u>0&&(o=new zt({next:we=>R.next(we),error:we=>{d=!0,p(),a=Ni(h,n,we),R.error(we)},complete:()=>{c=!0,p(),a=Ni(h,r),R.complete()}}),pe(m).subscribe(o))})(s)}}function Ni(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new zt({next:()=>{r.unsubscribe(),e()}});return pe(t(...n)).subscribe(r)}function Ta(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,Xf({connector:()=>new gu(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function ju(e,t){return be((n,r)=>{let i=null,s=0,o=!1,a=()=>o&&!i&&r.complete();n.subscribe(de(r,l=>{i?.unsubscribe();let u=0,c=s++;pe(e(l,c)).subscribe(i=de(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function eg(e){let t=P(null);try{return e()}finally{P(t)}}var zu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(e,t){super(ng(e,t)),this.code=e}};function tg(e){return`NG0${Math.abs(e)}`}function ng(e,t){return`${tg(e)}${t?": "+t:""}`}var st=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("")}function rg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ht(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ht).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 Pa(e,t){return e?t?`${e} ${t}`:e:t||""}var ig=B({__forward_ref__:B});function Nn(e){return e.__forward_ref__=Nn,e.toString=function(){return Ht(this())},e}function ie(e){return Hu(e)?e():e}function Hu(e){return typeof e=="function"&&e.hasOwnProperty(ig)&&e.__forward_ref__===Nn}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function oi(e){return{providers:e.providers||[],imports:e.imports||[]}}function fo(e){return sg(e,Bu)}function sg(e,t){return e.hasOwnProperty(t)&&e[t]||null}function og(e){return(e?.[Bu]??null)||null}function Ia(e){return e&&e.hasOwnProperty(Aa)?e[Aa]:null}var Bu=B({\u0275prov:B}),Aa=B({\u0275inj:B}),S=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=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Uu(e){return e&&!!e.\u0275providers}var ag=B({\u0275cmp:B}),lg=B({\u0275dir:B}),ug=B({\u0275pipe:B}),Nr=B({\u0275fac:B}),vn=B({__NG_ELEMENT_ID__:B}),Da=B({__NG_ENV_ID__:B});function ai(e){return typeof e=="string"?e:e==null?"":String(e)}function cg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ai(e)}var $u=B({ngErrorCode:B}),dg=B({ngErrorMessage:B}),hg=B({ngTokenPath:B});function qu(e,t){return Zu("",-200,t)}function go(e,t){throw new _(-201,!1)}function Zu(e,t,n){let r=new _(t,e);return r[$u]=t,r[dg]=e,n&&(r[hg]=n),r}function pg(e){return e[$u]}var hs;function Gu(){return hs}function ge(e){let t=hs;return hs=e,t}function Wu(e,t,n){let r=fo(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;go(e,"Injector")}var fg={},vt=fg,gg="__NG_DI_FLAG__",mg=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=On(t)||0;try{return this.injector.get(e,n&8?null:vt,n)}catch(r){if(no(r))return r;throw r}}};function vg(e,t=0){let n=Kl();if(n===void 0)throw new _(-203,!1);if(n===null)return Wu(e,void 0,t);{let r=yg(t),i=n.retrieve(e,r);if(no(i)){if(r.optional)return null;throw i}return i}}function C(e,t=0){return(Gu()||vg)(ie(e),t)}function v(e,t){return C(e,On(t))}function On(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yg(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ps(e){let t=[];for(let n=0;n<e.length;n++){let r=ie(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 a=r[o],l=bg(a);typeof l=="number"?l===-1?i=a.token:s|=l:i=a}t.push(C(i,s))}else t.push(C(r))}return t}function bg(e){return e[gg]}function Bt(e,t){return e.hasOwnProperty(Nr)?e[Nr]:null}function Cg(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 _g(e){return e.flat(Number.POSITIVE_INFINITY)}function mo(e,t){e.forEach(n=>Array.isArray(n)?mo(n,t):t(n))}function Qu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Rr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wg(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 xg(e,t,n){let r=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,wg(e,r,t,n)),r}function Ri(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return kg(e,t,1)}function kg(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 yt={},me=[],Ut=new S(""),Yu=new S("",-1),Ku=new S(""),Ju=class{get(e,t=vt){if(t===vt){let n=Zu("",-201);throw n.name="\u0275NotFound",n}return t}};function Mn(e){return e[ag]||null}function Xu(e){return e[lg]||null}function Sg(e){return e[ug]||null}function li(e){return{\u0275providers:e}}function Og(e){return li([{provide:Ut,multi:!0,useValue:e}])}function Mg(...e){return{\u0275providers:ec(!0,e),\u0275fromNgModule:!0}}function ec(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return mo(t,o=>{let a=o;fs(a,s,[],r)&&(i||=[],i.push(a))}),i!==void 0&&tc(i,s),n}function tc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];vo(i,s=>{t(s,r)})}}function fs(e,t,n,r){if(e=ie(e),!e)return!1;let i=null,s=Ia(e),o=!s&&Mn(e);if(!s&&!o){let l=e.ngModule;if(s=Ia(l),s)i=l;else return!1}else{if(o&&!o.standalone)return!1;i=e}let a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of l)fs(u,t,n,r)}}else if(s){if(s.imports!=null&&!a){r.add(i);let u;mo(s.imports,c=>{fs(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&tc(u,t)}if(!a){let u=Bt(i)||(()=>new i);t({provide:i,useFactory:u,deps:me},i),t({provide:Ku,useValue:i,multi:!0},i),t({provide:Ut,useValue:()=>C(i),multi:!0},i)}let l=s.providers;if(l!=null&&!a){let u=e;vo(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function vo(e,t){for(let n of e)Uu(n)&&(n=n.\u0275providers),Array.isArray(n)?vo(n,t):t(n)}var Eg=B({provide:String,useValue:B});function nc(e){return e!==null&&typeof e=="object"&&Eg in e}function Tg(e){return!!(e&&e.useExisting)}function Pg(e){return!!(e&&e.useFactory)}function $t(e){return typeof e=="function"}function Ig(e){return!!e.useClass}var yo=new S(""),hr={},Va={},Li;function bo(){return Li===void 0&&(Li=new Ju),Li}var Ze=class{},Co=class extends Ze{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,ms(e,s=>this.processProvider(s)),this.records.set(Yu,Vt(void 0,this)),r.has("environment")&&this.records.set(Ze,Vt(void 0,this));let i=this.records.get(yo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ku,me,{self:!0}))}retrieve(e,t){let n=On(t)||0;try{return this.get(e,vt,n)}catch(r){if(no(r))return r;throw r}}destroy(){fn(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 fn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fn(this);let t=nt(this),n=ge(void 0),r;try{return e()}finally{nt(t),ge(n)}}get(e,t=vt,n){if(fn(this),e.hasOwnProperty(Da))return e[Da](this);let r=On(n),i,s=nt(this),o=ge(void 0);try{if(!(r&4)){let l=this.records.get(e);if(l===void 0){let u=Rg(e)&&fo(e);u&&this.injectableDefInScope(u)?l=Vt(gs(e),hr):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,r)}let a=r&2?bo():this.parent;return t=r&8&&t===vt?null:t,a.get(e,t)}catch(a){let l=pg(a);throw l===-200||l===-201?new _(l,null):a}finally{ge(o),nt(s)}}resolveInjectorInitializers(){let e=P(null),t=nt(this),n=ge(void 0),r;try{let i=this.get(Ut,me,{self:!0});for(let s of i)s()}finally{nt(t),ge(n),P(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Ht(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ie(e);let t=$t(e)?e:ie(e&&e.provide),n=Dg(e);if(!$t(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Vt(void 0,hr,!0),r.factory=()=>ps(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===Va)throw qu(Ht(e));return t.value===hr&&(t.value=Va,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&Ng(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{P(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ie(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 gs(e){let t=fo(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof S)throw new _(204,!1);if(e instanceof Function)return Ag(e);throw new _(204,!1)}function Ag(e){if(e.length>0)throw new _(204,!1);let t=og(e);return t!==null?()=>t.factory(e):()=>new e}function Dg(e){if(nc(e))return Vt(void 0,e.useValue);{let t=rc(e);return Vt(t,hr)}}function rc(e,t,n){let r;if($t(e)){let i=ie(e);return Bt(i)||gs(i)}else if(nc(e))r=()=>ie(e.useValue);else if(Pg(e))r=()=>e.useFactory(...ps(e.deps||[]));else if(Tg(e))r=(i,s)=>C(ie(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=ie(e&&(e.useClass||e.provide));if(Vg(e))r=()=>new i(...ps(e.deps));else return Bt(i)||gs(i)}return r}function fn(e){if(e.destroyed)throw new _(205,!1)}function Vt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vg(e){return!!e.deps}function Ng(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Rg(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ms(e,t){for(let n of e)Array.isArray(n)?ms(n,t):n&&Uu(n)?ms(n.\u0275providers,t):t(n)}function _o(e,t){let n;e instanceof Co?(fn(e),n=e):n=new mg(e);let r,i=nt(n),s=ge(void 0);try{return t()}finally{nt(i),ge(s)}}function Lg(){return Gu()!==void 0||Kl()!=null}var Ke=0,w=1,k=2,ne=3,Me=4,Pe=5,Lr=6,Fr=7,le=8,bt=9,Ge=10,G=11,En=12,Na=13,Jt=14,Re=15,Ct=16,Nt=17,We=18,ui=19,ic=20,at=21,Fi=22,jr=23,ve=24,ji=25,zr=26,he=27,sc=1,_t=7,Hr=8,qt=9,ce=10;function lt(e){return Array.isArray(e)&&typeof e[sc]=="object"}function Je(e){return Array.isArray(e)&&e[sc]===!0}function oc(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function Ln(e){return(e.flags&1)===1}function Qe(e){return!!e.template}function Br(e){return(e[k]&512)!==0}function en(e){return(e[k]&256)===256}var ac="svg",Fg="math";function Le(e){for(;Array.isArray(e);)e=e[Ke];return e}function lc(e,t){return Le(t[e])}function ze(e,t){return Le(t[e.index])}function uc(e,t){return e.data[t]}function Fe(e,t){let n=t[e];return lt(n)?n:n[Ke]}function jg(e){return(e[k]&4)===4}function wo(e){return(e[k]&128)===128}function zg(e){return Je(e[ne])}function Zt(e,t){return t==null?null:e[t]}function cc(e){e[Nt]=0}function xo(e){e[k]&1024||(e[k]|=1024,wo(e)&&ci(e))}function Hg(e,t){for(;e>0;)t=t[Jt],e--;return t}function Tn(e){return!!(e[k]&9216||e[ve]?.dirty)}function vs(e){e[Ge].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),Tn(e)&&ci(e)}function ci(e){e[Ge].changeDetectionScheduler?.notify(0);let t=wt(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!wo(t)));)t=wt(t)}function dc(e,t){if(en(e))throw new _(911,!1);e[at]===null&&(e[at]=[]),e[at].push(t)}function Bg(e,t){if(e[at]===null)return;let n=e[at].indexOf(t);n!==-1&&e[at].splice(n,1)}function wt(e){let t=e[ne];return Je(t)?t[ne]:t}function hc(e){return e[Fr]??=[]}function pc(e){return e.cleanup??=[]}function Ug(e,t,n,r){let i=hc(t);i.push(n),e.firstCreatePass&&pc(e).push(r,i.length-1)}var E={lFrame:xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ys=!1;function $g(){return E.lFrame.elementDepthCount}function qg(){E.lFrame.elementDepthCount++}function fc(){E.lFrame.elementDepthCount--}function ko(){return E.bindingsEnabled}function Zg(){return E.skipHydrationRootTNode!==null}function gc(e){return E.skipHydrationRootTNode===e}function mc(){E.skipHydrationRootTNode=null}function L(){return E.lFrame.lView}function ee(){return E.lFrame.tView}function V(e){return E.lFrame.contextLView=e,e[le]}function N(e){return E.lFrame.contextLView=null,e}function oe(){let e=vc();for(;e!==null&&e.type===64;)e=e.parent;return e}function vc(){return E.lFrame.currentTNode}function Gg(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fn(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function yc(){return E.lFrame.isParent}function Wg(){E.lFrame.isParent=!1}function bc(){return ys}function Ra(e){let t=ys;return ys=e,t}function Qg(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yg(e){return E.lFrame.bindingIndex=e}function jn(){return E.lFrame.bindingIndex++}function Kg(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Jg(){return E.lFrame.inI18n}function Xg(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,bs(t)}function em(){return E.lFrame.currentDirectiveIndex}function bs(e){E.lFrame.currentDirectiveIndex=e}function tm(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cc(){return E.lFrame.currentQueryIndex}function So(e){E.lFrame.currentQueryIndex=e}function nm(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function _c(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=nm(s),!(i===null||(s=s[Jt],i.type&10))););if(i===null)return!1;t=i,e=s}let r=E.lFrame=wc();return r.currentTNode=t,r.lView=e,!0}function Oo(e){let t=wc(),n=e[w];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wc(){let e=E.lFrame,t=e===null?null:e.child;return t===null?xc(e):t}function xc(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 kc(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sc=kc;function Mo(){let e=kc();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 rm(e){return(E.lFrame.contextLView=Hg(e,E.lFrame.contextLView))[le]}function tn(){return E.lFrame.selectedIndex}function xt(e){E.lFrame.selectedIndex=e}function di(){let e=E.lFrame;return uc(e.tView,e.selectedIndex)}function im(){E.lFrame.currentNamespace=ac}function sm(){return E.lFrame.currentNamespace}var Oc=!0;function Eo(){return Oc}function hi(e){Oc=e}function La(e,t=null,n=null,r){let i=om(e,t,n,r);return i.resolveInjectorInitializers(),i}function om(e,t=null,n=null,r,i=new Set){let s=[n||me,Mg(e)];return r=r||(typeof e=="object"?void 0:Ht(e)),new Co(s,t||bo(),r||null,i)}var pi=class Mc{static THROW_IF_NOT_FOUND=vt;static NULL=new Ju;static create(t,n){if(Array.isArray(t))return La({name:""},n,t,"");{let r=t.name??"";return La({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:Mc,providedIn:"any",factory:()=>C(Yu)});static __NG_ELEMENT_ID__=-1},je=new S(""),To=(()=>{class e{static __NG_ELEMENT_ID__=lm;static __NG_ENV_ID__=n=>n}return e})(),am=class extends To{_lView;constructor(e){super(),this._lView=e}get destroyed(){return en(this._lView)}onDestroy(e){let t=this._lView;return dc(t,e),()=>Bg(t,e)}};function lm(){return new am(L())}var zn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ct=new S("",{providedIn:"root",factory:()=>{let e=v(Ze),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(zn),t.handleError(n))}}}),um={provide:Ut,useValue:()=>{v(zn)},multi:!0},cm=new S("",{providedIn:"root",factory:()=>{let e=v(je).defaultView;if(!e)return;let t=v(ct),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(),v(To).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function dm(){return li([Og(()=>{v(cm)})])}function hm(e){return typeof e=="function"&&e[Ve]!==void 0}function ae(e,t){let[n,r,i]=Zp(e,t?.equal),s=n,o=s[Ve];return s.set=r,s.update=i,s.asReadonly=pm.bind(s),s}function pm(){let e=this[Ve];if(e.readonlyFn===void 0){let t=()=>this();t[Ve]=e,e.readonlyFn=t}return e.readonlyFn}function Ec(e){return hm(e)&&typeof e.set=="function"}var Hn=class{},Po=new S("",{providedIn:"root",factory:()=>!1}),Tc=new S(""),Pc=new S(""),nn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new fu(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new J(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=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ic=(()=>{class e{internalPendingTasks=v(nn);scheduler=v(Hn);errorHandler=v(ct);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=O({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ur(...e){}var fm=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new gm})}return e})(),gm=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 fi(e){return{toString:e}.toString()}function mm(e){return typeof e=="function"}var vm=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ac(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var gi=(()=>{let e=()=>Dc;return e.ngInherit=!0,e})();function Dc(e){return e.type.prototype.ngOnChanges&&(e.setInput=bm),ym}function ym(){let e=Nc(this),t=e?.current;if(t){let n=e.previous;if(n===yt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bm(e,t,n,r,i){let s=this.declaredInputs[r],o=Nc(e)||Cm(e,{previous:yt,current:null}),a=o.current||(o.current={}),l=o.previous,u=l[s];a[s]=new vm(u&&u.currentValue,n,l===yt),Ac(e,t,i,n)}var Vc="__ngSimpleChanges__";function Nc(e){return e[Vc]||null}function Cm(e,t){return e[Vc]=t}var Fa=[],$=function(e,t=null,n){for(let r=0;r<Fa.length;r++){let i=Fa[r];i(e,t,n)}};function _m(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=Dc(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 Rc(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:a,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function pr(e,t,n){Lc(e,t,3,n)}function fr(e,t,n,r){(e[k]&3)===n&&Lc(e,t,n,r)}function zi(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function Lc(e,t,n,r){let i=r!==void 0?e[Nt]&65535:0,s=r??-1,o=t.length-1,a=0;for(let l=i;l<o;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Nt]+=65536),(a<s||s==-1)&&(wm(e,n,t,l),e[Nt]=(e[Nt]&4294901760)+l+2),l++}function ja(e,t){$(4,e,t);let n=P(null);try{t.call(e)}finally{P(n),$(5,e,t)}}function wm(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],a=e[o];i?e[k]>>14<e[Nt]>>16&&(e[k]&3)===t&&(e[k]+=16384,ja(a,s)):ja(a,s)}var Ft=-1,Bn=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 xm(e){return(e.flags&8)!==0}function km(e){return(e.flags&16)!==0}function Sm(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++],a=n[r++];e.setAttribute(t,o,a,s)}else{let s=i,o=n[++r];Mm(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function Om(e){return e===3||e===4||e===6}function Mm(e){return e.charCodeAt(0)===64}function Gt(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?za(e,n,i,null,t[++r]):za(e,n,i,null,null))}}return e}function za(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let a=e[s++];if(typeof a=="number"){if(a===t){o=-1;break}else if(a>t){o=s-1;break}}}for(;s<e.length;){let a=e[s];if(typeof a=="number")break;if(a===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 Fc(e){return e!==Ft}function $r(e){return e&32767}function Em(e){return e>>16}function qr(e,t){let n=Em(e),r=t;for(;n>0;)r=r[Jt],n--;return r}var Cs=!0;function Ha(e){let t=Cs;return Cs=e,t}var Tm=256,jc=Tm-1,zc=5,Pm=0,De={};function Im(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(r=n[vn]),r==null&&(r=n[vn]=Pm++);let i=r&jc,s=1<<i;t.data[e+(i>>zc)]|=s}function Zr(e,t){let n=Hc(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Hi(r.data,e),Hi(t,null),Hi(r.blueprint,null));let i=Io(e,t),s=e.injectorIndex;if(Fc(i)){let o=$r(i),a=qr(i,t),l=a[w].data;for(let u=0;u<8;u++)t[s+u]=a[o+u]|l[o+u]}return t[s+8]=i,s}function Hi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Hc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Io(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=Gc(i),r===null)return Ft;if(n++,i=i[Jt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ft}function _s(e,t,n){Im(e,t,n)}function Bc(e,t,n){if(n&8||e!==void 0)return e;go(t,"NodeInjector")}function Uc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[bt],s=ge(void 0);try{return i?i.get(t,r,n&8):Wu(t,r,n&8)}finally{ge(s)}}return Bc(r,t,n)}function $c(e,t,n,r=0,i){if(e!==null){if(t[k]&2048&&!(r&2)){let o=Nm(e,t,n,r,De);if(o!==De)return o}let s=qc(e,t,n,r,De);if(s!==De)return s}return Uc(t,n,r,i)}function qc(e,t,n,r,i){let s=Dm(n);if(typeof s=="function"){if(!_c(t,e,r))return r&1?Bc(i,n,r):Uc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))go(n);else return o}finally{Sc()}}else if(typeof s=="number"){let o=null,a=Hc(e,t),l=Ft,u=r&1?t[Re][Pe]:null;for((a===-1||r&4)&&(l=a===-1?Io(e,t):t[a+8],l===Ft||!Ua(r,!1)?a=-1:(o=t[w],a=$r(l),t=qr(l,t)));a!==-1;){let c=t[w];if(Ba(s,a,c.data)){let d=Am(a,t,n,o,r,u);if(d!==De)return d}l=t[a+8],l!==Ft&&Ua(r,t[w].data[a+8]===u)&&Ba(s,a,t)?(o=c,a=$r(l),t=qr(l,t)):a=-1}}return i}function Am(e,t,n,r,i,s){let o=t[w],a=o.data[e+8],l=r==null?Xt(a)&&Cs:r!=o&&(a.type&3)!==0,u=i&1&&s===a,c=gr(a,o,n,l,u);return c!==null?Pn(t,o,c,a,i):De}function gr(e,t,n,r,i){let s=e.providerIndexes,o=t.data,a=s&1048575,l=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?a:a+c,p=i?a+c:u;for(let h=d;h<p;h++){let g=o[h];if(h<l&&n===g||h>=l&&g.type===n)return h}if(i){let h=o[l];if(h&&Qe(h)&&h.type===n)return l}return null}function Pn(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Bn){let a=s;if(a.resolving){let h=cg(o[n]);throw qu(h)}let l=Ha(a.canSeeViewProviders);a.resolving=!0;let u=o[n].type||o[n],c,d=a.injectImpl?ge(a.injectImpl):null,p=_c(e,r,0);try{s=e[n]=a.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&_m(n,o[n],t)}finally{d!==null&&ge(d),Ha(l),a.resolving=!1,Sc()}}return s}function Dm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vn)?e[vn]:void 0;return typeof t=="number"?t>=0?t&jc:Vm:t}function Ba(e,t,n){let r=1<<e;return!!(n[t+(e>>zc)]&r)}function Ua(e,t){return!(e&2)&&!(e&1&&t)}var yn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return $c(this._tNode,this._lView,e,On(n),t)}};function Vm(){return new yn(oe(),L())}function Zc(e){return fi(()=>{let t=e.prototype.constructor,n=t[Nr]||ws(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Nr]||ws(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function ws(e){return Hu(e)?()=>{let t=ws(ie(e));return t&&t()}:Bt(e)}function Nm(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[k]&2048&&!Br(o);){let a=qc(s,o,n,r|2,De);if(a!==De)return a;let l=s.parent;if(!l){let u=o[ic];if(u){let c=u.get(n,De,r);if(c!==De)return c}l=Gc(o),o=o[Jt]}s=l}return i}function Gc(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function Rm(){return rn(oe(),L())}function rn(e,t){return new Et(ze(e,t))}var Et=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Rm}return e})();function Lm(e){return e instanceof Et?e.nativeElement:e}function Fm(){return this._results[Symbol.iterator]()}var jm=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 ut}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=_g(e);(this._changesDetected=!Cg(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]=Fm};function Wc(e){return(e.flags&128)===128}var Qc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Qc||{}),Yc=new Map,zm=0;function Hm(){return zm++}function Bm(e){Yc.set(e[ui],e)}function xs(e){Yc.delete(e[ui])}var $a="__ngContext__";function Wt(e,t){lt(t)?(e[$a]=t[ui],Bm(t)):e[$a]=t}function Kc(e){return Xc(e[En])}function Jc(e){return Xc(e[Me])}function Xc(e){for(;e!==null&&!Je(e);)e=e[Me];return e}var ks;function Um(e){ks=e}function ed(){if(ks!==void 0)return ks;if(typeof document<"u")return document;throw new _(210,!1)}var td=new S("",{providedIn:"root",factory:()=>$m}),$m="ng",nd=new S(""),Ao=new S("",{providedIn:"platform",factory:()=>"unknown"}),rd=new S("",{providedIn:"root",factory:()=>ed().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),qm="h",Zm="b",id=!1,Gm=new S("",{providedIn:"root",factory:()=>id}),Wm=(e,t,n,r)=>{};function Qm(e,t,n,r){Wm(e,t,n,r)}function sd(e){return(e.flags&32)===32}var Ym=()=>null;function od(e,t,n=!1){return Ym(e,t,n)}function ad(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 a=e.data[o];So(s),a.contentQueries(2,t[o],o)}}}finally{P(r)}}}function Ss(e,t,n){So(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Do(e,t,n){if(oc(t)){let r=P(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let a=e.data[o];if(a.contentQueries){let l=n[o];a.contentQueries(1,l,o)}}}finally{P(r)}}}var kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(kt||{}),Wn;function Km(){if(Wn===void 0&&(Wn=null,st.trustedTypes))try{Wn=st.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wn}function mi(e){return Km()?.createHTML(e)||e}var Qn;function Jm(){if(Qn===void 0&&(Qn=null,st.trustedTypes))try{Qn=st.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function qa(e){return Jm()?.createHTML(e)||e}var Tt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${zu})`}},Xm=class extends Tt{getTypeName(){return"HTML"}},ev=class extends Tt{getTypeName(){return"Style"}},tv=class extends Tt{getTypeName(){return"Script"}},nv=class extends Tt{getTypeName(){return"URL"}},rv=class extends Tt{getTypeName(){return"ResourceURL"}};function ft(e){return e instanceof Tt?e.changingThisBreaksApplicationSecurity:e}function Dt(e,t){let n=iv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${zu})`)}return n===t}function iv(e){return e instanceof Tt&&e.getTypeName()||null}function sv(e){return new Xm(e)}function ov(e){return new ev(e)}function av(e){return new tv(e)}function lv(e){return new nv(e)}function uv(e){return new rv(e)}function cv(e){let t=new hv(e);return pv()?new dv(t):t}var dv=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(mi(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},hv=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=mi(e),t}};function pv(){try{return!!new window.DOMParser().parseFromString(mi(""),"text/html")}catch{return!1}}var fv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ld(e){return e=String(e),e.match(fv)?e:"unsafe:"+e}function Xe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Un(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ud=Xe("area,br,col,hr,img,wbr"),cd=Xe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dd=Xe("rp,rt"),gv=Un(dd,cd),mv=Un(cd,Xe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),vv=Un(dd,Xe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Za=Un(ud,mv,vv,gv),hd=Xe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yv=Xe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bv=Xe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Cv=Un(hd,yv,bv),_v=Xe("script,style,template"),wv=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=Sv(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=kv(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ga(e).toLowerCase();if(!Za.hasOwnProperty(t))return this.sanitizedSomething=!0,!_v.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(!Cv.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let a=i.value;hd[o]&&(a=ld(a)),this.buf.push(" ",s,'="',Wa(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ga(e).toLowerCase();Za.hasOwnProperty(t)&&!ud.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Wa(e))}};function xv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw pd(t);return t}function Sv(e){let t=e.firstChild;if(t&&xv(e,t))throw pd(t);return t}function Ga(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function pd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mv=/([^\#-~ |!])/g;function Wa(e){return e.replace(/&/g,"&amp;").replace(Ov,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Mv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yn;function fd(e,t){let n=null;try{Yn=Yn||cv(e);let r=t?String(t):"";n=Yn.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=Yn.getInertBodyElement(r)}while(r!==s);let o=new wv().sanitizeChildren(Qa(n)||n);return mi(o)}finally{if(n){let r=Qa(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Qa(e){return"content"in e&&Ev(e)?e.content:null}function Ev(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Tv=/^>|^->|<!--|-->|--!>|<!-$/g,Pv=/(<|>)/g,Iv="\u200B$1\u200B";function Av(e){return e.replace(Tv,t=>t.replace(Pv,Iv))}function Dv(e,t){return e.createText(t)}function Vv(e,t,n){e.setValue(t,n)}function Nv(e,t){return e.createComment(Av(t))}function gd(e,t,n){return e.createElement(t,n)}function Gr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function md(e,t,n){e.appendChild(t,n)}function Ya(e,t,n,r,i){r!==null?Gr(e,t,n,r,i):md(e,t,n)}function Rv(e,t,n,r){e.removeChild(null,t,n,r)}function Lv(e,t,n){e.setAttribute(t,"style",n)}function Fv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function vd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&Sm(e,t,r),i!==null&&Fv(e,t,i),s!==null&&Lv(e,t,s)}var rt=(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})(rt||{});function yd(e){let t=jv();return t?qa(t.sanitize(rt.HTML,e)||""):Dt(e,"HTML")?qa(ft(e)):fd(ed(),ai(e))}function jv(){let e=L();return e&&e[Ge].sanitizer}function zv(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 bd="ng-template";function Hv(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&zv(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Vo(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 Vo(e){return e.type===4&&e.value!==bd}function Bv(e,t,n){let r=e.type===4&&!n?bd:e.value;return t===r}function Uv(e,t,n){let r=4,i=e.attrs,s=i!==null?Zv(i):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!xe(r)&&!xe(l))return!1;if(o&&xe(l))continue;o=!1,r=l|r&1;continue}if(!o)if(r&4){if(r=2|r&1,l!==""&&!Bv(e,l,n)||l===""&&t.length===1){if(xe(r))return!1;o=!0}}else if(r&8){if(i===null||!Hv(e,i,l,n)){if(xe(r))return!1;o=!0}}else{let u=t[++a],c=$v(l,i,Vo(e),n);if(c===-1){if(xe(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(xe(r))return!1;o=!0}}}}return xe(r)||o}function xe(e){return(e&1)===0}function $v(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 a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return Gv(t,e)}function qv(e,t,n=!1){for(let r=0;r<t.length;r++)if(Uv(e,t[r],n))return!0;return!1}function Zv(e){for(let t=0;t<e.length;t++){let n=e[t];if(Om(n))return t}return e.length}function Gv(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 Ka(e,t){return e?":not("+t.trim()+")":t}function Wv(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 a=e[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!xe(o)&&(t+=Ka(s,i),i=""),r=o,s=s||!xe(r);n++}return i!==""&&(t+=Ka(s,i)),t}function Qv(e){return e.map(Wv).join(",")}function Yv(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(!xe(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var dt={};function No(e,t,n,r,i,s,o,a,l,u,c){let d=he+r,p=d+i,h=Kv(d,p),g=typeof u=="function"?u():u;return h[w]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function Kv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:dt);return n}function Jv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=No(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ro(e,t,n,r,i,s,o,a,l,u,c){let d=t.blueprint.slice();return d[Ke]=i,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),cc(d),d[ne]=d[Jt]=e,d[le]=n,d[Ge]=o||e&&e[Ge],d[G]=a||e&&e[G],d[bt]=l||e&&e[bt]||null,d[Pe]=s,d[ui]=Hm(),d[Lr]=c,d[ic]=u,d[Re]=t.type==2?e[Re]:d,d}function Xv(e,t,n){let r=ze(t,e),i=Jv(n),s=e[Ge].rendererFactory,o=Lo(e,Ro(e,i,null,Cd(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function Cd(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function _d(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 Lo(e,t){return e[En]?e[Na][Me]=t:e[En]=t,e[Na]=t,t}function x(e=1){wd(ee(),L(),tn()+e,!1)}function wd(e,t,n,r){if(!r)if((t[k]&3)===3){let i=e.preOrderCheckHooks;i!==null&&pr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&fr(t,i,0,n)}xt(n)}var vi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(vi||{});function Os(e,t,n,r){let i=P(null);try{let[s,o,a]=e.inputs[n],l=null;(o&vi.SignalBased)!==0&&(l=t[s][Ve]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,s):Ac(t,l,s,r)}finally{P(i)}}var mt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(mt||{}),ey;function Fo(e,t){return ey(e,t)}var Wr=new Set,xd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(xd||{}),jo=new S(""),Ja=new Set;function kd(e){Ja.has(e)||(Ja.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sd=!1,ty=class extends ut{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Lg()&&(this.destroyRef=v(To,{optional:!0})??void 0,this.pendingTasks=v(nn,{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 a=e;r=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}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 Ne&&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)}})}}},F=ty;function Od(e){let t,n;function r(){e=Ur;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 Xa(e){return queueMicrotask(()=>e()),()=>{e=Ur}}var zo="isAngularZone",Qr=zo+"_ID",ny=0,se=class Ms{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new F(!1);onMicrotaskEmpty=new F(!1);onStable=new F(!1);onError=new F(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=Sd}=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,sy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zo)===!0}static assertInAngularZone(){if(!Ms.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(Ms.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,ry,Ur,Ur);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)}},ry={};function Ho(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 iy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Od(()=>{e.callbackScheduled=!1,Es(e),e.isCheckStableRunning=!0,Ho(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Es(e)}function sy(e){let t=()=>{iy(e)},n=ny++;e._inner=e._inner.fork({name:"angular",properties:{[zo]:!0,[Qr]:n,[Qr+n]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(ay(l))return r.invokeTask(s,o,a,l);try{return el(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),tl(e)}},onInvoke:(r,i,s,o,a,l,u)=>{try{return el(e),r.invoke(s,o,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ly(l)&&t(),tl(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Es(e),Ho(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 Es(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function el(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tl(e){e._nesting--,Ho(e)}var oy=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new F;onMicrotaskEmpty=new F;onStable=new F;onError=new F;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 ay(e){return Md(e,"__ignore_ng_zone__")}function ly(e){return Md(e,"__scheduler_tick__")}function Md(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var uy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),cy=new S("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Ed(e,t,n){let r=e.get(cy);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 dy(e,t){for(let[n,r]of t)Ed(e,r.animateFns)}function nl(e,t,n,r){let i=e?.[zr]?.enter;t!==null&&i&&i.has(n.index)&&dy(r,i)}function Rt(e,t,n,r,i,s,o,a){if(i!=null){let l,u=!1;Je(i)?l=i:lt(i)&&(u=!0,i=i[Ke]);let c=Le(i);e===0&&r!==null?(nl(a,r,s,n),o==null?md(t,r,c):Gr(t,r,c,o||null,!0)):e===1&&r!==null?(nl(a,r,s,n),Gr(t,r,c,o||null,!0)):e===2?rl(a,s,n,d=>{Rv(t,c,u,d)}):e===3&&rl(a,s,n,()=>{t.destroyNode(c)}),l!=null&&ky(t,e,n,l,s,r,o)}}function hy(e,t){Td(e,t),t[Ke]=null,t[Pe]=null}function py(e,t,n,r,i,s){r[Ke]=i,r[Pe]=t,yi(e,r,n,1,i,s)}function Td(e,t){t[Ge].changeDetectionScheduler?.notify(9),yi(e,t,t[G],2,null,null)}function fy(e){let t=e[En];if(!t)return Bi(e[w],e);for(;t;){let n=null;if(lt(t))n=t[En];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)lt(t)&&Bi(t[w],t),t=t[ne];t===null&&(t=e),lt(t)&&Bi(t[w],t),n=t&&t[Me]}t=n}}function Bo(e,t){let n=e[qt],r=n.indexOf(t);n.splice(r,1)}function Pd(e,t){if(en(t))return;let n=t[G];n.destroyNode&&yi(e,t,n,3,null,null),fy(t)}function Bi(e,t){if(en(t))return;let n=P(null);try{t[k]&=-129,t[k]|=256,t[ve]&&iu(t[ve]),vy(e,t),my(e,t),t[w].type===1&&t[G].destroy();let r=t[Ct];if(r!==null&&Je(t[ne])){r!==t[ne]&&Bo(r,t);let i=t[We];i!==null&&i.detachView(e)}xs(t)}finally{P(n)}}function rl(e,t,n,r){let i=e?.[zr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&Wr.add(e),Ed(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let a=0;a<s.animateFns.length;a++){let l=s.animateFns[a],{promise:u}=l();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),gy(e,r)}else e&&Wr.delete(e),r(!1)},i)}function gy(e,t){let n=e[zr]?.running;if(n){n.then(()=>{e[zr].running=void 0,Wr.delete(e),t(!0)});return}t(!1)}function my(e,t){let n=e.cleanup,r=t[Fr];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let a=n[o+3];a>=0?r[a]():r[-a].unsubscribe(),o+=2}else{let a=r[n[o+1]];n[o].call(a)}r!==null&&(t[Fr]=null);let i=t[at];if(i!==null){t[at]=null;for(let o=0;o<i.length;o++){let a=i[o];a()}}let s=t[jr];if(s!==null){t[jr]=null;for(let o of s)o.destroy()}}function vy(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 Bn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=i[s[o]],l=s[o+1];$(4,a,l);try{l.call(a)}finally{$(5,a,l)}}else{$(4,i,s);try{s.call(i)}finally{$(5,i,s)}}}}}function yy(e,t,n){return by(e,t.parent,n)}function by(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ke];if(Xt(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===kt.None||i===kt.Emulated)return null}return ze(r,n)}function Cy(e,t,n){return wy(e,t,n)}function _y(e,t,n){return e.type&40?ze(e,n):null}var wy=_y,il;function Uo(e,t,n,r){let i=yy(e,r,t),s=t[G],o=r.parent||t[Pe],a=Cy(o,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Ya(s,i,n[l],a,!1);else Ya(s,i,n,a,!1);il!==void 0&&il(s,r,t,n,i)}function gn(e,t){if(t!==null){let n=t.type;if(n&3)return ze(t,e);if(n&4)return Ts(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gn(e,r);{let i=e[t.index];return Je(i)?Ts(-1,i):Le(i)}}else{if(n&128)return gn(e,t.next);if(n&32)return Fo(t,e)()||Le(e[t.index]);{let r=Id(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=wt(e[Re]);return gn(i,r)}else return gn(e,t.next)}}}return null}function Id(e,t){if(t!==null){let n=e[Re][Pe],r=t.projection;return n.projection[r]}return null}function Ts(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],i=r[w].firstChild;if(i!==null)return gn(r,i)}return t[_t]}function $o(e,t,n,r,i,s,o){for(;n!=null;){let a=r[bt];if(n.type===128){n=n.next;continue}let l=r[n.index],u=n.type;if(o&&t===0&&(l&&Wt(Le(l),r),n.flags|=2),!sd(n))if(u&8)$o(e,t,n.child,r,i,s,!1),Rt(t,e,a,i,l,n,s,r);else if(u&32){let c=Fo(n,r),d;for(;d=c();)Rt(t,e,a,i,d,n,s,r);Rt(t,e,a,i,l,n,s,r)}else u&16?xy(e,t,r,n,i,s):Rt(t,e,a,i,l,n,s,r);n=o?n.projectionNext:n.next}}function yi(e,t,n,r,i,s){$o(n,r,e.firstChild,t,i,s,!1)}function xy(e,t,n,r,i,s){let o=n[Re],a=o[Pe].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];Rt(t,e,n[bt],i,u,r,s,n)}else{let l=a,u=o[ne];Wc(r)&&(l.flags|=128),$o(e,t,l,u,i,s,!0)}}function ky(e,t,n,r,i,s,o){let a=r[_t],l=Le(r);a!==l&&Rt(t,e,n,s,a,i,o);for(let u=ce;u<r.length;u++){let c=r[u];yi(c[w],c,e,t,s,a)}}function Sy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:mt.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=mt.Important),e.setStyle(n,r,i,s))}}function Ad(e,t,n,r,i){let s=tn(),o=r&2;try{xt(-1),o&&t.length>he&&wd(e,t,he,!1),$(o?2:0,i,n),n(r,i)}finally{xt(s),$(o?3:1,i,n)}}function bi(e,t,n){Iy(e,t,n),(n.flags&64)===64&&Ay(e,t,n)}function Ci(e,t,n=ze){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],a=o===-1?n(t,e):e[o];e[i++]=a}}}function Oy(e,t,n,r){let i=r.get(Gm,id)||n===kt.ShadowDom,s=e.selectRootElement(t,i);return My(s),s}function My(e){Ey(e)}var Ey=()=>null;function Ty(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dd(e,t,n,r,i,s){let o=t[w];if(Wo(e,o,t,n,r)){Xt(e)&&Py(t,e.index);return}e.type&3&&(n=Ty(n)),Vd(e,t,n,r,i,s)}function Vd(e,t,n,r,i,s){if(e.type&3){let o=ze(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function Py(e,t){let n=Fe(t,e);n[k]&16||(n[k]|=64)}function Iy(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Xt(n)&&Xv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Zr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let a=e.data[o],l=Pn(t,e,o,n);if(Wt(l,t),s!==null&&Ry(t,o-r,l,a,n,s),Qe(a)){let u=Fe(n.index,t);u[le]=Pn(t,e,o,n)}}}function Ay(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=em();try{xt(s);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];bs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Dy(l,u)}}finally{xt(-1),bs(o)}}function Dy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qo(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];qv(t,s.selectors,!1)&&(r??=[],Qe(s)?r.unshift(s):r.push(s))}return r}function Vy(e,t,n,r,i,s){let o=ze(e,t);Ny(t[G],o,s,e.value,n,r,i)}function Ny(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let a=o==null?ai(s):o(s,r||"",i);e.setAttribute(t,i,a,n)}}function Ry(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let a=0;a<o.length;a+=2){let l=o[a],u=o[a+1];Os(r,n,l,u)}}function Zo(e,t,n,r,i){let s=he+n,o=t[w],a=i(o,t,e,r,n);t[s]=a,Fn(e,!0);let l=e.type===2;return l?(vd(t[G],a,e),($g()===0||Ln(e))&&Wt(a,t),qg()):Wt(a,t),Eo()&&(!l||!sd(e))&&Uo(o,t,a,e),e}function Go(e){let t=e;return yc()?Wg():(t=t.parent,Fn(t,!1)),t}function Ly(e,t){let n=e[bt];if(!n)return;let r;try{r=n.get(ct,null)}catch{r=null}r?.(t)}function Wo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],a=!1;if(o)for(let l=0;l<o.length;l+=2){let u=o[l],c=o[l+1],d=t.data[u];Os(d,n[u],c,i),a=!0}if(s)for(let l of s){let u=n[l],c=t.data[l];Os(c,u,r,i),a=!0}return a}function Fy(e,t){let n=Fe(t,e),r=n[w];jy(r,n);let i=n[Ke];i!==null&&n[Lr]===null&&(n[Lr]=od(i,n[bt])),$(18),Qo(r,n,n[le]),$(19,n[le])}function jy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Qo(e,t,n){Oo(t);try{let r=e.viewQuery;r!==null&&Ss(1,r,n);let i=e.template;i!==null&&Ad(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[We]?.finishViewCreation(e),e.staticContentQueries&&ad(e,t),e.staticViewQueries&&Ss(2,e.viewQuery,n);let s=e.components;s!==null&&zy(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Mo()}}function zy(e,t){for(let n=0;n<t.length;n++)Fy(e,t[n])}function Hy(e,t,n,r){let i=P(null);try{let s=t.tView,o=e[k]&4096?4096:16,a=Ro(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Ct]=l;let u=e[We];return u!==null&&(a[We]=u.createEmbeddedView(s)),Qo(s,a,n),a}finally{P(i)}}function sl(e,t){return!t||t.firstChild===null||Wc(e)}function Yr(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(Le(s)),Je(s)&&By(s,r);let o=n.type;if(o&8)Yr(e,t,n.child,r);else if(o&32){let a=Fo(n,t),l;for(;l=a();)r.push(l)}else if(o&16){let a=Id(t,n);if(Array.isArray(a))r.push(...a);else{let l=wt(t[Re]);Yr(l[w],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function By(e,t){for(let n=ce;n<e.length;n++){let r=e[n],i=r[w].firstChild;i!==null&&Yr(r[w],r,i,t)}e[_t]!==e[Ke]&&t.push(e[_t])}function Nd(e){if(e[ji]!==null){for(let t of e[ji])t.impl.addSequence(t);e[ji].length=0}}var Rd=[];function Uy(e){return e[ve]??$y(e)}function $y(e){let t=Rd.pop()??Object.create(Zy);return t.lView=e,t}function qy(e){e.lView[ve]!==e&&(e.lView=null,Rd.push(e))}var Zy=D(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ci(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Gy(e){let t=e[ve]??Object.create(Wy);return t.lView=e,t}var Wy=D(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=wt(e.lView);for(;t&&!Ld(t[w]);)t=wt(t);t&&xo(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Ld(e){return e.type!==2}function Fd(e){if(e[jr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[jr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[k]&8192)}}var Qy=100;function jd(e,t=0){let n=e[Ge].rendererFactory,r=!1;r||n.begin?.();try{Yy(e,t)}finally{r||n.end?.()}}function Yy(e,t){let n=bc();try{Ra(!0),Ps(e,t);let r=0;for(;Tn(e);){if(r===Qy)throw new _(103,!1);r++,Ps(e,1)}}finally{Ra(n)}}function Ky(e,t,n,r){if(en(t))return;let i=t[k],s=!1,o=!1;Oo(t);let a=!0,l=null,u=null;s||(Ld(e)?(u=Uy(t),l=us(u)):Np()===null?(a=!1,u=Gy(t),l=us(u)):t[ve]&&(iu(t[ve]),t[ve]=null));try{cc(t),Yg(e.bindingStartIndex),n!==null&&Ad(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&pr(t,h,null)}else{let h=e.preOrderHooks;h!==null&&fr(t,h,0,null),zi(t,0)}if(o||Jy(t),Fd(t),zd(t,0),e.contentQueries!==null&&ad(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&pr(t,h)}else{let h=e.contentHooks;h!==null&&fr(t,h,1),zi(t,1)}e0(e,t);let d=e.components;d!==null&&Bd(t,d,0);let p=e.viewQuery;if(p!==null&&Ss(2,p,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&pr(t,h)}else{let h=e.viewHooks;h!==null&&fr(t,h,2),zi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fi]){for(let h of t[Fi])h();t[Fi]=null}s||(Nd(t),t[k]&=-73)}catch(c){throw s||ci(t),c}finally{u!==null&&(nu(u,l),a&&qy(u)),Mo()}}function zd(e,t){for(let n=Kc(e);n!==null;n=Jc(n))for(let r=ce;r<n.length;r++){let i=n[r];Hd(i,t)}}function Jy(e){for(let t=Kc(e);t!==null;t=Jc(t)){if(!(t[k]&2))continue;let n=t[qt];for(let r=0;r<n.length;r++){let i=n[r];xo(i)}}}function Xy(e,t,n){$(18);let r=Fe(t,e);Hd(r,n),$(19,r[le])}function Hd(e,t){wo(e)&&Ps(e,t)}function Ps(e,t){let n=e[w],r=e[k],i=e[ve],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&ru(i)),s||=!1,i&&(i.dirty=!1),e[k]&=-9217,s)Ky(n,e,n.template,e[le]);else if(r&8192){let o=P(null);try{Fd(e),zd(e,1);let a=n.components;a!==null&&Bd(e,a,1),Nd(e)}finally{P(o)}}}function Bd(e,t,n){for(let r=0;r<t.length;r++)Xy(e,t[r],n)}function e0(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)xt(~i);else{let s=i,o=n[++r],a=n[++r];Xg(o,s);let l=t[s];$(24,l),a(2,l),$(25,l)}}}finally{xt(-1)}}function Yo(e,t){let n=bc()?64:1088;for(e[Ge].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=wt(e);if(Br(e)&&!r)return e;e=r}return null}function Ud(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function t0(e,t,n,r=!0){let i=t[w];if(n0(i,t,e,n),r){let o=Ts(n,e),a=t[G],l=a.parentNode(e[_t]);l!==null&&py(i,e[Pe],a,t,l,o)}let s=t[Lr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Is(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let i=r[Ct];i!==null&&i!==e&&Bo(i,r),t>0&&(e[n-1][Me]=r[Me]);let s=Rr(e,ce+t);hy(r[w],r);let o=s[We];o!==null&&o.detachView(s[w]),r[ne]=null,r[Me]=null,r[k]&=-129}return r}function n0(e,t,n,r){let i=ce+r,s=n.length;r>0&&(n[i-1][Me]=t),r<s-ce?(t[Me]=n[i],Qu(n,ce+r,t)):(n.push(t),t[Me]=null),t[ne]=n;let o=t[Ct];o!==null&&n!==o&&$d(o,t);let a=t[We];a!==null&&a.insertView(e),vs(t),t[k]|=128}function $d(e,t){let n=e[qt],r=t[ne];if(lt(r))e[k]|=2;else{let i=r[ne][Re];t[Re]!==i&&(e[k]|=2)}n===null?e[qt]=[t]:n.push(t)}var In=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[w];return Yr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[le]}set context(e){this._lView[le]=e}get destroyed(){return en(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(Je(e)){let t=e[Hr],n=t?t.indexOf(this):-1;n>-1&&(Is(e,n),Rr(t,n))}this._attachedToViewContainer=!1}Pd(this._lView[w],this._lView)}onDestroy(e){dc(this._lView,e)}markForCheck(){Yo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){vs(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,jd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Br(this._lView),t=this._lView[Ct];t!==null&&!e&&Bo(t,this._lView),Td(this._lView[w],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=e;let t=Br(this._lView),n=this._lView[Ct];n!==null&&!t&&$d(n,this._lView),vs(this._lView)}};function r0(e){return Tn(e._lView)||!!(e._lView[k]&64)}function i0(e){xo(e._lView)}var St=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=s0;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=Hy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new In(s)}}return e})();function s0(){return Ko(oe(),L())}function Ko(e,t){return e.type&4?new St(t,e,rn(e,t)):null}function _i(e,t,n,r,i){let s=e.data[t];if(s===null)s=o0(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=Gg();s.injectorIndex=o===null?-1:o.injectorIndex}return Fn(s,!0),s}function o0(e,t,n,r,i){let s=vc(),o=yc(),a=o?s:s&&s.parent,l=e.data[t]=l0(e,a,n,t,r,i);return a0(e,l,s,o),l}function a0(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 l0(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,a=0;return Zg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,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 rx=new RegExp(`^(\\d+)*(${Zm}|${qm})*(.*)`),u0=()=>null;function ol(e,t){return u0(e,t)}var c0=class{},qd=class{},d0=class{resolveComponentFactory(e){throw new _(917,!1)}},$n=class{static NULL=new d0},Jo=class{},Xo=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>h0()}return e})();function h0(){let e=L(),t=oe(),n=Fe(t.index,e);return(lt(n)?n:e)[G]}var p0=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})(),Ui={},f0=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Ui,n);return r!==Ui||t===Ui?r:this.parentInjector.get(e,t,n)}};function Kr(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 a=t[o];if(typeof a=="number")s=a;else if(s==1)i=Pa(i,a);else if(s==2){let l=a,u=t[++o];r=Pa(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function j(e,t=0){let n=L();if(n===null)return C(e,t);let r=oe();return $c(r,n,ie(e),t)}function Zd(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let a=o,l=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[a,l,u]=c.resolveHostDirectives(o);break}v0(e,t,n,a,s,l,u)}s!==null&&r!==null&&g0(n,r,s)}function g0(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 m0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function v0(e,t,n,r,i,s,o){let a=r.length,l=!1;for(let p=0;p<a;p++){let h=r[p];!l&&Qe(h)&&(l=!0,m0(e,n,p)),_s(Zr(n,t),e,h.type)}x0(n,e.data.length,a);for(let p=0;p<a;p++){let h=r[p];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=_d(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let h=r[p];if(n.mergedAttrs=Gt(n.mergedAttrs,h.hostAttrs),b0(e,n,t,d,h),w0(d,h,i),o!==null&&o.has(h)){let[m,b]=o.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,b+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++}y0(e,n,s)}function y0(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))al(0,t,i,r),al(1,t,i,r),ul(t,r,!1);else{let s=n.get(i);ll(0,t,s,r),ll(1,t,s,r),ul(t,r,!0)}}}function al(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),Gd(t,s)}}function ll(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],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[o]??=[],a[o].push(r,s),Gd(t,o)}}function Gd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ul(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||Vo(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let c of u)if(c===t){o??=[],o.push(l,r[a+1]);break}}else if(n&&s.hasOwnProperty(l)){let u=s[l];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(o)}function b0(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Bt(i.type,!0)),o=new Bn(s,Qe(i),j,null);e.blueprint[r]=o,n[r]=o,C0(e,t,r,_d(e,n,i.hostVars,dt),i)}function C0(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;_0(o)!=a&&o.push(a),o.push(n,r,s)}}function _0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function w0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qe(t)&&(n[""]=e)}}function x0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ea(e,t,n,r,i,s,o,a){let l=t[w],u=l.consts,c=Zt(u,o),d=_i(l,e,n,r,c);return s&&Zd(l,t,d,Zt(u,a),i),d.mergedAttrs=Gt(d.mergedAttrs,d.attrs),d.attrs!==null&&Kr(d,d.attrs,!1),d.mergedAttrs!==null&&Kr(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function ta(e,t){Rc(e,t),oc(t)&&e.queries.elementEnd(t)}function k0(e,t,n,r,i,s){let o=t.consts,a=Zt(o,i),l=_i(t,e,n,r,a);if(l.mergedAttrs=Gt(l.mergedAttrs,l.attrs),s!=null){let u=Zt(o,s);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&Kr(l,l.attrs,!1),l.mergedAttrs!==null&&Kr(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Wd(e){return O0(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function S0(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 O0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function M0(e,t,n){return e[t]=n}function Pt(e,t,n){if(n===dt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function mr(e,t,n){return function r(i){let s=Xt(e)?Fe(e.index,t):t;Yo(s,5);let o=t[le],a=cl(t,o,n,i),l=r.__ngNextListenerFn__;for(;l;)a=cl(t,o,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function cl(e,t,n,r){let i=P(null);try{return $(6,t,n),n(r)!==!1}catch(s){return Ly(e,s),!1}finally{$(7,t,n),P(i)}}function Qd(e,t,n,r,i,s,o,a){let l=Ln(e),u=!1,c=null;if(!r&&l&&(c=T0(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=ze(e,n),p=r?r(d):d;Qm(n,p,s,a);let h=i.listen(p,s,a);if(!E0(s)){let g=r?m=>r(Le(m[e.index])):e.index;Yd(g,t,n,s,a,h,!1)}}return u}function E0(e){return e.startsWith("animation")||e.startsWith("transition")}function T0(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 a=t[Fr],l=i[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function Yd(e,t,n,r,i,s,o){let a=t.firstCreatePass?pc(t):null,l=hc(n),u=l.length;l.push(i,s),a&&a.push(r,e,u,(u+1)*(o?-1:1))}function dl(e,t,n,r,i,s){let o=t[n],a=t[w],l=a.data[n].outputs[r],u=o[l].subscribe(s);Yd(e.index,a,t,i,s,u,!0)}var As=Symbol("BINDING"),P0=class extends $n{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Mn(e);return new Kd(t,this.ngModule)}};function I0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&vi.SignalBased)!==0};return i&&(s.transform=i),s})}function A0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function D0(e,t,n){let r=t instanceof Ze?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new f0(n,r):n}function V0(e){let t=e.get(Jo,null);if(t===null)throw new _(407,!1);let n=e.get(p0,null),r=e.get(Hn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function N0(e,t){let n=R0(e);return gd(t,n,n==="svg"?ac:n==="math"?Fg:null)}function R0(e){return(e.selectors[0][0]||"div").toLowerCase()}var Kd=class extends qd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=A0(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Qv(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){$(22);let o=P(null);try{let a=this.componentDef,l=L0(n,a,s,i),u=D0(a,r||this.ngModule,e),c=V0(u),d=c.rendererFactory.createRenderer(null,a),p=n?Oy(d,n,a.encapsulation,u):N0(a,d),h=s?.some(hl)||i?.some(b=>typeof b!="function"&&b.bindings.some(hl)),g=Ro(null,l,null,512|Cd(a),null,null,c,d,u,null,od(p,u,!0));g[he]=p,Oo(g);let m=null;try{let b=ea(he,g,2,"#host",()=>l.directiveRegistry,!0,0);vd(d,p,b),Wt(p,g),bi(l,g,b),Do(l,b,g),ta(l,b),t!==void 0&&z0(b,this.ngContentSelectors,t),m=Fe(b.index,g),g[le]=m[le],Qo(l,g,null)}catch(b){throw m!==null&&xs(m),xs(g),b}finally{$(23),Mo()}return new j0(this.componentType,g,!!h)}finally{P(o)}}};function L0(e,t,n,r){let i=e?["ng-version","20.3.15"]:Yv(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[As].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){a+=d[As].requiredVars;let p=u+1;d.create&&(d.targetIdx=p,(s??=[]).push(d)),d.update&&(d.targetIdx=p,(o??=[]).push(d))}}let l=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=Xu(c);l.push(d)}return No(0,null,F0(s,o),1,a,l,null,null,null,[i],null)}function F0(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 hl(e){let t=e[As].kind;return t==="input"||t==="twoWay"}var j0=class extends c0{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=uc(t[w],he),this.location=rn(this._tNode,t),this.instance=Fe(this._tNode.index,t)[le],this.hostView=this.changeDetectorRef=new In(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=Wo(n,r[w],r,e,t);this.previousInputValues.set(e,t);let s=Fe(n.index,r);Yo(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function z0(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 sn=(()=>{class e{static __NG_ELEMENT_ID__=H0}return e})();function H0(){let e=oe();return Xd(e,L())}var B0=sn,Jd=class extends B0{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return rn(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Io(this._hostTNode,this._hostLView);if(Fc(e)){let t=qr(e,this._hostLView),n=$r(e),r=t[w].data[n+8];return new yn(r,t)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=pl(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=ol(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,sl(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let a=e&&!mm(e),l;if(a)l=t;else{let m=t||{};l=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef,s=m.directives,o=m.bindings}let u=a?e:new Kd(Mn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let m=(a?c:this.parentInjector).get(Ze,null);m&&(i=m)}let d=Mn(u.componentType??{}),p=ol(this._lContainer,d?.id??null),h=p?.firstChild??null,g=u.create(c,r,h,i,s,o);return this.insertImpl(g.hostView,l,sl(this._hostTNode,p)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(zg(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let a=r[ne],l=new Jd(a,a[Pe],a[ne]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return t0(s,r,i,n),e.attachToViewContainerRef(),Qu($i(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=pl(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Is(this._lContainer,t);n&&(Rr($i(this._lContainer),t),Pd(n[w],n))}detach(e){let t=this._adjustIndex(e,-1),n=Is(this._lContainer,t);return n&&Rr($i(this._lContainer),t)!=null?new In(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function pl(e){return e[Hr]}function $i(e){return e[Hr]||(e[Hr]=[])}function Xd(e,t){let n,r=t[e.index];return Je(r)?n=r:(n=Ud(r,t,null,e),t[e.index]=n,Lo(t,n)),$0(n,t,e,r),new Jd(n,e,t)}function U0(e,t){let n=e[G],r=n.createComment(""),i=ze(t,e),s=n.parentNode(i);return Gr(n,s,r,n.nextSibling(i),!1),r}var $0=G0,q0=()=>!1;function Z0(e,t,n){return q0(e,t,n)}function G0(e,t,n,r){if(e[_t])return;let i;n.type&8?i=Le(r):i=U0(t,n),e[_t]=i}var W0=class eh{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new eh(this.queryList)}setDirty(){this.queryList.setDirty()}},Q0=class th{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),a=this.queries[o.indexInDeclarationView];i.push(a.clone())}return new th(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++)na(t,n).matches!==null&&this.queries[n].setDirty()}},Y0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=o1(e):this.predicate=e}},K0=class nh{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 nh(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)}},J0=class rh{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 rh(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,X0(n,s)),this.matchTNodeWithReadOption(t,n,gr(n,t,s,!1,!1))}else r===St?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,gr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Et||i===sn||i===St&&n.type&4)this.addMatch(n.index,-2);else{let s=gr(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 X0(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 e1(e,t){return e.type&11?rn(e,t):e.type&4?Ko(e,t):null}function t1(e,t,n,r){return n===-1?e1(t,e):n===-2?n1(e,t,r):Pn(e,e[w],n,t)}function n1(e,t,n){if(n===Et)return rn(t,e);if(n===St)return Ko(t,e);if(n===sn)return Xd(t,e)}function ih(e,t,n,r){let i=t[We].queries[r];if(i.matches===null){let s=e.data,o=n.matches,a=[];for(let l=0;o!==null&&l<o.length;l+=2){let u=o[l];if(u<0)a.push(null);else{let c=s[u];a.push(t1(t,c,o[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Ds(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=ih(e,t,i,n);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)r.push(o[a/2]);else{let u=s[a+1],c=t[-l];for(let d=ce;d<c.length;d++){let p=c[d];p[Ct]===p[ne]&&Ds(p[w],p,u,r)}if(c[qt]!==null){let d=c[qt];for(let p=0;p<d.length;p++){let h=d[p];Ds(h[w],h,u,r)}}}}}return r}function r1(e,t){return e[We].queries[t].queryList}function i1(e,t,n){let r=new jm((n&4)===4);return Ug(e,t,r,r.destroy),(t[We]??=new Q0).queries.push(new W0(r))-1}function s1(e,t,n){let r=ee();return r.firstCreatePass&&(a1(r,new Y0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),i1(r,L(),t)}function o1(e){return e.split(",").map(t=>t.trim())}function a1(e,t,n){e.queries===null&&(e.queries=new K0),e.queries.track(new J0(t,n))}function na(e,t){return e.queries.getByIndex(t)}function l1(e,t){let n=e[w],r=na(n,t);return r.crossesNgTemplate?Ds(n,e,t,[]):ih(n,e,r,t)}var Vs=class{},sh=class extends Vs{injector;componentFactoryResolver=new P0(this);instance=null;constructor(e){super();let t=new Co([...e.providers,{provide:Vs,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],e.parent||bo(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function u1(e,t,n=null){return new sh({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var c1=(()=>{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=ec(!1,n.type),i=r.length>0?u1([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=O({token:e,providedIn:"environment",factory:()=>new e(C(Ze))})}return e})();function Ie(e){return fi(()=>{let t=oh(e),n=D(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(c1).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&kd("NgStandalone"),ah(n);let r=e.dependencies;return n.directiveDefs=fl(r,d1),n.pipeDefs=fl(r,Sg),n.id=g1(n),n})}function d1(e){return Mn(e)||Xu(e)}function wi(e){return fi(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function h1(e,t){if(e==null)return yt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,a,l;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s,l=i[3]||null):(s=i,o=i,a=vi.None,l=null),n[s]=[r,a,l],t[s]=o}return n}function p1(e){if(e==null)return yt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ce(e){return fi(()=>{let t=oh(e);return ah(t),t})}function f1(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 oh(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||yt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:h1(e.inputs,t),outputs:p1(e.outputs),debugInfo:null}}function ah(e){e.features?.forEach(t=>t(e))}function fl(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 g1(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 m1(e){return Object.getPrototypeOf(e.prototype).constructor}function on(e){let t=m1(e.type),n=!0,r=[e];for(;t;){let i;if(Qe(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=qi(e.inputs),o.declaredInputs=qi(e.declaredInputs),o.outputs=qi(e.outputs);let a=i.hostBindings;a&&_1(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&b1(e,l),u&&C1(e,u),v1(e,i),rg(e.outputs,i.outputs),Qe(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 a=s[o];a&&a.ngInherit&&a(e),a===on&&(n=!1)}}t=Object.getPrototypeOf(t)}y1(r)}function v1(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 y1(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=Gt(i.hostAttrs,n=Gt(n,i.hostAttrs))}}function qi(e){return e===yt?{}:e===me?[]:e}function b1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function C1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function _1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function w1(e,t,n,r,i,s,o,a){if(n.firstCreatePass){e.mergedAttrs=Gt(e.mergedAttrs,e.attrs);let c=e.tView=No(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))}a&&(e.flags|=a),Fn(e,!1);let l=k1(n,t,e,r);Eo()&&Uo(n,t,l,e),Wt(l,t);let u=Ud(l,t,l,e);t[r+he]=u,Lo(t,u),Z0(u,e,t)}function x1(e,t,n,r,i,s,o,a,l,u,c){let d=n+he,p;return t.firstCreatePass?(p=_i(t,d,4,o||null,a||null),ko()&&Zd(t,e,p,Zt(t.consts,u),qo),Rc(t,p)):p=t.data[d],w1(p,e,t,n,r,i,s,l),Ln(p)&&bi(t,e,p),u!=null&&Ci(e,p,c),p}function fe(e,t,n,r,i,s,o,a){let l=L(),u=ee(),c=Zt(u.consts,s);return x1(l,u,e,t,n,r,i,c,void 0,o,a),fe}var k1=S1;function S1(e,t,n,r){return hi(!0),t[G].createComment("")}var O1=new S("");function ra(e){return!!e&&typeof e.then=="function"}function M1(e){return!!e&&typeof e.subscribe=="function"}var lh=new S(""),uh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(lh,{optional:!0})??[];injector=v(pi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=_o(this.injector,i);if(ra(s))n.push(s);else if(M1(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),E1=new S("");function T1(){$p(()=>{let e="";throw new _(600,e)})}function P1(e){return e.isBoundToModule}var I1=10,An=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(ct);afterRenderManager=v(uy);zonelessEnabled=v(Po);rootEffectScheduler=v(fm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ut;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(nn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Oe(n=>!n))}constructor(){v(jo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(Ze);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=pi.NULL){return this._injector.get(se).run(()=>{$(10);let s=n instanceof qd;if(!this._injector.get(uh).done){let p="";throw new _(405,p)}let o;s?o=n:o=this._injector.get($n).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let a=P1(o)?void 0:this._injector.get(Vs),l=r||o.selector,u=o.create(i,[],l,a),c=u.location.nativeElement,d=u.injector.get(O1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),vr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),$(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){$(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(xd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(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(),$(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Jo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<I1;)$(14),this.synchronizeOnce(),$(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&&!Tn(i))continue;let s=r&&!this.zonelessEnabled?0:1;jd(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})=>Tn(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;vr(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(E1,[]).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),()=>vr(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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ia(e,t,n,r){let i=L(),s=jn();if(Pt(i,s,t)){let o=ee(),a=di();Vy(a,i,e,t,n,r)}return ia}var ix=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function A(e,t,n){let r=L(),i=jn();if(Pt(r,i,t)){let s=ee(),o=di();Dd(o,r,e,t,r[G],n)}return A}function gl(e,t,n,r,i){Wo(t,e,n,i?"class":"style",r)}function f(e,t,n,r){let i=L(),s=i[w],o=e+he,a=s.firstCreatePass?ea(o,i,2,t,qo,ko(),n,r):s.data[o];if(Zo(a,i,e,t,dh),Ln(a)){let l=i[w];bi(l,i,a),Do(l,a,i)}return r!=null&&Ci(i,a),f}function y(){let e=ee(),t=oe(),n=Go(t);return e.firstCreatePass&&ta(e,n),gc(n)&&mc(),fc(),n.classesWithoutHost!=null&&xm(n)&&gl(e,n,L(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&km(n)&&gl(e,n,L(),n.stylesWithoutHost,!1),y}function q(e,t,n,r){return f(e,t,n,r),y(),q}function sa(e,t,n,r){let i=L(),s=i[w],o=e+he,a=s.firstCreatePass?k0(o,s,2,t,n,r):s.data[o];return Zo(a,i,e,t,dh),r!=null&&Ci(i,a),sa}function oa(){let e=oe(),t=Go(e);return gc(t)&&mc(),fc(),oa}function ch(e,t,n,r){return sa(e,t,n,r),oa(),ch}var dh=(e,t,n,r,i)=>(hi(!0),gd(t[G],r,sm()));function hh(e,t,n){let r=L(),i=r[w],s=e+he,o=i.firstCreatePass?ea(s,r,8,"ng-container",qo,ko(),t,n):i.data[s];if(Zo(o,r,e,"ng-container",A1),Ln(o)){let a=r[w];bi(a,r,o),Do(a,o,r)}return n!=null&&Ci(r,o),hh}function ph(){let e=ee(),t=oe(),n=Go(t);return e.firstCreatePass&&ta(e,n),ph}var A1=(e,t,n,r,i)=>(hi(!0),Nv(t[G],""));function et(){return L()}function fh(e,t,n){let r=L(),i=jn();if(Pt(r,i,t)){let s=ee(),o=di();Vd(o,r,e,t,r[G],n)}return fh}var Kn=void 0;function D1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var V1=["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"]],Kn,[["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"]],Kn,[["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}",Kn,"{1} 'at' {0}",Kn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",D1],Zi={};function Ae(e){let t=N1(e),n=ml(t);if(n)return n;let r=t.split("-")[0];if(n=ml(r),n)return n;if(r==="en")return V1;throw new _(701,!1)}function ml(e){return e in Zi||(Zi[e]=st.ng&&st.ng.common&&st.ng.common.locales&&st.ng.common.locales[e]),Zi[e]}var K=(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})(K||{});function N1(e){return e.toLowerCase().replace(/_/g,"-")}var Jr="en-US",R1=Jr;function L1(e){typeof e=="string"&&(R1=e.toLowerCase().replace(/_/g,"-"))}function M(e,t,n){let r=L(),i=ee(),s=oe();return mh(i,r,r[G],s,e,t,n),M}function gh(e,t,n){let r=L(),i=ee(),s=oe();return(s.type&3||n)&&Qd(s,i,r,n,r[G],e,t,mr(s,r,t)),gh}function mh(e,t,n,r,i,s,o){let a=!0,l=null;if((r.type&3||o)&&(l??=mr(r,t,s),Qd(r,e,t,o,n,i,s,l)&&(a=!1)),a){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let d=0;d<c.length;d+=2){let p=c[d],h=c[d+1];l??=mr(r,t,s),dl(r,t,p,h,i,l)}if(u&&u.length)for(let d of u)l??=mr(r,t,s),dl(r,t,d,i,i,l)}}function I(e=1){return rm(e)}function vh(e,t,n){s1(e,t,n)}function yh(e){let t=L(),n=ee(),r=Cc();So(r+1);let i=na(n,r);if(e.dirty&&jg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=l1(t,r);e.reset(s,Lm),e.notifyOnChanges()}return!0}return!1}function bh(){return r1(L(),Cc())}function Jn(e,t){return e<<17|t<<2}function Ot(e){return e>>17&32767}function F1(e){return(e&2)==2}function j1(e,t){return e&131071|t<<17}function Ns(e){return e|2}function Qt(e){return(e&131068)>>2}function Gi(e,t){return e&-131069|t<<2}function z1(e){return(e&1)===1}function Rs(e){return e|1}function H1(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Ot(o),l=Qt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||Rn(d,c)>0)&&(u=!0)}else c=n;if(i)if(l!==0){let d=Ot(e[a+1]);e[r+1]=Jn(d,a),d!==0&&(e[d+1]=Gi(e[d+1],r)),e[a+1]=j1(e[a+1],r)}else e[r+1]=Jn(a,0),a!==0&&(e[a+1]=Gi(e[a+1],r)),a=r;else e[r+1]=Jn(l,0),a===0?a=r:e[l+1]=Gi(e[l+1],r),l=r;u&&(e[r+1]=Ns(e[r+1])),vl(e,c,r,!0),vl(e,c,r,!1),B1(t,c,e,r,s),o=Jn(a,l),s?t.classBindings=o:t.styleBindings=o}function B1(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&Rn(s,t)>=0&&(n[r+1]=Rs(n[r+1]))}function vl(e,t,n,r){let i=e[n+1],s=t===null,o=r?Ot(i):Qt(i),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],u=e[o+1];U1(l,t)&&(a=!0,e[o+1]=r?Rs(u):Ns(u)),o=r?Ot(u):Qt(u)}a&&(e[n+1]=r?Ns(i):Rs(i))}function U1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Rn(e,t)>=0:!1}function Ch(e,t,n){return _h(e,t,n,!1),Ch}function Te(e,t){return _h(e,t,null,!0),Te}function _h(e,t,n,r){let i=L(),s=ee(),o=Kg(2);if(s.firstUpdatePass&&q1(s,e,o,r),t!==dt&&Pt(i,o,t)){let a=s.data[tn()];Y1(s,a,i,i[G],e,i[o+1]=K1(t,n),r,o)}}function $1(e,t){return t>=e.expandoStartIndex}function q1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[tn()],o=$1(e,n);J1(s,r)&&t===null&&!o&&(t=!1),t=Z1(i,s,t,r),H1(i,s,t,n,o,r)}}function Z1(e,t,n,r){let i=tm(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Wi(null,e,t,n,r),n=Dn(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Wi(i,e,t,n,r),s===null){let a=G1(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Wi(null,e,t,a[1],r),a=Dn(a,t.attrs,r),W1(e,t,r,a))}else s=Q1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function G1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Qt(r)!==0)return e[Ot(r)]}function W1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ot(i)]=r}function Q1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=Dn(r,o,n)}return Dn(r,t.attrs,n)}function Wi(e,t,n,r,i){let s=null,o=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<o&&(s=t[a],r=Dn(r,s.hostAttrs,i),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Dn(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]),xg(e,o,n?!0:t[++s]))}return e===void 0?null:e}function Y1(e,t,n,r,i,s,o,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],c=z1(u)?yl(l,t,n,i,Qt(u),o):void 0;if(!Xr(c)){Xr(s)||F1(u)&&(s=yl(l,null,n,i,a,o));let d=lc(tn(),n);Sy(r,o,d,i,s)}}function yl(e,t,n,r,i,s){let o=t===null,a;for(;i>0;){let l=e[i],u=Array.isArray(l),c=u?l[1]:l,d=c===null,p=n[i+1];p===dt&&(p=d?me:void 0);let h=d?Ri(p,r):c===r?p:void 0;if(u&&!Xr(h)&&(h=Ri(l,r)),Xr(h)&&(a=h,o))return a;let g=e[i+1];i=o?Ot(g):Qt(g)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=Ri(l,r))}return a}function Xr(e){return e!==void 0}function K1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ht(ft(e)))),e}function J1(e,t){return(e.flags&(t?8:16))!==0}function z(e,t=""){let n=L(),r=ee(),i=e+he,s=r.firstCreatePass?_i(r,i,1,t,null):r.data[i],o=X1(r,n,s,t,e);n[i]=o,Eo()&&Uo(r,n,o,s),Fn(s,!1)}var X1=(e,t,n,r,i)=>(hi(!0),Dv(t[G],r));function eb(e,t,n,r=""){return Pt(e,jn(),n)?t+ai(n)+r:dt}function Ee(e){return Vn("",e),Ee}function Vn(e,t,n){let r=L(),i=eb(r,e,t,n);return i!==dt&&tb(r,tn(),i),Vn}function tb(e,t,n){let r=lc(t,e);Vv(e[G],r,n)}function aa(e,t,n){Ec(t)&&(t=t());let r=L(),i=jn();if(Pt(r,i,t)){let s=ee(),o=di();Dd(o,r,e,t,r[G],n)}return aa}function wh(e,t){let n=Ec(e);return n&&e.set(t),n}function la(e,t){let n=L(),r=ee(),i=oe();return mh(r,n,n[G],i,e,t),la}function nb(e,t,n){let r=ee();if(r.firstCreatePass){let i=Qe(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=ie(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ls(e[s],t,n,r,i);else{let s=ee(),o=L(),a=oe(),l=$t(e)?e:ie(e.provide),u=rc(e),c=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if($t(e)||!e.multi){let h=new Bn(u,i,j,null),g=Yi(l,t,i?c:c+p,d);g===-1?(_s(Zr(a,o),s,l),Qi(s,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),o.push(h)):(n[g]=h,o[g]=h)}else{let h=Yi(l,t,c+p,d),g=Yi(l,t,c,c+p),m=h>=0&&n[h],b=g>=0&&n[g];if(i&&!b||!i&&!m){_s(Zr(a,o),s,l);let R=sb(i?ib:rb,n.length,i,r,u,e);!i&&b&&(n[g].providerFactory=R),Qi(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(R),o.push(R)}else{let R=xh(n[i?g:h],u,!i&&r);Qi(s,e,h>-1?h:g,R)}!i&&r&&b&&n[g].componentProviders++}}}function Qi(e,t,n,r){let i=$t(t),s=Ig(t);if(i||s){let o=(s?ie(t.useClass):t).prototype.ngOnDestroy;if(o){let a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[r,o]):a[l+1].push(r,o)}else a.push(n,o)}}}function xh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yi(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function rb(e,t,n,r,i){return Fs(this.multi,[])}function ib(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Pn(r,r[w],this.providerFactory.index,i);o=l.slice(0,a),Fs(s,o);for(let u=a;u<l.length;u++)o.push(l[u])}else o=[],Fs(s,o);return o}function Fs(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function sb(e,t,n,r,i,s){let o=new Bn(e,n,j,null);return o.multi=[],o.index=t,o.componentProviders=0,xh(o,i,r&&!n),o}function ua(e,t=[]){return n=>{n.providersResolver=(r,i)=>nb(r,i?i(e):e,t)}}function ob(e,t,n,r){return lb(L(),Qg(),e,t,n,r)}function ab(e,t){let n=e[t];return n===dt?void 0:n}function lb(e,t,n,r,i,s){let o=t+n;return Pt(e,o,i)?M0(e,o+1,s?r.call(s,i):r(i)):ab(e,o+1)}var ub=(()=>{class e{zone=v(se);changeDetectionScheduler=v(Hn);applicationRef=v(An);applicationErrorHandler=v(ct);_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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cb=new S("",{factory:()=>!1});function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new se(D(T({},Sh()),{scheduleInRootZone:n})),[{provide:se,useFactory:e},{provide:Ut,multi:!0,useFactory:()=>{let r=v(ub,{optional:!0});return()=>r.initialize()}},{provide:Ut,multi:!0,useFactory:()=>{let r=v(hb);return()=>{r.initialize()}}},t===!0?{provide:Tc,useValue:!0}:[],{provide:Pc,useValue:n??Sd},{provide:ct,useFactory:()=>{let r=v(se),i=v(Ze),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(zn),s.handleError(o))})}}}]}function db(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=kh({ngZoneFactory:()=>{let i=Sh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&kd("NgZone_CoalesceEvent"),new se(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return li([{provide:cb,useValue:!0},{provide:Po,useValue:!1},r])}function Sh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var hb=(()=>{class e{subscription=new Ne;initialized=!1;zone=v(se);pendingTasks=v(nn);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(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pb=(()=>{class e{applicationErrorHandler=v(ct);appRef=v(An);taskService=v(nn);ngZone=v(se);zonelessEnabled=v(Po);tracing=v(jo,{optional:!0});disableScheduling=v(Tc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Pc,{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 oy||!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?Xa:Od;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(Qr+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,Xa(()=>{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=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fb(){return typeof $localize<"u"&&$localize.locale||Jr}var ca=new S("",{providedIn:"root",factory:()=>v(ca,{optional:!0,skipSelf:!0})||fb()});function It(e){return eg(e)}function it(e,t){return Hp(e,t?.equal)}var sx=class{[Ve];constructor(e){this[Ve]=e}destroy(){this[Ve].destroy()}},gb=new S("");gb.__NG_ELEMENT_ID__=e=>{let t=oe();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new _(204,!1)};var js=new S(""),mb=new S("");function dn(e){return!e.moduleRef}function vb(e){let t=dn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(se);return n.run(()=>{dn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ct),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),dn(e)){let s=()=>t.destroy(),o=e.platformInjector.get(js);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(js);o.add(s),e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return bb(r,n,()=>{let s=t.get(nn),o=s.add(),a=t.get(uh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(ca,Jr);if(L1(l||Jr),!t.get(mb,!0))return dn(e)?t.get(An):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(dn(e)){let u=t.get(An);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return yb?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var yb;function bb(e,t,n){try{let r=n();return ra(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var yr=null;function Cb(e=[],t){return pi.create({name:t,providers:[{provide:yo,useValue:"platform"},{provide:js,useValue:new Set([()=>yr=null])},...e]})}function _b(e=[]){if(yr)return yr;let t=Cb(e);return yr=t,T1(),wb(t),t}function wb(e){let t=e.get(nd,null);_o(e,()=>{t?.forEach(n=>n())})}var xb=(()=>{class e{static __NG_ELEMENT_ID__=kb}return e})();function kb(e){return Sb(oe(),L(),(e&16)===16)}function Sb(e,t,n){if(Xt(e)&&!n){let r=Fe(e.index,t);return new In(r,r)}else if(e.type&175){let r=t[Re];return new In(r,t)}return null}var Ob=class{constructor(){}supports(e){return Wd(e)}create(e){return new Eb(e)}},Mb=(e,t)=>t,Eb=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||Mb}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<Cl(n,r,i)?t:n,o=Cl(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let l=o-r,u=a-r;if(l!=u){for(let d=0;d<l;d++){let p=d<i.length?i[d]:i[d]=0,h=p+d;u<=h&&h<l&&(i[d]=p+1)}let c=s.previousIndex;i[c]=u-l}}o!==a&&e(s,o,a)}}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=[]),!Wd(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,S0(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 Tb(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 bl),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 bl),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}},Tb=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}},Pb=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}},bl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new Pb,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 Cl(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 _l(){return new Oh([new Ob])}var Oh=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:_l});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=v(e,{optional:!0,skipSelf:!0});return e.create(n,r||_l())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new _(901,!1)}}return e})();function Ib(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;$(8);try{let s=i?.injector??_b(r),o=[kh({}),{provide:Hn,useExisting:pb},um,...n||[]],a=new sh({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return vb({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{$(9)}}function Ab(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Db={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Vb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Nb(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Ki;function Rb(e,t){if(!Ki){let n=Element.prototype;Ki=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Ki.call(e,t):!1}function Lb(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Vb(r)]=[n,i]}),t}function Fb(e,t){return t.get($n).resolveComponentFactory(e).inputs}function jb(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 a=n[s],l=zb(a,t,i);l!==-1&&r[l].push(a)}return r}function zb(e,t,n){let r=n;return Nb(e)&&t.some((i,s)=>i!=="*"&&Rb(e,i)?(r=s,!0):!1),r}var Hb=10,Bb=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get($n).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Ub(this.componentFactory,e,this.inputMap)}},Ub=class{componentFactory;injector;inputMap;eventEmitters=new gu(1);events=this.eventEmitters.pipe(ju(e=>Kf(...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(se),this.appRef=this.injector.get(An),this.cdScheduler=t.get(Hn),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=Db.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Hb))})}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),r0(this.componentRef.hostView)&&(i0(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=pi.create({providers:[],parent:this.injector}),n=jb(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 J(s=>{let o=i.subscribe(a=>s.next({name:r,value:a}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},$b=class extends HTMLElement{ngElementEventsSubscription=null};function qb(e,t){let n=Fb(e,t.injector),r=t.strategyFactory||new Bb(e,t.injector),i=Lb(n);class s extends $b{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:u})=>{if(!this.hasOwnProperty(l))return;let c=this[l];delete this[l],a.setInputValue(l,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,u,c){let[d,p]=i[a];this.ngElementStrategy.setInputValue(d,u,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(l){this.ngElementStrategy.setInputValue(o,l,a)},configurable:!0,enumerable:!0})}),s}var Mh=null;function ei(){return Mh}function Zb(e){Mh??=e}var Gb=class{},re=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(re||{}),H=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(H||{}),ue=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ue||{}),ot={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 Wb(e){return Ae(e)[K.LocaleId]}function Qb(e,t,n){let r=Ae(e),i=[r[K.DayPeriodsFormat],r[K.DayPeriodsStandalone]],s=ye(i,t);return ye(s,n)}function Yb(e,t,n){let r=Ae(e),i=[r[K.DaysFormat],r[K.DaysStandalone]],s=ye(i,t);return ye(s,n)}function Kb(e,t,n){let r=Ae(e),i=[r[K.MonthsFormat],r[K.MonthsStandalone]],s=ye(i,t);return ye(s,n)}function Jb(e,t){let n=Ae(e)[K.Eras];return ye(n,t)}function Xn(e,t){let n=Ae(e);return ye(n[K.DateFormat],t)}function er(e,t){let n=Ae(e);return ye(n[K.TimeFormat],t)}function tr(e,t){let n=Ae(e)[K.DateTimeFormat];return ye(n,t)}function xi(e,t){let n=Ae(e),r=n[K.NumberSymbols][t];if(typeof r>"u"){if(t===ot.CurrencyDecimal)return n[K.NumberSymbols][ot.Decimal];if(t===ot.CurrencyGroup)return n[K.NumberSymbols][ot.Group]}return r}function Eh(e){if(!e[K.ExtraData])throw new _(2303,!1)}function Xb(e){let t=Ae(e);return Eh(t),(t[K.ExtraData][2]||[]).map(n=>typeof n=="string"?Ji(n):[Ji(n[0]),Ji(n[1])])}function eC(e,t,n){let r=Ae(e);Eh(r);let i=[r[K.ExtraData][0],r[K.ExtraData][1]],s=ye(i,t)||[];return ye(s,n)||[]}function ye(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new _(2304,!1)}function Ji(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var tC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nr={},nC=/((?:[^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 rC(e,t,n,r){let i=hC(e);t=He(n,t)||t;let s=[],o;for(;t;)if(o=nC.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let a=i.getTimezoneOffset();r&&(a=Ph(r,a),i=dC(i,r));let l="";return s.forEach(u=>{let c=uC(u);l+=c?c(i,n,a):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ti(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function He(e,t){let n=Wb(e);if(nr[n]??={},nr[n][t])return nr[n][t];let r="";switch(t){case"shortDate":r=Xn(e,ue.Short);break;case"mediumDate":r=Xn(e,ue.Medium);break;case"longDate":r=Xn(e,ue.Long);break;case"fullDate":r=Xn(e,ue.Full);break;case"shortTime":r=er(e,ue.Short);break;case"mediumTime":r=er(e,ue.Medium);break;case"longTime":r=er(e,ue.Long);break;case"fullTime":r=er(e,ue.Full);break;case"short":let i=He(e,"shortTime"),s=He(e,"shortDate");r=rr(tr(e,ue.Short),[i,s]);break;case"medium":let o=He(e,"mediumTime"),a=He(e,"mediumDate");r=rr(tr(e,ue.Medium),[o,a]);break;case"long":let l=He(e,"longTime"),u=He(e,"longDate");r=rr(tr(e,ue.Long),[l,u]);break;case"full":let c=He(e,"fullTime"),d=He(e,"fullDate");r=rr(tr(e,ue.Full),[c,d]);break}return r&&(nr[n][t]=r),r}function rr(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Se(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 iC(e,t){return Se(e,3).substring(0,t)}function Q(e,t,n=0,r=!1,i=!1){return function(s,o){let a=sC(e,s);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return iC(a,t);let l=xi(o,ot.MinusSign);return Se(a,t,l,r,i)}}function sC(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 U(e,t,n=re.Format,r=!1){return function(i,s){return oC(i,s,e,t,n,r)}}function oC(e,t,n,r,i,s){switch(n){case 2:return Kb(t,i,r)[e.getMonth()];case 1:return Yb(t,i,r)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let u=Xb(t),c=eC(t,i,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[h,g]=p,m=o>=h.hours&&a>=h.minutes,b=o<g.hours||o===g.hours&&a<g.minutes;if(h.hours<g.hours){if(m&&b)return!0}else if(m||b)return!0}else if(p.hours===o&&p.minutes===a)return!0;return!1});if(d!==-1)return c[d]}return Qb(t,i,r)[o<12?0:1];case 3:return Jb(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new _(2302,!1)}}function ir(e){return function(t,n,r){let i=-1*r,s=xi(n,ot.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+Se(o,2,s)+Se(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+Se(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+Se(o,2,s)+":"+Se(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+Se(o,2,s)+":"+Se(Math.abs(i%60),2,s);default:throw new _(2310,!1)}}}var aC=0,br=4;function lC(e){let t=ti(e,aC,1).getDay();return ti(e,0,1+(t<=br?br:br+7)-t)}function Th(e){let t=e.getDay(),n=t===0?-3:br-t;return ti(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xi(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=Th(n),o=lC(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return Se(i,e,xi(r,ot.MinusSign))}}function sr(e,t=!1){return function(n,r){let i=Th(n).getFullYear();return Se(i,e,xi(r,ot.MinusSign),t)}}var es={};function uC(e){if(es[e])return es[e];let t;switch(e){case"G":case"GG":case"GGG":t=U(3,H.Abbreviated);break;case"GGGG":t=U(3,H.Wide);break;case"GGGGG":t=U(3,H.Narrow);break;case"y":t=Q(0,1,0,!1,!0);break;case"yy":t=Q(0,2,0,!0,!0);break;case"yyy":t=Q(0,3,0,!1,!0);break;case"yyyy":t=Q(0,4,0,!1,!0);break;case"Y":t=sr(1);break;case"YY":t=sr(2,!0);break;case"YYY":t=sr(3);break;case"YYYY":t=sr(4);break;case"M":case"L":t=Q(1,1,1);break;case"MM":case"LL":t=Q(1,2,1);break;case"MMM":t=U(2,H.Abbreviated);break;case"MMMM":t=U(2,H.Wide);break;case"MMMMM":t=U(2,H.Narrow);break;case"LLL":t=U(2,H.Abbreviated,re.Standalone);break;case"LLLL":t=U(2,H.Wide,re.Standalone);break;case"LLLLL":t=U(2,H.Narrow,re.Standalone);break;case"w":t=Xi(1);break;case"ww":t=Xi(2);break;case"W":t=Xi(1,!0);break;case"d":t=Q(2,1);break;case"dd":t=Q(2,2);break;case"c":case"cc":t=Q(7,1);break;case"ccc":t=U(1,H.Abbreviated,re.Standalone);break;case"cccc":t=U(1,H.Wide,re.Standalone);break;case"ccccc":t=U(1,H.Narrow,re.Standalone);break;case"cccccc":t=U(1,H.Short,re.Standalone);break;case"E":case"EE":case"EEE":t=U(1,H.Abbreviated);break;case"EEEE":t=U(1,H.Wide);break;case"EEEEE":t=U(1,H.Narrow);break;case"EEEEEE":t=U(1,H.Short);break;case"a":case"aa":case"aaa":t=U(0,H.Abbreviated);break;case"aaaa":t=U(0,H.Wide);break;case"aaaaa":t=U(0,H.Narrow);break;case"b":case"bb":case"bbb":t=U(0,H.Abbreviated,re.Standalone,!0);break;case"bbbb":t=U(0,H.Wide,re.Standalone,!0);break;case"bbbbb":t=U(0,H.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":t=U(0,H.Abbreviated,re.Format,!0);break;case"BBBB":t=U(0,H.Wide,re.Format,!0);break;case"BBBBB":t=U(0,H.Narrow,re.Format,!0);break;case"h":t=Q(3,1,-12);break;case"hh":t=Q(3,2,-12);break;case"H":t=Q(3,1);break;case"HH":t=Q(3,2);break;case"m":t=Q(4,1);break;case"mm":t=Q(4,2);break;case"s":t=Q(5,1);break;case"ss":t=Q(5,2);break;case"S":t=Q(6,1);break;case"SS":t=Q(6,2);break;case"SSS":t=Q(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ir(0);break;case"ZZZZZ":t=ir(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ir(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ir(2);break;default:return null}return es[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 cC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function dC(e,t,n){let r=e.getTimezoneOffset(),i=Ph(t,r);return cC(e,-1*(i-r))}function hC(e){if(wl(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(a=>+a);return ti(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(tC))return pC(r)}let t=new Date(e);if(!wl(t))throw new _(2311,!1);return t}function pC(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,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,a,l,u),t}function wl(e){return e instanceof Date&&!isNaN(e.valueOf())}var ts=/\s+/,xl=[],fC=(()=>{class e{_ngEl;_renderer;initialClasses=xl;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ts):xl}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ts):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ts).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(j(Et),j(Xo))};static \u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),gC=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}},ki=(()=>{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 gC(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 a=r.get(s);r.move(a,o),kl(a,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);kl(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(j(sn),j(St),j(Oh))};static \u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function kl(e,t){e.context.$implicit=t.item}var an=(()=>{class e{_viewContainer;_context=new mC;_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){Sl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Sl(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)(j(sn),j(St))};static \u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),mC=class{$implicit=null;ngIf=null};function Sl(e,t){if(e&&!e.createEmbeddedView)throw new _(2020,!1)}var vC=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()}},Ih=(()=>{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=Ce({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),yC=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new vC(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(j(sn),j(St),j(Ih,9))};static \u0275dir=Ce({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function bC(e,t){return new _(2100,!1)}var CC="mediumDate",_C=new S(""),wC=new S(""),Ah=(()=>{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??CC,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return rC(n,o,s||this.locale,a)}catch(o){throw bC(e,o.message)}}static \u0275fac=function(n){return new(n||e)(j(ca,16),j(_C,24),j(wC,24))};static \u0275pipe=f1({name:"date",type:e,pure:!0})}return e})(),_e=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=wi({type:e});static \u0275inj=oi({})}return e})();function Dh(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{},Nh="browser";function xC(e){return e===Nh}var Rh=class{_doc;constructor(e){this._doc=e}manager},zs=(()=>{class e extends Rh{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)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Hs=new S(""),Lh=(()=>{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 zs));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof zs);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)(C(Hs),C(se))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),ns="ng-app-id";function Ol(e){for(let t of e)t.remove()}function Ml(e,t){let n=t.createElement("style");return n.textContent=e,n}function kC(e,t,n,r){let i=e.head?.querySelectorAll(`style[${ns}="${t}"],link[${ns}="${t}"]`);if(i)for(let s of i)s.removeAttribute(ns),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 Bs(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Fh=(()=>{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,kC(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Ml);r?.forEach(i=>this.addUsage(i,this.external,Bs))}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&&(Ol(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ol(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Ml(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Bs(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)(C(je),C(td),C(rd,8),C(Ao))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),rs={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"},da=/%COMP%/g,jh="%COMP%",SC=`_nghost-${jh}`,OC=`_ngcontent-${jh}`,MC=!0,EC=new S("",{providedIn:"root",factory:()=>MC});function TC(e){return OC.replace(da,e)}function PC(e){return SC.replace(da,e)}function zh(e,t){return t.map(n=>n.replace(da,e))}var El=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,a,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=a,this.nonce=l,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new ha(n,o,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Pl?i.applyToHost(n):i instanceof Us&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case kt.Emulated:s=new Pl(l,u,r,this.appId,c,o,a,d,p);break;case kt.ShadowDom:return new IC(l,u,n,r,o,a,this.nonce,d,p);default:s=new Us(l,u,r,c,o,a,d,p);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)(C(Lh),C(Fh),C(td),C(EC),C(je),C(se),C(rd),C(jo,8))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),ha=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(rs[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Tl(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Tl(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=rs[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=rs[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&(mt.DashCase|mt.Important)?e.style.setProperty(t,n,r&mt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&mt.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=ei().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 Tl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var IC=class extends ha{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=zh(r.id,u);for(let d of u){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}let c=r.getExternalStyles?.();if(c)for(let d of c){let p=Bs(d,i);o&&p.setAttribute("nonce",o),this.shadowRoot.appendChild(p)}}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)}},Us=class extends ha{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=l?zh(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Wr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Pl=class extends Us{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,a,l){let u=r+"-"+n.id;super(e,t,n,i,s,o,a,l,u),this.contentAttr=TC(u),this.hostAttr=PC(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}},AC=class Hh extends Gb{supportsDOMEvents=!0;static makeCurrent(){Zb(new Hh)}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=DC();return n==null?null:VC(n)}resetBaseElement(){mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},mn=null;function DC(){return mn=mn||document.head.querySelector("base"),mn?mn.getAttribute("href"):null}function VC(e){return new URL(e,document.baseURI).pathname}var NC=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Il=["alt","control","meta","shift"],RC={"\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"},LC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},FC=(()=>{class e extends Rh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ei().onAndCancel(n,o.domEventName,a,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="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),Il.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 l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let i=RC[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"),Il.forEach(o=>{if(o!==i){let a=LC[o];a(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)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function jC(e){return Ib(zC(e))}function zC(e){return{appProviders:[...qC,...e?.providers??[]],platformProviders:$C}}function HC(){AC.makeCurrent()}function BC(){return new zn}function UC(){return Um(document),document}var $C=[{provide:Ao,useValue:Nh},{provide:nd,useValue:HC,multi:!0},{provide:je,useFactory:UC}],qC=[{provide:yo,useValue:"root"},{provide:zn,useFactory:BC},{provide:Hs,useClass:zs,multi:!0,deps:[je]},{provide:Hs,useClass:FC,multi:!0,deps:[je]},El,Fh,Lh,{provide:Jo,useExisting:El},{provide:Vh,useClass:NC},[]],pa=class{},Si=class{},Yt=class Cr{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 Cr?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 Cr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?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(a=>s.indexOf(a)===-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)))}},ZC=class{encodeKey(e){return Al(e)}encodeValue(e){return Al(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function GC(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))],a=n.get(s)||[];a.push(o),n.set(s,a)}),n}var WC=/%(\d[a-f0-9])/gi,QC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Al(e){return encodeURIComponent(e).replace(WC,(t,n)=>QC[n]??t)}function or(e){return`${e}`}var qe=class Bh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ZC,t.fromString){if(t.fromObject)throw new _(2805,!1);this.map=GC(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(or):[or(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 Bh({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(or(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(or(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)}},YC=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 KC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Dl(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Vl(e){return typeof Blob<"u"&&e instanceof Blob}function Nl(e){return typeof FormData<"u"&&e instanceof FormData}function JC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Rl="Content-Type",Ll="Accept",Uh="X-Request-URL",$h="text/plain",qh="application/json",XC=`${qh}, ${$h}, */*`,bn=class Zh{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(KC(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 Yt,this.context??=new YC,!this.params)this.params=new qe,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Dl(this.body)||Vl(this.body)||Nl(this.body)||JC(this.body)?this.body:this.body instanceof qe?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||Nl(this.body)?null:Vl(this.body)?this.body.type||null:Dl(this.body)?null:typeof this.body=="string"?$h:this.body instanceof qe?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qh: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,a=t.cache||this.cache,l=t.mode||this.mode,u=t.redirect||this.redirect,c=t.credentials||this.credentials,d=t.referrer||this.referrer,p=t.integrity||this.integrity,h=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,b=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,we=t.headers||this.headers,X=t.params||this.params,un=t.context??this.context;return t.setHeaders!==void 0&&(we=Object.keys(t.setHeaders).reduce((cn,ht)=>cn.set(ht,t.setHeaders[ht]),we)),t.setParams&&(X=Object.keys(t.setParams).reduce((cn,ht)=>cn.set(ht,t.setParams[ht]),X)),new Zh(n,r,m,{params:X,headers:we,context:un,reportProgress:R,responseType:i,withCredentials:b,transferCache:h,keepalive:s,cache:a,priority:o,timeout:g,mode:l,redirect:u,credentials:c,referrer:d,integrity:p})}},jt=(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})(jt||{}),fa=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Yt,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}},e_=class Gh extends fa{constructor(t={}){super(t)}type=jt.ResponseHeader;clone(t={}){return new Gh({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})}},Oi=class Wh extends fa{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=jt.Response;clone(t={}){return new Wh({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})}},is=class extends fa{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}},t_=200,n_=204;function ss(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 ga=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof bn)s=n;else{let l;i.headers instanceof Yt?l=i.headers:l=new Yt(i.headers);let u;i.params&&(i.params instanceof qe?u=i.params:u=new qe({fromObject:i.params})),s=new bn(n,r,i.body!==void 0?i.body:null,{headers:l,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=Ue(s).pipe(Ru(l=>this.handler.handle(l)));if(n instanceof bn||i.observe==="events")return o;let a=o.pipe(Vr(l=>l instanceof Oi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Oe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new _(2806,!1);return l.body}));case"blob":return a.pipe(Oe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new _(2807,!1);return l.body}));case"text":return a.pipe(Oe(l=>{if(l.body!==null&&typeof l.body!="string")throw new _(2808,!1);return l.body}));case"json":default:return a.pipe(Oe(l=>l.body))}case"response":return a;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 qe().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,ss(i,r))}post(n,r,i={}){return this.request("POST",n,ss(i,r))}put(n,r,i={}){return this.request("PUT",n,ss(i,r))}static \u0275fac=function(n){return new(n||e)(C(pa))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),r_=new S("");function Qh(e,t){return t(e)}function i_(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function s_(e,t,n){return(r,i)=>_o(n,()=>t(r,s=>e(s,i)))}var Yh=new S(""),ma=new S(""),o_=new S(""),Kh=new S("",{providedIn:"root",factory:()=>!0});function a_(){let e=null;return(t,n)=>{e===null&&(e=(v(Yh,{optional:!0})??[]).reduceRight(i_,Qh));let r=v(Ic);if(v(Kh)){let i=r.add();return e(t,n).pipe(Fu(i))}else return e(t,n)}}var Fl=(()=>{class e extends pa{backend;injector;chain=null;pendingTasks=v(Ic);contributeToStability=v(Kh);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(ma),...this.injector.get(o_,[])]));this.chain=r.reduceRight((i,s)=>s_(i,s,this.injector),Qh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Fu(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(C(Si),C(Ze))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),l_=/^\)\]\}',?\n/,u_=RegExp(`^${Uh}:`,"m");function c_(e){return"responseURL"in e&&e.responseURL?e.responseURL:u_.test(e.getAllResponseHeaders())?e.getResponseHeader(Uh):null}var jl=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return Ue(null).pipe(ju(()=>new J(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,b)=>s.setRequestHeader(m,b.join(","))),n.headers.has(Ll)||s.setRequestHeader(Ll,XC),!n.headers.has(Rl)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(Rl,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(),a=null,l=()=>{if(a!==null)return a;let m=s.statusText||"OK",b=new Yt(s.getAllResponseHeaders()),R=c_(s)||n.url;return a=new e_({headers:b,status:s.status,statusText:m,url:R}),a},u=()=>{let{headers:m,status:b,statusText:R,url:we}=l(),X=null;b!==n_&&(X=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=X?t_:0);let un=b>=200&&b<300;if(n.responseType==="json"&&typeof X=="string"){let cn=X;X=X.replace(l_,"");try{X=X!==""?JSON.parse(X):null}catch(ht){X=cn,un&&(un=!1,X={error:ht,text:X})}}un?(i.next(new Oi({body:X,headers:m,status:b,statusText:R,url:we||void 0})),i.complete()):i.error(new is({error:X,headers:m,status:b,statusText:R,url:we||void 0}))},c=m=>{let{url:b}=l(),R=new is({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(R)},d=c;n.timeout&&(d=m=>{let{url:b}=l(),R=new is({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});i.error(R)});let p=!1,h=m=>{p||(i.next(l()),p=!0);let b={type:jt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),n.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),i.next(b)},g=m=>{let b={type:jt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),i.next(b)};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:jt.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)(C(Vh))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Jh=new S(""),d_="XSRF-TOKEN",h_=new S("",{providedIn:"root",factory:()=>d_}),p_="X-XSRF-TOKEN",f_=new S("",{providedIn:"root",factory:()=>p_}),Xh=class{},g_=(()=>{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=Dh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(C(je),C(h_))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),m_=/^(?:https?:)?\/\//i;function v_(e,t){if(!v(Jh)||e.method==="GET"||e.method==="HEAD"||m_.test(e.url))return t(e);let n=v(Xh).getToken(),r=v(f_);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var ep=(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})(ep||{});function y_(e,t){return{\u0275kind:e,\u0275providers:t}}function b_(...e){let t=[ga,jl,Fl,{provide:pa,useExisting:Fl},{provide:Si,useFactory:()=>v(r_,{optional:!0})??v(jl)},{provide:ma,useValue:v_,multi:!0},{provide:Jh,useValue:!0},{provide:Xh,useClass:g_}];for(let n of e)t.push(...n.\u0275providers);return li(t)}var zl=new S("");function C_(){return y_(ep.LegacyInterceptors,[{provide:zl,useFactory:a_},{provide:ma,useExisting:zl,multi:!0}])}var tp=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=C(__),r},providedIn:"root"})}return e})(),__=(()=>{class e extends tp{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case rt.NONE:return r;case rt.HTML:return Dt(r,"HTML")?ft(r):fd(this._doc,String(r)).toString();case rt.STYLE:return Dt(r,"Style")?ft(r):r;case rt.SCRIPT:if(Dt(r,"Script"))return ft(r);throw new _(5200,!1);case rt.URL:return Dt(r,"URL")?ft(r):ld(String(r));case rt.RESOURCE_URL:if(Dt(r,"ResourceURL"))return ft(r);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(n){return sv(n)}bypassSecurityTrustStyle(n){return ov(n)}bypassSecurityTrustScript(n){return av(n)}bypassSecurityTrustUrl(n){return lv(n)}bypassSecurityTrustResourceUrl(n){return uv(n)}static \u0275fac=function(n){return new(n||e)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),np={},w_={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){np[e]=t,w_[t]=e});function x_(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=np[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 a=r&1;r>>>=1,a?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var _r="TOKEN_LOGGER_CONFIG",k_=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}},Cn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",S_=class{provideConfigEngine(e){return new k_(e)}},_n="TOKEN_LOGGER_MAPPER_SERVICE",O_=(()=>{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 Ue({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return Ue(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,a=n.mappings.split(";");for(let l=0;l<a.length;l++){let u=0,c=a[l].split(",");for(let d=0;d<c.length;d++){let f=xw(c[d]);if(f.length>=4&&(u+=f[0],i+=f[1],s+=f[2],o+=f[3]),l===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 bn("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(Vr(a=>a instanceof Oi),Oe(a=>a.body),Jp(3),Ta(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,Ue(null))));let o=this.sourceMapCache.get(n).pipe(Oe(a=>a?this.getMapping(a,r):r),ke(()=>Ue(r)),Ta(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(C(Si,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),_n="TOKEN_LOGGER_METADATA_SERVICE",Ew=(()=>{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)(C(Ah,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),xn="TOKEN_LOGGER_RULES_SERVICE",Mw=(()=>{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=O({token:e,factory:e.\u0275fac}),e})(),kn="TOKEN_LOGGER_SERVER_SERVICE",Tw=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new pu(!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"),Ue(null);let s=new bn("POST",n,r,i||{}),o=Ue(s),a=this.alterHttpRequest(s);return Vp(a)?o=a:a?o=Ue(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Ru(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),Vr(l=>l instanceof Oi),Oe(l=>l.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=l=>{let u=T({},l);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(l=>{i.push(s(l))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new Yt;o.has("Content-Type")||o.set("Content-Type","application/json");let a=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new qe,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(ke(l=>(console.error("NGXLogger: Failed to log on server",l),fo(l)))).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(a)}else a()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(T({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Nu(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(Vr(s=>s===!1),Lu(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(C(Si,8),C(se,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Sn="TOKEN_LOGGER_WRITER_SERVICE",W=(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})(W||{}),Iw=["purple","teal","gray","gray","red","red","red"],Pw=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=xC(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 W[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??Iw;if(n.level!==W.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case W.WARN:console.warn(`${i} `,n.message,...s);break;case W.ERROR:case W.FATAL:console.error(`${i} `,n.message,...s);break;case W.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 W.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case W.ERROR:case W.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case W.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case W.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)(C(Ao))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Ye=(()=>{class e{constructor(n,r,i,s,o,a,l){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(W.TRACE,n,r)}debug(n,...r){this._log(W.DEBUG,n,r)}info(n,...r){this._log(W.INFO,n,r)}log(n,...r){this._log(W.LOG,n,r)}warn(n,...r){this._log(W.WARN,n,r)}error(n,...r){this._log(W.ERROR,n,r)}fatal(n,...r){this._log(W.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),a=this.ruleService.shouldCallServer(n,s,r,i),l=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!a&&!l)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(Lu(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),l&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),a&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(C(wr),C(Cn),C(_n),C(xn),C(wn),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Aw=(()=>{class e{constructor(n,r,i,s,o,a,l){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new Ye(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)(C(Ye),C(Cn),C(_n),C(xn),C(wn),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Dw=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:wr,useValue:n||{}};else if(r.configProvider.provide!==wr)throw new Error(`Wrong injection token for configProvider, it should be ${wr} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:Cn,useClass:Sw};else if(r.configEngineFactoryProvider.provide!==Cn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${Cn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:_n,useClass:Ew};else if(r.metadataProvider.provide!==_n)throw new Error(`Wrong injection token for metadataProvider, it should be '${_n}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:xn,useClass:Mw};else if(r.ruleProvider.provide!==xn)throw new Error(`Wrong injection token for ruleProvider, it should be '${xn}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:wn,useClass:Ow};else if(r.mapperProvider.provide!==wn)throw new Error(`Wrong injection token for mapperProvider, it should be '${wn}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:Sn,useClass:Pw};else if(r.writerProvider.provide!==Sn)throw new Error(`Wrong injection token for writerProvider, it should be '${Sn}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:kn,useClass:Tw};else if(r.serverProvider.provide!==kn)throw new Error(`Wrong injection token for serverProvider, it should be '${kn}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[Ye,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,Aw]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_i({type:e}),e.\u0275inj=oi({imports:[[we]]}),e})(),zl={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,a=n.mappings.split(";");for(let l=0;l<a.length;l++){let u=0,c=a[l].split(",");for(let d=0;d<c.length;d++){let p=x_(c[d]);if(p.length>=4&&(u+=p[0],i+=p[1],s+=p[2],o+=p[3]),l===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 bn("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(Vr(a=>a instanceof Oi),Oe(a=>a.body),Jf(3),Ta(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,Ue(null))));let o=this.sourceMapCache.get(n).pipe(Oe(a=>a?this.getMapping(a,r):r),ke(()=>Ue(r)),Ta(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(C(Si,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),wn="TOKEN_LOGGER_METADATA_SERVICE",M_=(()=>{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)(C(Ah,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),xn="TOKEN_LOGGER_RULES_SERVICE",E_=(()=>{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=O({token:e,factory:e.\u0275fac}),e})(),kn="TOKEN_LOGGER_SERVER_SERVICE",T_=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new fu(!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"),Ue(null);let s=new bn("POST",n,r,i||{}),o=Ue(s),a=this.alterHttpRequest(s);return Vf(a)?o=a:a?o=Ue(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Ru(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),Vr(l=>l instanceof Oi),Oe(l=>l.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=l=>{let u=T({},l);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(l=>{i.push(s(l))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new Yt;o.has("Content-Type")||o.set("Content-Type","application/json");let a=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new qe,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(ke(l=>(console.error("NGXLogger: Failed to log on server",l),po(l)))).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(a)}else a()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(T({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Nu(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(Vr(s=>s===!1),Lu(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(C(Si,8),C(se,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Sn="TOKEN_LOGGER_WRITER_SERVICE",W=(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})(W||{}),P_=["purple","teal","gray","gray","red","red","red"],I_=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=xC(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 W[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??P_;if(n.level!==W.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case W.WARN:console.warn(`${i} `,n.message,...s);break;case W.ERROR:case W.FATAL:console.error(`${i} `,n.message,...s);break;case W.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 W.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case W.ERROR:case W.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case W.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case W.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)(C(Ao))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Ye=(()=>{class e{constructor(n,r,i,s,o,a,l){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(W.TRACE,n,r)}debug(n,...r){this._log(W.DEBUG,n,r)}info(n,...r){this._log(W.INFO,n,r)}log(n,...r){this._log(W.LOG,n,r)}warn(n,...r){this._log(W.WARN,n,r)}error(n,...r){this._log(W.ERROR,n,r)}fatal(n,...r){this._log(W.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),a=this.ruleService.shouldCallServer(n,s,r,i),l=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!a&&!l)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(Lu(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),l&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),a&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(C(_r),C(Cn),C(wn),C(xn),C(_n),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),A_=(()=>{class e{constructor(n,r,i,s,o,a,l){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new Ye(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)(C(Ye),C(Cn),C(wn),C(xn),C(_n),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),D_=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:_r,useValue:n||{}};else if(r.configProvider.provide!==_r)throw new Error(`Wrong injection token for configProvider, it should be ${_r} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:Cn,useClass:S_};else if(r.configEngineFactoryProvider.provide!==Cn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${Cn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:wn,useClass:M_};else if(r.metadataProvider.provide!==wn)throw new Error(`Wrong injection token for metadataProvider, it should be '${wn}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:xn,useClass:E_};else if(r.ruleProvider.provide!==xn)throw new Error(`Wrong injection token for ruleProvider, it should be '${xn}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:_n,useClass:O_};else if(r.mapperProvider.provide!==_n)throw new Error(`Wrong injection token for mapperProvider, it should be '${_n}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:Sn,useClass:I_};else if(r.writerProvider.provide!==Sn)throw new Error(`Wrong injection token for writerProvider, it should be '${Sn}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:kn,useClass:T_};else if(r.serverProvider.provide!==kn)throw new Error(`Wrong injection token for serverProvider, it should be '${kn}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[Ye,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,A_]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=wi({type:e}),e.\u0275inj=oi({imports:[[_e]]}),e})(),Hl={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
8
  <linearGradient id="paint0_linear_1_3105" x1="12.75" y1="7.08333" x2="46.75" y2="42.5" gradientUnits="userSpaceOnUse">
9
9
  <stop stop-color="#FFBDB2"/>
10
10
  <stop offset="1" stop-color="#FF5337"/>
@@ -20,8 +20,8 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
20
20
  <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
21
  <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
22
  <circle cx="19" cy="12" r="1.5" fill="currentColor"/>
23
- <circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},ln=class $s{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return zl[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=zl[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||$s)(j(tf))};static \u0275cmp=Pe({type:$s,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&&(im(),ch(0,"svg",0)),t&2&&(Ch("filter",n.dropShadow),ph("innerHTML",n.svgContent,yd),ia("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[we],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},Be={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"]},Vw=class qs{title=Be.TITLE;menuClick=new F;closeClick=new F;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||qs)};static \u0275cmp=Pe({type:qs,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()}),q(2,"app-icon",2),y(),p(3,"div",3),q(4,"app-icon",4),p(5,"span"),H(6),y()(),p(7,"button",5),E("click",function(){return n.onCloseClick()}),q(8,"app-icon",6),y()()),t&2&&(x(6),Me(n.title))},dependencies:[we,ln],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}"]})},Nw=class Zs{text="";disabled=!1;buttonClick=new F;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Zs)};static \u0275cmp=Pe({type:Zs,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&&(sa(0,"button",0),gh("click",function(){return n.onClick()}),H(1),oa()),t&2&&(Te("disabled",n.disabled),x(),Vn(" ",n.text," "))},dependencies:[we],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}"]})},rf=(()=>{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)(j(Xo),j(Mt))};static \u0275dir=Ce({type:e})}return e})(),Rw=(()=>{class e extends rf{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zc(e)))(r||e)}})();static \u0275dir=Ce({type:e,features:[on]})}return e})(),sf=new S(""),Lw={provide:sf,useExisting:Nn(()=>qn),multi:!0};function Fw(){let e=ei()?ei().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jw=new S(""),qn=(()=>{class e extends rf{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Fw())}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)(j(Xo),j(Mt),j(jw,8))};static \u0275dir=Ce({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:[ua([Lw]),on]})}return e})();function Hw(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var of=new S(""),zw=new S("");function Bw(e){return t=>{let n=t.value?.length??Hw(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Bl(e){return null}function af(e){return e!=null}function lf(e){return ra(e)?ho(e):e}function uf(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function cf(e,t){return t.map(n=>n(e))}function Uw(e){return!e.validate}function df(e){return e.map(t=>Uw(t)?t:n=>t.validate(n))}function $w(e){if(!e)return null;let t=e.filter(af);return t.length==0?null:function(n){return uf(cf(n,t))}}function hf(e){return e!=null?$w(df(e)):null}function qw(e){if(!e)return null;let t=e.filter(af);return t.length==0?null:function(n){let r=cf(n,t).map(lf);return Yp(r).pipe(Oe(uf))}}function ff(e){return e!=null?qw(df(e)):null}function Ul(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Zw(e){return e._rawValidators}function Gw(e){return e._rawAsyncValidators}function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function ni(e,t){return Array.isArray(e)?e.includes(t):e===t}function $l(e,t){let n=Gs(t);return Gs(e).forEach(r=>{ni(n,r)||n.push(r)}),n}function ql(e,t){return Gs(t).filter(n=>!ni(e,n))}var pf=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=hf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ff(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}},Ww=class extends pf{name;get formDirective(){return null}get path(){return null}},va=class extends pf{_parent=null;name=null;valueAccessor=null},Qw=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}},Yw={"[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"},ox=D(T({},Yw),{"[class.ng-submitted]":"isSubmitted"}),ya=(()=>{class e extends Qw{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(j(va,2))};static \u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Te("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:[on]})}return e})(),hn="VALID",ar="INVALID",At="PENDING",fn="DISABLED",Zn=class{},Zl=class extends Zn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},os=class extends Zn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},as=class extends Zn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},lr=class extends Zn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},Kw=class extends Zn{source;constructor(e){super(),this.source=e}};function Jw(e){return(Ei(e)?e.validators:e)||null}function Xw(e){return Array.isArray(e)?hf(e):e||null}function e_(e,t){return(Ei(t)?t.asyncValidators:e)||null}function t_(e){return Array.isArray(e)?ff(e):e||null}function Ei(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var n_=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 Pt(this.statusReactive)}set status(e){Pt(()=>this.statusReactive.set(e))}_status=it(()=>this.statusReactive());statusReactive=ae(void 0);get valid(){return this.status===hn}get invalid(){return this.status===ar}get pending(){return this.status==At}get disabled(){return this.status===fn}get enabled(){return this.status!==fn}errors;get pristine(){return Pt(this.pristineReactive)}set pristine(e){Pt(()=>this.pristineReactive.set(e))}_pristine=it(()=>this.pristineReactive());pristineReactive=ae(!0);get dirty(){return!this.pristine}get touched(){return Pt(this.touchedReactive)}set touched(e){Pt(()=>this.touchedReactive.set(e))}_touched=it(()=>this.touchedReactive());touchedReactive=ae(!1);get untouched(){return!this.touched}_events=new ut;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($l(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators($l(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ql(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ql(e,this._rawAsyncValidators))}hasValidator(e){return ni(this._rawValidators,e)}hasAsyncValidator(e){return ni(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(D(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new as(!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 as(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(D(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new os(!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 os(!0,n))}markAsPending(e={}){this.status=At;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new lr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(D(T({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=fn,this.errors=null,this._forEachChild(r=>{r.disable(D(T({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zl(this.value,n)),this._events.next(new lr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(D(T({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hn,this._forEachChild(n=>{n.enable(D(T({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(D(T({},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===hn||this.status===At)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zl(this.value,t)),this._events.next(new lr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(D(T({},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()?fn:hn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=At,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=lf(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 lr(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?fn:this.errors?ar:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(At)?At:this._anyControlsHaveStatus(ar)?ar:hn}_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 os(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new as(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ei(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=Xw(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=t_(this._rawAsyncValidators)}},gf=new S("",{providedIn:"root",factory:()=>ba}),ba="always";function r_(e,t){return[...t.path,e]}function i_(e,t,n=ba){o_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),a_(e,t),u_(e,t),l_(e,t),s_(e,t)}function Gl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function s_(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function o_(e,t){let n=Zw(e);t.validator!==null?e.setValidators(Ul(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Gw(e);t.asyncValidator!==null?e.setAsyncValidators(Ul(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Gl(t._rawValidators,i),Gl(t._rawAsyncValidators,i)}function a_(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&mf(e,t)})}function l_(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&mf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function mf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function u_(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function c_(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function d_(e){return Object.getPrototypeOf(e.constructor)===Rw}function h_(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===qn?n=s:d_(s)?r=s:i=s}),i||r||n||null}function Wl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ql(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var f_=class extends n_{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(Jw(t),e_(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ei(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Ql(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 Kw(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Wl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Wl(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){Ql(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}},p_={provide:va,useExisting:Nn(()=>Mi)},Yl=Promise.resolve(),Mi=(()=>{class e extends va{_changeDetectorRef;callSetDisabledState;control=new f_;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new F;constructor(n,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=h_(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),c_(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(){i_(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){Yl.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ab(r);Yl.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?r_(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(j(Ww,9),j(of,10),j(zw,10),j(sf,10),j(xb,8),j(gf,8))};static \u0275dir=Ce({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:[ua([p_]),on,gi]})}return e})();function g_(e){return typeof e=="number"?e:parseInt(e,10)}var m_=(()=>{class e{_validator=Bl;_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):Bl,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=Ce({type:e,features:[gi]})}return e})(),v_={provide:of,useExisting:Nn(()=>vf),multi:!0},vf=(()=>{class e extends m_{maxlength;inputName="maxlength";normalizeInput=n=>g_(n);createValidator=n=>Bw(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zc(e)))(r||e)}})();static \u0275dir=Ce({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ia("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ua([v_]),on]})}return e})(),y_=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({})}return e})(),Ca=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:gf,useValue:n.callSetDisabledState??ba}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({imports:[y_]})}return e})(),b_=class Ws{placeholder=Be.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new F;submitMessage=new F;voiceClick=new F;addClick=new F;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||Ws)};static \u0275cmp=Pe({type:Ws,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()}),q(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()}),q(6,"app-icon",6),y()()()),t&2&&(x(4),Te("listening",n.isListening),A("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),x(),Te("active",n.isListening))},dependencies:[we,Ca,qn,ya,Mi,ln],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 C_(e,t){e&1&&(p(0,"div",6),q(1,"span")(2,"span")(3,"span"),y())}function w_(e,t){if(e&1&&q(0,"div",7),e&2){let n=P();A("innerHTML",n.message.text,yd)}}var __=class Qs{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||Qs)};static \u0275cmp=Pe({type:Qs,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),pe(4,C_,4,0,"div",4)(5,w_,1,1,"div",5),y()()()()),t&2&&(Te("user",n.isUser)("assistant",n.isAssistant),x(3),Te("typing",n.message.isTyping),x(),A("ngIf",n.message.isTyping),x(),A("ngIf",!n.message.isTyping))},dependencies:[we,an],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%}}"]})},x_=["messagesContainer"];function k_(e,t){if(e&1&&q(0,"app-message",7),e&2){let n=t.$implicit;A("message",n)}}function S_(e,t){if(e&1&&(p(0,"div",5),pe(1,k_,1,1,"app-message",6),y()),e&2){let n=P();x(),A("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function O_(e,t){e&1&&(p(0,"div",8)(1,"p",9),H(2,"Start a conversation by typing a message or selecting a suggestion below."),y()())}var E_=class Ys{messages=[];canLoadMore=!1;isLoadingMore=!1;loadMore=new F;messagesContainer;restoreScrollAfterPrepend=!1;previousScrollHeight=0;suppressNextScroll=!1;lastScrollTop=Number.MAX_SAFE_INTEGER;scrollInitialized=!1;initialScrollPending=!0;initialScrollRequested=!1;get container(){return this.messagesContainer?.nativeElement??null}ngAfterViewChecked(){if(this.restoreScrollAfterPrepend&&this.messagesContainer){let t=this.messagesContainer.nativeElement,n=t.scrollHeight-this.previousScrollHeight;t.scrollTop=n+t.scrollTop,this.restoreScrollAfterPrepend=!1}}ngOnChanges(t){if(!t.messages)return;let n=t.messages.currentValue,r=t.messages.previousValue;this.initialScrollPending?this.queueInitialScroll():this.hasAppendedMessage(r,n)&&this.scrollToBottomAfterRender()}onScroll(){if(!this.canLoadMore)return;let t=this.container;t&&(this.shouldSkipScroll(t)||this.isNearTop(t.scrollTop)&&this.prepareForLoadMore(t))}trackByMessageId(t,n){return n.id}queueInitialScroll(){this.initialScrollRequested||(this.initialScrollRequested=!0,Promise.resolve().then(()=>{let t=this.container;if(!t||!this.initialScrollPending){this.initialScrollRequested=!1;return}this.scrollToBottom(t),this.initialScrollPending=!1,this.initialScrollRequested=!1}))}scrollToBottomAfterRender(){Promise.resolve().then(()=>{let t=this.container;t&&this.scrollToBottom(t)})}scrollToBottom(t){this.suppressNextScroll=!0,t.scrollTop=t.scrollHeight,this.lastScrollTop=t.scrollTop,this.scrollInitialized=!0}triggerLoadMore(t){if(!this.canLoadMore||this.isLoadingMore)return;let n=t??this.container;n&&(this.previousScrollHeight=n.scrollHeight,this.restoreScrollAfterPrepend=!0),this.loadMore.emit()}hasAppendedMessage(t,n){if(!n||n.length===0)return!1;if(!t||t.length===0)return!0;if(n.length<=t.length)return!1;let r=t[t.length-1]?.id;return n[n.length-1]?.id!==r}shouldSkipScroll(t){let n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;if(this.suppressNextScroll)return this.suppressNextScroll=!1,this.lastScrollTop=n,!0;if(r<=i+200)return this.lastScrollTop=n,!0;if(!this.scrollInitialized)return this.scrollInitialized=!0,this.lastScrollTop=n,!0;let s=n<this.lastScrollTop;return this.lastScrollTop=n,!s}isNearTop(t){return t<=200}prepareForLoadMore(t){this.suppressNextScroll=!0,this.triggerLoadMore(t)}static \u0275fac=function(t){return new(t||Ys)};static \u0275cmp=Pe({type:Ys,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&vh(x_,5),t&2){let r;yh(r=bh())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore"},outputs:{loadMore:"loadMore"},features:[gi],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container",3,"scroll"],["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){if(t&1){let r=et();p(0,"div",1)(1,"div",2,0),E("scroll",function(){return V(r),N(n.onScroll())}),pe(3,S_,2,2,"div",3)(4,O_,3,0,"div",4),y()()}t&2&&(x(3),A("ngIf",n.messages.length>0),x(),A("ngIf",n.messages.length===0))},dependencies:[we,ki,an,__],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}"]})};function M_(e,t){if(e&1){let n=et();p(0,"div",1),E("click",function(){V(n);let r=P();return N(r.onOverlayClick())}),p(1,"div",2),E("click",function(r){V(n);let i=P();return N(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),E("click",function(){V(n);let r=P();return N(r.onBackClick())}),q(4,"app-icon",5),y(),p(5,"h2",6),H(6,"Rename Chat"),y(),p(7,"button",7),E("click",function(){V(n);let r=P();return N(r.onCloseClick())}),q(8,"app-icon",8),y()(),p(9,"div",9)(10,"input",10),la("ngModelChange",function(r){V(n);let i=P();return _h(i.editedTitle,r)||(i.editedTitle=r),N(r)}),E("keydown",function(r){V(n);let i=P();return N(i.onInputKeydown(r))}),y()(),p(11,"div",11)(12,"button",12),E("click",function(){V(n);let r=P();return N(r.onCancel())}),H(13," Cancel "),y(),p(14,"button",13),E("click",function(){V(n);let r=P();return N(r.onSave())}),H(15," Save "),y()()()()}if(e&2){let n=P();x(10),aa("ngModel",n.editedTitle),A("maxlength",500)}}var T_=class Ks{isOpen=!1;currentTitle="";close=new F;save=new F;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||Ks)};static \u0275cmp=Pe({type:Ks,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[gi],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&&pe(0,M_,16,2,"div",0),t&2&&A("ngIf",n.isOpen)},dependencies:[we,an,Ca,qn,ya,vf,Mi,ln],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}}"]})},I_=["scrollContainer"],P_=e=>({compact:e});function A_(e,t){if(e&1){let n=et();p(0,"div",34)(1,"button",35),E("click",function(r){V(n);let i=P().$implicit,s=P(2);return N(s.onEditClick(i.id,i.title,r))}),q(2,"app-icon",36),p(3,"span"),H(4,"Rename"),y()(),p(5,"button",37),E("click",function(r){V(n);let i=P().$implicit,s=P(2);return N(s.onDeleteClick(i.id,r))}),q(6,"app-icon",38),p(7,"span"),H(8,"Delete"),y()()()}}function D_(e,t){if(e&1){let n=et();p(0,"div",25),E("click",function(){let r=V(n).$implicit,i=P(2);return N(i.onConversationClick(r.id))}),p(1,"div",26)(2,"div",27)(3,"span",28),H(4),y()(),p(5,"span",29),H(6),y()(),p(7,"div",30)(8,"button",31),E("click",function(r){let i=V(n).$implicit,s=P(2);return N(s.toggleMenu(i.id,r))}),q(9,"app-icon",32),y(),pe(10,A_,9,0,"div",33),y()()}if(e&2){let n=t.$implicit,r=P(2);x(4),Me(n.title),x(2),Me(n.date),x(4),A("ngIf",r.isMenuOpen(n.id))}}function V_(e,t){if(e&1&&(p(0,"div",23),pe(1,D_,11,3,"div",24),y()),e&2){let n=P();x(),A("ngForOf",n.conversations)}}function N_(e,t){if(e&1&&(p(0,"div",39)(1,"div",40),q(2,"div",41),p(3,"p",42),H(4,"Loading conversations..."),y()()()),e&2){let n=P();x(),A("ngClass",ob(1,P_,!(n.isLoading&&n.conversations.length===0)))}}function R_(e,t){e&1&&(p(0,"div",43)(1,"p"),H(2,"No conversations yet"),y()())}var L_=class Js{isOpen=!1;conversations=[];canLoadMore=!1;isLoadingMore=!1;isLoading=!1;scrollContainer;backClick=new F;settingsClick=new F;closeClick=new F;conversationClick=new F;deleteClick=new F;newChatClick=new F;searchChange=new F;titleUpdate=new F;loadMore=new F;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()}onScroll(){if(!this.canLoadMore||this.isLoadingMore||this.isLoading)return;let t=this.scrollContainer?.nativeElement;t&&t.scrollHeight-t.scrollTop-t.clientHeight<=80&&this.loadMore.emit()}static \u0275fac=function(t){return new(t||Js)};static \u0275cmp=Pe({type:Js,selectors:[["app-sidebar"]],viewQuery:function(t,n){if(t&1&&vh(I_,5),t&2){let r;yh(r=bh())&&(n.scrollContainer=r.first)}},inputs:{isOpen:"isOpen",conversations:"conversations",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate",loadMore:"loadMore"},decls:26,vars:10,consts:[["scrollContainer",""],[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",3,"scroll"],[1,"conversations-title"],["class","conversations-list",4,"ngIf"],["class","load-more",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,"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,"load-more"],["aria-live","polite",1,"loading-state",3,"ngClass"],["aria-hidden","true",1,"spinner"],[1,"loading-text"],[1,"empty-conversations"]],template:function(t,n){if(t&1){let r=et();p(0,"div",1),E("click",function(){return V(r),N(n.onOverlayClick())}),y(),p(1,"div",2),E("click",function(){return V(r),N(n.onSidebarClick())}),p(2,"div",3)(3,"button",4),E("click",function(){return V(r),N(n.onBackClick())}),q(4,"app-icon",5),p(5,"span"),H(6,"Back to Chat"),y()(),p(7,"div",6)(8,"button",7),E("click",function(){return V(r),N(n.onSettingsClick())}),q(9,"app-icon",8),y(),p(10,"button",9),E("click",function(){return V(r),N(n.onCloseClick())}),q(11,"app-icon",10),y()()(),p(12,"div",11,0),E("scroll",function(){return V(r),N(n.onScroll())}),p(14,"h3",12),H(15,"Conversations"),y(),pe(16,V_,2,1,"div",13)(17,N_,5,3,"div",14)(18,R_,3,0,"div",15),y(),p(19,"div",16)(20,"div",17),q(21,"app-icon",18),p(22,"input",19),la("ngModelChange",function(i){return V(r),_h(n.searchQuery,i)||(n.searchQuery=i),N(i)}),E("input",function(){return V(r),N(n.onSearchChange())}),y()(),p(23,"button",20),E("click",function(){return V(r),N(n.onNewChatClick())}),q(24,"app-icon",21),y()()(),p(25,"app-rename-modal",22),E("close",function(){return V(r),N(n.onRenameModalClose())})("save",function(i){return V(r),N(n.onRenameModalSave(i))}),y()}t&2&&(Te("visible",n.isOpen),x(),Te("open",n.isOpen),x(15),A("ngIf",n.conversations.length>0),x(),A("ngIf",n.isLoading&&n.conversations.length===0||n.isLoadingMore&&n.conversations.length>0),x(),A("ngIf",!n.isLoading&&n.conversations.length===0),x(4),aa("ngModel",n.searchQuery),x(3),A("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[we,pC,ki,an,Ca,qn,ya,Mi,ln,T_],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}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 20px;color:#1a1a1a}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid rgba(0,0,0,.1);border-top-color:#2c3e50;border-radius:50%;animation:_ngcontent-%COMP%_spin .9s linear infinite}.loading-text[_ngcontent-%COMP%]{font-size:14px;color:#54606c;margin:0}.loading-state.compact[_ngcontent-%COMP%]{flex-direction:row;padding:12px 16px;gap:10px}.loading-state.compact[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font-size:13px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:12px}.load-more-button[_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(0,0,0,.1);border-radius:999px;color:#2c3e50;font-size:13px;padding:6px 16px;cursor:pointer;transition:background .2s ease,border-color .2s ease}.load-more-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#0000000a;border-color:#0003}.load-more-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.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}}"]})},yf=class _r{toasts=ae([]);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||_r)};static \u0275prov=O({token:_r,factory:_r.\u0275fac,providedIn:"root"})};function F_(e,t){e&1&&(p(0,"span"),H(1,"\u2713"),y())}function j_(e,t){e&1&&(p(0,"span"),H(1,"\u2715"),y())}function H_(e,t){e&1&&(p(0,"span"),H(1,"\u26A0"),y())}function z_(e,t){e&1&&(p(0,"span"),H(1,"\u2139"),y())}function B_(e,t){if(e&1){let n=et();p(0,"div",2)(1,"div",3)(2,"span",4),hh(3,5),pe(4,F_,2,0,"span",6)(5,j_,2,0,"span",6)(6,H_,2,0,"span",6)(7,z_,2,0,"span",6),fh(),y(),p(8,"span",7),H(9),y()(),p(10,"button",8),E("click",function(){let r=V(n).$implicit,i=P();return N(i.onClose(r.id))}),H(11,"\u2715"),y()()}if(e&2){let n=t.$implicit;Te("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),x(3),A("ngSwitch",n.type),x(),A("ngSwitchCase","success"),x(),A("ngSwitchCase","error"),x(),A("ngSwitchCase","warning"),x(),A("ngSwitchCase","info"),x(2),Me(n.message)}}var U_=class Xs{toastService=v(yf);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||Xs)};static \u0275cmp=Pe({type:Xs,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),pe(1,B_,12,14,"div",1),y()),t&2&&(x(),A("ngForOf",n.toasts()))},dependencies:[we,ki,Ph,yC],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}}"]})},bf=class xr{isOpenSignal=ae(!1);configSignal=ae(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(T({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||xr)};static \u0275prov=O({token:xr,factory:xr.\u0275fac,providedIn:"root"})};function $_(e,t){if(e&1){let n=et();p(0,"div",1),E("click",function(){V(n);let r=P();return N(r.onOverlayClick())}),p(1,"div",2),E("click",function(r){V(n);let i=P();return N(i.onModalClick(r))}),p(2,"div",3)(3,"button",4),E("click",function(){V(n);let r=P();return N(r.onBackClick())}),q(4,"app-icon",5),y(),p(5,"h2",6),H(6),y(),p(7,"button",7),E("click",function(){V(n);let r=P();return N(r.onCloseClick())}),q(8,"app-icon",8),y()(),p(9,"div",9)(10,"p",10),H(11),y()(),p(12,"div",11)(13,"button",12),E("click",function(){V(n);let r=P();return N(r.onCancel())}),H(14),y(),p(15,"button",13),E("click",function(){V(n);let r=P();return N(r.onConfirm())}),H(16),y()()()()}if(e&2){let n,r,i,s,o,a,l=P();x(6),Me(((n=l.config())==null?null:n.title)||"Back"),x(5),Me((r=l.config())==null?null:r.message),x(3),Vn(" ",((i=l.config())==null?null:i.cancelText)||"Cancel"," "),x(),Te("btn-danger",((s=l.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=l.config())==null?null:o.confirmColor)==="primary"),x(),Vn(" ",((a=l.config())==null?null:a.confirmText)||"Confirm"," ")}}var q_=class eo{confirmationService=v(bf);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||eo)};static \u0275cmp=Pe({type:eo,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&&pe(0,$_,17,8,"div",0),t&2&&A("ngIf",n.isOpen())},dependencies:[we,an,ln],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}}"]})},ri={production:!0,apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"production"},Z_=class kr{http=v(ga);logger=v(Ye);get apiUrl(){return ri.apiUrl}get timeout(){return ri.apiTimeout}createConversation(t){return this.http.post(`${this.apiUrl}/conversations`,t).pipe(ft(this.timeout),ke(this.handleError))}getConversations(t,n,r=0,i=20){let s=new qe().set("offset",r.toString()).set("limit",i.toString());return t&&(s=s.set("status",t)),n&&(s=s.set("search",n)),this.http.get(`${this.apiUrl}/conversations`,{params:s}).pipe(ft(this.timeout),ke(this.handleError))}getConversation(t){return this.http.get(`${this.apiUrl}/conversations/${t}`).pipe(ft(this.timeout),ke(this.handleError))}deleteConversation(t){return this.http.delete(`${this.apiUrl}/conversations/${t}`).pipe(ft(this.timeout),ke(this.handleError))}updateConversationTitle(t,n){return this.http.patch(`${this.apiUrl}/conversations/${t}/title`,n).pipe(ft(this.timeout),ke(this.handleError))}sendMessage(t,n){return this.http.post(`${this.apiUrl}/conversations/${t}/messages`,n).pipe(ft(this.timeout),ke(this.handleError))}getMessages(t,n=0,r=20){let i=new qe().set("offset",n.toString()).set("limit",r.toString());return this.http.get(`${this.apiUrl}/conversations/${t}/messages`,{params:i}).pipe(ft(this.timeout),ke(this.handleError))}handleError=t=>{this.logger.error("API Error:",t);let n="An error occurred";return t.error instanceof ErrorEvent?n=`Error: ${t.error.message}`:n=`Error Code: ${t.status}
24
- Message: ${t.message}`,fo(()=>new Error(n))};static \u0275fac=function(t){return new(t||kr)};static \u0275prov=O({token:kr,factory:kr.\u0275fac,providedIn:"root"})},G_=class Sr{apiService=v(Z_);logger=v(Ye);pageSize=10;chatState=ae({messages:[],isLoading:!1,currentInput:"",isLoadingMore:!1,hasMoreHistory:!1,pageSize:this.pageSize,currentOffset:0,totalMessages:0});currentConversationId=null;mockAppId="00000000-0000-0000-0000-000000000001";typingSimulationDelay=500;getState(){return this.chatState.asReadonly()}addMessage(t,n){let r={id:this.generateId(),text:t,sender:n,timestamp:new Date,isTyping:!1};this.chatState.update(i=>D(T({},i),{messages:[...i.messages,r],totalMessages:i.totalMessages+1}))}sendMessage(t){return Y(this,null,function*(){try{this.addMessage(t,"user"),this.chatState.update(i=>D(T({},i),{isLoading:!0})),this.currentConversationId||(yield this.createConversation());let n={id:"typing-"+Date.now(),text:"",sender:"assistant",timestamp:new Date,isTyping:!0};this.chatState.update(i=>D(T({},i),{messages:[...i.messages,n]})),yield this.delay(this.typingSimulationDelay);let r=yield tt(this.apiService.sendMessage(this.currentConversationId,{message:t}));this.chatState.update(i=>D(T({},i),{messages:i.messages.filter(s=>s.id!==n.id),isLoading:!1})),this.addMessage(r.assistantMessage,"assistant")}catch(n){this.logger.error("Error sending message:",n),this.chatState.update(r=>D(T({},r),{messages:r.messages.filter(i=>!i.isTyping),isLoading:!1})),this.addMessage("Sorry, I encountered an error. Please try again.","assistant")}})}createConversation(){return Y(this,null,function*(){try{let t=yield tt(this.apiService.createConversation({appId:this.mockAppId,title:"New Chat"}));this.currentConversationId=t.id}catch(t){throw this.logger.error("Error creating conversation:",t),t}})}loadConversation(t){return Y(this,null,function*(){try{this.chatState.update(o=>D(T({},o),{isLoading:!0}));let n=this.pageSize,r=yield tt(this.apiService.getMessages(t,0,n)),i=r.total,s=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1}));this.currentConversationId=t,this.chatState.update(o=>D(T({},o),{messages:s,isLoading:!1,hasMoreHistory:r.hasMore,currentOffset:r.offset+s.length,totalMessages:i,pageSize:n,isLoadingMore:!1}))}catch(n){this.logger.error("Error loading conversation:",n),this.chatState.update(r=>D(T({},r),{isLoading:!1}))}})}clearChat(){this.chatState.update(t=>D(T({},t),{messages:[],hasMoreHistory:!1,currentOffset:0,totalMessages:0,isLoadingMore:!1})),this.currentConversationId=null}getCurrentConversationId(){return this.currentConversationId}getConversations(t,n,r=0,i=20){return Y(this,null,function*(){try{return yield tt(this.apiService.getConversations(t,n,r,i))}catch(s){throw this.logger.error("Error loading conversations:",s),s}})}deleteConversation(t){return Y(this,null,function*(){try{yield tt(this.apiService.deleteConversation(t)),this.currentConversationId===t&&this.clearChat()}catch(n){throw this.logger.error("Error deleting conversation:",n),n}})}updateConversationTitle(t,n){return Y(this,null,function*(){try{yield tt(this.apiService.updateConversationTitle(t,{title:n}))}catch(r){throw this.logger.error("Error updating conversation title:",r),r}})}loadMoreHistory(){return Y(this,null,function*(){let t=this.chatState();if(!this.currentConversationId||t.isLoadingMore||!t.hasMoreHistory)return;let n=t.currentOffset;this.chatState.update(r=>D(T({},r),{isLoadingMore:!0}));try{let r=yield tt(this.apiService.getMessages(this.currentConversationId,n,t.pageSize)),i=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1})),s=n+(r.messages?.length??0);this.chatState.update(o=>D(T({},o),{messages:[...i,...o.messages],currentOffset:s,hasMoreHistory:r.hasMore,totalMessages:r.total,isLoadingMore:!1}))}catch(r){this.logger.error("Error loading more messages:",r),this.chatState.update(i=>D(T({},i),{isLoadingMore:!1}))}})}generateId(){return`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}delay(t){return new Promise(n=>setTimeout(n,t))}static \u0275fac=function(t){return new(t||Sr)};static \u0275prov=O({token:Sr,factory:Sr.\u0275fac,providedIn:"root"})},W_=class Or{constructor(t){this.logger=t,this.initializeRecognition()}recognition=null;isSupported=!1;resolveStop=null;statusSignal=ae({state:"idle",transcript:"",interimTranscript:""});getStatus(){return this.statusSignal.asReadonly()}isVoiceRecognitionSupported(){return this.isSupported}getCurrentTranscript(){return this.statusSignal().transcript}initializeRecognition(){let t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){this.logger.warn("Speech Recognition API is not supported in this browser"),this.isSupported=!1;return}this.isSupported=!0,this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.logger.debug("Voice recognition started"),this.statusSignal.update(n=>D(T({},n),{state:"listening",errorMessage:void 0}))},this.recognition.onresult=n=>{let r="",i=this.statusSignal().transcript;this.logger.debug("Voice recognition onresult event",{resultIndex:n.resultIndex,resultsLength:n.results.length});for(let s=n.resultIndex;s<n.results.length;s++){let o=n.results[s][0].transcript,a=n.results[s].isFinal;this.logger.debug(`Result ${s}:`,{transcript:o,isFinal:a}),a?i+=o+" ":r+=o}this.statusSignal.update(s=>D(T({},s),{transcript:i.trim(),interimTranscript:r.trim()})),this.logger.debug("Updated status:",{transcript:i.trim(),interimTranscript:r.trim()})},this.recognition.onerror=n=>{this.logger.error("Voice recognition error:",n.error);let r="Voice recognition error";switch(n.error){case"no-speech":r="No speech detected. Please try again.";break;case"audio-capture":r="No microphone found. Please check your microphone.";break;case"not-allowed":r="Microphone access denied. Please allow microphone access.";break;case"network":r="Network error occurred. Please check your connection.";break;default:r=`Voice recognition error: ${n.error}`}this.statusSignal.update(i=>D(T({},i),{state:"error",errorMessage:r}))},this.recognition.onend=()=>{this.logger.debug("Voice recognition ended");let n=this.statusSignal().transcript;this.logger.debug("Final transcript:",n),this.resolveStop&&(this.resolveStop({transcript:n.trim(),success:n.trim().length>0}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}startListening(t="en-US"){if(!this.isSupported){this.statusSignal.set({state:"error",transcript:"",interimTranscript:"",errorMessage:"Voice recognition is not supported in this browser"});return}if(this.statusSignal().state==="listening"){this.logger.warn("Voice recognition is already active");return}this.statusSignal.set({state:"listening",transcript:"",interimTranscript:"",errorMessage:void 0});try{this.recognition.lang=t,this.recognition.start()}catch(n){this.logger.error("Failed to start voice recognition:",n),this.statusSignal.update(r=>D(T({},r),{state:"error",errorMessage:"Failed to start voice recognition"}))}}stopListening(){return Y(this,null,function*(){return this.isSupported?this.statusSignal().state!=="listening"?{transcript:"",success:!1}:new Promise(t=>{this.resolveStop=t,this.statusSignal.update(n=>D(T({},n),{state:"processing"}));try{this.recognition.stop()}catch(n){this.logger.error("Failed to stop voice recognition:",n),this.resolveStop=null,this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0}),t({transcript:"",success:!1})}}):{transcript:"",success:!1}})}cancelListening(){if(this.isSupported){if(this.statusSignal().state==="listening")try{this.recognition.abort()}catch(t){this.logger.error("Failed to cancel voice recognition:",t)}this.resolveStop&&(this.resolveStop({transcript:"",success:!1}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}static \u0275fac=function(t){return new(t||Or)(C(Ye))};static \u0275prov=O({token:Or,factory:Or.\u0275fac,providedIn:"root"})},Cf=class Er{constructor(t){this.http=t}config=null;loadConfig(){return Y(this,null,function*(){try{this.config=yield tt(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://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}})}get apiUrl(){return this.config?.apiUrl||"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"dev"}getConfig(){return this.config||{apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}setConfig(t){this.config=t,console.log("Configuration updated:",this.config.environmentName)}static \u0275fac=function(t){return new(t||Er)(C(ga))};static \u0275prov=O({token:Er,factory:Er.\u0275fac,providedIn:"root"})},wf=class Mr{logger=v(Ye);TOKEN_KEY="jwt_token";CLOCK_SKEW_BUFFER=60;authState=ae({isAuthenticated:!1,token:null,user:null});state=this.authState.asReadonly();constructor(){this.initializeAuthState()}initializeAuthState(){let t=this.getToken();if(t){let n=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:n}),this.logger.debug("Auth state initialized from localStorage",{user:n})}else this.logger.debug("No valid token found in localStorage")}getToken(){try{let t=localStorage.getItem(this.TOKEN_KEY);return t?this.isTokenExpired()?(this.logger.warn("Token found but expired, clearing"),this.clearToken(),null):t:null}catch(t){return this.logger.error("Error reading token from localStorage",t),null}}setToken(t){try{let n=this.decodeToken(t);if(!n){this.logger.error("Cannot store invalid token");return}localStorage.setItem(this.TOKEN_KEY,t);let r=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:r}),this.logger.debug("Token stored successfully",{exp:n.exp,user:r})}catch(n){throw n instanceof DOMException&&(n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")?this.logger.error("localStorage quota exceeded",n):this.logger.error("Error storing token",n),n}}isTokenExpired(){try{let t=localStorage.getItem(this.TOKEN_KEY);if(!t)return!0;let n=this.decodeToken(t);if(!n)return!0;let r=n.exp,i=Math.floor(Date.now()/1e3),s=i>r-this.CLOCK_SKEW_BUFFER;return s&&this.logger.debug("Token expired",{exp:r,now:i,diff:r-i}),s}catch(t){return this.logger.error("Error checking token expiration",t),!0}}isAuthenticated(){return this.getToken()!==null}clearToken(){try{localStorage.removeItem(this.TOKEN_KEY),this.authState.set({isAuthenticated:!1,token:null,user:null}),this.logger.debug("Token cleared, user logged out")}catch(t){this.logger.error("Error clearing token",t)}}logout(){this.logger.info("User logged out"),this.clearToken()}getUserFromToken(t){let n=t||this.getToken();if(!n)return null;let r=this.decodeToken(n);return r?{id:r.sub,name:r.name,email:r.email}:null}createValidToken(){let t={alg:"HS256",typ:"JWT"},n=Math.floor(Date.now()/1e3),r={sub:"00000000-0000-0000-0000-000000000000",name:"Development User",email:"dev@localhost",iss:"http://oaa-api.azurewebsites.net/",iat:n,exp:n+1440*60},i=u=>{let c=JSON.stringify(u);return btoa(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},s=i(t),o=i(r),a=i({dev:!0}),l=`${s}.${o}.${a}`;return this.logger.debug("Created development token",{exp:r.exp,expiresIn:"24 hours"}),l}validateToken(t){try{let n=this.decodeToken(t);if(!n)return{isValid:!1,isExpired:!1,error:"Invalid token format"};let r=Math.floor(Date.now()/1e3)>n.exp;return{isValid:!r,isExpired:r,payload:n}}catch(n){return{isValid:!1,isExpired:!1,error:n instanceof Error?n.message:"Unknown error"}}}decodeToken(t){try{let n=t.split(".");if(n.length!==3)return this.logger.error("Invalid token format - must have 3 parts"),null;let r=n[1];if(!r)return this.logger.error("Invalid token - missing payload"),null;let i=r.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join("")),o=JSON.parse(s);return!o.sub||!o.exp||!o.iat?(this.logger.error("Invalid token payload - missing required fields"),null):o}catch(n){return this.logger.error("Token decode failed",n),null}}static \u0275fac=function(t){return new(t||Mr)};static \u0275prov=O({token:Mr,factory:Mr.\u0275fac,providedIn:"root"})};function Q_(e,t){if(e&1&&(p(0,"div",8)(1,"div",9),q(2,"app-icon",10),y(),p(3,"h1",11),H(4),y(),p(5,"p",12),H(6),y(),p(7,"p",13),H(8),y()()),e&2){let n=P();x(4),Me(n.greeting),x(2),Me(n.welcomeText),x(2),Me(n.description)}}function Y_(e,t){if(e&1){let n=et();p(0,"app-chat-history",14),E("loadMore",function(){V(n);let r=P();return N(r.onLoadMoreHistory())}),y()}if(e&2){let n=P();A("messages",n.messages())("canLoadMore",n.canLoadMoreHistory())("isLoadingMore",n.isLoadingMoreHistory())}}function K_(e,t){if(e&1){let n=et();p(0,"app-suggestion-button",19),E("buttonClick",function(r){V(n);let i=P(2);return N(i.onSuggestionClick(r))}),y()}if(e&2){let n=t.$implicit,r=P(2);A("text",n)("disabled",r.isLoading())}}function J_(e,t){if(e&1&&(p(0,"div",15)(1,"p",16),H(2),y(),p(3,"div",17),pe(4,K_,1,2,"app-suggestion-button",18),y()()),e&2){let n=P();x(2),Me(n.personalizationText),x(2),A("ngForOf",n.suggestions)}}var X_=class to{chatService=v(G_);toastService=v(yf);confirmationService=v(bf);voiceRecognition=v(W_);configService=v(Cf);authService=v(wf);logger=v(Ye);_apiUrl;_apiTimeout;set apiUrl(t){this._apiUrl=t,t&&this.updateConfig()}get apiUrl(){return this._apiUrl}set apiTimeout(t){this._apiTimeout=t,t&&this.updateConfig()}get apiTimeout(){return this._apiTimeout}set config(t){t&&(this.configService.setConfig(t),console.log("Config updated via Input:",t))}set jwtToken(t){t&&t.trim()&&(this.authService.setToken(t),console.log("JWT token set from parent application"))}title=Be.TITLE;greeting=Be.WELCOME.GREETING;welcomeText=Be.WELCOME.TEXT;description=Be.WELCOME.DESCRIPTION;personalizationText=Be.WELCOME.PERSONALIZATION;inputPlaceholder=Be.INPUT.PLACEHOLDER;suggestions=[...Be.SUGGESTIONS];chatState=this.chatService.getState();messages=it(()=>this.chatState().messages);isLoading=it(()=>this.chatState().isLoading);hasMessages=it(()=>this.messages().length>0);canLoadMoreHistory=it(()=>this.chatState().hasMoreHistory);isLoadingMoreHistory=it(()=>this.chatState().isLoadingMore);voiceStatus=this.voiceRecognition.getStatus();sidebarOpenSignal=ae(!1);isSidebarOpen=this.sidebarOpenSignal.asReadonly();conversationsSignal=ae([]);conversations=this.conversationsSignal.asReadonly();isLoadingConversationsSignal=ae(!1);isLoadingConversations=this.isLoadingConversationsSignal.asReadonly();searchQuerySignal=ae("");inputValueSignal=ae("");inputValue=this.inputValueSignal.asReadonly();ngOnInit(){console.log("AssistantPage initialized with config:",this.configService.getConfig())}updateConfig(){let t=this.configService.getConfig();this.configService.setConfig({apiUrl:this._apiUrl||t.apiUrl,apiTimeout:this._apiTimeout||t.apiTimeout,environmentName:t.environmentName}),console.log("Config updated:",this.configService.getConfig())}onMenuClick(){return Y(this,null,function*(){this.sidebarOpenSignal.set(!0),this.searchQuerySignal.set(""),yield this.loadConversations()})}onCloseClick(){this.chatService.clearChat()}onSuggestionClick(t){return Y(this,null,function*(){yield this.chatService.sendMessage(t)})}onMessageSubmit(t){return Y(this,null,function*(){t.trim()&&(this.inputValueSignal.set(""),yield this.chatService.sendMessage(t))})}onInputValueChange(t){this.inputValueSignal.set(t)}onVoiceClick(){return Y(this,null,function*(){let t=this.voiceStatus();if(!this.voiceRecognition.isVoiceRecognitionSupported()){this.toastService.error("Voice recognition is not supported in your browser. Please try Chrome, Edge, or Safari.");return}if(t.state==="listening"){let n=yield this.voiceRecognition.stopListening();this.logger.debug("Voice recognition result:",n),n.success&&n.transcript?(this.inputValueSignal.set(n.transcript),this.toastService.success("Voice input captured. Click send when ready.")):this.toastService.warning("No speech detected. Please try again.")}else t.state==="idle"?(this.voiceRecognition.startListening(),this.toastService.info("Listening... Click the microphone button again when done.")):t.state==="error"&&this.toastService.error(t.errorMessage||"Voice recognition error")})}onAddClick(){this.toastService.info("Attachment feature coming soon!")}onLoadMoreHistory(){return Y(this,null,function*(){yield this.chatService.loadMoreHistory()})}onSidebarBackClick(){this.sidebarOpenSignal.set(!1)}onSidebarSettingsClick(){this.toastService.info("Settings feature coming soon!")}onSidebarCloseClick(){this.sidebarOpenSignal.set(!1)}onConversationClick(t){return Y(this,null,function*(){this.sidebarOpenSignal.set(!1);try{yield this.chatService.loadConversation(t)}catch(n){this.logger.error("Failed to load conversation:",n),this.toastService.error("Failed to load conversation. Please try again.")}})}onConversationDeleteClick(t){return Y(this,null,function*(){if(this.logger.debug("Delete conversation:",t),!!(yield this.confirmationService.confirm({title:"Delete Conversation",message:"Are you sure you want to delete this conversation? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",confirmColor:"danger"})))try{yield this.chatService.deleteConversation(t);let n=this.conversationsSignal();this.conversationsSignal.set(n.filter(r=>r.id!==t)),this.toastService.success("Conversation deleted successfully")}catch(n){this.logger.error("Failed to delete conversation:",n),this.toastService.error("Failed to delete conversation. Please try again.")}})}onNewChatClick(){this.chatService.clearChat(),this.sidebarOpenSignal.set(!1)}onSearchChange(t){return Y(this,null,function*(){this.searchQuerySignal.set(t),yield this.loadConversations()})}onConversationTitleUpdate(t){return Y(this,null,function*(){try{yield this.chatService.updateConversationTitle(t.id,t.title);let n=this.conversationsSignal();this.conversationsSignal.set(n.map(r=>r.id===t.id?D(T({},r),{title:t.title}):r)),this.toastService.success("Conversation title updated")}catch(n){this.logger.error("Failed to update conversation title:",n),this.toastService.error("Failed to update conversation title. Please try again.")}})}loadConversations(){return Y(this,null,function*(){if(!this.isLoadingConversationsSignal()){this.isLoadingConversationsSignal.set(!0);try{let t=this.searchQuerySignal(),n=(yield this.chatService.getConversations(void 0,t||void 0)).conversations.map(r=>({id:r.id,title:r.title||"Untitled Conversation",date:new Date(r.createdAt).toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})}));this.conversationsSignal.set(n)}catch(t){this.logger.error("Failed to load conversations:",t)}finally{this.isLoadingConversationsSignal.set(!1)}}})}static \u0275fac=function(t){return new(t||to)};static \u0275cmp=Pe({type:to,selectors:[["app-assistant"]],inputs:{apiUrl:"apiUrl",apiTimeout:"apiTimeout",config:"config",jwtToken:"jwtToken",title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions"},decls:10,vars:11,consts:[[3,"backClick","settingsClick","closeClick","conversationClick","deleteClick","newChatClick","searchChange","titleUpdate","isOpen","conversations","isLoading"],[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages","canLoadMore","isLoadingMore","loadMore",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,"loadMore","messages","canLoadMore","isLoadingMore"],[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,"app-sidebar",0),E("backClick",function(){return n.onSidebarBackClick()})("settingsClick",function(){return n.onSidebarSettingsClick()})("closeClick",function(){return n.onSidebarCloseClick()})("conversationClick",function(r){return n.onConversationClick(r)})("deleteClick",function(r){return n.onConversationDeleteClick(r)})("newChatClick",function(){return n.onNewChatClick()})("searchChange",function(r){return n.onSearchChange(r)})("titleUpdate",function(r){return n.onConversationTitleUpdate(r)}),y(),p(1,"div",1)(2,"app-header",2),E("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),y(),p(3,"div",3),pe(4,Q_,9,3,"div",4)(5,Y_,1,3,"app-chat-history",5)(6,J_,5,2,"div",6),y(),p(7,"app-input-field",7),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()(),q(8,"app-toast-container")(9,"app-confirmation-modal")),t&2&&(A("isOpen",n.isSidebarOpen())("conversations",n.conversations())("isLoading",n.isLoadingConversations()),x(2),A("title",n.title),x(2),A("ngIf",!n.hasMessages()),x(),A("ngIf",n.hasMessages()),x(),A("ngIf",!n.hasMessages()),x(),A("placeholder",n.inputPlaceholder)("disabled",n.isLoading())("voiceStatus",n.voiceStatus())("value",n.inputValue()))},dependencies:[we,ki,an,Vw,Nw,b_,ln,E_,L_,U_,q_],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;width:100%;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%}}"]})},ex=class Tr{authService=v(wf);logger=v(Ye);isLoggingOut=!1;PUBLIC_ENDPOINTS=["/config.json","/assets/"];intercept(t,n){if(this.isPublicEndpoint(t.url))return this.logger.debug("Public endpoint, skipping auth",{url:t.url}),n.handle(t);let r=this.authService.getToken();if(!r&&!ri.production&&(this.logger.debug("No token found in localStorage, creating development token"),r=this.authService.createValidToken(),this.authService.setToken(r)),!r)return this.logger.debug("No token available, proceeding without auth header"),n.handle(t);let i=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return this.logger.debug("Added Authorization header to request",{url:t.url}),n.handle(i).pipe(ke(s=>(s.status===401?this.handle401Error(s):s.status===403?this.handle403Error(s):s.status===0&&this.handleNetworkError(s),fo(()=>s))))}isPublicEndpoint(t){return this.PUBLIC_ENDPOINTS.some(n=>t.includes(n))}handle401Error(t){if(this.isLoggingOut){this.logger.debug("Logout already in progress, skipping");return}this.isLoggingOut=!0,this.logger.warn("401 Unauthorized - authentication failed, logging out",{url:t.url,message:t.message}),this.authService.logout(),setTimeout(()=>{this.isLoggingOut=!1},1e3)}handle403Error(t){this.logger.warn("403 Forbidden - insufficient permissions",{url:t.url,message:t.message})}handleNetworkError(t){this.logger.error("Network error - server unreachable or timeout",{url:t.url,message:t.message})}static \u0275fac=function(t){return new(t||Tr)};static \u0275prov=O({token:Tr,factory:Tr.\u0275fac})};function _f(e){return()=>e.loadConfig()}Y(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Component already registered, skipping...");return}let e=yield jC({providers:[dm(),db({eventCoalescing:!0}),bw(Cw()),{provide:Yh,useClass:ex,multi:!0},{provide:lh,useFactory:_f,deps:[Cf],multi:!0},Ah,Dw.forRoot({level:ri.production?W.WARN:W.DEBUG,serverLogLevel:W.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=qb(X_,{injector:e.injector});customElements.define("app-assistant",t),console.log("\u2705 Web Component registered: app-assistant")});return Mf(tx);})();
23
+ <circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},ln=class $s{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Hl[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Hl[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||$s)(j(tp))};static \u0275cmp=Ie({type:$s,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&&(im(),ch(0,"svg",0)),t&2&&(Ch("filter",n.dropShadow),fh("innerHTML",n.svgContent,yd),ia("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[_e],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},Be={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"]},V_=class qs{title=Be.TITLE;menuClick=new F;closeClick=new F;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||qs)};static \u0275cmp=Ie({type:qs,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&&(f(0,"div",0)(1,"button",1),M("click",function(){return n.onMenuClick()}),q(2,"app-icon",2),y(),f(3,"div",3),q(4,"app-icon",4),f(5,"span"),z(6),y()(),f(7,"button",5),M("click",function(){return n.onCloseClick()}),q(8,"app-icon",6),y()()),t&2&&(x(6),Ee(n.title))},dependencies:[_e,ln],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #f0f0f0;min-height:56px;box-sizing:border-box;flex-shrink:0}@media (max-width: 768px){.header[_ngcontent-%COMP%]{min-height:52px;padding:10px 12px}}.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}"]})},N_=class Zs{text="";disabled=!1;buttonClick=new F;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Zs)};static \u0275cmp=Ie({type:Zs,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&&(sa(0,"button",0),gh("click",function(){return n.onClick()}),z(1),oa()),t&2&&(Te("disabled",n.disabled),x(),Vn(" ",n.text," "))},dependencies:[_e],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}"]})},rp=(()=>{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)(j(Xo),j(Et))};static \u0275dir=Ce({type:e})}return e})(),R_=(()=>{class e extends rp{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zc(e)))(r||e)}})();static \u0275dir=Ce({type:e,features:[on]})}return e})(),ip=new S(""),L_={provide:ip,useExisting:Nn(()=>qn),multi:!0};function F_(){let e=ei()?ei().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var j_=new S(""),qn=(()=>{class e extends rp{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!F_())}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)(j(Xo),j(Et),j(j_,8))};static \u0275dir=Ce({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&&M("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:[ua([L_]),on]})}return e})();function z_(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var sp=new S(""),H_=new S("");function B_(e){return t=>{let n=t.value?.length??z_(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Bl(e){return null}function op(e){return e!=null}function ap(e){return ra(e)?ho(e):e}function lp(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function up(e,t){return t.map(n=>n(e))}function U_(e){return!e.validate}function cp(e){return e.map(t=>U_(t)?t:n=>t.validate(n))}function $_(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){return lp(up(n,t))}}function dp(e){return e!=null?$_(cp(e)):null}function q_(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){let r=up(n,t).map(ap);return Yf(r).pipe(Oe(lp))}}function hp(e){return e!=null?q_(cp(e)):null}function Ul(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Z_(e){return e._rawValidators}function G_(e){return e._rawAsyncValidators}function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function ni(e,t){return Array.isArray(e)?e.includes(t):e===t}function $l(e,t){let n=Gs(t);return Gs(e).forEach(r=>{ni(n,r)||n.push(r)}),n}function ql(e,t){return Gs(t).filter(n=>!ni(e,n))}var pp=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=dp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=hp(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}},W_=class extends pp{name;get formDirective(){return null}get path(){return null}},va=class extends pp{_parent=null;name=null;valueAccessor=null},Q_=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}},Y_={"[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"},ox=D(T({},Y_),{"[class.ng-submitted]":"isSubmitted"}),ya=(()=>{class e extends Q_{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(j(va,2))};static \u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Te("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:[on]})}return e})(),hn="VALID",ar="INVALID",At="PENDING",pn="DISABLED",Zn=class{},Zl=class extends Zn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},os=class extends Zn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},as=class extends Zn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},lr=class extends Zn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},K_=class extends Zn{source;constructor(e){super(),this.source=e}};function J_(e){return(Mi(e)?e.validators:e)||null}function X_(e){return Array.isArray(e)?dp(e):e||null}function ew(e,t){return(Mi(t)?t.asyncValidators:e)||null}function tw(e){return Array.isArray(e)?hp(e):e||null}function Mi(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var nw=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 It(this.statusReactive)}set status(e){It(()=>this.statusReactive.set(e))}_status=it(()=>this.statusReactive());statusReactive=ae(void 0);get valid(){return this.status===hn}get invalid(){return this.status===ar}get pending(){return this.status==At}get disabled(){return this.status===pn}get enabled(){return this.status!==pn}errors;get pristine(){return It(this.pristineReactive)}set pristine(e){It(()=>this.pristineReactive.set(e))}_pristine=it(()=>this.pristineReactive());pristineReactive=ae(!0);get dirty(){return!this.pristine}get touched(){return It(this.touchedReactive)}set touched(e){It(()=>this.touchedReactive.set(e))}_touched=it(()=>this.touchedReactive());touchedReactive=ae(!1);get untouched(){return!this.touched}_events=new ut;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($l(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators($l(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ql(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ql(e,this._rawAsyncValidators))}hasValidator(e){return ni(this._rawValidators,e)}hasAsyncValidator(e){return ni(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(D(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new as(!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 as(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(D(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new os(!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 os(!0,n))}markAsPending(e={}){this.status=At;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new lr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(D(T({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=pn,this.errors=null,this._forEachChild(r=>{r.disable(D(T({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zl(this.value,n)),this._events.next(new lr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(D(T({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hn,this._forEachChild(n=>{n.enable(D(T({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(D(T({},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===hn||this.status===At)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zl(this.value,t)),this._events.next(new lr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(D(T({},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()?pn:hn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=At,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=ap(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 lr(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?pn:this.errors?ar:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(At)?At:this._anyControlsHaveStatus(ar)?ar:hn}_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 os(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new as(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Mi(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=X_(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=tw(this._rawAsyncValidators)}},fp=new S("",{providedIn:"root",factory:()=>ba}),ba="always";function rw(e,t){return[...t.path,e]}function iw(e,t,n=ba){ow(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),aw(e,t),uw(e,t),lw(e,t),sw(e,t)}function Gl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function sw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function ow(e,t){let n=Z_(e);t.validator!==null?e.setValidators(Ul(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=G_(e);t.asyncValidator!==null?e.setAsyncValidators(Ul(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Gl(t._rawValidators,i),Gl(t._rawAsyncValidators,i)}function aw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&gp(e,t)})}function lw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&gp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function gp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function uw(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function cw(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function dw(e){return Object.getPrototypeOf(e.constructor)===R_}function hw(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===qn?n=s:dw(s)?r=s:i=s}),i||r||n||null}function Wl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ql(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var pw=class extends nw{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(J_(t),ew(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Mi(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Ql(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 K_(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Wl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Wl(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){Ql(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}},fw={provide:va,useExisting:Nn(()=>Ei)},Yl=Promise.resolve(),Ei=(()=>{class e extends va{_changeDetectorRef;callSetDisabledState;control=new pw;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new F;constructor(n,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=hw(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),cw(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(){iw(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){Yl.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ab(r);Yl.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?rw(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(j(W_,9),j(sp,10),j(H_,10),j(ip,10),j(xb,8),j(fp,8))};static \u0275dir=Ce({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:[ua([fw]),on,gi]})}return e})();function gw(e){return typeof e=="number"?e:parseInt(e,10)}var mw=(()=>{class e{_validator=Bl;_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):Bl,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=Ce({type:e,features:[gi]})}return e})(),vw={provide:sp,useExisting:Nn(()=>mp),multi:!0},mp=(()=>{class e extends mw{maxlength;inputName="maxlength";normalizeInput=n=>gw(n);createValidator=n=>B_(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zc(e)))(r||e)}})();static \u0275dir=Ce({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ia("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ua([vw]),on]})}return e})(),yw=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=wi({type:e});static \u0275inj=oi({})}return e})(),Ca=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:fp,useValue:n.callSetDisabledState??ba}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=wi({type:e});static \u0275inj=oi({imports:[yw]})}return e})(),bw=class Ws{placeholder=Be.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new F;submitMessage=new F;voiceClick=new F;addClick=new F;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||Ws)};static \u0275cmp=Ie({type:Ws,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&&(f(0,"div",0)(1,"div",1)(2,"button",2),M("click",function(){return n.onAddClick()}),q(3,"app-icon",3),y(),f(4,"input",4),M("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),y(),f(5,"button",5),M("click",function(){return n.onVoiceClick()}),q(6,"app-icon",6),y()()()),t&2&&(x(4),Te("listening",n.isListening),A("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),x(),Te("active",n.isListening))},dependencies:[_e,Ca,qn,ya,Ei,ln],styles:[".input-container[_ngcontent-%COMP%]{padding:12px 16px;background:#fff;border-top:1px solid #f0f0f0;flex-shrink:0;box-sizing:border-box}@media (max-width: 768px){.input-container[_ngcontent-%COMP%]{padding:10px 12px}}@media (max-height: 600px){.input-container[_ngcontent-%COMP%]{padding:8px 12px}}.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 Cw(e,t){e&1&&(f(0,"div",6),q(1,"span")(2,"span")(3,"span"),y())}function _w(e,t){if(e&1&&q(0,"div",7),e&2){let n=I();A("innerHTML",n.message.text,yd)}}var ww=class Qs{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||Qs)};static \u0275cmp=Ie({type:Qs,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&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),fe(4,Cw,4,0,"div",4)(5,_w,1,1,"div",5),y()()()()),t&2&&(Te("user",n.isUser)("assistant",n.isAssistant),x(3),Te("typing",n.message.isTyping),x(),A("ngIf",n.message.isTyping),x(),A("ngIf",!n.message.isTyping))},dependencies:[_e,an],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%}}"]})},xw=["messagesContainer"];function kw(e,t){if(e&1&&q(0,"app-message",7),e&2){let n=t.$implicit;A("message",n)}}function Sw(e,t){if(e&1&&(f(0,"div",5),fe(1,kw,1,1,"app-message",6),y()),e&2){let n=I();x(),A("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function Ow(e,t){e&1&&(f(0,"div",8)(1,"p",9),z(2,"Start a conversation by typing a message or selecting a suggestion below."),y()())}var Mw=class Ys{messages=[];canLoadMore=!1;isLoadingMore=!1;loadMore=new F;messagesContainer;restoreScrollAfterPrepend=!1;previousScrollHeight=0;suppressNextScroll=!1;lastScrollTop=Number.MAX_SAFE_INTEGER;scrollInitialized=!1;initialScrollPending=!0;initialScrollRequested=!1;get container(){return this.messagesContainer?.nativeElement??null}ngAfterViewChecked(){if(this.restoreScrollAfterPrepend&&this.messagesContainer){let t=this.messagesContainer.nativeElement,n=t.scrollHeight-this.previousScrollHeight;t.scrollTop=n+t.scrollTop,this.restoreScrollAfterPrepend=!1}}ngOnChanges(t){if(!t.messages)return;let n=t.messages.currentValue,r=t.messages.previousValue;this.initialScrollPending?this.queueInitialScroll():this.hasAppendedMessage(r,n)&&this.scrollToBottomAfterRender()}onScroll(){if(!this.canLoadMore)return;let t=this.container;t&&(this.shouldSkipScroll(t)||this.isNearTop(t.scrollTop)&&this.prepareForLoadMore(t))}trackByMessageId(t,n){return n.id}queueInitialScroll(){this.initialScrollRequested||(this.initialScrollRequested=!0,Promise.resolve().then(()=>{let t=this.container;if(!t||!this.initialScrollPending){this.initialScrollRequested=!1;return}this.scrollToBottom(t),this.initialScrollPending=!1,this.initialScrollRequested=!1}))}scrollToBottomAfterRender(){Promise.resolve().then(()=>{let t=this.container;t&&this.scrollToBottom(t)})}scrollToBottom(t){this.suppressNextScroll=!0,t.scrollTop=t.scrollHeight,this.lastScrollTop=t.scrollTop,this.scrollInitialized=!0}triggerLoadMore(t){if(!this.canLoadMore||this.isLoadingMore)return;let n=t??this.container;n&&(this.previousScrollHeight=n.scrollHeight,this.restoreScrollAfterPrepend=!0),this.loadMore.emit()}hasAppendedMessage(t,n){if(!n||n.length===0)return!1;if(!t||t.length===0)return!0;if(n.length<=t.length)return!1;let r=t[t.length-1]?.id;return n[n.length-1]?.id!==r}shouldSkipScroll(t){let n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;if(this.suppressNextScroll)return this.suppressNextScroll=!1,this.lastScrollTop=n,!0;if(r<=i+200)return this.lastScrollTop=n,!0;if(!this.scrollInitialized)return this.scrollInitialized=!0,this.lastScrollTop=n,!0;let s=n<this.lastScrollTop;return this.lastScrollTop=n,!s}isNearTop(t){return t<=200}prepareForLoadMore(t){this.suppressNextScroll=!0,this.triggerLoadMore(t)}static \u0275fac=function(t){return new(t||Ys)};static \u0275cmp=Ie({type:Ys,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&vh(xw,5),t&2){let r;yh(r=bh())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore"},outputs:{loadMore:"loadMore"},features:[gi],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container",3,"scroll"],["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){if(t&1){let r=et();f(0,"div",1)(1,"div",2,0),M("scroll",function(){return V(r),N(n.onScroll())}),fe(3,Sw,2,2,"div",3)(4,Ow,3,0,"div",4),y()()}t&2&&(x(3),A("ngIf",n.messages.length>0),x(),A("ngIf",n.messages.length===0))},dependencies:[_e,ki,an,ww],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}"]})};function Ew(e,t){if(e&1){let n=et();f(0,"div",1),M("click",function(){V(n);let r=I();return N(r.onOverlayClick())}),f(1,"div",2),M("click",function(r){V(n);let i=I();return N(i.onModalClick(r))}),f(2,"div",3)(3,"button",4),M("click",function(){V(n);let r=I();return N(r.onBackClick())}),q(4,"app-icon",5),y(),f(5,"h2",6),z(6,"Rename Chat"),y(),f(7,"button",7),M("click",function(){V(n);let r=I();return N(r.onCloseClick())}),q(8,"app-icon",8),y()(),f(9,"div",9)(10,"input",10),la("ngModelChange",function(r){V(n);let i=I();return wh(i.editedTitle,r)||(i.editedTitle=r),N(r)}),M("keydown",function(r){V(n);let i=I();return N(i.onInputKeydown(r))}),y()(),f(11,"div",11)(12,"button",12),M("click",function(){V(n);let r=I();return N(r.onCancel())}),z(13," Cancel "),y(),f(14,"button",13),M("click",function(){V(n);let r=I();return N(r.onSave())}),z(15," Save "),y()()()()}if(e&2){let n=I();x(10),aa("ngModel",n.editedTitle),A("maxlength",500)}}var Tw=class Ks{isOpen=!1;currentTitle="";close=new F;save=new F;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||Ks)};static \u0275cmp=Ie({type:Ks,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[gi],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&&fe(0,Ew,16,2,"div",0),t&2&&A("ngIf",n.isOpen)},dependencies:[_e,an,Ca,qn,ya,mp,Ei,ln],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}}"]})},Pw=["scrollContainer"],Iw=e=>({compact:e});function Aw(e,t){if(e&1){let n=et();f(0,"div",34)(1,"button",35),M("click",function(r){V(n);let i=I().$implicit,s=I(2);return N(s.onEditClick(i.id,i.title,r))}),q(2,"app-icon",36),f(3,"span"),z(4,"Rename"),y()(),f(5,"button",37),M("click",function(r){V(n);let i=I().$implicit,s=I(2);return N(s.onDeleteClick(i.id,r))}),q(6,"app-icon",38),f(7,"span"),z(8,"Delete"),y()()()}}function Dw(e,t){if(e&1){let n=et();f(0,"div",25),M("click",function(){let r=V(n).$implicit,i=I(2);return N(i.onConversationClick(r.id))}),f(1,"div",26)(2,"div",27)(3,"span",28),z(4),y()(),f(5,"span",29),z(6),y()(),f(7,"div",30)(8,"button",31),M("click",function(r){let i=V(n).$implicit,s=I(2);return N(s.toggleMenu(i.id,r))}),q(9,"app-icon",32),y(),fe(10,Aw,9,0,"div",33),y()()}if(e&2){let n=t.$implicit,r=I(2);x(4),Ee(n.title),x(2),Ee(n.date),x(4),A("ngIf",r.isMenuOpen(n.id))}}function Vw(e,t){if(e&1&&(f(0,"div",23),fe(1,Dw,11,3,"div",24),y()),e&2){let n=I();x(),A("ngForOf",n.conversations)}}function Nw(e,t){if(e&1&&(f(0,"div",39)(1,"div",40),q(2,"div",41),f(3,"p",42),z(4,"Loading conversations..."),y()()()),e&2){let n=I();x(),A("ngClass",ob(1,Iw,!(n.isLoading&&n.conversations.length===0)))}}function Rw(e,t){e&1&&(f(0,"div",43)(1,"p"),z(2,"No conversations yet"),y()())}var Lw=class Js{isOpen=!1;conversations=[];canLoadMore=!1;isLoadingMore=!1;isLoading=!1;scrollContainer;backClick=new F;settingsClick=new F;closeClick=new F;conversationClick=new F;deleteClick=new F;newChatClick=new F;searchChange=new F;titleUpdate=new F;loadMore=new F;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()}onScroll(){if(!this.canLoadMore||this.isLoadingMore||this.isLoading)return;let t=this.scrollContainer?.nativeElement;t&&t.scrollHeight-t.scrollTop-t.clientHeight<=80&&this.loadMore.emit()}static \u0275fac=function(t){return new(t||Js)};static \u0275cmp=Ie({type:Js,selectors:[["app-sidebar"]],viewQuery:function(t,n){if(t&1&&vh(Pw,5),t&2){let r;yh(r=bh())&&(n.scrollContainer=r.first)}},inputs:{isOpen:"isOpen",conversations:"conversations",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate",loadMore:"loadMore"},decls:26,vars:10,consts:[["scrollContainer",""],[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",3,"scroll"],[1,"conversations-title"],["class","conversations-list",4,"ngIf"],["class","load-more",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,"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,"load-more"],["aria-live","polite",1,"loading-state",3,"ngClass"],["aria-hidden","true",1,"spinner"],[1,"loading-text"],[1,"empty-conversations"]],template:function(t,n){if(t&1){let r=et();f(0,"div",1),M("click",function(){return V(r),N(n.onOverlayClick())}),y(),f(1,"div",2),M("click",function(){return V(r),N(n.onSidebarClick())}),f(2,"div",3)(3,"button",4),M("click",function(){return V(r),N(n.onBackClick())}),q(4,"app-icon",5),f(5,"span"),z(6,"Back to Chat"),y()(),f(7,"div",6)(8,"button",7),M("click",function(){return V(r),N(n.onSettingsClick())}),q(9,"app-icon",8),y(),f(10,"button",9),M("click",function(){return V(r),N(n.onCloseClick())}),q(11,"app-icon",10),y()()(),f(12,"div",11,0),M("scroll",function(){return V(r),N(n.onScroll())}),f(14,"h3",12),z(15,"Conversations"),y(),fe(16,Vw,2,1,"div",13)(17,Nw,5,3,"div",14)(18,Rw,3,0,"div",15),y(),f(19,"div",16)(20,"div",17),q(21,"app-icon",18),f(22,"input",19),la("ngModelChange",function(i){return V(r),wh(n.searchQuery,i)||(n.searchQuery=i),N(i)}),M("input",function(){return V(r),N(n.onSearchChange())}),y()(),f(23,"button",20),M("click",function(){return V(r),N(n.onNewChatClick())}),q(24,"app-icon",21),y()()(),f(25,"app-rename-modal",22),M("close",function(){return V(r),N(n.onRenameModalClose())})("save",function(i){return V(r),N(n.onRenameModalSave(i))}),y()}t&2&&(Te("visible",n.isOpen),x(),Te("open",n.isOpen),x(15),A("ngIf",n.conversations.length>0),x(),A("ngIf",n.isLoading&&n.conversations.length===0||n.isLoadingMore&&n.conversations.length>0),x(),A("ngIf",!n.isLoading&&n.conversations.length===0),x(4),aa("ngModel",n.searchQuery),x(3),A("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[_e,fC,ki,an,Ca,qn,ya,Ei,ln,Tw],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}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 20px;color:#1a1a1a}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid rgba(0,0,0,.1);border-top-color:#2c3e50;border-radius:50%;animation:_ngcontent-%COMP%_spin .9s linear infinite}.loading-text[_ngcontent-%COMP%]{font-size:14px;color:#54606c;margin:0}.loading-state.compact[_ngcontent-%COMP%]{flex-direction:row;padding:12px 16px;gap:10px}.loading-state.compact[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font-size:13px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:12px}.load-more-button[_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(0,0,0,.1);border-radius:999px;color:#2c3e50;font-size:13px;padding:6px 16px;cursor:pointer;transition:background .2s ease,border-color .2s ease}.load-more-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#0000000a;border-color:#0003}.load-more-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.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}}"]})},vp=class wr{toasts=ae([]);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||wr)};static \u0275prov=O({token:wr,factory:wr.\u0275fac,providedIn:"root"})};function Fw(e,t){e&1&&(f(0,"span"),z(1,"\u2713"),y())}function jw(e,t){e&1&&(f(0,"span"),z(1,"\u2715"),y())}function zw(e,t){e&1&&(f(0,"span"),z(1,"\u26A0"),y())}function Hw(e,t){e&1&&(f(0,"span"),z(1,"\u2139"),y())}function Bw(e,t){if(e&1){let n=et();f(0,"div",2)(1,"div",3)(2,"span",4),hh(3,5),fe(4,Fw,2,0,"span",6)(5,jw,2,0,"span",6)(6,zw,2,0,"span",6)(7,Hw,2,0,"span",6),ph(),y(),f(8,"span",7),z(9),y()(),f(10,"button",8),M("click",function(){let r=V(n).$implicit,i=I();return N(i.onClose(r.id))}),z(11,"\u2715"),y()()}if(e&2){let n=t.$implicit;Te("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),x(3),A("ngSwitch",n.type),x(),A("ngSwitchCase","success"),x(),A("ngSwitchCase","error"),x(),A("ngSwitchCase","warning"),x(),A("ngSwitchCase","info"),x(2),Ee(n.message)}}var Uw=class Xs{toastService=v(vp);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||Xs)};static \u0275cmp=Ie({type:Xs,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&&(f(0,"div",0),fe(1,Bw,12,14,"div",1),y()),t&2&&(x(),A("ngForOf",n.toasts()))},dependencies:[_e,ki,Ih,yC],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}}"]})},yp=class xr{isOpenSignal=ae(!1);configSignal=ae(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(T({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||xr)};static \u0275prov=O({token:xr,factory:xr.\u0275fac,providedIn:"root"})};function $w(e,t){if(e&1){let n=et();f(0,"div",1),M("click",function(){V(n);let r=I();return N(r.onOverlayClick())}),f(1,"div",2),M("click",function(r){V(n);let i=I();return N(i.onModalClick(r))}),f(2,"div",3)(3,"button",4),M("click",function(){V(n);let r=I();return N(r.onBackClick())}),q(4,"app-icon",5),y(),f(5,"h2",6),z(6),y(),f(7,"button",7),M("click",function(){V(n);let r=I();return N(r.onCloseClick())}),q(8,"app-icon",8),y()(),f(9,"div",9)(10,"p",10),z(11),y()(),f(12,"div",11)(13,"button",12),M("click",function(){V(n);let r=I();return N(r.onCancel())}),z(14),y(),f(15,"button",13),M("click",function(){V(n);let r=I();return N(r.onConfirm())}),z(16),y()()()()}if(e&2){let n,r,i,s,o,a,l=I();x(6),Ee(((n=l.config())==null?null:n.title)||"Back"),x(5),Ee((r=l.config())==null?null:r.message),x(3),Vn(" ",((i=l.config())==null?null:i.cancelText)||"Cancel"," "),x(),Te("btn-danger",((s=l.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=l.config())==null?null:o.confirmColor)==="primary"),x(),Vn(" ",((a=l.config())==null?null:a.confirmText)||"Confirm"," ")}}var qw=class eo{confirmationService=v(yp);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||eo)};static \u0275cmp=Ie({type:eo,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&&fe(0,$w,17,8,"div",0),t&2&&A("ngIf",n.isOpen())},dependencies:[_e,an,ln],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}}"]})},ri={production:!0,apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"production"},Zw=class kr{http=v(ga);logger=v(Ye);get apiUrl(){return ri.apiUrl}get timeout(){return ri.apiTimeout}createConversation(t){return this.http.post(`${this.apiUrl}/conversations`,t).pipe(pt(this.timeout),ke(this.handleError))}getConversations(t,n,r=0,i=20){let s=new qe().set("offset",r.toString()).set("limit",i.toString());return t&&(s=s.set("status",t)),n&&(s=s.set("search",n)),this.http.get(`${this.apiUrl}/conversations`,{params:s}).pipe(pt(this.timeout),ke(this.handleError))}getConversation(t){return this.http.get(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),ke(this.handleError))}deleteConversation(t){return this.http.delete(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),ke(this.handleError))}updateConversationTitle(t,n){return this.http.patch(`${this.apiUrl}/conversations/${t}/title`,n).pipe(pt(this.timeout),ke(this.handleError))}sendMessage(t,n){return this.http.post(`${this.apiUrl}/conversations/${t}/messages`,n).pipe(pt(this.timeout),ke(this.handleError))}getMessages(t,n=0,r=20){let i=new qe().set("offset",n.toString()).set("limit",r.toString());return this.http.get(`${this.apiUrl}/conversations/${t}/messages`,{params:i}).pipe(pt(this.timeout),ke(this.handleError))}handleError=t=>{this.logger.error("API Error:",t);let n="An error occurred";return t.error instanceof ErrorEvent?n=`Error: ${t.error.message}`:n=`Error Code: ${t.status}
24
+ Message: ${t.message}`,po(()=>new Error(n))};static \u0275fac=function(t){return new(t||kr)};static \u0275prov=O({token:kr,factory:kr.\u0275fac,providedIn:"root"})},Gw=class Sr{apiService=v(Zw);logger=v(Ye);pageSize=10;chatState=ae({messages:[],isLoading:!1,currentInput:"",isLoadingMore:!1,hasMoreHistory:!1,pageSize:this.pageSize,currentOffset:0,totalMessages:0});currentConversationId=null;mockAppId="00000000-0000-0000-0000-000000000001";typingSimulationDelay=500;getState(){return this.chatState.asReadonly()}addMessage(t,n){let r={id:this.generateId(),text:t,sender:n,timestamp:new Date,isTyping:!1};this.chatState.update(i=>D(T({},i),{messages:[...i.messages,r],totalMessages:i.totalMessages+1}))}sendMessage(t){return Y(this,null,function*(){try{this.addMessage(t,"user"),this.chatState.update(i=>D(T({},i),{isLoading:!0})),this.currentConversationId||(yield this.createConversation());let n={id:"typing-"+Date.now(),text:"",sender:"assistant",timestamp:new Date,isTyping:!0};this.chatState.update(i=>D(T({},i),{messages:[...i.messages,n]})),yield this.delay(this.typingSimulationDelay);let r=yield tt(this.apiService.sendMessage(this.currentConversationId,{message:t}));this.chatState.update(i=>D(T({},i),{messages:i.messages.filter(s=>s.id!==n.id),isLoading:!1})),this.addMessage(r.assistantMessage,"assistant")}catch(n){this.logger.error("Error sending message:",n),this.chatState.update(r=>D(T({},r),{messages:r.messages.filter(i=>!i.isTyping),isLoading:!1})),this.addMessage("Sorry, I encountered an error. Please try again.","assistant")}})}createConversation(){return Y(this,null,function*(){try{let t=yield tt(this.apiService.createConversation({appId:this.mockAppId,title:"New Chat"}));this.currentConversationId=t.id}catch(t){throw this.logger.error("Error creating conversation:",t),t}})}loadConversation(t){return Y(this,null,function*(){try{this.chatState.update(o=>D(T({},o),{isLoading:!0}));let n=this.pageSize,r=yield tt(this.apiService.getMessages(t,0,n)),i=r.total,s=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1}));this.currentConversationId=t,this.chatState.update(o=>D(T({},o),{messages:s,isLoading:!1,hasMoreHistory:r.hasMore,currentOffset:r.offset+s.length,totalMessages:i,pageSize:n,isLoadingMore:!1}))}catch(n){this.logger.error("Error loading conversation:",n),this.chatState.update(r=>D(T({},r),{isLoading:!1}))}})}clearChat(){this.chatState.update(t=>D(T({},t),{messages:[],hasMoreHistory:!1,currentOffset:0,totalMessages:0,isLoadingMore:!1})),this.currentConversationId=null}getCurrentConversationId(){return this.currentConversationId}getConversations(t,n,r=0,i=20){return Y(this,null,function*(){try{return yield tt(this.apiService.getConversations(t,n,r,i))}catch(s){throw this.logger.error("Error loading conversations:",s),s}})}deleteConversation(t){return Y(this,null,function*(){try{yield tt(this.apiService.deleteConversation(t)),this.currentConversationId===t&&this.clearChat()}catch(n){throw this.logger.error("Error deleting conversation:",n),n}})}updateConversationTitle(t,n){return Y(this,null,function*(){try{yield tt(this.apiService.updateConversationTitle(t,{title:n}))}catch(r){throw this.logger.error("Error updating conversation title:",r),r}})}loadMoreHistory(){return Y(this,null,function*(){let t=this.chatState();if(!this.currentConversationId||t.isLoadingMore||!t.hasMoreHistory)return;let n=t.currentOffset;this.chatState.update(r=>D(T({},r),{isLoadingMore:!0}));try{let r=yield tt(this.apiService.getMessages(this.currentConversationId,n,t.pageSize)),i=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1})),s=n+(r.messages?.length??0);this.chatState.update(o=>D(T({},o),{messages:[...i,...o.messages],currentOffset:s,hasMoreHistory:r.hasMore,totalMessages:r.total,isLoadingMore:!1}))}catch(r){this.logger.error("Error loading more messages:",r),this.chatState.update(i=>D(T({},i),{isLoadingMore:!1}))}})}generateId(){return`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}delay(t){return new Promise(n=>setTimeout(n,t))}static \u0275fac=function(t){return new(t||Sr)};static \u0275prov=O({token:Sr,factory:Sr.\u0275fac,providedIn:"root"})},Ww=class Or{constructor(t){this.logger=t,this.initializeRecognition()}recognition=null;isSupported=!1;resolveStop=null;statusSignal=ae({state:"idle",transcript:"",interimTranscript:""});getStatus(){return this.statusSignal.asReadonly()}isVoiceRecognitionSupported(){return this.isSupported}getCurrentTranscript(){return this.statusSignal().transcript}initializeRecognition(){let t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){this.logger.warn("Speech Recognition API is not supported in this browser"),this.isSupported=!1;return}this.isSupported=!0,this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.logger.debug("Voice recognition started"),this.statusSignal.update(n=>D(T({},n),{state:"listening",errorMessage:void 0}))},this.recognition.onresult=n=>{let r="",i=this.statusSignal().transcript;this.logger.debug("Voice recognition onresult event",{resultIndex:n.resultIndex,resultsLength:n.results.length});for(let s=n.resultIndex;s<n.results.length;s++){let o=n.results[s][0].transcript,a=n.results[s].isFinal;this.logger.debug(`Result ${s}:`,{transcript:o,isFinal:a}),a?i+=o+" ":r+=o}this.statusSignal.update(s=>D(T({},s),{transcript:i.trim(),interimTranscript:r.trim()})),this.logger.debug("Updated status:",{transcript:i.trim(),interimTranscript:r.trim()})},this.recognition.onerror=n=>{this.logger.error("Voice recognition error:",n.error);let r="Voice recognition error";switch(n.error){case"no-speech":r="No speech detected. Please try again.";break;case"audio-capture":r="No microphone found. Please check your microphone.";break;case"not-allowed":r="Microphone access denied. Please allow microphone access.";break;case"network":r="Network error occurred. Please check your connection.";break;default:r=`Voice recognition error: ${n.error}`}this.statusSignal.update(i=>D(T({},i),{state:"error",errorMessage:r}))},this.recognition.onend=()=>{this.logger.debug("Voice recognition ended");let n=this.statusSignal().transcript;this.logger.debug("Final transcript:",n),this.resolveStop&&(this.resolveStop({transcript:n.trim(),success:n.trim().length>0}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}startListening(t="en-US"){if(!this.isSupported){this.statusSignal.set({state:"error",transcript:"",interimTranscript:"",errorMessage:"Voice recognition is not supported in this browser"});return}if(this.statusSignal().state==="listening"){this.logger.warn("Voice recognition is already active");return}this.statusSignal.set({state:"listening",transcript:"",interimTranscript:"",errorMessage:void 0});try{this.recognition.lang=t,this.recognition.start()}catch(n){this.logger.error("Failed to start voice recognition:",n),this.statusSignal.update(r=>D(T({},r),{state:"error",errorMessage:"Failed to start voice recognition"}))}}stopListening(){return Y(this,null,function*(){return this.isSupported?this.statusSignal().state!=="listening"?{transcript:"",success:!1}:new Promise(t=>{this.resolveStop=t,this.statusSignal.update(n=>D(T({},n),{state:"processing"}));try{this.recognition.stop()}catch(n){this.logger.error("Failed to stop voice recognition:",n),this.resolveStop=null,this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0}),t({transcript:"",success:!1})}}):{transcript:"",success:!1}})}cancelListening(){if(this.isSupported){if(this.statusSignal().state==="listening")try{this.recognition.abort()}catch(t){this.logger.error("Failed to cancel voice recognition:",t)}this.resolveStop&&(this.resolveStop({transcript:"",success:!1}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}static \u0275fac=function(t){return new(t||Or)(C(Ye))};static \u0275prov=O({token:Or,factory:Or.\u0275fac,providedIn:"root"})},bp=class Mr{constructor(t){this.http=t}config=null;loadConfig(){return Y(this,null,function*(){try{this.config=yield tt(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://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}})}get apiUrl(){return this.config?.apiUrl||"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"dev"}getConfig(){return this.config||{apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}setConfig(t){this.config=t,console.log("Configuration updated:",this.config.environmentName)}static \u0275fac=function(t){return new(t||Mr)(C(ga))};static \u0275prov=O({token:Mr,factory:Mr.\u0275fac,providedIn:"root"})},Cp=class Er{logger=v(Ye);TOKEN_KEY="jwt_token";CLOCK_SKEW_BUFFER=60;authState=ae({isAuthenticated:!1,token:null,user:null});state=this.authState.asReadonly();constructor(){this.initializeAuthState()}initializeAuthState(){let t=this.getToken();if(t){let n=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:n}),this.logger.debug("Auth state initialized from localStorage",{user:n})}else this.logger.debug("No valid token found in localStorage")}getToken(){try{let t=localStorage.getItem(this.TOKEN_KEY);return t?this.isTokenExpired()?(this.logger.warn("Token found but expired, clearing"),this.clearToken(),null):t:null}catch(t){return this.logger.error("Error reading token from localStorage",t),null}}setToken(t){try{let n=this.decodeToken(t);if(!n){this.logger.error("Cannot store invalid token");return}localStorage.setItem(this.TOKEN_KEY,t);let r=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:r}),this.logger.debug("Token stored successfully",{exp:n.exp,user:r})}catch(n){throw n instanceof DOMException&&(n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")?this.logger.error("localStorage quota exceeded",n):this.logger.error("Error storing token",n),n}}isTokenExpired(){try{let t=localStorage.getItem(this.TOKEN_KEY);if(!t)return!0;let n=this.decodeToken(t);if(!n)return!0;let r=n.exp,i=Math.floor(Date.now()/1e3),s=i>r-this.CLOCK_SKEW_BUFFER;return s&&this.logger.debug("Token expired",{exp:r,now:i,diff:r-i}),s}catch(t){return this.logger.error("Error checking token expiration",t),!0}}isAuthenticated(){return this.getToken()!==null}clearToken(){try{localStorage.removeItem(this.TOKEN_KEY),this.authState.set({isAuthenticated:!1,token:null,user:null}),this.logger.debug("Token cleared, user logged out")}catch(t){this.logger.error("Error clearing token",t)}}logout(){this.logger.info("User logged out"),this.clearToken()}getUserFromToken(t){let n=t||this.getToken();if(!n)return null;let r=this.decodeToken(n);return r?{id:r.sub,name:r.name,email:r.email}:null}createValidToken(){let t={alg:"HS256",typ:"JWT"},n=Math.floor(Date.now()/1e3),r={sub:"00000000-0000-0000-0000-000000000000",name:"Development User",email:"dev@localhost",iss:"http://oaa-api.azurewebsites.net/",iat:n,exp:n+1440*60},i=u=>{let c=JSON.stringify(u);return btoa(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},s=i(t),o=i(r),a=i({dev:!0}),l=`${s}.${o}.${a}`;return this.logger.debug("Created development token",{exp:r.exp,expiresIn:"24 hours"}),l}validateToken(t){try{let n=this.decodeToken(t);if(!n)return{isValid:!1,isExpired:!1,error:"Invalid token format"};let r=Math.floor(Date.now()/1e3)>n.exp;return{isValid:!r,isExpired:r,payload:n}}catch(n){return{isValid:!1,isExpired:!1,error:n instanceof Error?n.message:"Unknown error"}}}decodeToken(t){try{let n=t.split(".");if(n.length!==3)return this.logger.error("Invalid token format - must have 3 parts"),null;let r=n[1];if(!r)return this.logger.error("Invalid token - missing payload"),null;let i=r.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join("")),o=JSON.parse(s);return!o.sub||!o.exp||!o.iat?(this.logger.error("Invalid token payload - missing required fields"),null):o}catch(n){return this.logger.error("Token decode failed",n),null}}static \u0275fac=function(t){return new(t||Er)};static \u0275prov=O({token:Er,factory:Er.\u0275fac,providedIn:"root"})};function Qw(e,t){if(e&1&&(f(0,"div",8)(1,"div",9),q(2,"app-icon",10),y(),f(3,"h1",11),z(4),y(),f(5,"p",12),z(6),y(),f(7,"p",13),z(8),y()()),e&2){let n=I();x(4),Ee(n.greeting),x(2),Ee(n.welcomeText),x(2),Ee(n.description)}}function Yw(e,t){if(e&1){let n=et();f(0,"app-chat-history",14),M("loadMore",function(){V(n);let r=I();return N(r.onLoadMoreHistory())}),y()}if(e&2){let n=I();A("messages",n.messages())("canLoadMore",n.canLoadMoreHistory())("isLoadingMore",n.isLoadingMoreHistory())}}function Kw(e,t){if(e&1){let n=et();f(0,"app-suggestion-button",19),M("buttonClick",function(r){V(n);let i=I(2);return N(i.onSuggestionClick(r))}),y()}if(e&2){let n=t.$implicit,r=I(2);A("text",n)("disabled",r.isLoading())}}function Jw(e,t){if(e&1&&(f(0,"div",15)(1,"p",16),z(2),y(),f(3,"div",17),fe(4,Kw,1,2,"app-suggestion-button",18),y()()),e&2){let n=I();x(2),Ee(n.personalizationText),x(2),A("ngForOf",n.suggestions)}}var Xw=class to{chatService=v(Gw);toastService=v(vp);confirmationService=v(yp);voiceRecognition=v(Ww);configService=v(bp);authService=v(Cp);logger=v(Ye);_apiUrl;_apiTimeout;set apiUrl(t){this._apiUrl=t,t&&this.updateConfig()}get apiUrl(){return this._apiUrl}set apiTimeout(t){this._apiTimeout=t,t&&this.updateConfig()}get apiTimeout(){return this._apiTimeout}set config(t){t&&(this.configService.setConfig(t),console.log("Config updated via Input:",t))}set jwtToken(t){t&&t.trim()&&(this.authService.setToken(t),console.log("JWT token set from parent application"))}title=Be.TITLE;greeting=Be.WELCOME.GREETING;welcomeText=Be.WELCOME.TEXT;description=Be.WELCOME.DESCRIPTION;personalizationText=Be.WELCOME.PERSONALIZATION;inputPlaceholder=Be.INPUT.PLACEHOLDER;suggestions=[...Be.SUGGESTIONS];chatState=this.chatService.getState();messages=it(()=>this.chatState().messages);isLoading=it(()=>this.chatState().isLoading);hasMessages=it(()=>this.messages().length>0);canLoadMoreHistory=it(()=>this.chatState().hasMoreHistory);isLoadingMoreHistory=it(()=>this.chatState().isLoadingMore);voiceStatus=this.voiceRecognition.getStatus();sidebarOpenSignal=ae(!1);isSidebarOpen=this.sidebarOpenSignal.asReadonly();conversationsSignal=ae([]);conversations=this.conversationsSignal.asReadonly();isLoadingConversationsSignal=ae(!1);isLoadingConversations=this.isLoadingConversationsSignal.asReadonly();searchQuerySignal=ae("");inputValueSignal=ae("");inputValue=this.inputValueSignal.asReadonly();ngOnInit(){console.log("AssistantPage initialized with config:",this.configService.getConfig())}updateConfig(){let t=this.configService.getConfig();this.configService.setConfig({apiUrl:this._apiUrl||t.apiUrl,apiTimeout:this._apiTimeout||t.apiTimeout,environmentName:t.environmentName}),console.log("Config updated:",this.configService.getConfig())}onMenuClick(){return Y(this,null,function*(){this.sidebarOpenSignal.set(!0),this.searchQuerySignal.set(""),yield this.loadConversations()})}onCloseClick(){this.chatService.clearChat()}onSuggestionClick(t){return Y(this,null,function*(){yield this.chatService.sendMessage(t)})}onMessageSubmit(t){return Y(this,null,function*(){t.trim()&&(this.inputValueSignal.set(""),yield this.chatService.sendMessage(t))})}onInputValueChange(t){this.inputValueSignal.set(t)}onVoiceClick(){return Y(this,null,function*(){let t=this.voiceStatus();if(!this.voiceRecognition.isVoiceRecognitionSupported()){this.toastService.error("Voice recognition is not supported in your browser. Please try Chrome, Edge, or Safari.");return}if(t.state==="listening"){let n=yield this.voiceRecognition.stopListening();this.logger.debug("Voice recognition result:",n),n.success&&n.transcript?(this.inputValueSignal.set(n.transcript),this.toastService.success("Voice input captured. Click send when ready.")):this.toastService.warning("No speech detected. Please try again.")}else t.state==="idle"?(this.voiceRecognition.startListening(),this.toastService.info("Listening... Click the microphone button again when done.")):t.state==="error"&&this.toastService.error(t.errorMessage||"Voice recognition error")})}onAddClick(){this.toastService.info("Attachment feature coming soon!")}onLoadMoreHistory(){return Y(this,null,function*(){yield this.chatService.loadMoreHistory()})}onSidebarBackClick(){this.sidebarOpenSignal.set(!1)}onSidebarSettingsClick(){this.toastService.info("Settings feature coming soon!")}onSidebarCloseClick(){this.sidebarOpenSignal.set(!1)}onConversationClick(t){return Y(this,null,function*(){this.sidebarOpenSignal.set(!1);try{yield this.chatService.loadConversation(t)}catch(n){this.logger.error("Failed to load conversation:",n),this.toastService.error("Failed to load conversation. Please try again.")}})}onConversationDeleteClick(t){return Y(this,null,function*(){if(this.logger.debug("Delete conversation:",t),!!(yield this.confirmationService.confirm({title:"Delete Conversation",message:"Are you sure you want to delete this conversation? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",confirmColor:"danger"})))try{yield this.chatService.deleteConversation(t);let n=this.conversationsSignal();this.conversationsSignal.set(n.filter(r=>r.id!==t)),this.toastService.success("Conversation deleted successfully")}catch(n){this.logger.error("Failed to delete conversation:",n),this.toastService.error("Failed to delete conversation. Please try again.")}})}onNewChatClick(){this.chatService.clearChat(),this.sidebarOpenSignal.set(!1)}onSearchChange(t){return Y(this,null,function*(){this.searchQuerySignal.set(t),yield this.loadConversations()})}onConversationTitleUpdate(t){return Y(this,null,function*(){try{yield this.chatService.updateConversationTitle(t.id,t.title);let n=this.conversationsSignal();this.conversationsSignal.set(n.map(r=>r.id===t.id?D(T({},r),{title:t.title}):r)),this.toastService.success("Conversation title updated")}catch(n){this.logger.error("Failed to update conversation title:",n),this.toastService.error("Failed to update conversation title. Please try again.")}})}loadConversations(){return Y(this,null,function*(){if(!this.isLoadingConversationsSignal()){this.isLoadingConversationsSignal.set(!0);try{let t=this.searchQuerySignal(),n=(yield this.chatService.getConversations(void 0,t||void 0)).conversations.map(r=>({id:r.id,title:r.title||"Untitled Conversation",date:new Date(r.createdAt).toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})}));this.conversationsSignal.set(n)}catch(t){this.logger.error("Failed to load conversations:",t)}finally{this.isLoadingConversationsSignal.set(!1)}}})}static \u0275fac=function(t){return new(t||to)};static \u0275cmp=Ie({type:to,selectors:[["app-assistant"]],inputs:{apiUrl:"apiUrl",apiTimeout:"apiTimeout",config:"config",jwtToken:"jwtToken",title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions"},decls:10,vars:11,consts:[[3,"backClick","settingsClick","closeClick","conversationClick","deleteClick","newChatClick","searchChange","titleUpdate","isOpen","conversations","isLoading"],[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages","canLoadMore","isLoadingMore","loadMore",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,"loadMore","messages","canLoadMore","isLoadingMore"],[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&&(f(0,"app-sidebar",0),M("backClick",function(){return n.onSidebarBackClick()})("settingsClick",function(){return n.onSidebarSettingsClick()})("closeClick",function(){return n.onSidebarCloseClick()})("conversationClick",function(r){return n.onConversationClick(r)})("deleteClick",function(r){return n.onConversationDeleteClick(r)})("newChatClick",function(){return n.onNewChatClick()})("searchChange",function(r){return n.onSearchChange(r)})("titleUpdate",function(r){return n.onConversationTitleUpdate(r)}),y(),f(1,"div",1)(2,"app-header",2),M("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),y(),f(3,"div",3),fe(4,Qw,9,3,"div",4)(5,Yw,1,3,"app-chat-history",5)(6,Jw,5,2,"div",6),y(),f(7,"app-input-field",7),M("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()(),q(8,"app-toast-container")(9,"app-confirmation-modal")),t&2&&(A("isOpen",n.isSidebarOpen())("conversations",n.conversations())("isLoading",n.isLoadingConversations()),x(2),A("title",n.title),x(2),A("ngIf",!n.hasMessages()),x(),A("ngIf",n.hasMessages()),x(),A("ngIf",!n.hasMessages()),x(),A("placeholder",n.inputPlaceholder)("disabled",n.isLoading())("voiceStatus",n.voiceStatus())("value",n.inputValue()))},dependencies:[_e,ki,an,V_,N_,bw,ln,Mw,Lw,Uw,qw],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;overflow:hidden}.assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;width:100%;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden;position:relative}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;min-height:0;position:relative;-webkit-overflow-scrolling:touch}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:center;padding:16px 20px;text-align:center;flex-shrink:0}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:12px;flex-shrink:0}.greeting[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin:0 0 8px;color:#1a1a1a;flex-shrink:0}.welcome-text[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#333;flex-shrink:0}.description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin:0 0 12px;color:#666;max-width:400px;line-height:1.4;flex-shrink:0}.personalization-section[_ngcontent-%COMP%]{padding:0 20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0;max-width:100%;box-sizing:border-box}.personalization-text[_ngcontent-%COMP%]{font-size:14px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4;flex-shrink:0}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:400px;flex-shrink:0}@media (max-width: 768px){.greeting[_ngcontent-%COMP%]{font-size:20px}.welcome-text[_ngcontent-%COMP%]{font-size:15px}.description[_ngcontent-%COMP%]{font-size:13px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:12px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 12px;gap:10px}.personalization-text[_ngcontent-%COMP%]{font-size:13px}.suggestions[_ngcontent-%COMP%]{max-width:100%;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:8px}}@media (max-height: 600px){.greeting[_ngcontent-%COMP%]{font-size:18px;margin-bottom:6px}.welcome-text[_ngcontent-%COMP%]{font-size:14px;margin-bottom:6px}.description[_ngcontent-%COMP%]{font-size:12px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:8px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 8px;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:6px}.icon-wrapper[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{transform:scale(.8)}}"]})},ex=class Tr{authService=v(Cp);logger=v(Ye);isLoggingOut=!1;PUBLIC_ENDPOINTS=["/config.json","/assets/"];intercept(t,n){if(this.isPublicEndpoint(t.url))return this.logger.debug("Public endpoint, skipping auth",{url:t.url}),n.handle(t);let r=this.authService.getToken();if(!r&&!ri.production&&(this.logger.debug("No token found in localStorage, creating development token"),r=this.authService.createValidToken(),this.authService.setToken(r)),!r)return this.logger.debug("No token available, proceeding without auth header"),n.handle(t);let i=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return this.logger.debug("Added Authorization header to request",{url:t.url}),n.handle(i).pipe(ke(s=>(s.status===401?this.handle401Error(s):s.status===403?this.handle403Error(s):s.status===0&&this.handleNetworkError(s),po(()=>s))))}isPublicEndpoint(t){return this.PUBLIC_ENDPOINTS.some(n=>t.includes(n))}handle401Error(t){if(this.isLoggingOut){this.logger.debug("Logout already in progress, skipping");return}this.isLoggingOut=!0,this.logger.warn("401 Unauthorized - authentication failed, logging out",{url:t.url,message:t.message}),this.authService.logout(),setTimeout(()=>{this.isLoggingOut=!1},1e3)}handle403Error(t){this.logger.warn("403 Forbidden - insufficient permissions",{url:t.url,message:t.message})}handleNetworkError(t){this.logger.error("Network error - server unreachable or timeout",{url:t.url,message:t.message})}static \u0275fac=function(t){return new(t||Tr)};static \u0275prov=O({token:Tr,factory:Tr.\u0275fac})};function _p(e){return()=>e.loadConfig()}Y(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Component already registered, skipping...");return}let e=yield jC({providers:[dm(),db({eventCoalescing:!0}),b_(C_()),{provide:Yh,useClass:ex,multi:!0},{provide:lh,useFactory:_p,deps:[bp],multi:!0},Ah,D_.forRoot({level:ri.production?W.WARN:W.DEBUG,serverLogLevel:W.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=qb(Xw,{injector:e.injector});customElements.define("app-assistant",t),console.log("\u2705 Web Component registered: app-assistant")});return Mp(tx);})();
25
25
  /*! Bundled license information:
26
26
 
27
27
  @angular/core/fesm2022/not_found.mjs: