UNPKG

@letscooee/web-sdk

Version:

Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent

4 lines 240 kB
var hm=Object.create;var Is=Object.defineProperty,pm=Object.defineProperties,gm=Object.getOwnPropertyDescriptor,mm=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertyNames,Jr=Object.getOwnPropertySymbols,vm=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable;var ws=(e,t,n)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||={})Cs.call(t,n)&&ws(e,n,t[n]);if(Jr)for(var n of Jr(t))Iu.call(t,n)&&ws(e,n,t[n]);return e},X=(e,t)=>pm(e,mm(t));var nC=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var rC=(e,t)=>{var n={};for(var r in e)Cs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jr)for(var r of Jr(e))t.indexOf(r)<0&&Iu.call(e,r)&&(n[r]=e[r]);return n};var oC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Dm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ym(t))!Cs.call(e,o)&&o!==n&&Is(e,o,{get:()=>t[o],enumerable:!(r=gm(t,o))||r.enumerable});return e};var iC=(e,t,n)=>(n=e!=null?hm(vm(e)):{},Dm(t||!e||!e.__esModule?Is(n,"default",{value:e,enumerable:!0}):n,e));var sC=(e,t,n)=>ws(e,typeof t!="symbol"?t+"":t,n);var bs;function Xr(){return bs}function He(e){let t=bs;return bs=e,t}var Cu=Symbol("NotFound");function cn(e){return e===Cu||e?.name==="\u0275NotFound"}function xs(e,t){return Object.is(e,t)}var te=null,eo=!1,Ns=1,_m=null,re=Symbol("SIGNAL");function I(e){let t=te;return te=e,t}function no(){return te}var Rt={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 ln(e){if(eo)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 o=e.consumersTail;if(o!==void 0&&o.consumer===te&&(!r||wm(o,te)))return;let i=fn(te),s={producer:e,consumer:te,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=s,t!==void 0?t.nextProducer=s:te.producers=s,i&&Su(e,s)}function bu(){Ns++}function Rs(e){if(!(fn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ns)){if(!e.producerMustRecompute(e)&&!dn(e)){Ms(e);return}e.producerRecomputeValue(e),Ms(e)}}function As(e){if(e.consumers===void 0)return;let t=eo;eo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Em(r)}}finally{eo=t}}function Os(){return te?.consumerAllowSignalWrites!==!1}function Em(e){e.dirty=!0,As(e),e.consumerMarkedDirty?.(e)}function Ms(e){e.dirty=!1,e.lastCleanEpoch=Ns}function At(e){return e&&(e.producersTail=void 0,e.recomputing=!0),I(e)}function un(e,t){if(I(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(fn(e))do r=Ps(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function dn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Rs(n),r!==n.version))return!0}return!1}function Ot(e){if(fn(e)){let t=e.producers;for(;t!==void 0;)t=Ps(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=fn(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 o=e.producers;o!==void 0;o=o.nextProducer)Su(o.producer,o)}function Ps(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!fn(t)){let i=t.producers;for(;i!==void 0;)i=Ps(i)}return n}function fn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ks(e){_m?.(e)}function wm(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 ro(e,t){let n=Object.create(Im);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Rs(n),ln(n),n.value===to)throw n.error;return n.value};return r[re]=n,ks(n),r}var Ss=Symbol("UNSET"),Ts=Symbol("COMPUTING"),to=Symbol("ERRORED"),Im=X(Y({},Rt),{value:Ss,dirty:!0,error:null,equal:xs,kind:"computed",producerMustRecompute(e){return e.value===Ss||e.value===Ts},producerRecomputeValue(e){if(e.value===Ts)throw new Error("");let t=e.value;e.value=Ts;let n=At(e),r,o=!1;try{r=e.computation(),I(null),o=t!==Ss&&t!==to&&r!==to&&e.equal(t,r)}catch(i){r=to,e.error=i}finally{un(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Cm(){throw new Error}var Tu=Cm;function Mu(e){Tu(e)}function Fs(e){Tu=e}var bm=null;function Ls(e,t){let n=Object.create(oo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>xu(n);return r[re]=n,ks(n),[r,s=>hn(n,s),s=>Nu(n,s)]}function xu(e){return ln(e),e.value}function hn(e,t){Os()||Mu(e),e.equal(e.value,t)||(e.value=t,Sm(e))}function Nu(e,t){Os()||Mu(e),hn(e,t(e.value))}var oo=X(Y({},Rt),{equal:xs,value:void 0,kind:"signal"});function Sm(e){e.version++,bu(),As(e),bm?.(e)}function b(e){return typeof e=="function"}function io(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var so=io(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Pt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b(r))try{r()}catch(i){t=i instanceof so?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ru(i)}catch(s){t=t??[],s instanceof so?t=[...t,...s.errors]:t.push(s)}}if(t)throw new so(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ru(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Pt(n,t)}remove(t){let{_finalizers:n}=this;n&&Pt(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var js=P.EMPTY;function ao(e){return e instanceof P||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function Ru(e){b(e)?e():e.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var pn={setTimeout(e,t,...n){let{delegate:r}=pn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=pn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function co(e){pn.setTimeout(()=>{let{onUnhandledError:t}=Me;if(t)t(e);else throw e})}function Qn(){}var Au=Vs("C",void 0,void 0);function Ou(e){return Vs("E",void 0,e)}function Pu(e){return Vs("N",e,void 0)}function Vs(e,t,n){return{kind:e,value:t,error:n}}var kt=null;function gn(e){if(Me.useDeprecatedSynchronousErrorHandling){let t=!kt;if(t&&(kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kt;if(kt=null,n)throw r}}else e()}function ku(e){Me.useDeprecatedSynchronousErrorHandling&&kt&&(kt.errorThrown=!0,kt.error=e)}var Ft=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ao(t)&&t.add(this)):this.destination=xm}static create(t,n,r){return new mn(t,n,r)}next(t){this.isStopped?Hs(Pu(t),this):this._next(t)}error(t){this.isStopped?Hs(Ou(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Hs(Au,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Tm=Function.prototype.bind;function Bs(e,t){return Tm.call(e,t)}var $s=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){lo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){lo(r)}else lo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){lo(n)}}},mn=class extends Ft{constructor(t,n,r){super();let o;if(b(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Bs(t.next,i),error:t.error&&Bs(t.error,i),complete:t.complete&&Bs(t.complete,i)}):o=t}this.destination=new $s(o)}};function lo(e){Me.useDeprecatedSynchronousErrorHandling?ku(e):co(e)}function Mm(e){throw e}function Hs(e,t){let{onStoppedNotification:n}=Me;n&&pn.setTimeout(()=>n(e,t))}var xm={closed:!0,next:Qn,error:Mm,complete:Qn};var yn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function dt(e){return e}function Fu(e){return e.length===0?dt:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Rm(n)?n:new mn(n,r,o);return gn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Lu(r),new r((o,i)=>{let s=new mn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[yn](){return this}pipe(...n){return Fu(n)(this)}toPromise(n){return n=Lu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Lu(e){var t;return(t=e??Me.Promise)!==null&&t!==void 0?t:Promise}function Nm(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function Rm(e){return e&&e instanceof Ft||Nm(e)&&ao(e)}function Am(e){return b(e?.lift)}function V(e){return t=>{if(Am(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 B(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends Ft{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var vn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=vn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new P(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=vn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=vn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var ju=io(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var x=(()=>{class e extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new uo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ju}next(n){gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){gn(()=>{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(){gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?js:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,Pt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new N;return n.source=this,n}}return e.create=(t,n)=>new uo(t,n),e})(),uo=class extends x{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:js}};var Lt=class extends x{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Kn={now(){return(Kn.delegate||Date).now()},delegate:void 0};var zs=class extends x{constructor(t=1/0,n=1/0,r=Kn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var fo=class extends P{constructor(t,n){super()}schedule(t,n=0){return this}};var Jn={setInterval(e,t,...n){let{delegate:r}=Jn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Jn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Dn=class extends fo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Jn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Jn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Pt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var _n=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};_n.now=Kn.now;var En=class extends _n{constructor(t,n=_n.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Xn=new En(Dn),Vu=Xn;var ho=class extends Dn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=vn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(vn.cancelAnimationFrame(n),t._scheduled=void 0)}};var po=class extends En{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var go=new po(ho);var mo=new N(e=>e.complete());function yo(e){return e&&b(e.schedule)}function Bu(e){return e[e.length-1]}function ft(e){return yo(Bu(e))?e.pop():void 0}function Hu(e,t){return typeof Bu(e)=="number"?e.pop():t}function Uu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function $u(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 jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function zu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(v){return new Promise(function(C,T){i.push([f,v,C,T])>1||c(f,v)})},g&&(o[f]=g(o[f])))}function c(f,g){try{l(r[f](g))}catch(v){h(i[0][3],v)}}function l(f){f.value instanceof jt?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Gu(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 $u=="function"?$u(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var wn=e=>e&&typeof e.length=="number"&&typeof e!="function";function vo(e){return b(e?.then)}function Do(e){return b(e[yn])}function _o(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function Eo(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 Om(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=Om();function Io(e){return b(e?.[wo])}function Co(e){return zu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield jt(n.read());if(o)return yield jt(void 0);yield yield jt(r)}}finally{n.releaseLock()}})}function bo(e){return b(e?.getReader)}function U(e){if(e instanceof N)return e;if(e!=null){if(Do(e))return Pm(e);if(wn(e))return km(e);if(vo(e))return Fm(e);if(_o(e))return Wu(e);if(Io(e))return Lm(e);if(bo(e))return jm(e)}throw Eo(e)}function Pm(e){return new N(t=>{let n=e[yn]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function km(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Fm(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,co)})}function Lm(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Wu(e){return new N(t=>{Vm(e,t).catch(n=>t.error(n))})}function jm(e){return Wu(Co(e))}function Vm(e,t){var n,r,o,i;return Uu(this,void 0,void 0,function*(){try{for(n=Gu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function me(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function So(e,t=0){return V((n,r)=>{n.subscribe(B(r,o=>me(r,e,()=>r.next(o),t),()=>me(r,e,()=>r.complete(),t),o=>me(r,e,()=>r.error(o),t)))})}function To(e,t=0){return V((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function qu(e,t){return U(e).pipe(To(t),So(t))}function Zu(e,t){return U(e).pipe(To(t),So(t))}function Yu(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qu(e,t){return new N(n=>{let r;return me(n,t,()=>{r=e[wo](),me(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>b(r?.return)&&r.return()})}function Mo(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{me(n,t,()=>{let r=e[Symbol.asyncIterator]();me(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ku(e,t){return Mo(Co(e),t)}function Ju(e,t){if(e!=null){if(Do(e))return qu(e,t);if(wn(e))return Yu(e,t);if(vo(e))return Zu(e,t);if(_o(e))return Mo(e,t);if(Io(e))return Qu(e,t);if(bo(e))return Ku(e,t)}throw Eo(e)}function In(e,t){return t?Ju(e,t):U(e)}function Xu(...e){let t=ft(e);return In(e,t)}function ed(e){return e instanceof Date&&!isNaN(e)}function qe(e,t){return V((n,r)=>{let o=0;n.subscribe(B(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Bm}=Array;function Hm(e,t){return Bm(t)?e(...t):e(t)}function td(e){return qe(t=>Hm(e,t))}function nd(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=v=>l<r?g(v):c.push(v),g=v=>{i&&t.next(v),l++;let C=!1;U(n(v,u++)).subscribe(B(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{C=!0},void 0,()=>{if(C)try{for(l--;c.length&&l<r;){let T=c.shift();s?me(t,s,()=>g(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(B(t,f,()=>{d=!0,h()})),()=>{a?.()}}function er(e,t,n=1/0){return b(t)?er((r,o)=>qe((i,s)=>t(r,i,o,s))(U(e(r,o))),n):(typeof t=="number"&&(n=t),V((r,o)=>nd(r,o,e,n)))}function xo(e=1/0){return er(dt,e)}function rd(){return xo(1)}function Gs(...e){return rd()(In(e,ft(e)))}function $m(e){return new N(t=>{U(e()).subscribe(t)})}var Um=["addListener","removeListener"],zm=["addEventListener","removeEventListener"],Gm=["on","off"];function Ws(e,t,n,r){if(b(n)&&(r=n,n=void 0),r)return Ws(e,t,n).pipe(td(r));let[o,i]=Zm(e)?zm.map(s=>a=>e[s](t,a,n)):Wm(e)?Um.map(od(e,t)):qm(e)?Gm.map(od(e,t)):[];if(!o&&wn(e))return er(s=>Ws(s,t,n))(U(e));if(!o)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function od(e,t){return n=>r=>e[n](t,r)}function Wm(e){return b(e.addListener)&&b(e.removeListener)}function qm(e){return b(e.on)&&b(e.off)}function Zm(e){return b(e.addEventListener)&&b(e.removeEventListener)}function No(e=0,t,n=Vu){let r=-1;return t!=null&&(yo(t)?n=t:r=t),new N(o=>{let i=ed(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function qs(e=0,t=Xn){return e<0&&(e=0),No(e,e,t)}function Ro(...e){let t=ft(e),n=Hu(e,1/0),r=e;return r.length?r.length===1?U(r[0]):xo(n)(In(r,t)):mo}function Zs(e,t){return V((n,r)=>{let o=0;n.subscribe(B(r,i=>e.call(t,i,o++)&&r.next(i)))})}function id(e){return V((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(B(n,l=>{r=!0,o=l,i||U(e(l)).subscribe(i=B(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Ys(e,t=Xn){return id(()=>No(e,t))}function Qs(e){return e<=0?()=>mo:V((t,n)=>{let r=0;t.subscribe(B(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function sd(e,t=dt){return e=e??Ym,V((n,r)=>{let o,i=!0;n.subscribe(B(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Ym(e,t){return e===t}function Qm(e){return Zs((t,n)=>e<=n)}function Ao(...e){let t=ft(e);return V((n,r)=>{(t?Gs(e,n,t):Gs(e,n)).subscribe(r)})}function Oo(e,t){return V((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(B(r,c=>{o?.unsubscribe();let l=0,u=i++;U(e(c,u)).subscribe(o=B(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Cn(e){return V((t,n)=>{U(e).subscribe(B(n,()=>n.complete(),Qn)),!n.closed&&t.subscribe(n)})}function Ks(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?V((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(B(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):dt}var jo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(t,n){super(mt(t,n)),this.code=t}};function Km(e){return`NG0${Math.abs(e)}`}function mt(e,t){return`${Km(e)}${t?": "+t:""}`}var ye=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("")}function ld(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(` `);return r>=0?n.slice(0,r):n}function Vo(e,t){return e?t?`${e} ${t}`:e:t||""}var Jm=A({__forward_ref__:A});function sr(e){return e.__forward_ref__=sr,e.toString=function(){return ht(this())},e}function q(e){return la(e)?e():e}function la(e){return typeof e=="function"&&e.hasOwnProperty(Jm)&&e.__forward_ref__===sr}function ud(e,t){e==null&&ua(t,e,null,"!=")}function ua(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bo(e){return Xm(e,Ho)}function Xm(e,t){return e.hasOwnProperty(t)&&e[t]||null}function ey(e){let t=e?.[Ho]??null;return t||null}function Xs(e){return e&&e.hasOwnProperty(ko)?e[ko]:null}var Ho=A({\u0275prov:A}),ko=A({\u0275inj:A}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function da(e){return e&&!!e.\u0275providers}var fa=A({\u0275cmp:A}),ha=A({\u0275dir:A}),pa=A({\u0275pipe:A});var rr=A({\u0275fac:A}),Ut=A({__NG_ELEMENT_ID__:A}),ad=A({__NG_ENV_ID__:A});function zt(e){return typeof e=="string"?e:e==null?"":String(e)}function Fo(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():zt(e)}var ga=A({ngErrorCode:A}),dd=A({ngErrorMessage:A}),nr=A({ngTokenPath:A});function ma(e,t){return fd("",-200,t)}function $o(e,t){throw new m(-201,!1)}function ty(e,t){e[nr]??=[];let n=e[nr],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(ud(t.provide,"Token with multi: true should have a provide property"),r=Fo(t.provide)):r=Fo(t),n[0]!==r&&e[nr].unshift(r)}function ny(e,t){let n=e[nr],r=e[ga],o=e[dd]||e.message;return e.message=oy(o,r,n,t),e}function fd(e,t,n){let r=new m(t,e);return r[ga]=t,r[dd]=e,n&&(r[nr]=n),r}function ry(e){return e[ga]}function oy(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return mt(t,`${e}${i}${o}`)}var ea;function hd(){return ea}function oe(e){let t=ea;return ea=e,t}function ya(e,t,n){let r=Bo(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;$o(e,"Injector")}var iy={},Vt=iy,ta="__NG_DI_FLAG__",na=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Bt(n)||0;try{return this.injector.get(t,r&8?null:Vt,r)}catch(o){if(cn(o))return o;throw o}}};function sy(e,t=0){let n=Xr();if(n===void 0)throw new m(-203,!1);if(n===null)return ya(e,void 0,t);{let r=ay(t),o=n.retrieve(e,r);if(cn(o)){if(r.optional)return null;throw o}return o}}function M(e,t=0){return(hd()||sy)(q(e),t)}function p(e,t){return M(e,Bt(t))}function Bt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ay(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ra(e){let t=[];for(let n=0;n<e.length;n++){let r=q(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=cy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(M(o,i))}else t.push(M(r))}return t}function va(e,t){return e[ta]=t,e.prototype[ta]=t,e}function cy(e){return e[ta]}function pt(e,t){let n=e.hasOwnProperty(rr);return n?e[rr]:null}function pd(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function gd(e){return e.flat(Number.POSITIVE_INFINITY)}function Uo(e,t){e.forEach(n=>Array.isArray(n)?Uo(n,t):t(n))}function Da(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ar(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function md(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function zo(e,t,n){let r=Sn(e,t);return r>=0?e[r|1]=n:(r=~r,md(e,r,t,n)),r}function Go(e,t){let n=Sn(e,t);if(n>=0)return e[n|1]}function Sn(e,t){return ly(e,t,1)}function ly(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ne={},ie=[],vt=new E(""),_a=new E("",-1),Ea=new E(""),or=class{get(t,n=Vt){if(n===Vt){let o=fd("",-201);throw o.name="\u0275NotFound",o}return n}};function Dt(e){return e[fa]||null}function Wo(e){return e[ha]||null}function yd(e){return e[pa]||null}function qo(e){return{\u0275providers:e}}function vd(...e){return{\u0275providers:wa(!0,e),\u0275fromNgModule:!0}}function wa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Uo(t,s=>{let a=s;Lo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Dd(o,i),n}function Dd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ia(o,i=>{t(i,r)})}}function Lo(e,t,n,r){if(e=q(e),!e)return!1;let o=null,i=Xs(e),s=!i&&Dt(e);if(!i&&!s){let c=e.ngModule;if(i=Xs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Lo(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Uo(i.imports,u=>{Lo(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Dd(l,t)}if(!a){let l=pt(o)||(()=>new o);t({provide:o,useFactory:l,deps:ie},o),t({provide:Ea,useValue:o,multi:!0},o),t({provide:vt,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Ia(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Ia(e,t){for(let n of e)da(n)&&(n=n.\u0275providers),Array.isArray(n)?Ia(n,t):t(n)}var uy=A({provide:String,useValue:A});function _d(e){return e!==null&&typeof e=="object"&&uy in e}function dy(e){return!!(e&&e.useExisting)}function fy(e){return!!(e&&e.useFactory)}function Ht(e){return typeof e=="function"}function Ed(e){return!!e.useClass}var cr=new E(""),Po={},cd={},Js;function Tn(){return Js===void 0&&(Js=new or),Js}var ce=class{},$t=class extends ce{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ia(t,s=>this.processProvider(s)),this.records.set(_a,bn(void 0,this)),o.has("environment")&&this.records.set(ce,bn(void 0,this));let i=this.records.get(cr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ea,ie,{self:!0}))}retrieve(t,n){let r=Bt(n)||0;try{return this.get(t,Vt,r)}catch(o){if(cn(o))return o;throw o}}destroy(){tr(this),this._destroyed=!0;let t=I(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(t)}}onDestroy(t){return tr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){tr(this);let n=He(this),r=oe(void 0),o;try{return t()}finally{He(n),oe(r)}}get(t,n=Vt,r){if(tr(this),t.hasOwnProperty(ad))return t[ad](this);let o=Bt(r),i,s=He(this),a=oe(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=yy(t)&&Bo(t);u&&this.injectableDefInScope(u)?l=bn(oa(t),Po):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Tn():this.parent;return n=o&8&&n===Vt?null:n,c.get(t,n)}catch(c){let l=ry(c);throw l===-200||l===-201?new m(l,null):c}finally{oe(a),He(s)}}resolveInjectorInitializers(){let t=I(null),n=He(this),r=oe(void 0),o;try{let i=this.get(vt,ie,{self:!0});for(let s of i)s()}finally{He(n),oe(r),I(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ht(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=q(t);let n=Ht(t)?t:q(t&&t.provide),r=py(t);if(!Ht(t)&&t.multi===!0){let o=this.records.get(n);o||(o=bn(void 0,Po,!0),o.factory=()=>ra(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=I(null);try{if(n.value===cd)throw ma(ht(t));return n.value===Po&&(n.value=cd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&my(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oa(e){let t=Bo(e),n=t!==null?t.factory:pt(e);if(n!==null)return n;if(e instanceof E)throw new m(204,!1);if(e instanceof Function)return hy(e);throw new m(204,!1)}function hy(e){if(e.length>0)throw new m(204,!1);let n=ey(e);return n!==null?()=>n.factory(e):()=>new e}function py(e){if(_d(e))return bn(void 0,e.useValue);{let t=Ca(e);return bn(t,Po)}}function Ca(e,t,n){let r;if(Ht(e)){let o=q(e);return pt(o)||oa(o)}else if(_d(e))r=()=>q(e.useValue);else if(fy(e))r=()=>e.useFactory(...ra(e.deps||[]));else if(dy(e))r=(o,i)=>M(q(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=q(e&&(e.useClass||e.provide));if(gy(e))r=()=>new o(...ra(e.deps));else return pt(o)||oa(o)}return r}function tr(e){if(e.destroyed)throw new m(205,!1)}function bn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function gy(e){return!!e.deps}function my(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function yy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ia(e,t){for(let n of e)Array.isArray(n)?ia(n,t):n&&da(n)?ia(n.\u0275providers,t):t(n)}function Zo(e,t){let n;e instanceof $t?(tr(e),n=e):n=new na(e);let r,o=He(n),i=oe(void 0);try{return t()}finally{He(o),oe(i)}}function wd(){return hd()!==void 0||Xr()!=null}var Re=0,y=1,_=2,Z=3,ve=4,De=5,Mn=6,xn=7,z=8,Gt=9,$e=10,j=11,Nn=12,ba=13,Wt=14,de=15,_t=16,qt=17,Ue=18,lr=19,Sa=20,Ze=21,Yo=22,Ye=23,fe=24,Zt=25,k=26,Id=1,Ta=6,Et=7,ur=8,Yt=9,Q=10;function ze(e){return Array.isArray(e)&&typeof e[Id]=="object"}function Ae(e){return Array.isArray(e)&&e[Id]===!0}function Ma(e){return(e.flags&4)!==0}function wt(e){return e.componentOffset>-1}function Rn(e){return(e.flags&1)===1}function Oe(e){return!!e.template}function An(e){return(e[_]&512)!==0}function Qt(e){return(e[_]&256)===256}var xa="svg",Cd="math";function _e(e){for(;Array.isArray(e);)e=e[Re];return e}function Na(e,t){return _e(t[e])}function Pe(e,t){return _e(t[e.index])}function dr(e,t){return e.data[t]}function fr(e,t){return e[t]}function hr(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ee(e,t){let n=t[e];return ze(n)?n:n[Re]}function bd(e){return(e[_]&4)===4}function Qo(e){return(e[_]&128)===128}function Sd(e){return Ae(e[Z])}function we(e,t){return t==null?null:e[t]}function Ra(e){e[qt]=0}function Ko(e){e[_]&1024||(e[_]|=1024,Qo(e)&&It(e))}function Td(e,t){for(;e>0;)t=t[Wt],e--;return t}function On(e){return!!(e[_]&9216||e[fe]?.dirty)}function Jo(e){e[$e].changeDetectionScheduler?.notify(8),e[_]&64&&(e[_]|=1024),On(e)&&It(e)}function It(e){e[$e].changeDetectionScheduler?.notify(0);let t=gt(e);for(;t!==null&&!(t[_]&8192||(t[_]|=8192,!Qo(t)));)t=gt(t)}function Aa(e,t){if(Qt(e))throw new m(911,!1);e[Ze]===null&&(e[Ze]=[]),e[Ze].push(t)}function Md(e,t){if(e[Ze]===null)return;let n=e[Ze].indexOf(t);n!==-1&&e[Ze].splice(n,1)}function gt(e){let t=e[Z];return Ae(t)?t[Z]:t}function Oa(e){return e[xn]??=[]}function Pa(e){return e.cleanup??=[]}function xd(e,t,n,r){let o=Oa(t);o.push(n),e.firstCreatePass&&Pa(e).push(r,o.length-1)}var S={lFrame:Ud(null),bindingsEnabled:!0,skipHydrationRootTNode:null},pr=function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e}(pr||{}),vy=0,sa=!1;function Nd(){return S.lFrame.elementDepthCount}function Rd(){S.lFrame.elementDepthCount++}function ka(){S.lFrame.elementDepthCount--}function Xo(){return S.bindingsEnabled}function Ad(){return S.skipHydrationRootTNode!==null}function Fa(e){return S.skipHydrationRootTNode===e}function La(){S.skipHydrationRootTNode=null}function D(){return S.lFrame.lView}function H(){return S.lFrame.tView}function Od(e){return S.lFrame.contextLView=e,e[z]}function Pd(e){return S.lFrame.contextLView=null,e}function K(){let e=ja();for(;e!==null&&e.type===64;)e=e.parent;return e}function ja(){return S.lFrame.currentTNode}function kd(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Kt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Va(){return S.lFrame.isParent}function Fd(){S.lFrame.isParent=!1}function Ba(){return S.lFrame.contextLView}function Ha(e){ua("Must never be called in production mode"),vy=e}function $a(){return sa}function Pn(e){let t=sa;return sa=e,t}function gr(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ld(e){return S.lFrame.bindingIndex=e}function Ct(){return S.lFrame.bindingIndex++}function Ua(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jd(){return S.lFrame.inI18n}function Vd(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,ei(t)}function Bd(){return S.lFrame.currentDirectiveIndex}function ei(e){S.lFrame.currentDirectiveIndex=e}function Hd(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function za(){return S.lFrame.currentQueryIndex}function ti(e){S.lFrame.currentQueryIndex=e}function Dy(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[De]:null}function Ga(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Dy(i),o===null||(i=i[Wt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=$d();return r.currentTNode=t,r.lView=e,!0}function ni(e){let t=$d(),n=e[y];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function $d(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Ud(e):t}function Ud(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 zd(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wa=zd;function ri(){let e=zd();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 Gd(e){return(S.lFrame.contextLView=Td(e,S.lFrame.contextLView))[z]}function Ge(){return S.lFrame.selectedIndex}function bt(e){S.lFrame.selectedIndex=e}function oi(){let e=S.lFrame;return dr(e.tView,e.selectedIndex)}function Wd(){S.lFrame.currentNamespace=xa}function qd(){_y()}function _y(){S.lFrame.currentNamespace=null}function Zd(){return S.lFrame.currentNamespace}var Yd=!0;function ii(){return Yd}function mr(e){Yd=e}function aa(e,t=null,n=null,r){let o=Qd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Qd(e,t=null,n=null,r,o=new Set){let i=[n||ie,vd(e)];return r=r||(typeof e=="object"?void 0:ht(e)),new $t(i,t||Tn(),r||null,o)}var ee=class e{static THROW_IF_NOT_FOUND=Vt;static NULL=new or;static create(t,n){if(Array.isArray(t))return aa({name:""},n,t,"");{let r=t.name??"";return aa({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>M(_a)});static __NG_ELEMENT_ID__=-1},$=new E(""),Qe=(()=>{class e{static __NG_ELEMENT_ID__=Ey;static __NG_ENV_ID__=n=>n}return e})(),ir=class extends Qe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Qt(this._lView)}onDestroy(t){let n=this._lView;return Aa(n,t),()=>Md(n,t)}};function Ey(){return new ir(D())}var ue=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ke=new E("",{providedIn:"root",factory:()=>{let e=p(ce),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(ue),t.handleError(n))}}}),Kd={provide:vt,useValue:()=>void p(ue),multi:!0};function Je(e,t){let[n,r,o]=Ls(e,t?.equal),i=n,s=i[re];return i.set=r,i.update=o,i.asReadonly=si.bind(i),i}function si(){let e=this[re];if(e.readonlyFn===void 0){let t=()=>this();t[re]=e,e.readonlyFn=t}return e.readonlyFn}var xe=class{},kn=new E("",{providedIn:"root",factory:()=>!1});var qa=new E(""),ai=new E("");var Fn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=wy}return e})();function wy(){return new Fn(D(),K())}var Jt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Lt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new N(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=w({token:e,providedIn:"root",factory:()=>new e})}return e})();function Xt(...e){}var yr=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new ca})}return e})(),ca=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Un(e){return{toString:e}.toString()}var ci="__parameters__";function Ry(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Pf(e,t,n){return Un(()=>{let r=Ry(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(ci)?c[ci]:Object.defineProperty(c,ci,{value:[]})[ci];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Oi=va(Pf("Optional"),8);var kf=va(Pf("SkipSelf"),4);function Ay(e){return typeof e=="function"}var vi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ff(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var zn=(()=>{let e=()=>Lf;return e.ngInherit=!0,e})();function Lf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Py),Oy}function Oy(){let e=Vf(this),t=e?.current;if(t){let n=e.previous;if(n===Ne)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Py(e,t,n,r,o){let i=this.declaredInputs[r],s=Vf(e)||ky(e,{previous:Ne,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new vi(l&&l.currentValue,n,c===Ne),Ff(e,t,o,n)}var jf="__ngSimpleChanges__";function Vf(e){return e[jf]||null}function ky(e,t){return e[jf]=t}var Jd=[];var R=function(e,t=null,n){for(let r=0;r<Jd.length;r++){let o=Jd[r];o(e,t,n)}};function Fy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Lf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Bf(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function hi(e,t,n){Hf(e,t,3,n)}function pi(e,t,n,r){(e[_]&3)===n&&Hf(e,t,n,r)}function Za(e,t){let n=e[_];(n&3)===t&&(n&=16383,n+=1,e[_]=n)}function Hf(e,t,n,r){let o=r!==void 0?e[qt]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[qt]+=65536),(a<i||i==-1)&&(Ly(e,n,t,c),e[qt]=(e[qt]&4294901760)+c+2),c++}function Xd(e,t){R(4,e,t);let n=I(null);try{t.call(e)}finally{I(n),R(5,e,t)}}function Ly(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[_]>>14<e[qt]>>16&&(e[_]&3)===t&&(e[_]+=16384,Xd(a,i)):Xd(a,i)}var jn=-1,nn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function jy(e){return(e.flags&8)!==0}function Vy(e){return(e.flags&16)!==0}function By(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];$y(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Hy(e){return e===3||e===4||e===6}function $y(e){return e.charCodeAt(0)===64}function Vn(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?ef(e,n,o,null,t[++r]):ef(e,n,o,null,null))}}return e}function ef(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function $f(e){return e!==jn}funct