UNPKG

@letscooee/web-sdk

Version:

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

4 lines 192 kB
import{a as $,b as q}from"./chunk-V7UGKYBN.js";var is;function Wr(){return is}function Le(e){let t=is;return is=e,t}var Vu=Symbol("NotFound");function rn(e){return e===Vu||e?.name==="\u0275NotFound"}function Kr(e,t){return Object.is(e,t)}var ee=null,qr=!1,ss=1,Rg=null,Z=Symbol("SIGNAL");function I(e){let t=ee;return ee=e,t}function Jr(){return ee}var It={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 Ct(e){if(qr)throw new Error("");if(ee===null)return;ee.consumerOnSignalRead(e);let t=ee.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ee.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ee.producers,n!==void 0&&n.producer===e)){ee.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ee&&(!r||Fg(o,ee)))return;let i=an(ee),s={producer:e,consumer:ee,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ee.producersTail=s,t!==void 0?t.nextProducer=s:ee.producers=s,i&&Hu(e,s)}function Bu(){ss++}function Xr(e){if(!(an(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ss)){if(!e.producerMustRecompute(e)&&!sn(e)){Qr(e);return}e.producerRecomputeValue(e),Qr(e)}}function as(e){if(e.consumers===void 0)return;let t=qr;qr=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Og(r)}}finally{qr=t}}function cs(){return ee?.consumerAllowSignalWrites!==!1}function Og(e){e.dirty=!0,as(e),e.consumerMarkedDirty?.(e)}function Qr(e){e.dirty=!1,e.lastCleanEpoch=ss}function wt(e){return e&&(e.producersTail=void 0,e.recomputing=!0),I(e)}function on(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(an(e))do r=us(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function sn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Xr(n),r!==n.version))return!0}return!1}function _t(e){if(an(e)){let t=e.producers;for(;t!==void 0;)t=us(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Hu(e,t){let n=e.consumersTail,r=an(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)Hu(o.producer,o)}function us(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,!an(t)){let i=t.producers;for(;i!==void 0;)i=us(i)}return n}function an(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function eo(e){Rg?.(e)}function Fg(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 zn(e,t){let n=Object.create(kg);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Xr(n),Ct(n),n.value===Un)throw n.error;return n.value};return r[Z]=n,eo(n),r}var Zr=Symbol("UNSET"),Yr=Symbol("COMPUTING"),Un=Symbol("ERRORED"),kg=q($({},It),{value:Zr,dirty:!0,error:null,equal:Kr,kind:"computed",producerMustRecompute(e){return e.value===Zr||e.value===Yr},producerRecomputeValue(e){if(e.value===Yr)throw new Error("");let t=e.value;e.value=Yr;let n=wt(e),r,o=!1;try{r=e.computation(),I(null),o=t!==Zr&&t!==Un&&r!==Un&&e.equal(t,r)}catch(i){r=Un,e.error=i}finally{on(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Pg(){throw new Error}var $u=Pg;function Uu(e){$u(e)}function ls(e){$u=e}var Lg=null;function ds(e,t){let n=Object.create(to);n.value=e,t!==void 0&&(n.equal=t);let r=()=>zu(n);return r[Z]=n,eo(n),[r,s=>bt(n,s),s=>fs(n,s)]}function zu(e){return Ct(e),e.value}function bt(e,t){cs()||Uu(e),e.equal(e.value,t)||(e.value=t,jg(e))}function fs(e,t){cs()||Uu(e),bt(e,t(e.value))}var to=q($({},It),{equal:Kr,value:void 0,kind:"signal"});function jg(e){e.version++,Bu(),as(e),Lg?.(e)}function S(e){return typeof e=="function"}function no(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 ro=no(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 Tt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var U=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(S(r))try{r()}catch(i){t=i instanceof ro?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Gu(i)}catch(s){t=t??[],s instanceof ro?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ro(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Gu(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)&&Tt(n,t)}remove(t){let{_finalizers:n}=this;n&&Tt(n,t),t instanceof e&&t._removeParent(this)}};U.EMPTY=(()=>{let e=new U;return e.closed=!0,e})();var ps=U.EMPTY;function oo(e){return e instanceof U||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function Gu(e){S(e)?e():e.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var cn={setTimeout(e,t,...n){let{delegate:r}=cn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=cn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function io(e){cn.setTimeout(()=>{let{onUnhandledError:t}=be;if(t)t(e);else throw e})}function Gn(){}var Wu=hs("C",void 0,void 0);function qu(e){return hs("E",void 0,e)}function Zu(e){return hs("N",e,void 0)}function hs(e,t,n){return{kind:e,value:t,error:n}}var St=null;function un(e){if(be.useDeprecatedSynchronousErrorHandling){let t=!St;if(t&&(St={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=St;if(St=null,n)throw r}}else e()}function Yu(e){be.useDeprecatedSynchronousErrorHandling&&St&&(St.errorThrown=!0,St.error=e)}var Mt=class extends U{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,oo(t)&&t.add(this)):this.destination=Hg}static create(t,n,r){return new ln(t,n,r)}next(t){this.isStopped?ms(Zu(t),this):this._next(t)}error(t){this.isStopped?ms(qu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ms(Wu,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()}}},Vg=Function.prototype.bind;function gs(e,t){return Vg.call(e,t)}var ys=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){so(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){so(r)}else so(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){so(n)}}},ln=class extends Mt{constructor(t,n,r){super();let o;if(S(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&gs(t.next,i),error:t.error&&gs(t.error,i),complete:t.complete&&gs(t.complete,i)}):o=t}this.destination=new ys(o)}};function so(e){be.useDeprecatedSynchronousErrorHandling?Yu(e):io(e)}function Bg(e){throw e}function ms(e,t){let{onStoppedNotification:n}=be;n&&cn.setTimeout(()=>n(e,t))}var Hg={closed:!0,next:Gn,error:Bg,complete:Gn};var dn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function st(e){return e}function Qu(e){return e.length===0?st:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k=(()=>{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=Ug(n)?n:new ln(n,r,o);return un(()=>{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=Ku(r),new r((o,i)=>{let s=new ln({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)}[dn](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return n=Ku(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 Ku(e){var t;return(t=e??be.Promise)!==null&&t!==void 0?t:Promise}function $g(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function Ug(e){return e&&e instanceof Mt||$g(e)&&oo(e)}function zg(e){return S(e?.lift)}function L(e){return t=>{if(zg(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function j(e,t,n,r,o){return new vs(e,t,n,r,o)}var vs=class extends Mt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var fn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=fn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new U(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=fn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=fn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Ju=no(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ao(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ju}next(n){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){un(()=>{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(){un(()=>{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?ps:(this.currentObservers=null,i.push(n),new U(()=>{this.currentObservers=null,Tt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return e.create=(t,n)=>new ao(t,n),e})(),ao=class extends ce{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:ps}};var Wn=class extends ce{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 qn={now(){return(qn.delegate||Date).now()},delegate:void 0};var Ds=class extends ce{constructor(t=1/0,n=1/0,r=qn){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 co=class extends U{constructor(t,n){super()}schedule(t,n=0){return this}};var Zn={setInterval(e,t,...n){let{delegate:r}=Zn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Zn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var pn=class extends co{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 Zn.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&&Zn.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,Tt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var hn=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)}};hn.now=qn.now;var gn=class extends hn{constructor(t,n=hn.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 Yn=new gn(pn),Xu=Yn;var uo=class extends pn{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=fn.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&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(fn.cancelAnimationFrame(n),t._scheduled=void 0)}};var lo=class extends gn{flush(t){this._active=!0;let n;t?n=t.id:(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 el=new lo(uo);var fo=new k(e=>e.complete());function po(e){return e&&S(e.schedule)}function tl(e){return e[e.length-1]}function at(e){return po(tl(e))?e.pop():void 0}function nl(e,t){return typeof tl(e)=="number"?e.pop():t}function ol(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(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function rl(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 Nt(e){return this instanceof Nt?(this.v=e,this):new Nt(e)}function il(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(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(M,T){i.push([f,y,M,T])>1||c(f,y)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(y){p(i[0][3],y)}}function u(f){f.value instanceof Nt?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function sl(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 rl=="function"?rl(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(u){i({value:u,done:a})},s)}}var ho=e=>e&&typeof e.length=="number"&&typeof e!="function";function go(e){return S(e?.then)}function mo(e){return S(e[dn])}function yo(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function vo(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 Gg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Do=Gg();function Eo(e){return S(e?.[Do])}function Io(e){return il(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Nt(n.read());if(o)return yield Nt(void 0);yield yield Nt(r)}}finally{n.releaseLock()}})}function Co(e){return S(e?.getReader)}function z(e){if(e instanceof k)return e;if(e!=null){if(mo(e))return Wg(e);if(ho(e))return qg(e);if(go(e))return Zg(e);if(yo(e))return al(e);if(Eo(e))return Yg(e);if(Co(e))return Qg(e)}throw vo(e)}function Wg(e){return new k(t=>{let n=e[dn]();if(S(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qg(e){return new k(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Zg(e){return new k(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,io)})}function Yg(e){return new k(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function al(e){return new k(t=>{Kg(e,t).catch(n=>t.error(n))})}function Qg(e){return al(Io(e))}function Kg(e,t){var n,r,o,i;return ol(this,void 0,void 0,function*(){try{for(n=sl(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 wo(e,t=0){return L((n,r)=>{n.subscribe(j(r,o=>me(r,e,()=>r.next(o),t),()=>me(r,e,()=>r.complete(),t),o=>me(r,e,()=>r.error(o),t)))})}function _o(e,t=0){return L((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function cl(e,t){return z(e).pipe(_o(t),wo(t))}function ul(e,t){return z(e).pipe(_o(t),wo(t))}function ll(e,t){return new k(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function dl(e,t){return new k(n=>{let r;return me(n,t,()=>{r=e[Do](),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)}),()=>S(r?.return)&&r.return()})}function bo(e,t){if(!e)throw new Error("Iterable cannot be null");return new k(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 fl(e,t){return bo(Io(e),t)}function pl(e,t){if(e!=null){if(mo(e))return cl(e,t);if(ho(e))return ll(e,t);if(go(e))return ul(e,t);if(yo(e))return bo(e,t);if(Eo(e))return dl(e,t);if(Co(e))return fl(e,t)}throw vo(e)}function mn(e,t){return t?pl(e,t):z(e)}function hl(...e){let t=at(e);return mn(e,t)}function gl(e){return e instanceof Date&&!isNaN(e)}function Qn(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>{r.next(e.call(t,i,o++))}))})}function ml(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let M=!1;z(n(y,l++)).subscribe(j(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{M=!0},void 0,()=>{if(M)try{for(u--;c.length&&u<r;){let T=c.shift();s?me(t,s,()=>h(T)):h(T)}p()}catch(T){t.error(T)}}))};return e.subscribe(j(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Es(e,t,n=1/0){return S(t)?Es((r,o)=>Qn((i,s)=>t(r,i,o,s))(z(e(r,o))),n):(typeof t=="number"&&(n=t),L((r,o)=>ml(r,o,e,n)))}function To(e=1/0){return Es(st,e)}function yl(){return To(1)}function Is(...e){return yl()(mn(e,at(e)))}function Jg(e){return new k(t=>{z(e()).subscribe(t)})}function So(e=0,t,n=Xu){let r=-1;return t!=null&&(po(t)?n=t:r=t),new k(o=>{let i=gl(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 Xg(e=0,t=Yn){return e<0&&(e=0),So(e,e,t)}function em(...e){let t=at(e),n=nl(e,1/0),r=e;return r.length?r.length===1?z(r[0]):To(n)(mn(r,t)):fo}function Cs(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>e.call(t,i,o++)&&r.next(i)))})}function vl(e){return L((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(j(n,u=>{r=!0,o=u,i||z(e(u)).subscribe(i=j(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function ws(e,t=Yn){return vl(()=>So(e,t))}function tm(e){return e<=0?()=>fo:L((t,n)=>{let r=0;t.subscribe(j(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Dl(e,t=st){return e=e??nm,L((n,r)=>{let o,i=!0;n.subscribe(j(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function nm(e,t){return e===t}function rm(e){return Cs((t,n)=>e<=n)}function _s(...e){let t=at(e);return L((n,r)=>{(t?Is(e,n,t):Is(e,n)).subscribe(r)})}function El(e,t){return L((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(j(r,c=>{o?.unsubscribe();let u=0,l=i++;z(e(c,l)).subscribe(o=j(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Il(e){return L((t,n)=>{z(e).subscribe(j(n,()=>n.complete(),Gn)),!n.closed&&t.subscribe(n)})}function om(e,t,n){let r=S(e)||t||n?{next:e,error:t,complete:n}:e;return r?L((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(j(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):st}var Cl=q($({},It),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});function wl(e){if(e.dirty=!1,e.hasRun&&!sn(e))return;e.hasRun=!0;let t=wt(e);try{e.cleanup(),e.fn()}finally{on(e,t)}}var Ro="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(t,n){super(dt(t,n)),this.code=t}};function im(e){return`NG0${Math.abs(e)}`}function dt(e,t){return`${im(e)}${t?": "+t:""}`}var ye=globalThis;function x(e){for(let t in e)if(e[t]===x)return t;throw Error("")}function Tl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ct(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ct).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 Oo(e,t){return e?t?`${e} ${t}`:e:t||""}var sm=x({__forward_ref__:x});function nr(e){return e.__forward_ref__=nr,e.toString=function(){return ct(this())},e}function Y(e){return ks(e)?e():e}function ks(e){return typeof e=="function"&&e.hasOwnProperty(sm)&&e.__forward_ref__===nr}function Sl(e,t){e==null&&Ps(t,e,null,"!=")}function Ps(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 Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fo(e){return am(e,ko)}function am(e,t){return e.hasOwnProperty(t)&&e[t]||null}function cm(e){let t=e?.[ko]??null;return t||null}function Ts(e){return e&&e.hasOwnProperty(No)?e[No]:null}var ko=x({\u0275prov:x}),No=x({\u0275inj:x}),C=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 Ls(e){return e&&!!e.\u0275providers}var js=x({\u0275cmp:x}),Vs=x({\u0275dir:x}),Bs=x({\u0275pipe:x});var Xn=x({\u0275fac:x}),kt=x({__NG_ELEMENT_ID__:x}),_l=x({__NG_ENV_ID__:x});function Pt(e){return typeof e=="string"?e:e==null?"":String(e)}function Ao(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Pt(e)}var Hs=x({ngErrorCode:x}),Ml=x({ngErrorMessage:x}),Jn=x({ngTokenPath:x});function $s(e,t){return Nl("",-200,t)}function Po(e,t){throw new m(-201,!1)}function um(e,t){e[Jn]??=[];let n=e[Jn],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Sl(t.provide,"Token with multi: true should have a provide property"),r=Ao(t.provide)):r=Ao(t),n[0]!==r&&e[Jn].unshift(r)}function lm(e,t){let n=e[Jn],r=e[Hs],o=e[Ml]||e.message;return e.message=fm(o,r,n,t),e}function Nl(e,t,n){let r=new m(t,e);return r[Hs]=t,r[Ml]=e,n&&(r[Jn]=n),r}function dm(e){return e[Hs]}function fm(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return dt(t,`${e}${i}${o}`)}var Ss;function Al(){return Ss}function re(e){let t=Ss;return Ss=e,t}function Us(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;Po(e,"Injector")}var pm={},At=pm,hm="__NG_DI_FLAG__",Ms=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=xt(n)||0;try{return this.injector.get(t,r&8?null:At,r)}catch(o){if(rn(o))return o;throw o}}};function gm(e,t=0){let n=Wr();if(n===void 0)throw new m(-203,!1);if(n===null)return Us(e,void 0,t);{let r=mm(t),o=n.retrieve(e,r);if(rn(o)){if(r.optional)return null;throw o}return o}}function _(e,t=0){return(Al()||gm)(Y(e),t)}function g(e,t){return _(e,xt(t))}function xt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function mm(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ns(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=ym(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(_(o,i))}else t.push(_(r))}return t}function ym(e){return e[hm]}function ut(e,t){let n=e.hasOwnProperty(Xn);return n?e[Xn]:null}function xl(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 Rl(e){return e.flat(Number.POSITIVE_INFINITY)}function Lo(e,t){e.forEach(n=>Array.isArray(n)?Lo(n,t):t(n))}function zs(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 Ol(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Fl(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 or(e,t,n){let r=vn(e,t);return r>=0?e[r|1]=n:(r=~r,Fl(e,r,t,n)),r}function jo(e,t){let n=vn(e,t);if(n>=0)return e[n|1]}function vn(e,t){return vm(e,t,1)}function vm(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 Se={},te=[],ft=new C(""),Gs=new C("",-1),Ws=new C(""),er=class{get(t,n=At){if(n===At){let o=Nl("",-201);throw o.name="\u0275NotFound",o}return n}};function pt(e){return e[js]||null}function Vo(e){return e[Vs]||null}function kl(e){return e[Bs]||null}function Bo(e){return{\u0275providers:e}}function Pl(...e){return{\u0275providers:qs(!0,e),\u0275fromNgModule:!0}}function qs(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Lo(t,s=>{let a=s;xo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ll(o,i),n}function Ll(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Zs(o,i=>{t(i,r)})}}function xo(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Ts(e),s=!i&&pt(e);if(!i&&!s){let c=e.ngModule;if(i=Ts(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 u of c)xo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Lo(i.imports,l=>{xo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ll(u,t)}if(!a){let u=ut(o)||(()=>new o);t({provide:o,useFactory:u,deps:te},o),t({provide:Ws,useValue:o,multi:!0},o),t({provide:ft,useValue:()=>_(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Zs(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Zs(e,t){for(let n of e)Ls(n)&&(n=n.\u0275providers),Array.isArray(n)?Zs(n,t):t(n)}var Dm=x({provide:String,useValue:x});function jl(e){return e!==null&&typeof e=="object"&&Dm in e}function Em(e){return!!(e&&e.useExisting)}function Im(e){return!!(e&&e.useFactory)}function Rt(e){return typeof e=="function"}function Vl(e){return!!e.useClass}var ir=new C(""),Mo={},bl={},bs;function Dn(){return bs===void 0&&(bs=new er),bs}var ue=class{},Ot=class extends ue{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,xs(t,s=>this.processProvider(s)),this.records.set(Gs,yn(void 0,this)),o.has("environment")&&this.records.set(ue,yn(void 0,this));let i=this.records.get(ir);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ws,te,{self:!0}))}retrieve(t,n){let r=xt(n)||0;try{return this.get(t,At,r)}catch(o){if(rn(o))return o;throw o}}destroy(){Kn(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 Kn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kn(this);let n=Le(this),r=re(void 0),o;try{return t()}finally{Le(n),re(r)}}get(t,n=At,r){if(Kn(this),t.hasOwnProperty(_l))return t[_l](this);let o=xt(r),i,s=Le(this),a=re(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Tm(t)&&Fo(t);l&&this.injectableDefInScope(l)?u=yn(As(t),Mo):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Dn():this.parent;return n=o&8&&n===At?null:n,c.get(t,n)}catch(c){let u=dm(c);throw u===-200||u===-201?new m(u,null):c}finally{re(a),Le(s)}}resolveInjectorInitializers(){let t=I(null),n=Le(this),r=re(void 0),o;try{let i=this.get(ft,te,{self:!0});for(let s of i)s()}finally{Le(n),re(r),I(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ct(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=Rt(t)?t:Y(t&&t.provide),r=wm(t);if(!Rt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=yn(void 0,Mo,!0),o.factory=()=>Ns(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===bl)throw $s(ct(t));return n.value===Mo&&(n.value=bl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&bm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function As(e){let t=Fo(e),n=t!==null?t.factory:ut(e);if(n!==null)return n;if(e instanceof C)throw new m(204,!1);if(e instanceof Function)return Cm(e);throw new m(204,!1)}function Cm(e){if(e.length>0)throw new m(204,!1);let n=cm(e);return n!==null?()=>n.factory(e):()=>new e}function wm(e){if(jl(e))return yn(void 0,e.useValue);{let t=Ys(e);return yn(t,Mo)}}function Ys(e,t,n){let r;if(Rt(e)){let o=Y(e);return ut(o)||As(o)}else if(jl(e))r=()=>Y(e.useValue);else if(Im(e))r=()=>e.useFactory(...Ns(e.deps||[]));else if(Em(e))r=(o,i)=>_(Y(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(e&&(e.useClass||e.provide));if(_m(e))r=()=>new o(...Ns(e.deps));else return ut(o)||As(o)}return r}function Kn(e){if(e.destroyed)throw new m(205,!1)}function yn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _m(e){return!!e.deps}function bm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Tm(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function xs(e,t){for(let n of e)Array.isArray(n)?xs(n,t):n&&Ls(n)?xs(n.\u0275providers,t):t(n)}function Ho(e,t){let n;e instanceof Ot?(Kn(e),n=e):n=new Ms(e);let r,o=Le(n),i=re(void 0);try{return t()}finally{Le(o),re(i)}}function Bl(){return Al()!==void 0||Wr()!=null}var Me=0,D=1,E=2,Q=3,ve=4,ie=5,Lt=6,En=7,B=8,jt=9,je=10,N=11,In=12,Qs=13,Vt=14,se=15,ht=16,Bt=17,Ve=18,sr=19,Ks=20,Ge=21,$o=22,We=23,pe=24,Ht=25,R=26,Hl=1,Js=6,gt=7,ar=8,$t=9,X=10;function Be(e){return Array.isArray(e)&&typeof e[Hl]=="object"}function Ne(e){return Array.isArray(e)&&e[Hl]===!0}function Xs(e){return(e.flags&4)!==0}function qe(e){return e.componentOffset>-1}function Cn(e){return(e.flags&1)===1}function Ae(e){return!!e.template}function wn(e){return(e[E]&512)!==0}function Ut(e){return(e[E]&256)===256}var ea="svg",$l="math";function De(e){for(;Array.isArray(e);)e=e[Me];return e}function ta(e,t){return De(t[e])}function Ee(e,t){return De(t[e.index])}function cr(e,t){return e.data[t]}function ur(e,t){return e[t]}function lr(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ie(e,t){let n=t[e];return Be(n)?n:n[Me]}function Ul(e){return(e[E]&4)===4}function Uo(e){return(e[E]&128)===128}function zl(e){return Ne(e[Q])}function Ce(e,t){return t==null?null:e[t]}function na(e){e[Bt]=0}function zo(e){e[E]&1024||(e[E]|=1024,Uo(e)&&mt(e))}function Gl(e,t){for(;e>0;)t=t[Vt],e--;return t}function _n(e){return!!(e[E]&9216||e[pe]?.dirty)}function Go(e){e[je].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),_n(e)&&mt(e)}function mt(e){e[je].changeDetectionScheduler?.notify(0);let t=lt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Uo(t)));)t=lt(t)}function ra(e,t){if(Ut(e))throw new m(911,!1);e[Ge]===null&&(e[Ge]=[]),e[Ge].push(t)}function Wl(e,t){if(e[Ge]===null)return;let n=e[Ge].indexOf(t);n!==-1&&e[Ge].splice(n,1)}function lt(e){let t=e[Q];return Ne(t)?t[Q]:t}function oa(e){return e[En]??=[]}function ia(e){return e.cleanup??=[]}function ql(e,t,n,r){let o=oa(t);o.push(n),e.firstCreatePass&&ia(e).push(r,o.length-1)}var b={lFrame:id(null),bindingsEnabled:!0,skipHydrationRootTNode:null},dr=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(dr||{}),Sm=0,Rs=!1;function Zl(){return b.lFrame.elementDepthCount}function Yl(){b.lFrame.elementDepthCount++}function sa(){b.lFrame.elementDepthCount--}function Wo(){return b.bindingsEnabled}function aa(){return b.skipHydrationRootTNode!==null}function ca(e){return b.skipHydrationRootTNode===e}function ua(){b.skipHydrationRootTNode=null}function v(){return b.lFrame.lView}function F(){return b.lFrame.tView}function Ql(e){return b.lFrame.contextLView=e,e[B]}function Kl(e){return b.lFrame.contextLView=null,e}function K(){let e=la();for(;e!==null&&e.type===64;)e=e.parent;return e}function la(){return b.lFrame.currentTNode}function Jl(){let e=b.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function zt(e,t){let n=b.lFrame;n.currentTNode=e,n.isParent=t}function da(){return b.lFrame.isParent}function fa(){b.lFrame.isParent=!1}function pa(){return b.lFrame.contextLView}function ha(e){Ps("Must never be called in production mode"),Sm=e}function ga(){return Rs}function bn(e){let t=Rs;return Rs=e,t}function fr(){let e=b.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xl(e){return b.lFrame.bindingIndex=e}function He(){return b.lFrame.bindingIndex++}function ma(e){let t=b.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ed(){return b.lFrame.inI18n}function td(e,t){let n=b.lFrame;n.bindingIndex=n.bindingRootIndex=e,qo(t)}function nd(){return b.lFrame.currentDirectiveIndex}function qo(e){b.lFrame.currentDirectiveIndex=e}function rd(e){let t=b.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Zo(){return b.lFrame.currentQueryIndex}function pr(e){b.lFrame.currentQueryIndex=e}function Mm(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function ya(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Mm(i),o===null||(i=i[Vt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=b.lFrame=od();return r.currentTNode=t,r.lView=e,!0}function Yo(e){let t=od(),n=e[D];b.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function od(){let e=b.lFrame,t=e===null?null:e.child;return t===null?id(e):t}function id(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 sd(){let e=b.lFrame;return b.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var va=sd;function Qo(){let e=sd();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 ad(e){return(b.lFrame.contextLView=Gl(e,b.lFrame.contextLView))[B]}function $e(){return b.lFrame.selectedIndex}function yt(e){b.lFrame.selectedIndex=e}function Tn(){let e=b.lFrame;return cr(e.tView,e.selectedIndex)}function cd(){b.lFrame.currentNamespace=ea}function ud(){Nm()}function Nm(){b.lFrame.currentNamespace=null}function ld(){return b.lFrame.currentNamespace}var dd=!0;function Ko(){return dd}function hr(e){dd=e}var Am={elements:void 0};function Jo(){return Am}function Os(e,t=null,n=null,r){let o=fd(e,t,n,r);return o.resolveInjectorInitializers(),o}function fd(e,t=null,n=null,r,o=new Set){let i=[n||te,Pl(e)];return r=r||(typeof e=="object"?void 0:ct(e)),new Ot(i,t||Dn(),r||null,o)}var oe=class e{static THROW_IF_NOT_FOUND=At;static NULL=new er;static create(t,n){if(Array.isArray(t))return Os({name:""},n,t,"");{let r=t.name??"";return Os({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>_(Gs)});static __NG_ELEMENT_ID__=-1},G=new C(""),Ze=(()=>{class e{static __NG_ELEMENT_ID__=xm;static __NG_ENV_ID__=n=>n}return e})(),tr=class extends Ze{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Ut(this._lView)}onDestroy(t){let n=this._lView;return ra(n,t),()=>Wl(n,t)}};function xm(){return new tr(v())}var fe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ye=new C("",{providedIn:"root",factory:()=>{let e=g(ue),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(fe),t.handleError(n))}}}),pd={provide:ft,useValue:()=>void g(fe),multi:!0};function Da(e){return typeof e=="function"&&e[Z]!==void 0}function Gt(e,t){let[n,r,o]=ds(e,t?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=Xo.bind(i),i}function Xo(){let e=this[Z];if(e.readonlyFn===void 0){let t=()=>this();t[Z]=e,e.readonlyFn=t}return e.readonlyFn}function Ea(e){return Da(e)&&typeof e.set=="function"}var Te=class{},Sn=new C("",{providedIn:"root",factory:()=>!1});var Ia=new C(""),ei=new C("");var Mn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Rm}return e})();function Rm(){return new Mn(v(),K())}var Wt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Wn(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k(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 qt(...e){}var gr=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new Fs})}return e})(),Fs=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 Tr(e){return{toString:e}.toString()}function Bm(e){return typeof e=="function"}var li=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Kd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bi=(()=>{let e=()=>Jd;return e.ngInherit=!0,e})();function Jd(e){return e.type.prototype.ngOnChanges&&(e.setInput=$m),Hm}function Hm(){let e=ef(this),t=e?.current;if(t){let n=e.previous;if(n===Se)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function $m(e,t,n,r,o){let i=this.declaredInputs[r],s=ef(e)||Um(e,{previous:Se,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new li(u&&u.currentValue,n,c===Se),Kd(e,t,o,n)}var Xd="__ngSimpleChanges__";function ef(e){return e[Xd]||null}function Um(e,t){return e[Xd]=t}var hd=[];var A=function(e,t=null,n){for(let r=0;r<hd.length;r++){let o=hd[r];o(e,t,n)}};function zm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Jd(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 tf(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:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ii(e,t,n){nf(e,t,3,n)}function si(e,t,n,r){(e[E]&3)===n&&nf(e,t,n,r)}function Ca(e,t){let n=e[E];(n&3)===t&&(n&=16383,n+=1,e[E]=n)}function nf(e,t,n,r){let o=r!==void 0?e[Bt]&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[Bt]+=65536),(a<i||i==-1)&&(Gm(e,n,t,c),e[Bt]=(e[Bt]&4294901760)+c+2),c++}function gd(e,t){A(4,e,t);let n=I(null);try{t.call(e)}finally{I(n),A(5,e,t)}}function Gm(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[E]>>14<e[Bt]>>16&&(e[E]&3)===t&&(e[E]+=16384,gd(a,i)):gd(a,i)}var An=-1,Qt=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 Wm(e){return(e.flags&8)!==0}function qm(e){return(e.flags&16)!==0}function Zm(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];Qm(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Ym(e){return e===3||e===4||e===6}function Qm(e){return e.charCodeAt(0)===64}function xn(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?md(e,n,o,null,t[++r]):md(e,n,o,null,null))}}return e}function md(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 rf(e){return e!==An}function di(e){return e&32767}function Km(e){return e>>16}function fi(e,t){let n=Km(e),r=t;for(;n>0;)r=r[Vt],n--;return r}var Fa=!0;function pi(e){let t=Fa;return Fa=e,t}var Jm=256,of=Jm-1,sf=5,Xm=0,Ue={};function ey(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(kt)&&(r=n[kt]),r==null&&(r=n[kt]=Xm++);let o=r&of,i=1<<o;t.data[e+(o>>sf)]|=i}function hi(e,t){let n=af(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,wa(r.data,e),wa(t,null),wa(r.blueprint,null));let o=Ic(e,t),i=e.injectorIndex;if(rf(o)){let s=di(o),a=fi(o,t),c=a[D].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function wa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function af(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ic(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=ff(o),r===null)return An;if(n++,o=o[Vt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return An}function ka(e,t,n){ey(e,t,n)}function cf(e,t,n){if(n&8||e!==void 0)return e;Po(t,"NodeInjector")}function uf(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[jt],i=re(void 0);try{return o?o.get(t,r,n&8):Us(t,r,n&8)}finally{re(i)}}return cf(r,t,n)}function lf(e,t,n,r=0,o){if(e!==null){if(t[E]&2048&&!(r&2)){let s=iy(e,t,n,r,Ue);if(s!==Ue)return s}let i=df(e,t,n,r,Ue);if(i!==Ue)return i}return uf(t,n,r,o)}function df(e,t,n,r,o){let i=ny(n);if(typeof i=="function"){if(!ya(t,e,r))return r&1?cf(o,n,r):uf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Po(n);else return s}finally{va()}}else if(typeof i=="number"){let s=null,a=af(e,t),c=An,u=r&1?t[se][ie]:null;for((a===-1||r&4)&&(c=a===-1?Ic(e,t):t[a+8],c===An||!vd(r,!1)?a=-1:(s=t[D],a=di(c),t=fi(c,t)));a!==-1;){let l=t[D];if(yd(i,a,l.data)){let d=ty(a,t,n,s,r,u);if(d!==Ue)return d}c=t[a+8],c!==An&&vd(r,t[D].data[a+8]===u)&&yd(i,a,t)?(s=l,a=di(c),t=fi(c,t)):a=-1}}return o}function ty(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],c=r==null?qe(a)&&Fa:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ai(a,s,n,c,u);return l!==null?vr(t,s,l,a,o):Ue}function ai(e,t,n,r,o)