nodeplotlib-ns
Version:
NodeJS frontend-less plotting lib using plotly.js inspired by matplotlib
1 lines • 480 kB
JavaScript
"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{782:(au,Um,lu)=>{var Ps={};function le(n){return"function"==typeof n}function cu(n){const t=n(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}lu.r(Ps),lu.d(Ps,{Decoder:()=>cm,Encoder:()=>S$,PacketType:()=>ee,protocol:()=>E$});const uu=cu(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function oa(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class Ce{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(le(i))try{i()}catch(s){e=s instanceof uu?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Gm(s)}catch(o){e=e??[],o instanceof uu?e=[...e,...o.errors]:e.push(o)}}if(e)throw new uu(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Gm(e);else{if(e instanceof Ce){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&oa(t,e)}remove(e){const{_finalizers:t}=this;t&&oa(t,e),e instanceof Ce&&e._removeParent(this)}}Ce.EMPTY=(()=>{const n=new Ce;return n.closed=!0,n})();const $m=Ce.EMPTY;function zm(n){return n instanceof Ce||n&&"closed"in n&&le(n.remove)&&le(n.add)&&le(n.unsubscribe)}function Gm(n){le(n)?n():n.unsubscribe()}const Hi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},aa={setTimeout(n,e,...t){const{delegate:i}=aa;return i?.setTimeout?i.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=aa;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Wm(n){aa.setTimeout(()=>{const{onUnhandledError:e}=Hi;if(!e)throw n;e(n)})}function du(){}const ox=hu("C",void 0,void 0);function hu(n,e,t){return{kind:n,value:e,error:t}}let Ui=null;function la(n){if(Hi.useDeprecatedSynchronousErrorHandling){const e=!Ui;if(e&&(Ui={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:i}=Ui;if(Ui=null,t)throw i}}else n()}class fu extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,zm(e)&&e.add(this)):this.destination=fx}static create(e,t,i){return new Fs(e,t,i)}next(e){this.isStopped?mu(function lx(n){return hu("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?mu(function ax(n){return hu("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?mu(ox,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()}}}const ux=Function.prototype.bind;function pu(n,e){return ux.call(n,e)}class dx{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){ca(i)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){ca(i)}else ca(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ca(t)}}}class Fs extends fu{constructor(e,t,i){let r;if(super(),le(e)||!e)r={next:e??void 0,error:t??void 0,complete:i??void 0};else{let s;this&&Hi.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&pu(e.next,s),error:e.error&&pu(e.error,s),complete:e.complete&&pu(e.complete,s)}):r=e}this.destination=new dx(r)}}function ca(n){Hi.useDeprecatedSynchronousErrorHandling?function cx(n){Hi.useDeprecatedSynchronousErrorHandling&&Ui&&(Ui.errorThrown=!0,Ui.error=n)}(n):Wm(n)}function mu(n,e){const{onStoppedNotification:t}=Hi;t&&aa.setTimeout(()=>t(n,e))}const fx={closed:!0,next:du,error:function hx(n){throw n},complete:du},gu="function"==typeof Symbol&&Symbol.observable||"@@observable";function mi(n){return n}function qm(n){return 0===n.length?mi:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let me=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const s=function gx(n){return n&&n instanceof fu||function mx(n){return n&&le(n.next)&&le(n.error)&&le(n.complete)}(n)&&zm(n)}(t)?t:new Fs(t,i,r);return la(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=Km(i))((r,s)=>{const o=new Fs({next:a=>{try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[gu](){return this}pipe(...t){return qm(t)(this)}toPromise(t){return new(t=Km(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Km(n){var e;return null!==(e=n??Hi.Promise)&&void 0!==e?e:Promise}const _x=cu(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let j=(()=>{class n extends me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new Ym(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new _x}next(t){la(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){la(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){la(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:s}=this;return i||r?$m:(this.currentObservers=null,s.push(t),new Ce(()=>{this.currentObservers=null,oa(s,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:s}=this;i?t.error(r):s&&t.complete()}asObservable(){const t=new me;return t.source=this,t}}return n.create=(e,t)=>new Ym(e,t),n})();class Ym extends j{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)}error(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:$m}}function Zm(n){return le(n?.lift)}function Ae(n){return e=>{if(Zm(e))return e.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function we(n,e,t,i,r){return new yx(n,e,t,i,r)}class yx extends fu{constructor(e,t,i,r,s,o){super(e),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function V(n,e){return Ae((t,i)=>{let r=0;t.subscribe(we(i,s=>{i.next(n.call(e,s,r++))}))})}function $i(n){return this instanceof $i?(this.v=n,this):new $i(n)}function wx(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(n,e||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(f){return new Promise(function(p,m){s.push([h,f,p,m])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof $i?Promise.resolve(h.value.v).then(c,u):d(s[0][2],h)}(i[h](f))}catch(p){d(s[0][3],p)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Dx(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function Jm(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=n[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}const yu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function eg(n){return le(n?.then)}function tg(n){return le(n[gu])}function ng(n){return Symbol.asyncIterator&&le(n?.[Symbol.asyncIterator])}function ig(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const rg=function Ex(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sg(n){return le(n?.[rg])}function og(n){return wx(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:i,done:r}=yield $i(t.read());if(r)return yield $i(void 0);yield yield $i(i)}}finally{t.releaseLock()}})}function ag(n){return le(n?.getReader)}function vt(n){if(n instanceof me)return n;if(null!=n){if(tg(n))return function Sx(n){return new me(e=>{const t=n[gu]();if(le(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(yu(n))return function Mx(n){return new me(e=>{for(let t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}(n);if(eg(n))return function xx(n){return new me(e=>{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Wm)})}(n);if(ng(n))return lg(n);if(sg(n))return function Ax(n){return new me(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(ag(n))return function Tx(n){return lg(og(n))}(n)}throw ig(n)}function lg(n){return new me(e=>{(function Ix(n,e){var t,i,r,s;return function vx(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Dx(n);!(i=yield t.next()).done;)if(e.next(i.value),e.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=t.return)&&(yield s.call(t))}finally{if(r)throw r.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Hn(n,e,t,i=0,r=!1){const s=e.schedule(function(){t(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(s),!r)return s}function Ke(n,e,t=1/0){return le(e)?Ke((i,r)=>V((s,o)=>e(i,s,r,o))(vt(n(i,r))),t):("number"==typeof e&&(t=e),Ae((i,r)=>function Rx(n,e,t,i,r,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},f=m=>c<i?p(m):l.push(m),p=m=>{s&&e.next(m),c++;let g=!1;vt(t(m,u++)).subscribe(we(e,v=>{r?.(v),s?f(v):e.next(v)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&c<i;){const v=l.shift();o?Hn(e,o,()=>p(v)):p(v)}h()}catch(v){e.error(v)}}))};return n.subscribe(we(e,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,t)))}function br(n=1/0){return Ke(mi,n)}const Un=new me(n=>n.complete());function cg(n){return n&&le(n.schedule)}function vu(n){return n[n.length-1]}function ug(n){return le(vu(n))?n.pop():void 0}function Ns(n){return cg(vu(n))?n.pop():void 0}function dg(n,e=0){return Ae((t,i)=>{t.subscribe(we(i,r=>Hn(i,n,()=>i.next(r),e),()=>Hn(i,n,()=>i.complete(),e),r=>Hn(i,n,()=>i.error(r),e)))})}function hg(n,e=0){return Ae((t,i)=>{i.add(n.schedule(()=>t.subscribe(i),e))})}function fg(n,e){if(!n)throw new Error("Iterable cannot be null");return new me(t=>{Hn(t,e,()=>{const i=n[Symbol.asyncIterator]();Hn(t,e,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Pe(n,e){return e?function Bx(n,e){if(null!=n){if(tg(n))return function Px(n,e){return vt(n).pipe(hg(e),dg(e))}(n,e);if(yu(n))return function Nx(n,e){return new me(t=>{let i=0;return e.schedule(function(){i===n.length?t.complete():(t.next(n[i++]),t.closed||this.schedule())})})}(n,e);if(eg(n))return function Fx(n,e){return vt(n).pipe(hg(e),dg(e))}(n,e);if(ng(n))return fg(n,e);if(sg(n))return function Lx(n,e){return new me(t=>{let i;return Hn(t,e,()=>{i=n[rg](),Hn(t,e,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void t.error(o)}s?t.complete():t.next(r)},0,!0)}),()=>le(i?.return)&&i.return()})}(n,e);if(ag(n))return function Vx(n,e){return fg(og(n),e)}(n,e)}throw ig(n)}(n,e):vt(n)}function bu(...n){const e=Ns(n),t=function Ox(n,e){return"number"==typeof vu(n)?n.pop():e}(n,1/0),i=n;return i.length?1===i.length?vt(i[0]):br(t)(Pe(i,e)):Un}function pg(n={}){const{connector:e=(()=>new j),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),o=l=void 0,u=d=!1},p=()=>{const m=o;f(),m?.unsubscribe()};return Ae((m,g)=>{c++,!d&&!u&&h();const v=l=l??e();g.add(()=>{c--,0===c&&!d&&!u&&(a=wu(p,r))}),v.subscribe(g),!o&&c>0&&(o=new Fs({next:C=>v.next(C),error:C=>{d=!0,h(),a=wu(f,t,C),v.error(C)},complete:()=>{u=!0,h(),a=wu(f,i),v.complete()}}),vt(m).subscribe(o))})(s)}}function wu(n,e,...t){if(!0===e)return void n();if(!1===e)return;const i=new Fs({next:()=>{i.unsubscribe(),n()}});return e(...t).subscribe(i)}function fe(n){for(let e in n)if(n[e]===fe)return e;throw Error("Could not find renamed property on target object.")}function Du(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function pe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(pe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Cu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const jx=fe({__forward_ref__:fe});function de(n){return n.__forward_ref__=de,n.toString=function(){return pe(this())},n}function L(n){return function Eu(n){return"function"==typeof n&&n.hasOwnProperty(jx)&&n.__forward_ref__===de}(n)?n():n}class w extends Error{constructor(e,t){super(function ua(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function U(n){return"string"==typeof n?n:null==n?"":String(n)}function da(n,e){throw new w(-201,!1)}function Tt(n,e){null==n&&function ce(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function M(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ie(n){return{providers:n.providers||[],imports:n.imports||[]}}function Su(n){return mg(n,ha)||mg(n,_g)}function mg(n,e){return n.hasOwnProperty(e)?n[e]:null}function gg(n){return n&&(n.hasOwnProperty(Mu)||n.hasOwnProperty(Kx))?n[Mu]:null}const ha=fe({\u0275prov:fe}),Mu=fe({\u0275inj:fe}),_g=fe({ngInjectableDef:fe}),Kx=fe({ngInjectorDef:fe});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let xu;function Gt(n){const e=xu;return xu=n,e}function yg(n,e,t){const i=Su(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&P.Optional?null:void 0!==e?e:void da(pe(n))}function gi(n){return{toString:n}.toString()}var ln=(()=>((ln=ln||{})[ln.OnPush=0]="OnPush",ln[ln.Default=1]="Default",ln))(),cn=(()=>{return(n=cn||(cn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",cn;var n})();const he=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),wr={},se=[],fa=fe({\u0275cmp:fe}),Au=fe({\u0275dir:fe}),Tu=fe({\u0275pipe:fe}),vg=fe({\u0275mod:fe}),zn=fe({\u0275fac:fe}),Ls=fe({__NG_ELEMENT_ID__:fe});let Zx=0;function ct(n){return gi(()=>{const t=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ln.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||se,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||cn.Emulated,id:"c"+Zx++,styles:n.styles||se,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return r.inputs=Dg(n.inputs,i),r.outputs=Dg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(bg).filter(wg):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(dt).filter(wg):null,r})}function bg(n){return ue(n)||ut(n)}function wg(n){return null!==n}const Xx={};function oe(n){return gi(()=>{const e={type:n.type,bootstrap:n.bootstrap||se,declarations:n.declarations||se,imports:n.imports||se,exports:n.exports||se,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Xx[n.id]=n.type),e})}function Dg(n,e){if(null==n)return wr;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const R=ct;function bt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ue(n){return n[fa]||null}function ut(n){return n[Au]||null}function dt(n){return n[Tu]||null}function It(n,e){const t=n[vg]||null;if(!t&&!0===e)throw new Error(`Type ${pe(n)} does not have '\u0275mod' property.`);return t}const q=11;function wt(n){return Array.isArray(n)&&"object"==typeof n[1]}function dn(n){return Array.isArray(n)&&!0===n[1]}function ku(n){return 0!=(8&n.flags)}function _a(n){return 2==(2&n.flags)}function ya(n){return 1==(1&n.flags)}function hn(n){return null!==n.template}function iA(n){return 0!=(256&n[2])}function Ki(n,e){return n.hasOwnProperty(zn)?n[zn]:null}class oA{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Dt(){return Sg}function Sg(n){return n.type.prototype.ngOnChanges&&(n.setInput=lA),aA}function aA(){const n=xg(this),e=n?.current;if(e){const t=n.previous;if(t===wr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function lA(n,e,t,i){const r=xg(n)||function cA(n,e){return n[Mg]=e}(n,{previous:wr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new oA(l&&l.currentValue,e,o===wr),n[i]=e}Dt.ngInherit=!0;const Mg="__ngSimpleChanges__";function xg(n){return n[Mg]||null}function Fe(n){for(;Array.isArray(n);)n=n[0];return n}function va(n,e){return Fe(e[n])}function Kt(n,e){return Fe(e[n.index])}function Lu(n,e){return n.data[e]}function kt(n,e){const t=e[n];return wt(t)?t:t[0]}function Ag(n){return 4==(4&n[2])}function Vu(n){return 64==(64&n[2])}function _i(n,e){return null==e?null:n[e]}function Tg(n){n[18]=0}function Bu(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const H={lFrame:Vg(null),bindingsEnabled:!0};function Rg(){return H.bindingsEnabled}function D(){return H.lFrame.lView}function te(){return H.lFrame.tView}function ze(){let n=kg();for(;null!==n&&64===n.type;)n=n.parent;return n}function kg(){return H.lFrame.currentTNode}function En(n,e){const t=H.lFrame;t.currentTNode=n,t.isParent=e}function ju(){return H.lFrame.isParent}function Hu(){H.lFrame.isParent=!1}function xr(){return H.lFrame.bindingIndex++}function SA(n,e){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=n,Uu(e)}function Uu(n){H.lFrame.currentDirectiveIndex=n}function Fg(){return H.lFrame.currentQueryIndex}function zu(n){H.lFrame.currentQueryIndex=n}function xA(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Ng(n,e,t){if(t&P.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&P.Host||(r=xA(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=H.lFrame=Lg();return i.currentTNode=e,i.lView=n,!0}function Gu(n){const e=Lg(),t=n[1];H.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Lg(){const n=H.lFrame,e=null===n?null:n.child;return null===e?Vg(n):e}function Vg(n){const 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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Bg(){const n=H.lFrame;return H.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const jg=Bg;function Wu(){const n=Bg();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ft(){return H.lFrame.selectedIndex}function yi(n){H.lFrame.selectedIndex=n}function Ie(){const n=H.lFrame;return Lu(n.tView,n.selectedIndex)}function wa(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Da(n,e,t){Hg(n,e,3,t)}function Ca(n,e,t,i){(3&n[2])===t&&Hg(n,e,t,i)}function qu(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Hg(n,e,t,i){const s=i??-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(NA(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function NA(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Us{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ea(n,e,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const s=t[i++],o=t[i++],a=t[i++];n.setAttribute(e,o,a,s)}else{const s=r,o=t[++i];$g(s)?n.setProperty(e,s,o):n.setAttribute(e,s,o),i++}}return i}function Ug(n){return 3===n||4===n||6===n}function $g(n){return 64===n.charCodeAt(0)}function Sa(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||zg(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function zg(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Gg(n){return-1!==n}function Ar(n){return 32767&n}function Tr(n,e){let t=function HA(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Yu=!0;function Ma(n){const e=Yu;return Yu=n,e}let UA=0;const Sn={};function zs(n,e){const t=Qu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Zu(i.data,n),Zu(e,null),Zu(i.blueprint,null));const r=xa(n,e),s=n.injectorIndex;if(Gg(r)){const o=Ar(r),a=Tr(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Zu(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Qu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function xa(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){if(i=e_(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Aa(n,e,t){!function $A(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Ls)&&(i=t[Ls]),null==i&&(i=t[Ls]=UA++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Kg(n,e,t){if(t&P.Optional)return n;da()}function Yg(n,e,t,i){if(t&P.Optional&&void 0===i&&(i=null),0==(t&(P.Self|P.Host))){const r=n[9],s=Gt(void 0);try{return r?r.get(e,i,t&P.Optional):yg(e,i,t&P.Optional)}finally{Gt(s)}}return Kg(i,0,t)}function Zg(n,e,t,i=P.Default,r){if(null!==n){if(1024&e[2]){const o=function KA(n,e,t,i,r){let s=n,o=e;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=Qg(s,o,t,i|P.Self,Sn);if(a!==Sn)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(t,Sn,i);if(u!==Sn)return u}l=e_(o),o=o[15]}s=l}return r}(n,e,t,i,Sn);if(o!==Sn)return o}const s=Qg(n,e,t,i,Sn);if(s!==Sn)return s}return Yg(e,t,i,r)}function Qg(n,e,t,i,r){const s=function WA(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Ls)?n[Ls]:void 0;return"number"==typeof e?e>=0?255&e:qA:e}(t);if("function"==typeof s){if(!Ng(e,n,i))return i&P.Host?Kg(r,0,i):Yg(e,t,i,r);try{const o=s(i);if(null!=o||i&P.Optional)return o;da()}finally{jg()}}else if("number"==typeof s){let o=null,a=Qu(n,e),l=-1,c=i&P.Host?e[16][6]:null;for((-1===a||i&P.SkipSelf)&&(l=-1===a?xa(n,e):e[a+8],-1!==l&&Jg(i,!1)?(o=e[1],a=Ar(l),e=Tr(l,e)):a=-1);-1!==a;){const u=e[1];if(Xg(s,a,u.data)){const d=GA(a,e,t,o,i,c);if(d!==Sn)return d}l=e[a+8],-1!==l&&Jg(i,e[1].data[a+8]===c)&&Xg(s,a,e)?(o=u,a=Ar(l),e=Tr(l,e)):a=-1}}return r}function GA(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Ta(a,o,t,null==i?_a(a)&&Yu:i!=o&&0!=(3&a.type),r&P.Host&&s===a);return null!==u?Gs(e,o,u,a):Sn}function Ta(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&hn(f)&&f.type===t)return l}return null}function Gs(n,e,t,i){let r=n[t];const s=e.data;if(function LA(n){return n instanceof Us}(r)){const o=r;o.resolving&&function Hx(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new w(-200,`Circular dependency in DI detected for ${n}${t}`)}(function re(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():U(n)}(s[t]));const a=Ma(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Gt(o.injectImpl):null;Ng(n,i,P.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function FA(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Sg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Gt(l),Ma(a),o.resolving=!1,jg()}}return r}function Xg(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Jg(n,e){return!(n&P.Self||n&P.Host&&e)}class Ir{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Zg(this._tNode,this._lView,e,i,t)}}function qA(){return new Ir(ze(),D())}function e_(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}function Rr(n){return function zA(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Ug(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(ze(),n)}const Or="__parameters__";function Fr(n,e,t){return gi(()=>{const i=function Ju(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Or)?l[Or]:Object.defineProperty(l,Or,{value:[]})[Or];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class E{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=M({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ot(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ot(i,e)):e!==n&&e.push(i)}return e}function qn(n,e){n.forEach(t=>Array.isArray(t)?qn(t,e):e(t))}function n_(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ia(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Ks(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Pt(n,e,t){let i=Nr(n,e);return i>=0?n[1|i]=t:(i=~i,function XA(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function td(n,e){const t=Nr(n,e);if(t>=0)return n[1|t]}function Nr(n,e){return function s_(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Ys={},id="__NG_DI_FLAG__",ka="ngTempTokenPath",oT=/\n/gm,o_="__source";let Zs;function Lr(n){const e=Zs;return Zs=n,e}function lT(n,e=P.Default){if(void 0===Zs)throw new w(-203,!1);return null===Zs?yg(n,void 0,e):Zs.get(n,e&P.Optional?null:void 0,e)}function y(n,e=P.Default){return(function Yx(){return xu}()||lT)(L(n),e)}function _e(n,e=P.Default){return"number"!=typeof e&&(e=0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)),y(n,e)}function rd(n){const e=[];for(let t=0;t<n.length;t++){const i=L(n[t]);if(Array.isArray(i)){if(0===i.length)throw new w(900,!1);let r,s=P.Default;for(let o=0;o<i.length;o++){const a=i[o],l=cT(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(y(r,s))}else e.push(y(i))}return e}function Qs(n,e){return n[id]=e,n.prototype[id]=e,n}function cT(n){return n[id]}const bi=Qs(Fr("Optional"),8),Vr=Qs(Fr("SkipSelf"),4);let od,Fa;function jr(n){return function ad(){if(void 0===Fa&&(Fa=null,he.trustedTypes))try{Fa=he.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Fa}()?.createHTML(n)||n}class Yi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ET extends Yi{getTypeName(){return"HTML"}}class ST extends Yi{getTypeName(){return"Style"}}class MT extends Yi{getTypeName(){return"Script"}}class xT extends Yi{getTypeName(){return"URL"}}class AT extends Yi{getTypeName(){return"ResourceURL"}}function Ft(n){return n instanceof Yi?n.changingThisBreaksApplicationSecurity:n}function Mn(n,e){const t=function TT(n){return n instanceof Yi&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class FT{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(jr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class NT{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=jr(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=jr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const VT=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,BT=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function eo(n){return(n=String(n)).match(VT)||n.match(BT)?n:"unsafe:"+n}function xn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function to(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const w_=xn("area,br,col,hr,img,wbr"),D_=xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C_=xn("rp,rt"),cd=to(w_,to(D_,xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),to(C_,xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),to(C_,D_)),ud=xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dd=xn("srcset"),E_=to(ud,dd,xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jT=xn("script,style,template");class HT{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!cd.hasOwnProperty(t))return this.sanitizedSomething=!0,!jT.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!E_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;ud[a]&&(l=eo(l)),dd[a]&&(n=l,l=(n=String(n)).split(",").map(e=>eo(e.trim())).join(", ")),this.buf.push(" ",o,'="',S_(l),'"')}var n;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();cd.hasOwnProperty(t)&&!w_.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(S_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const UT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$T=/([^\#-~ |!])/g;function S_(n){return n.replace(/&/g,"&").replace(UT,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace($T,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let La;function M_(n,e){let t=null;try{La=La||function v_(n){const e=new NT(n);return function LT(){try{return!!(new window.DOMParser).parseFromString(jr(""),"text/html")}catch{return!1}}()?new FT(e):e}(n);let i=e?String(e):"";t=La.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=La.getInertBodyElement(i)}while(i!==s);return jr((new HT).sanitizeChildren(hd(t)||t))}finally{if(t){const i=hd(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function hd(n){return"content"in n&&function zT(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ae=(()=>((ae=ae||{})[ae.NONE=0]="NONE",ae[ae.HTML=1]="HTML",ae[ae.STYLE=2]="STYLE",ae[ae.SCRIPT=3]="SCRIPT",ae[ae.URL=4]="URL",ae[ae.RESOURCE_URL=5]="RESOURCE_URL",ae))();const pd=new E("ENVIRONMENT_INITIALIZER"),A_=new E("INJECTOR",-1),T_=new E("INJECTOR_DEF_TYPES");class I_{get(e,t=Ys){if(t===Ys){const i=new Error(`NullInjectorError: No provider for ${pe(e)}!`);throw i.name="NullInjectorError",i}return t}}function XT(...n){return{\u0275providers:R_(0,n)}}function R_(n,...e){const t=[],i=new Set;let r;return qn(e,s=>{const o=s;md(o,t,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&k_(r,t),t}function k_(n,e){for(let t=0;t<n.length;t++){const{providers:r}=n[t];qn(r,s=>{e.push(s)})}}function md(n,e,t,i){if(!(n=L(n)))return!1;let r=null,s=gg(n);const o=!s&&ue(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const l=n.ngModule;if(s=gg(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)md(c,e,t,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{qn(s.imports,u=>{md(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&k_(c,e)}if(!a){const c=Ki(r)||(()=>new r);e.push({provide:r,useFactory:c,deps:se},{provide:T_,useValue:r,multi:!0},{provide:pd,useValue:()=>y(r),multi:!0})}const l=s.providers;null==l||a||qn(l,u=>{e.push(u)})}}return r!==n&&void 0!==n.providers}const JT=fe({provide:String,useValue:fe});function gd(n){return null!==n&&"object"==typeof n&&JT in n}function Zi(n){return"function"==typeof n}const _d=new E("Set Injector scope."),Va={},tI={};let yd;function Ba(){return void 0===yd&&(yd=new I_),yd}class wi{}class F_ extends wi{constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bd(e,o=>this.processProvider(o)),this.records.set(A_,Hr(void 0,this)),r.has("environment")&&this.records.set(wi,Hr(void 0,this));const s=this.records.get(_d);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(T_.multi,se,P.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Lr(this),i=Gt(void 0);try{return e()}finally{Lr(t),Gt(i)}}get(e,t=Ys,i=P.Default){this.assertNotDestroyed();const r=Lr(this),s=Gt(void 0);try{if(!(i&P.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function oI(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(e)&&Su(e);a=l&&this.injectableDefInScope(l)?Hr(vd(e),Va):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&P.Self?Ba():this.parent).get(e,t=i&P.Optional&&t===Ys?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[ka]=o[ka]||[]).unshift(pe(e)),r)throw o;return function uT(n,e,t,i){const r=n[ka];throw e[o_]&&r.unshift(e[o_]),n.message=function dT(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=pe(e);if(Array.isArray(e))r=e.map(pe).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):pe(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(oT,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[ka]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Gt(s),Lr(r)}}resolveInjectorInitializers(){const e=Lr(this),t=Gt(void 0);try{const i=this.get(pd.multi,se,P.Self);for(const r of i)r()}finally{Lr(e),Gt(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(pe(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(e){let t=Zi(e=L(e))?e:L(e&&e.provide);const i=function iI(n){return gd(n)?Hr(void 0,n.useValue):Hr(function N_(n,e,t){let i;if(Zi(n)){const r=L(n);return Ki(r)||vd(r)}if(gd(n))i=()=>L(n.useValue);else if(function P_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...rd(n.deps||[]));else if(function O_(n){return!(!n||!n.useExisting)}(n))i=()=>y(L(n.useExisting));else{const r=L(n&&(n.useClass||n.provide));if(!function rI(n){return!!n.deps}(n))return Ki(r)||vd(r);i=()=>new r(...rd(n.deps))}return i}(n),Va)}(e);if(Zi(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Hr(void 0,Va,!0),r.factory=()=>rd(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===Va&&(t.value=tI,t.value=t.factory()),"object"==typeof t.value&&t.value&&function sI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=L(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function vd(n){const e=Su(n),t=null!==e?e.factory:Ki(n);if(null!==t)return t;if(n instanceof E)throw new w(204,!1);if(n instanceof Function)return function nI(n){const e=n.length;if(e>0)throw Ks(e,"?"),new w(204,!1);const t=function Wx(n){const e=n&&(n[ha]||n[_g]);if(e){const t=function qx(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new w(204,!1)}function Hr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function aI(n){return!!n.\u0275providers}function bd(n,e){for(const t of n)Array.isArray(t)?bd(t,e):aI(t)?bd(t.\u0275providers,e):e(t)}class L_{}class uI{resolveComponentFactory(e){throw function cI(n){const e=Error(`No component factory found for ${pe(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Ur=(()=>{class n{}return n.NULL=new uI,n})();function dI(){return $r(ze(),D())}function $r(n,e){return new Ee(Kt(n,e))}let Ee=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=dI,n})();function hI(n){return n instanceof Ee?n.nativeElement:n}class io{}let Kn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function fI(){const n=D(),t=kt(ze().index,n);return(wt(t)?t:n)[q]}(),n})(),pI=(()=>{class n{}return n.\u0275prov=M({token:n,providedIn:"root",factory:()=>null}),n})();class Qi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const mI=new Qi("14.1.1"),wd={};function Md(n){return n.ngOriginalError}class Yn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Md(e);for(;t&&Md(t);)t=Md(t);return t||null}}const xd=new Map;let xI=0;const Td="__ngContext__";function it(n,e){wt(e)?(n[Td]=e[20],function TI(n){xd.set(n[20],n)}(e)):n[Td]=e}function ro(n){const e=n[Td];return"number"==typeof e?function z_(n){return xd.get(n)||null}(e):e||null}function Id(n){const e=ro(n);return e?wt(e)?e:e.lView:null}const VI=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(he))();function Zn(n){return n instanceof Function?n():n}var Ct=(()=>((Ct=Ct||{})[Ct.Important=1]="Important",Ct[Ct.DashCase=2]="DashCase",Ct))();function kd(n,e){return undefined(n,e)}function so(n){const e=n[3];return dn(e)?e[3]:e}function Od(n){return X_(n[13])}function Pd(n){return X_(n[4])}function X_(n){for(;null!==n&&!dn(n);)n=n[4];return n}function Gr(n,e,t,i,r){if(null!=i){let s,o=!1;dn(i)?s=i:wt(i)&&(o=!0,i=i[0]);const a=Fe(i);0===n&&null!==t?null==r?ry(e,t,a):Xi(e,t,a,r||null,!0):1===n&&null!==t?Xi(e,t,a,r||null,!0):2===n?function dy(n,e,t){const i=ja(n,e);i&&function nR(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function sR(n,e,t,i,r){const s=t[7];s!==Fe(t)&&Gr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];oo(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Nd(n,e,t){return n.createElement(e,t)}function ey(n,e){const t=n[9],i=t.indexOf(e),r=e[3];512&e[2]&&(e[2]&=-513,Bu(r,-1)),t.splice(i,1)}function Ld(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&ey(r,i),e>0&&(n[t-1][4]=i[4]);const s=Ia(n,10+e);!function KI(n,e){oo(n,e,e[q],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function ty(n,e){if(!(128&e[2])){const t=e[q];t.destroyNode&&oo(n,e,t,3,null,null),function QI(n){let e=n[13];if(!e)return Vd(n[1],n);for(;e;){let t=null;if(wt(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)wt(e)&&Vd(e[1],e),e=e[3];null===e&&(e=n),wt(e)&&Vd(e[1],e),t=e&&e[4]}e=t}}(e)}}function Vd(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function tR(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Us)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function eR(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Fe(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)(0,i[s])();e[7]=null}}(n,e),1===e[1].type&&e[q].destroy();const t=e[17];if(null!==t&&dn(e[3])){t!==e[3]&&ey(t,e);const i=e[19];null!==i&&i.detachView(n)}!function II(n){xd.delete(n[20])}(e)}}function ny(n,e,t){return function iy(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===cn.None||r===cn.Emulated)return null}return Kt(i,t)}(n,e.parent,t)}function Xi(n,e,t,i,r){n.insertBefore(e,t,i,r)}function ry(n,e,t){n.appendChild(e,t)}function sy(n,e,t,i,r){null!==i?Xi(n,e,t,i,r):ry(n,e,t)}function ja(n,e){return n.parentNode(e)}function oy(n,e,t){return ly(n,e,t)}let ly=function ay(n,e,t){return 40&n.type?Kt(n,t):null};function Ha(n,e,t,i){const r=ny(n,i,e),s=e[q],a=oy(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)sy(s,r,t[l],a,!1);else sy(s,r,t,a,!1)}function Ua(n,e){if(null!==e){const t=e.type;if(3&t)return Kt(e,n);if(4&t)return jd(-1,n[e.index]);if(