UNPKG

@scottlogic/tech-carbon-estimator

Version:

The tech carbon estimator is a web component that allow you to estimate, at high level, your carbon emissions

4 lines 379 kB
import{a as F,b as U,c as Em,d as y,e as Nw,f as Bt}from"./chunk-65MYOLBY.js";function Ns(){return Jc}function Ht(t){let e=Jc;return Jc=t,e}function Ur(t){return t===_m||t?.name==="\u0275NotFound"}var Jc,_m,Xc=y(()=>{"use strict";_m=Symbol("NotFound")});function Ps(t,e){return Object.is(t,e)}function N(t){let e=me;return me=t,e}function ks(){return me}function Yn(t){if(As)throw new Error("");if(me===null)return;me.consumerOnSignalRead(t);let e=me.nextProducerIndex++;if(js(me),e<me.producerNode.length&&me.producerNode[e]!==t&&ei(me)){let n=me.producerNode[e];Vs(n,me.producerIndexOfThis[e])}me.producerNode[e]!==t&&(me.producerNode[e]=t,me.producerIndexOfThis[e]=ei(me)?Cm(t,me,e):0),me.producerLastReadVersion[e]=t.version}function Dm(){eu++}function Ls(t){if(!(ei(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===eu)){if(!t.producerMustRecompute(t)&&!$r(t)){Fs(t);return}t.producerRecomputeValue(t),Fs(t)}}function tu(t){if(t.liveConsumerNode===void 0)return;let e=As;As=!0;try{for(let n of t.liveConsumerNode)n.dirty||Rw(n)}finally{As=e}}function nu(){return me?.consumerAllowSignalWrites!==!1}function Rw(t){t.dirty=!0,tu(t),t.consumerMarkedDirty?.(t)}function Fs(t){t.dirty=!1,t.lastCleanEpoch=eu}function Tn(t){return t&&(t.nextProducerIndex=0),N(t)}function Qn(t,e){if(N(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(ei(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)Vs(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function $r(t){js(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(Ls(n),r!==n.version))return!0}return!1}function Gr(t){if(js(t),ei(t))for(let e=0;e<t.producerNode.length;e++)Vs(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Cm(t,e,n){if(bm(t),t.liveConsumerNode.length===0&&wm(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=Cm(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function Vs(t,e){if(bm(t),t.liveConsumerNode.length===1&&wm(t))for(let r=0;r<t.producerNode.length;r++)Vs(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];js(o),o.producerIndexOfThis[r]=e}}function ei(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function js(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function bm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function wm(t){return t.producerNode!==void 0}function Bs(t){Aw?.(t)}function ti(t,e){let n=Object.create(Ow);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(Ls(n),Yn(n),n.value===Xo)throw n.error;return n.value};return r[_e]=n,Bs(n),r}function Fw(){throw new Error}function Sm(t){Im(t)}function ru(t){Im=t}function ou(t,e){let n=Object.create(Hs);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Tm(n);return r[_e]=n,Bs(n),[r,s=>Jn(n,s),s=>iu(n,s)]}function Tm(t){return Yn(t),t.value}function Jn(t,e){nu()||Sm(t),t.equal(t.value,e)||(t.value=e,kw(t))}function iu(t,e){nu()||Sm(t),Jn(t,e(t.value))}function kw(t){t.version++,Dm(),tu(t),Pw?.(t)}var me,As,eu,Aw,_e,Sn,Rs,Os,Xo,Ow,Im,Pw,Hs,Xn=y(()=>{"use strict";me=null,As=!1,eu=1,Aw=null,_e=Symbol("SIGNAL");Sn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};Rs=Symbol("UNSET"),Os=Symbol("COMPUTING"),Xo=Symbol("ERRORED"),Ow=U(F({},Sn),{value:Rs,dirty:!0,error:null,equal:Ps,kind:"computed",producerMustRecompute(t){return t.value===Rs||t.value===Os},producerRecomputeValue(t){if(t.value===Os)throw new Error("");let e=t.value;t.value=Os;let n=Tn(t),r,o=!1;try{r=t.computation(),N(null),o=e!==Rs&&e!==Xo&&r!==Xo&&t.equal(e,r)}catch(i){r=Xo,t.error=i}finally{Qn(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});Im=Fw;Pw=null;Hs=U(F({},Sn),{equal:Ps,value:void 0,kind:"signal"})});function k(t){return typeof t=="function"}var Ne=y(()=>{"use strict"});function Us(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var su=y(()=>{"use strict"});var $s,xm=y(()=>{"use strict";su();$s=Us(t=>function(n){t(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 er(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Gs=y(()=>{"use strict"});function Ws(t){return t instanceof Te||t&&"closed"in t&&k(t.remove)&&k(t.add)&&k(t.unsubscribe)}function Mm(t){k(t)?t():t.unsubscribe()}var Te,au,Wr=y(()=>{"use strict";Ne();xm();Gs();Te=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;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(k(r))try{r()}catch(i){e=i instanceof $s?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Mm(i)}catch(s){e=e??[],s instanceof $s?e=[...e,...s.errors]:e.push(s)}}if(e)throw new $s(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Mm(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&er(n,e)}remove(e){let{_finalizers:n}=this;n&&er(n,e),e instanceof t&&e._removeParent(this)}};Te.EMPTY=(()=>{let t=new Te;return t.closed=!0,t})();au=Te.EMPTY});var bt,ni=y(()=>{"use strict";bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var zr,lu=y(()=>{"use strict";zr={setTimeout(t,e,...n){let{delegate:r}=zr;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=zr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function zs(t){zr.setTimeout(()=>{let{onUnhandledError:e}=bt;if(e)e(t);else throw t})}var cu=y(()=>{"use strict";ni();lu()});function uu(){}var Nm=y(()=>{"use strict"});function Rm(t){return du("E",void 0,t)}function Om(t){return du("N",t,void 0)}function du(t,e,n){return{kind:t,value:e,error:n}}var Am,Fm=y(()=>{"use strict";Am=du("C",void 0,void 0)});function qr(t){if(bt.useDeprecatedSynchronousErrorHandling){let e=!tr;if(e&&(tr={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=tr;if(tr=null,n)throw r}}else t()}function Pm(t){bt.useDeprecatedSynchronousErrorHandling&&tr&&(tr.errorThrown=!0,tr.error=t)}var tr,qs=y(()=>{"use strict";ni();tr=null});function fu(t,e){return Lw.call(t,e)}function Ks(t){bt.useDeprecatedSynchronousErrorHandling?Pm(t):zs(t)}function Vw(t){throw t}function pu(t,e){let{onStoppedNotification:n}=bt;n&&zr.setTimeout(()=>n(t,e))}var nr,Lw,hu,Kr,jw,mu=y(()=>{"use strict";Ne();Wr();ni();cu();Nm();Fm();lu();qs();nr=class extends Te{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ws(e)&&e.add(this)):this.destination=jw}static create(e,n,r){return new Kr(e,n,r)}next(e){this.isStopped?pu(Om(e),this):this._next(e)}error(e){this.isStopped?pu(Rm(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?pu(Am,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Lw=Function.prototype.bind;hu=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Ks(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Ks(r)}else Ks(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Ks(n)}}},Kr=class extends nr{constructor(e,n,r){super();let o;if(k(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&bt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&fu(e.next,i),error:e.error&&fu(e.error,i),complete:e.complete&&fu(e.complete,i)}):o=e}this.destination=new hu(o)}};jw={closed:!0,next:uu,error:Vw,complete:uu}});var Zr,Zs=y(()=>{"use strict";Zr=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function Ys(t){return t}var gu=y(()=>{"use strict"});function km(t){return t.length===0?Ys:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var Lm=y(()=>{"use strict";gu()});function Vm(t){var e;return(e=t??bt.Promise)!==null&&e!==void 0?e:Promise}function Bw(t){return t&&k(t.next)&&k(t.error)&&k(t.complete)}function Hw(t){return t&&t instanceof nr||Bw(t)&&Ws(t)}var ee,Ut=y(()=>{"use strict";mu();Wr();Zs();Lm();ni();Ne();qs();ee=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Hw(n)?n:new Kr(n,r,o);return qr(()=>{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=Vm(r),new r((o,i)=>{let s=new Kr({next:a=>{try{n(a)}catch(l){i(l),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)}[Zr](){return this}pipe(...n){return km(n)(this)}toPromise(n){return n=Vm(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})()});function Uw(t){return k(t?.lift)}function lt(t){return e=>{if(Uw(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var rr=y(()=>{"use strict";Ne()});function We(t,e,n,r,o){return new yu(t,e,n,r,o)}var yu,or=y(()=>{"use strict";mu();yu=class extends nr{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}}});var jm,Bm=y(()=>{"use strict";su();jm=Us(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var ct,Qs,Js=y(()=>{"use strict";Ut();Wr();Bm();Gs();qs();ct=(()=>{class t extends ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Qs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new jm}next(n){qr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){qr(()=>{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(){qr(()=>{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?au:(this.currentObservers=null,i.push(n),new Te(()=>{this.currentObservers=null,er(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new ee;return n.source=this,n}}return t.create=(e,n)=>new Qs(e,n),t})(),Qs=class extends ct{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:au}}});var ri,Hm=y(()=>{"use strict";Js();ri=class extends ct{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}});var oi,vu=y(()=>{"use strict";oi={now(){return(oi.delegate||Date).now()},delegate:void 0}});var ii,Um=y(()=>{"use strict";Js();vu();ii=class extends ct{constructor(e=1/0,n=1/0,r=oi){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}}});var Xs,$m=y(()=>{"use strict";Wr();Xs=class extends Te{constructor(e,n){super()}schedule(e,n=0){return this}}});var si,Gm=y(()=>{"use strict";si={setInterval(t,e,...n){let{delegate:r}=si;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=si;return(e?.clearInterval||clearInterval)(t)},delegate:void 0}});var Yr,Eu=y(()=>{"use strict";$m();Gm();Gs();Yr=class extends Xs{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;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(e,n,r=0){return si.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&si.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}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:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,er(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}}});function Wm(t){return t in Du?(delete Du[t],!0):!1}var $w,_u,Du,zm,qm=y(()=>{"use strict";$w=1,Du={};zm={setImmediate(t){let e=$w++;return Du[e]=!0,_u||(_u=Promise.resolve()),_u.then(()=>Wm(e)&&t()),e},clearImmediate(t){Wm(t)}}});var Gw,Ww,ai,Km=y(()=>{"use strict";qm();({setImmediate:Gw,clearImmediate:Ww}=zm),ai={setImmediate(...t){let{delegate:e}=ai;return(e?.setImmediate||Gw)(...t)},clearImmediate(t){let{delegate:e}=ai;return(e?.clearImmediate||Ww)(t)},delegate:void 0}});var ea,Zm=y(()=>{"use strict";Eu();Km();ea=class extends Yr{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=ai.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(ai.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}}});var Qr,Ym=y(()=>{"use strict";vu();Qr=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};Qr.now=oi.now});var Jr,Cu=y(()=>{"use strict";Ym();Jr=class extends Qr{constructor(e,n=Qr.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}});var ta,Qm=y(()=>{"use strict";Cu();ta=class extends Jr{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}}});var bu,Jm=y(()=>{"use strict";Zm();Qm();bu=new ta(ea)});var Xm,eg=y(()=>{"use strict";Eu();Cu();Xm=new Jr(Yr)});var tg,ng=y(()=>{"use strict";Ut();tg=new ee(t=>t.complete())});function rg(t){return t&&k(t.schedule)}var og=y(()=>{"use strict";Ne()});function wu(t){return t[t.length-1]}function ig(t){return k(wu(t))?t.pop():void 0}function sg(t){return rg(wu(t))?t.pop():void 0}function ag(t,e){return typeof wu(t)=="number"?t.pop():e}var Iu=y(()=>{"use strict";Ne();og()});function cg(t,e,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{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function lg(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ir(t){return this instanceof ir?(this.v=t,this):new ir(t)}function ug(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),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(v){return Promise.resolve(v).then(f,d)}}function a(f,v){r[f]&&(o[f]=function(E){return new Promise(function(C,b){i.push([f,E,C,b])>1||l(f,E)})},v&&(o[f]=v(o[f])))}function l(f,v){try{c(r[f](v))}catch(E){p(i[0][3],E)}}function c(f){f.value instanceof ir?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,v){f(v),i.shift(),i.length&&l(i[0][0],i[0][1])}}function dg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof lg=="function"?lg(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,l){s=t[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Su=y(()=>{"use strict"});var Xr,na=y(()=>{"use strict";Xr=t=>t&&typeof t.length=="number"&&typeof t!="function"});function ra(t){return k(t?.then)}var Tu=y(()=>{"use strict";Ne()});function oa(t){return k(t[Zr])}var xu=y(()=>{"use strict";Zs();Ne()});function ia(t){return Symbol.asyncIterator&&k(t?.[Symbol.asyncIterator])}var Mu=y(()=>{"use strict";Ne()});function sa(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var Nu=y(()=>{"use strict"});function zw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var aa,Au=y(()=>{"use strict";aa=zw()});function la(t){return k(t?.[aa])}var Ru=y(()=>{"use strict";Au();Ne()});function ca(t){return ug(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield ir(n.read());if(o)return yield ir(void 0);yield yield ir(r)}}finally{n.releaseLock()}})}function ua(t){return k(t?.getReader)}var da=y(()=>{"use strict";Su();Ne()});function De(t){if(t instanceof ee)return t;if(t!=null){if(oa(t))return qw(t);if(Xr(t))return Kw(t);if(ra(t))return Zw(t);if(ia(t))return fg(t);if(la(t))return Yw(t);if(ua(t))return Qw(t)}throw sa(t)}function qw(t){return new ee(e=>{let n=t[Zr]();if(k(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Kw(t){return new ee(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Zw(t){return new ee(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,zs)})}function Yw(t){return new ee(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function fg(t){return new ee(e=>{Jw(t,e).catch(n=>e.error(n))})}function Qw(t){return fg(ca(t))}function Jw(t,e){var n,r,o,i;return cg(this,void 0,void 0,function*(){try{for(n=dg(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}var $t=y(()=>{"use strict";Su();na();Tu();Ut();xu();Mu();Nu();Ru();da();Ne();cu();Zs()});function ut(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}var li=y(()=>{"use strict"});function fa(t,e=0){return lt((n,r)=>{n.subscribe(We(r,o=>ut(r,t,()=>r.next(o),e),()=>ut(r,t,()=>r.complete(),e),o=>ut(r,t,()=>r.error(o),e)))})}var Ou=y(()=>{"use strict";li();rr();or()});function pa(t,e=0){return lt((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}var Fu=y(()=>{"use strict";rr()});function pg(t,e){return De(t).pipe(pa(e),fa(e))}var hg=y(()=>{"use strict";$t();Ou();Fu()});function mg(t,e){return De(t).pipe(pa(e),fa(e))}var gg=y(()=>{"use strict";$t();Ou();Fu()});function yg(t,e){return new ee(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}var vg=y(()=>{"use strict";Ut()});function Eg(t,e){return new ee(n=>{let r;return ut(n,e,()=>{r=t[aa](),ut(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>k(r?.return)&&r.return()})}var _g=y(()=>{"use strict";Ut();Au();Ne();li()});function ha(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(n=>{ut(n,e,()=>{let r=t[Symbol.asyncIterator]();ut(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}var Pu=y(()=>{"use strict";Ut();li()});function Dg(t,e){return ha(ca(t),e)}var Cg=y(()=>{"use strict";Pu();da()});function bg(t,e){if(t!=null){if(oa(t))return pg(t,e);if(Xr(t))return yg(t,e);if(ra(t))return mg(t,e);if(ia(t))return ha(t,e);if(la(t))return Eg(t,e);if(ua(t))return Dg(t,e)}throw sa(t)}var wg=y(()=>{"use strict";hg();gg();vg();_g();Pu();xu();Tu();na();Ru();Mu();Nu();da();Cg()});function ci(t,e){return e?bg(t,e):De(t)}var ku=y(()=>{"use strict";wg();$t()});function an(t,e){return lt((n,r)=>{let o=0;n.subscribe(We(r,i=>{r.next(t.call(e,i,o++))}))})}var ma=y(()=>{"use strict";rr();or()});function eI(t,e){return Xw(e)?t(...e):t(e)}function ga(t){return an(e=>eI(t,e))}var Xw,Lu=y(()=>{"use strict";ma();({isArray:Xw}=Array)});function Ig(t){if(t.length===1){let e=t[0];if(tI(e))return{args:e,keys:null};if(iI(e)){let n=oI(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function iI(t){return t&&typeof t=="object"&&nI(t)===rI}var tI,nI,rI,oI,Sg=y(()=>{"use strict";({isArray:tI}=Array),{getPrototypeOf:nI,prototype:rI,keys:oI}=Object});function Tg(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}var xg=y(()=>{"use strict"});function Mg(t,e,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&e.complete()},f=E=>c<r?v(E):l.push(E),v=E=>{i&&e.next(E),c++;let C=!1;De(n(E,u++)).subscribe(We(e,b=>{o?.(b),i?f(b):e.next(b)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){let b=l.shift();s?ut(e,s,()=>v(b)):v(b)}p()}catch(b){e.error(b)}}))};return t.subscribe(We(e,f,()=>{d=!0,p()})),()=>{a?.()}}var Ng=y(()=>{"use strict";$t();li();or()});function ui(t,e,n=1/0){return k(e)?ui((r,o)=>an((i,s)=>e(r,i,o,s))(De(t(r,o))),n):(typeof e=="number"&&(n=e),lt((r,o)=>Mg(r,o,t,n)))}var Vu=y(()=>{"use strict";ma();$t();rr();Ng();Ne()});function Ag(t=1/0){return ui(Ys,t)}var Rg=y(()=>{"use strict";Vu();gu()});function ju(...t){let e=ig(t),{args:n,keys:r}=Ig(t),o=new ee(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;De(n[u]).subscribe(We(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?Tg(r,a):a),i.complete())}))}});return e?o.pipe(ga(e)):o}var Og=y(()=>{"use strict";Ut();Sg();$t();Iu();or();Lu();xg()});function di(t,e,n,r){if(k(n)&&(r=n,n=void 0),r)return di(t,e,n).pipe(ga(r));let[o,i]=dI(t)?aI.map(s=>a=>t[s](e,a,n)):cI(t)?sI.map(Fg(t,e)):uI(t)?lI.map(Fg(t,e)):[];if(!o&&Xr(t))return ui(s=>di(s,e,n))(De(t));if(!o)throw new TypeError("Invalid event target");return new ee(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>i(a)})}function Fg(t,e){return n=>r=>t[n](e,r)}function cI(t){return k(t.addListener)&&k(t.removeListener)}function uI(t){return k(t.on)&&k(t.off)}function dI(t){return k(t.addEventListener)&&k(t.removeEventListener)}var sI,aI,lI,Pg=y(()=>{"use strict";$t();Ut();Vu();na();Ne();Lu();sI=["addListener","removeListener"],aI=["addEventListener","removeEventListener"],lI=["on","off"]});function Bu(...t){let e=sg(t),n=ag(t,1/0),r=t;return r.length?r.length===1?De(r[0]):Ag(n)(ci(r,e)):tg}var kg=y(()=>{"use strict";Rg();$t();ng();Iu();ku()});var Lg=y(()=>{"use strict"});function Hu(t,e=Xm){return lt((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function l(){let c=s+t,u=e.now();if(u<c){o=this.schedule(void 0,c-u),r.add(o);return}a()}n.subscribe(We(r,c=>{i=c,s=e.now(),o||(o=e.schedule(l,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}var Vg=y(()=>{"use strict";eg();rr();or()});function Uu(t,e){return lt((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(We(r,l=>{o?.unsubscribe();let c=0,u=i++;De(t(l,u)).subscribe(o=We(r,d=>r.next(e?e(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var jg=y(()=>{"use strict";$t();rr();or()});var sr=y(()=>{"use strict";Ut();Js();Hm();Um();Jm();Wr();Og();ku();Pg();kg();Lg();Vg()});function Bg(t){let e=N(null);try{return t()}finally{N(e)}}var Hg=y(()=>{"use strict";Xn();});var $u=y(()=>{"use strict";Xn();});var Ug=y(()=>{"use strict";Xc();});function fI(t){return`NG0${Math.abs(t)}`}function dr(t,e){return`${fI(t)}${e?": "+e:""}`}function J(t){for(let e in t)if(t[e]===J)return e;throw Error("")}function Wg(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function xn(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(xn).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(` `);return r>=0?n.slice(0,r):n}function Ca(t,e){return t?e?`${t} ${e}`:t:e||""}function Re(t){return t.__forward_ref__=Re,t.toString=function(){return xn(this())},t}function xe(t){return ed(t)?t():t}function ed(t){return typeof t=="function"&&t.hasOwnProperty(pI)&&t.__forward_ref__===Re}function zg(t,e){t==null&&td(e,t,null,"!=")}function td(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(r==null?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ba(t){return hI(t,wa)}function hI(t,e){return t.hasOwnProperty(e)&&t[e]||null}function mI(t){let e=t?.[wa]??null;return e||null}function Wu(t){return t&&t.hasOwnProperty(va)?t[va]:null}function nd(t){return t&&!!t.\u0275providers}function to(t){return typeof t=="string"?t:t==null?"":String(t)}function Ea(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():to(t)}function ad(t,e){return Kg("",-200,e)}function Ia(t,e){throw new D(-201,!1)}function gI(t,e){t[pi]??=[];let n=t[pi],r;typeof e=="object"&&"multi"in e&&e?.multi===!0?(zg(e.provide,"Token with multi: true should have a provide property"),r=Ea(e.provide)):r=Ea(e),n[0]!==r&&t[pi].unshift(r)}function yI(t,e){let n=t[pi],r=t[sd],o=t[qg]||t.message;return t.message=EI(o,r,n,e),t}function Kg(t,e,n){let r=new D(e,t);return r[sd]=e,r[qg]=t,n&&(r[pi]=n),r}function vI(t){return t[sd]}function EI(t,e,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return dr(e,`${t}${i}${o}`)}function Zg(){return zu}function Le(t){let e=zu;return zu=t,e}function ld(t,e,n){let r=ba(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;Ia(t,"Injector")}function CI(t,e=0){let n=Ns();if(n===void 0)throw new D(-203,!1);if(n===null)return ld(t,void 0,e);{let r=bI(e),o=n.retrieve(t,r);if(Ur(o)){if(r.optional)return null;throw o}return o}}function V(t,e=0){return(Zg()||CI)(xe(t),e)}function x(t,e){return V(t,lr(e))}function lr(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bI(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function Ku(t){let e=[];for(let n=0;n<t.length;n++){let r=xe(t[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],l=wI(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}e.push(V(o,i))}else e.push(V(r))}return e}function wI(t){return t[DI]}function Mn(t,e){let n=t.hasOwnProperty(hi);return n?t[hi]:null}function Yg(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Qg(t){return t.flat(Number.POSITIVE_INFINITY)}function Sa(t,e){t.forEach(n=>Array.isArray(n)?Sa(n,e):e(n))}function cd(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function yi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Jg(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Xg(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function Ta(t,e,n){let r=no(t,e);return r>=0?t[r|1]=n:(r=~r,Xg(t,r,e,n)),r}function xa(t,e){let n=no(t,e);if(n>=0)return t[n|1]}function no(t,e){return II(t,e,1)}function II(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}function mr(t){return t[rd]||null}function fd(t){return t[od]||null}function ey(t){return t[id]||null}function ty(...t){return{\u0275providers:pd(!0,t),\u0275fromNgModule:!0}}function pd(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return Sa(e,s=>{let a=s;_a(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ny(o,i),n}function ny(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];hd(o,i=>{e(i,r)})}}function _a(t,e,n,r){if(t=xe(t),!t)return!1;let o=null,i=Wu(t),s=!i&&mr(t);if(!i&&!s){let l=t.ngModule;if(i=Wu(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)_a(c,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Sa(i.imports,u=>{_a(u,e,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ny(c,e)}if(!a){let c=Mn(o)||(()=>new o);e({provide:o,useFactory:c,deps:Ae},o),e({provide:dd,useValue:o,multi:!0},o),e({provide:hr,useValue:()=>V(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=t;hd(l,u=>{e(u,c)})}}else return!1;return o!==t&&t.providers!==void 0}function hd(t,e){for(let n of t)nd(n)&&(n=n.\u0275providers),Array.isArray(n)?hd(n,e):e(n)}function ry(t){return t!==null&&typeof t=="object"&&SI in t}function TI(t){return!!(t&&t.useExisting)}function xI(t){return!!(t&&t.useFactory)}function cr(t){return typeof t=="function"}function oy(t){return!!t.useClass}function Ei(){return Gu===void 0&&(Gu=new mi),Gu}function Zu(t){let e=ba(t),n=e!==null?e.factory:Mn(t);if(n!==null)return n;if(t instanceof P)throw new D(204,!1);if(t instanceof Function)return MI(t);throw new D(204,!1)}function MI(t){if(t.length>0)throw new D(204,!1);let n=mI(t);return n!==null?()=>n.factory(t):()=>new t}function NI(t){if(ry(t))return eo(void 0,t.useValue);{let e=md(t);return eo(e,ya)}}function md(t,e,n){let r;if(cr(t)){let o=xe(t);return Mn(o)||Zu(o)}else if(ry(t))r=()=>xe(t.useValue);else if(xI(t))r=()=>t.useFactory(...Ku(t.deps||[]));else if(TI(t))r=(o,i)=>V(xe(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=xe(t&&(t.useClass||t.provide));if(AI(t))r=()=>new o(...Ku(t.deps));else return Mn(o)||Zu(o)}return r}function fi(t){if(t.destroyed)throw new D(205,!1)}function eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function AI(t){return!!t.deps}function RI(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function OI(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function Yu(t,e){for(let n of t)Array.isArray(n)?Yu(n,e):n&&nd(n)?Yu(n.\u0275providers,e):e(n)}function Ma(t,e){let n;t instanceof ur?(fi(t),n=t):n=new qu(t);let r,o=Ht(n),i=Le(void 0);try{return e()}finally{Ht(o),Le(i)}}function iy(){return Zg()!==void 0||Ns()!=null}function zt(t){return Array.isArray(t)&&typeof t[sy]=="object"}function It(t){return Array.isArray(t)&&t[sy]===!0}function Ed(t){return(t.flags&4)!==0}function Fn(t){return t.componentOffset>-1}function io(t){return(t.flags&1)===1}function qt(t){return!!t.template}function so(t){return(t[A]&512)!==0}function Cr(t){return(t[A]&256)===256}function mt(t){for(;Array.isArray(t);)t=t[wt];return t}function _d(t,e){return mt(e[t])}function St(t,e){return mt(e[t.index])}function Ci(t,e){return t.data[e]}function Aa(t,e){return t[e]}function Dd(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function gt(t,e){let n=e[t];return zt(n)?n:n[wt]}function cy(t){return(t[A]&4)===4}function Ra(t){return(t[A]&128)===128}function uy(t){return It(t[ge])}function yt(t,e){return e==null?null:t[e]}function Cd(t){t[Er]=0}function Oa(t){t[A]&1024||(t[A]|=1024,Ra(t)&&Pn(t))}function dy(t,e){for(;t>0;)e=e[vr],t--;return e}function ao(t){return!!(t[A]&9216||t[Xe]?.dirty)}function Fa(t){t[Gt].changeDetectionScheduler?.notify(8),t[A]&64&&(t[A]|=1024),ao(t)&&Pn(t)}function Pn(t){t[Gt].changeDetectionScheduler?.notify(0);let e=Nn(t);for(;e!==null&&!(e[A]&8192||(e[A]|=8192,!Ra(e)));)e=Nn(e)}function bd(t,e){if(Cr(t))throw new D(911,!1);t[ln]===null&&(t[ln]=[]),t[ln].push(e)}function fy(t,e){if(t[ln]===null)return;let n=t[ln].indexOf(e);n!==-1&&t[ln].splice(n,1)}function Nn(t){let e=t[ge];return It(e)?e[ge]:e}function wd(t){return t[ro]??=[]}function Id(t){return t.cleanup??=[]}function py(t,e,n,r){let o=wd(e);o.push(n),t.firstCreatePass&&Id(t).push(r,o.length-1)}function hy(){return j.lFrame.elementDepthCount}function my(){j.lFrame.elementDepthCount++}function Sd(){j.lFrame.elementDepthCount--}function Pa(){return j.bindingsEnabled}function Td(){return j.skipHydrationRootTNode!==null}function xd(t){return j.skipHydrationRootTNode===t}function Md(){j.skipHydrationRootTNode=null}function R(){return j.lFrame.lView}function ce(){return j.lFrame.tView}function Z(t){return j.lFrame.contextLView=t,t[pe]}function Y(t){return j.lFrame.contextLView=null,t}function be(){let t=Nd();for(;t!==null&&t.type===64;)t=t.parent;return t}function Nd(){return j.lFrame.currentTNode}function gy(){let t=j.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function lo(t,e){let n=j.lFrame;n.currentTNode=t,n.isParent=e}function Ad(){return j.lFrame.isParent}function Rd(){j.lFrame.isParent=!1}function yy(){return j.lFrame.contextLView}function Od(t){td("Must never be called in production mode"),FI=t}function Fd(){return Qu}function co(t){let e=Qu;return Qu=t,e}function ka(){let t=j.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function vy(t){return j.lFrame.bindingIndex=t}function kn(){return j.lFrame.bindingIndex++}function Pd(t){let e=j.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ey(){return j.lFrame.inI18n}function _y(t,e){let n=j.lFrame;n.bindingIndex=n.bindingRootIndex=t,La(e)}function Dy(){return j.lFrame.currentDirectiveIndex}function La(t){j.lFrame.currentDirectiveIndex=t}function Cy(t){let e=j.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Va(){return j.lFrame.currentQueryIndex}function wi(t){j.lFrame.currentQueryIndex=t}function PI(t){let e=t[T];return e.type===2?e.declTNode:e.type===1?t[Ve]:null}function kd(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=PI(i),o===null||(i=i[vr],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=j.lFrame=by();return r.currentTNode=e,r.lView=t,!0}function ja(t){let e=by(),n=t[T];j.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function by(){let t=j.lFrame,e=t===null?null:t.child;return e===null?wy(t):e}function wy(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Iy(){let t=j.lFrame;return j.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}function Ba(){let t=Iy();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Sy(t){return(j.lFrame.contextLView=dy(t,j.lFrame.contextLView))[pe]}function un(){return j.lFrame.selectedIndex}function Ln(t){j.lFrame.selectedIndex=t}function Ha(){let t=j.lFrame;return Ci(t.tView,t.selectedIndex)}function Ty(){return j.lFrame.currentNamespace}function Ua(){return xy}function Ii(t){xy=t}function Ju(t,e=null,n=null,r){let o=My(t,e,n,r);return o.resolveInjectorInitializers(),o}function My(t,e=null,n=null,r,o=new Set){let i=[n||Ae,ty(t)];return r=r||(typeof t=="object"?void 0:xn(t)),new ur(i,e||Ei(),r||null,o)}function kI(){return new gi(R())}function xt(t,e){let[n,r,o]=ou(t,e?.equal),i=n,s=i[_e];return i.set=r,i.update=o,i.asReadonly=$a.bind(i),i}function $a(){let t=this[_e];if(t.readonlyFn===void 0){let e=()=>this();e[_e]=t,t.readonlyFn=e}return t.readonlyFn}function LI(){return new uo(R(),be())}function wr(...t){}var Da,D,fr,pI,wa,va,P,rd,od,id,hi,pr,$g,sd,qg,pi,zu,_I,ar,DI,qu,An,Ae,hr,ud,dd,mi,SI,vi,ya,Gg,Gu,dt,ur,wt,T,A,ge,ht,Ve,gr,ro,pe,yr,Gt,re,oo,gd,vr,je,Rn,Er,Wt,_i,yd,ln,Na,cn,Xe,_r,ie,sy,vd,On,Di,Dr,Ce,ay,ly,j,bi,FI,Qu,Ld,xy,Qe,et,Tt,gi,Je,dn,Ny,ft,Ga,Vd,jd,uo,br,Si,Xu,Ti=y(()=>{"use strict";Xc();Xn();sr();$u();Ug();Da="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(e,n){super(dr(e,n)),this.code=e}};fr=globalThis;pI=J({__forward_ref__:J});wa=J({\u0275prov:J}),va=J({\u0275inj:J}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};rd=J({\u0275cmp:J}),od=J({\u0275dir:J}),id=J({\u0275pipe:J}),hi=J({\u0275fac:J}),pr=J({__NG_ELEMENT_ID__:J}),$g=J({__NG_ENV_ID__:J});sd=J({ngErrorCode:J}),qg=J({ngErrorMessage:J}),pi=J({ngTokenPath:J});_I={},ar=_I,DI="__NG_DI_FLAG__",qu=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=lr(n)||0;try{return this.injector.get(e,r&8?null:ar,r)}catch(o){if(Ur(o))return o;throw o}}};An={},Ae=[],hr=new P(""),ud=new P("",-1),dd=new P(""),mi=class{get(e,n=ar){if(n===ar){let o=Kg("",-201);throw o.name="\u0275NotFound",o}return n}};SI=J({provide:String,useValue:J});vi=new P(""),ya={},Gg={};dt=class{},ur=class extends dt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Yu(e,s=>this.processProvider(s)),this.records.set(ud,eo(void 0,this)),o.has("environment")&&this.records.set(dt,eo(void 0,this));let i=this.records.get(vi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(dd,Ae,{self:!0}))}retrieve(e,n){let r=lr(n)||0;try{return this.get(e,ar,r)}catch(o){if(Ur(o))return o;throw o}}destroy(){fi(this),this._destroyed=!0;let e=N(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(),N(e)}}onDestroy(e){return fi(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fi(this);let n=Ht(this),r=Le(void 0),o;try{return e()}finally{Ht(n),Le(r)}}get(e,n=ar,r){if(fi(this),e.hasOwnProperty($g))return e[$g](this);let o=lr(r),i,s=Ht(this),a=Le(void 0);try{if(!(o&4)){let c=this.records.get(e);if(c===void 0){let u=OI(e)&&ba(e);u&&this.injectableDefInScope(u)?c=eo(Zu(e),ya):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c,o)}let l=o&2?Ei():this.parent;return n=o&8&&n===ar?null:n,l.get(e,n)}catch(l){let c=vI(l);throw c===-200||c===-201?new D(c,null):l}finally{Le(a),Ht(s)}}resolveInjectorInitializers(){let e=N(null),n=Ht(this),r=Le(void 0),o;try{let i=this.get(hr,Ae,{self:!0});for(let s of i)s()}finally{Ht(n),Le(r),N(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(xn(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=xe(e);let n=cr(e)?e:xe(e&&e.provide),r=NI(e);if(!cr(e)&&e.multi===!0){let o=this.records.get(n);o||(o=eo(void 0,ya,!0),o.factory=()=>Ku(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=N(null);try{if(n.value===Gg)throw ad(xn(e));return n.value===ya&&(n.value=Gg,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&RI(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{N(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=xe(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};wt=0,T=1,A=2,ge=3,ht=4,Ve=5,gr=6,ro=7,pe=8,yr=9,Gt=10,re=11,oo=12,gd=13,vr=14,je=15,Rn=16,Er=17,Wt=18,_i=19,yd=20,ln=21,Na=22,cn=23,Xe=24,_r=25,ie=26,sy=1,vd=6,On=7,Di=8,Dr=9,Ce=10;ay="svg",ly="math";j={lFrame:wy(null),bindingsEnabled:!0,skipHydrationRootTNode:null},bi=function(t){return t[t.Off=0]="Off",t[t.Exhaustive=1]="Exhaustive",t[t.OnlyDirtyViews=2]="OnlyDirtyViews",t}(bi||{}),FI=0,Qu=!1;Ld=Iy;xy=!0;Qe=class t{static THROW_IF_NOT_FOUND=ar;static NULL=new mi;static create(e,n){if(Array.isArray(e))return Ju({name:""},n,e,"");{let r=e.name??"";return Ju({name:r},e.parent,e.providers,r)}}static \u0275prov=L({token:t,providedIn:"any",factory:()=>V(ud)});static __NG_ELEMENT_ID__=-1},et=new P(""),Tt=(()=>{class t{static __NG_ELEMENT_ID__=kI;static __NG_ENV_ID__=n=>n}return t})(),gi=class extends Tt{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Cr(this._lView)}onDestroy(e){let n=this._lView;return bd(n,e),()=>fy(n,e)}};Je=class{_console=console;handleError(e){this._console.error("ERROR",e)}},dn=new P("",{providedIn:"root",factory:()=>{let t=x(dt),e;return n=>{t.destroyed&&!e?setTimeout(()=>{throw n}):(e??=t.get(Je),e.handleError(n))}}}),Ny={provide:hr,useValue:()=>void x(Je),multi:!0};ft=class{},Ga=new P("",{providedIn:"root",factory:()=>!1}),Vd=new P(""),jd=new P(""),uo=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=LI}return t})();br=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ri(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new ee(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=L({token:t,providedIn:"root",factory:()=>new t})}return t})();Si=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new Xu})}return t})(),Xu=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}}});var Wa=y(()=>{"use strict";ma();jg()});function Vi(t){return{toString:t}.toString()}function ZI(t){return typeof t=="function"}function iv(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function sv(t){return t.type.prototype.ngOnChanges&&(t.setInput=QI),YI}function YI(){let t=lv(this),e=t?.current;if(e){let n=t.previous;if(n===An)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function QI(t,e,n,r,o){let i=this.declaredInputs[r],s=lv(t)||JI(t,{previous:An,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Ja(c&&c.currentValue,n,l===An),iv(t,e,o,n)}function lv(t){return t[av]||null}function JI(t,e){return t[av]=e}function XI(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=sv(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function cv(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),l&&(t.viewHooks??=[]).push(-n,l),c&&((t.viewHooks??=[]).push(n,c),(t.viewCheckHooks??=[]).push(n,c)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function qa(t,e,n){uv(t,e,3,n)}function Ka(t,e,n,r){(t[A]&3)===n&&uv(t,e,n,r)}function Bd(t,e){let n=t[A];(n&3)===e&&(n&=16383,n+=1,t[A]=n)}function uv(t,e,n,r){let o=r!==void 0?t[Er]&65535:0,i=r??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],r!=null&&a>=r)break}else e[l]<0&&(t[Er]+=65536),(a<i||i==-1)&&(eS(t,n,e,l),t[Er]=(t[Er]&4294901760)+l+2),l++}function Ry(t,e){Q(4,t,e);let n=N(null);try{e.call(t)}finally{N(n),Q(5,t,e)}}function eS(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[A]>>14<t[Er]>>16&&(t[A]&3)===e&&(t[A]+=16384,Ry(a,i)):Ry(a,i)}function tS(t){return(t.flags&8)!==0}function nS(t){return(t.flags&16)!==0}function rS(t,e,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++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];iS(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function oS(t){return t===3||t===4||t===6}function iS(t){return t.charCodeAt(0)===64}function ho(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Oy(t,n,o,null,e[++r]):Oy(t,n,o,null,null))}}return t}function Oy(