UNPKG

angular-t9n

Version:
4 lines 262 kB
import{a as x,b as J}from"./chunk-4CLCTAJ7.js";function I(e){return typeof e=="function"}function yn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Do=yn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Rt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var H=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(I(r))try{r()}catch(i){t=i instanceof Do?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Gl(i)}catch(s){t=t??[],s instanceof Do?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Do(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Gl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Rt(n,t)}remove(t){let{_finalizers:n}=this;n&&Rt(n,t),t instanceof e&&t._removeParent(this)}};H.EMPTY=(()=>{let e=new H;return e.closed=!0,e})();var Os=H.EMPTY;function Eo(e){return e instanceof H||e&&"closed"in e&&I(e.remove)&&I(e.add)&&I(e.unsubscribe)}function Gl(e){I(e)?e():e.unsubscribe()}var Ne={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vn={setTimeout(e,t,...n){let{delegate:r}=vn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function _o(e){vn.setTimeout(()=>{let{onUnhandledError:t}=Ne;if(t)t(e);else throw e})}function Ot(){}var Wl=Fs("C",void 0,void 0);function ql(e){return Fs("E",void 0,e)}function Zl(e){return Fs("N",e,void 0)}function Fs(e,t,n){return{kind:e,value:t,error:n}}var Ft=null;function Dn(e){if(Ne.useDeprecatedSynchronousErrorHandling){let t=!Ft;if(t&&(Ft={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ft;if(Ft=null,n)throw r}}else e()}function Yl(e){Ne.useDeprecatedSynchronousErrorHandling&&Ft&&(Ft.errorThrown=!0,Ft.error=e)}var kt=class extends H{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Eo(t)&&t.add(this)):this.destination=py}static create(t,n,r){return new Qe(t,n,r)}next(t){this.isStopped?Ls(Zl(t),this):this._next(t)}error(t){this.isStopped?Ls(ql(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ls(Wl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},dy=Function.prototype.bind;function ks(e,t){return dy.call(e,t)}var Ps=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Io(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Io(r)}else Io(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Io(n)}}},Qe=class extends kt{constructor(t,n,r){super();let o;if(I(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ne.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ks(t.next,i),error:t.error&&ks(t.error,i),complete:t.complete&&ks(t.complete,i)}):o=t}this.destination=new Ps(o)}};function Io(e){Ne.useDeprecatedSynchronousErrorHandling?Yl(e):_o(e)}function fy(e){throw e}function Ls(e,t){let{onStoppedNotification:n}=Ne;n&&vn.setTimeout(()=>n(e,t))}var py={closed:!0,next:Ot,error:fy,complete:Ot};var En=typeof Symbol=="function"&&Symbol.observable||"@@observable";function de(e){return e}function hy(...e){return js(e)}function js(e){return e.length===0?de:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=my(n)?n:new Qe(n,r,o);return Dn(()=>{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=Kl(r),new r((o,i)=>{let s=new Qe({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[En](){return this}pipe(...n){return js(n)(this)}toPromise(n){return n=Kl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Kl(e){var t;return(t=e??Ne.Promise)!==null&&t!==void 0?t:Promise}function gy(e){return e&&I(e.next)&&I(e.error)&&I(e.complete)}function my(e){return e&&e instanceof kt||gy(e)&&Eo(e)}var Ql=yn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var O=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new bo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ql}next(n){Dn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Dn(()=>{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(){Dn(()=>{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?Os:(this.currentObservers=null,i.push(n),new H(()=>{this.currentObservers=null,Rt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new bo(t,n),e})(),bo=class extends O{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Os}};var Lt=class extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Co(e){return e&&I(e.schedule)}function Bs(e){return e[e.length-1]}function wo(e){return I(Bs(e))?e.pop():void 0}function Ve(e){return Co(Bs(e))?e.pop():void 0}function Xl(e,t){return typeof Bs(e)=="number"?e.pop():t}function ed(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Jl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pt(e){return this instanceof Pt?(this.v=e,this):new Pt(e)}function td(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(y){return new Promise(function(v,m){i.push([f,y,v,m])>1||c(f,y)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(y){p(i[0][3],y)}}function u(f){f.value instanceof Pt?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Jl=="function"?Jl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var _n=e=>e&&typeof e.length=="number"&&typeof e!="function";function To(e){return I(e?.then)}function Mo(e){return I(e[En])}function So(e){return Symbol.asyncIterator&&I(e?.[Symbol.asyncIterator])}function No(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function yy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ao=yy();function xo(e){return I(e?.[Ao])}function Ro(e){return td(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pt(n.read());if(o)return yield Pt(void 0);yield yield Pt(r)}}finally{n.releaseLock()}})}function Oo(e){return I(e?.getReader)}function F(e){if(e instanceof S)return e;if(e!=null){if(Mo(e))return vy(e);if(_n(e))return Dy(e);if(To(e))return Ey(e);if(So(e))return rd(e);if(xo(e))return _y(e);if(Oo(e))return Iy(e)}throw No(e)}function vy(e){return new S(t=>{let n=e[En]();if(I(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Dy(e){return new S(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ey(e){return new S(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,_o)})}function _y(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function rd(e){return new S(t=>{by(e,t).catch(n=>t.error(n))})}function Iy(e){return rd(Ro(e))}function by(e,t){var n,r,o,i;return ed(this,void 0,void 0,function*(){try{for(n=nd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function he(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Vs(e){return I(e?.lift)}function M(e){return t=>{if(Vs(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function w(e,t,n,r,o){return new Hs(e,t,n,r,o)}var Hs=class extends kt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Fo(e,t=0){return M((n,r)=>{n.subscribe(w(r,o=>he(r,e,()=>r.next(o),t),()=>he(r,e,()=>r.complete(),t),o=>he(r,e,()=>r.error(o),t)))})}function ko(e,t=0){return M((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function od(e,t){return F(e).pipe(ko(t),Fo(t))}function id(e,t){return F(e).pipe(ko(t),Fo(t))}function sd(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ad(e,t){return new S(n=>{let r;return he(n,t,()=>{r=e[Ao](),he(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>I(r?.return)&&r.return()})}function Lo(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{he(n,t,()=>{let r=e[Symbol.asyncIterator]();he(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function cd(e,t){return Lo(Ro(e),t)}function ud(e,t){if(e!=null){if(Mo(e))return od(e,t);if(_n(e))return sd(e,t);if(To(e))return id(e,t);if(So(e))return Lo(e,t);if(xo(e))return ad(e,t);if(Oo(e))return cd(e,t)}throw No(e)}function He(e,t){return t?ud(e,t):F(e)}function ft(...e){let t=Ve(e);return He(e,t)}function q(e,t){return M((n,r)=>{let o=0;n.subscribe(w(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Cy}=Array,{getPrototypeOf:wy,prototype:Ty,keys:My}=Object;function Po(e){if(e.length===1){let t=e[0];if(Cy(t))return{args:t,keys:null};if(Sy(t)){let n=My(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Sy(e){return e&&typeof e=="object"&&wy(e)===Ty}var{isArray:Ny}=Array;function Ay(e,t){return Ny(t)?e(...t):e(t)}function In(e){return q(t=>Ay(e,t))}function jo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function xy(...e){let t=wo(e),{args:n,keys:r}=Po(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;F(n[l]).subscribe(w(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?jo(r,a):a),i.complete())}))}});return t?o.pipe(In(t)):o}function ve(e,t){return M((n,r)=>{let o=0;n.subscribe(w(r,i=>e.call(t,i,o++)&&r.next(i)))})}var jt=new S(e=>e.complete());function pt(e){return e<=0?()=>jt:M((t,n)=>{let r=0;t.subscribe(w(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function $s(e={}){let{connector:t=()=>new O,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,l=d=!1},g=()=>{let y=s;f(),y?.unsubscribe()};return M((y,v)=>{u++,!d&&!l&&p();let m=c=c??t();v.add(()=>{u--,u===0&&!d&&!l&&(a=Us(g,o))}),m.subscribe(v),!s&&u>0&&(s=new Qe({next:L=>m.next(L),error:L=>{d=!0,p(),a=Us(f,n,L),m.error(L)},complete:()=>{l=!0,p(),a=Us(f,r),m.complete()}}),F(y).subscribe(s))})(i)}}function Us(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Qe({next:()=>{r.unsubscribe(),e()}});return F(t(...n)).subscribe(r)}function Bo(e,t){return M((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(w(r,c=>{o?.unsubscribe();let u=0,l=i++;F(e(c,l)).subscribe(o=w(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function zs(e,t,n){let r=I(e)||t||n?{next:e,error:t,complete:n}:e;return r?M((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(w(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):de}function ld(){return M((e,t)=>{let n=null;e._refCount++;let r=w(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var cr=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Vs(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new H;let n=this.getSubject();t.add(this.source.subscribe(w(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=H.EMPTY)}return t}refCount(){return ld()(this)}};var ur={now(){return(ur.delegate||Date).now()},delegate:void 0};var lr=class extends O{constructor(t=1/0,n=1/0,r=ur){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Vo=class extends H{constructor(t,n){super()}schedule(t,n=0){return this}};var dr={setInterval(e,t,...n){let{delegate:r}=dr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=dr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ho=class extends Vo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return dr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&dr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Rt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var bn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};bn.now=ur.now;var Uo=class extends bn{constructor(t,n=bn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Bt=new Uo(Ho),dd=Bt;function Ry(e,t){let n=I(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function fd(e){return!!e&&(e instanceof S||I(e.lift)&&I(e.subscribe))}var fr=yn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function pd(e){return e instanceof Date&&!isNaN(e)}function Gs(...e){let t=Ve(e),n=wo(e),{args:r,keys:o}=Po(e);if(r.length===0)return He([],t);let i=new S(Oy(r,t,o?s=>jo(o,s):de));return n?i.pipe(In(n)):i}function Oy(e,t,n=de){return r=>{hd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)hd(t,()=>{let u=He(e[c],t),l=!1;u.subscribe(w(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function hd(e,t,n){e?he(n,e,t):t()}function gd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u<r?g(y):c.push(y),g=y=>{i&&t.next(y),u++;let v=!1;F(n(y,l++)).subscribe(w(t,m=>{o?.(m),i?f(m):t.next(m)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&u<r;){let m=c.shift();s?he(t,s,()=>g(m)):g(m)}p()}catch(m){t.error(m)}}))};return e.subscribe(w(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Ae(e,t,n=1/0){return I(t)?Ae((r,o)=>q((i,s)=>t(r,i,o,s))(F(e(r,o))),n):(typeof t=="number"&&(n=t),M((r,o)=>gd(r,o,e,n)))}function pr(e=1/0){return Ae(de,e)}function md(){return pr(1)}function ht(...e){return md()(He(e,Ve(e)))}function Fy(e){return new S(t=>{F(e()).subscribe(t)})}var ky=["addListener","removeListener"],Ly=["addEventListener","removeEventListener"],Py=["on","off"];function Ws(e,t,n,r){if(I(n)&&(r=n,n=void 0),r)return Ws(e,t,n).pipe(In(r));let[o,i]=Vy(e)?Ly.map(s=>a=>e[s](t,a,n)):jy(e)?ky.map(yd(e,t)):By(e)?Py.map(yd(e,t)):[];if(!o&&_n(e))return Ae(s=>Ws(s,t,n))(F(e));if(!o)throw new TypeError("Invalid event target");return new S(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function yd(e,t){return n=>r=>e[n](t,r)}function jy(e){return I(e.addListener)&&I(e.removeListener)}function By(e){return I(e.on)&&I(e.off)}function Vy(e){return I(e.addEventListener)&&I(e.removeEventListener)}function Cn(e=0,t,n=dd){let r=-1;return t!=null&&(Co(t)?n=t:r=t),new S(o=>{let i=pd(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Hy(...e){let t=Ve(e),n=Xl(e,1/0),r=e;return r.length?r.length===1?F(r[0]):pr(n)(He(r,t)):jt}function vd(e){return M((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(w(n,u=>{r=!0,o=u,i||F(e(u)).subscribe(i=w(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function $o(e,t=Bt){return vd(()=>Cn(e,t))}function Dd(e){return M((t,n)=>{let r=null,o=!1,i;r=t.subscribe(w(n,void 0,void 0,s=>{i=F(e(s,Dd(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qs(e,t){return I(t)?Ae(e,t,1):Ae(e,1)}function Vt(e,t=Bt){return M((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(w(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Ed(e){return M((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _d(){return M((e,t)=>{e.subscribe(w(t,Ot))})}function Zs(e){return q(()=>e)}function Ys(e,t){return t?n=>ht(t.pipe(pt(1),_d()),n.pipe(Ys(e))):Ae((n,r)=>F(e(n,r)).pipe(pt(1),Zs(n)))}function Uy(e,t=Bt){let n=Cn(e,t);return Ys(()=>n)}function zo(e,t=de){return e=e??$y,M((n,r)=>{let o,i=!0;n.subscribe(w(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function $y(e,t){return e===t}function Id(e=zy){return M((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function zy(){return new fr}function Ks(e){return M((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Gy(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ve((o,i)=>e(o,i,r)):de,pt(1),n?Ed(t):Id(()=>new fr))}function Wy(e){return e<=0?()=>jt:M((t,n)=>{let r=[];t.subscribe(w(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function bd(){return M((e,t)=>{let n,r=!1;e.subscribe(w(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function qy(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?de:M((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(w(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0};if(r!=null){let f=typeof r=="number"?Cn(r):F(r(d,a)),g=w(s,()=>{g.unsubscribe(),p()},()=>{s.complete()});f.subscribe(g)}else p()}else s.error(d)})),l&&(c.unsubscribe(),c=null,u())};u()})}function Cd(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,$s({connector:()=>new lr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function hr(e){return ve((t,n)=>e<=n)}function Go(...e){let t=Ve(e);return M((n,r)=>{(t?ht(e,n,t):ht(e,n)).subscribe(r)})}function wn(e){return M((t,n)=>{F(e).subscribe(w(n,()=>n.complete(),Ot)),!n.closed&&t.subscribe(n)})}function Zy(e,t=!1){return M((n,r)=>{let o=0;n.subscribe(w(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}var se=null,Wo=!1,ea=1,Yy=null,ee=Symbol("SIGNAL");function b(e){let t=se;return se=e,t}function Zo(){return se}var Tn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Mn(e){if(Wo)throw new Error("");if(se===null)return;se.consumerOnSignalRead(e);let t=se.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=se.recomputing;if(r&&(n=t!==void 0?t.nextProducer:se.producers,n!==void 0&&n.producer===e)){se.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===se&&(!r||Qy(o,se)))return;let i=An(se),s={producer:e,consumer:se,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};se.producersTail=s,t!==void 0?t.nextProducer=s:se.producers=s,i&&Sd(e,s)}function wd(){ea++}function ta(e){if(!(An(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ea)){if(!e.producerMustRecompute(e)&&!Nn(e)){Js(e);return}e.producerRecomputeValue(e),Js(e)}}function na(e){if(e.consumers===void 0)return;let t=Wo;Wo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ky(r)}}finally{Wo=t}}function ra(){return se?.consumerAllowSignalWrites!==!1}function Ky(e){e.dirty=!0,na(e),e.consumerMarkedDirty?.(e)}function Js(e){e.dirty=!1,e.lastCleanEpoch=ea}function Ht(e){return e&&Td(e),b(e)}function Td(e){e.producersTail=void 0,e.recomputing=!0}function Sn(e,t){b(t),e&&Md(e)}function Md(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(An(e))do n=oa(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Nn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ta(n),r!==n.version))return!0}return!1}function gt(e){if(An(e)){let t=e.producers;for(;t!==void 0;)t=oa(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Sd(e,t){let n=e.consumersTail,r=An(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Sd(o.producer,o)}function oa(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!An(t)){let i=t.producers;for(;i!==void 0;)i=oa(i)}return n}function An(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ia(e){Yy?.(e)}function Qy(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function sa(e,t){return Object.is(e,t)}function gr(e,t){let n=Object.create(Xy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ta(n),Mn(n),n.value===qo)throw n.error;return n.value};return r[ee]=n,ia(n),r}var Qs=Symbol("UNSET"),Xs=Symbol("COMPUTING"),qo=Symbol("ERRORED"),Xy=J(x({},Tn),{value:Qs,dirty:!0,error:null,equal:sa,kind:"computed",producerMustRecompute(e){return e.value===Qs||e.value===Xs},producerRecomputeValue(e){if(e.value===Xs)throw new Error("");let t=e.value;e.value=Xs;let n=Ht(e),r,o=!1;try{r=e.computation(),b(null),o=t!==Qs&&t!==qo&&r!==qo&&e.equal(t,r)}catch(i){r=qo,e.error=i}finally{Sn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Jy(){throw new Error}var Nd=Jy;function Ad(e){Nd(e)}function aa(e){Nd=e}var ev=null;function ca(e,t){let n=Object.create(yr);n.value=e,t!==void 0&&(n.equal=t);let r=()=>xd(n);return r[ee]=n,ia(n),[r,s=>mr(n,s),s=>Rd(n,s)]}function xd(e){return Mn(e),e.value}function mr(e,t){ra()||Ad(e),e.equal(e.value,t)||(e.value=t,tv(e))}function Rd(e,t){ra()||Ad(e),mr(e,t(e.value))}var yr=J(x({},Tn),{equal:sa,value:void 0,kind:"signal"});function tv(e){e.version++,wd(),na(e),ev?.(e)}function ua(e){let t=b(null);try{return e()}finally{b(t)}}var la=J(x({},Tn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function da(e){if(e.dirty=!1,e.version>0&&!Nn(e))return;e.version++;let t=Ht(e);try{e.cleanup(),e.fn()}finally{Sn(e,t)}}var fa;function Yo(){return fa}function Ue(e){let t=fa;return fa=e,t}var Od=Symbol("NotFound");function xn(e){return e===Od||e?.name==="\u0275NotFound"}var ni="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",N=class extends Error{code;constructor(t,n){super(Cr(t,n)),this.code=t}};function nv(e){return`NG0${Math.abs(e)}`}function Cr(e,t){return`${nv(e)}${t?": "+t:""}`}var On=globalThis;function P(e){for(let t in e)if(e[t]===P)return t;throw Error("")}function jd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Je(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Je).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(` `);return r>=0?n.slice(0,r):n}function ri(e,t){return e?t?`${e} ${t}`:e:t||""}var rv=P({__forward_ref__:P});function wr(e){return e.__forward_ref__=wr,e.toString=function(){return Je(this())},e}function Y(e){return wa(e)?e():e}function wa(e){return typeof e=="function"&&e.hasOwnProperty(rv)&&e.__forward_ref__===wr}function Bd(e,t,n){e!=t&&Vd(n,e,t,"==")}function Vd(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Tr(e){return iv(e,oi)}function ov(e){return Tr(e)!==null}function iv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function sv(e){let t=e?.[oi]??null;return t||null}function ha(e){return e&&e.hasOwnProperty(Qo)?e[Qo]:null}var oi=P({\u0275prov:P}),Qo=P({\u0275inj:P}),_=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ta(e){return e&&!!e.\u0275providers}var Ma=P({\u0275cmp:P}),Sa=P({\u0275dir:P}),Na=P({\u0275pipe:P}),Aa=P({\u0275mod:P}),Dr=P({\u0275fac:P}),qt=P({__NG_ELEMENT_ID__:P}),Fd=P({__NG_ENV_ID__:P});function Mr(e){return typeof e=="string"?e:e==null?"":String(e)}function Hd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Mr(e)}var Ud=P({ngErrorCode:P}),av=P({ngErrorMessage:P}),cv=P({ngTokenPath:P});function xa(e,t){return $d("",-200,t)}function ii(e,t){throw new N(-201,!1)}function $d(e,t,n){let r=new N(t,e);return r[Ud]=t,r[av]=e,n&&(r[cv]=n),r}function uv(e){return e[Ud]}var ga;function zd(){return ga}function fe(e){let t=ga;return ga=e,t}function Ra(e,t,n){let r=Tr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ii(e,"Injector")}var lv={},Ut=lv,dv="__NG_DI_FLAG__",ma=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=$t(n)||0;try{return this.injector.get(t,r&8?null:Ut,r)}catch(o){if(xn(o))return o;throw o}}};function fv(e,t=0){let n=Yo();if(n===void 0)throw new N(-203,!1);if(n===null)return Ra(e,void 0,t);{let r=pv(t),o=n.retrieve(e,r);if(xn(o)){if(r.optional)return null;throw o}return o}}function $(e,t=0){return(zd()||fv)(Y(e),t)}function h(e,t){return $(e,$t(t))}function $t(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ya(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new N(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=hv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push($(o,i))}else t.push($(r))}return t}function hv(e){return e[dv]}function mt(e,t){let n=e.hasOwnProperty(Dr);return n?e[Dr]:null}function Gd(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Wd(e){return e.flat(Number.POSITIVE_INFINITY)}function si(e,t){e.forEach(n=>Array.isArray(n)?si(n,t):t(n))}function Oa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Zd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ai(e,t,n){let r=Fn(e,t);return r>=0?e[r|1]=n:(r=~r,Zd(e,r,t,n)),r}function ci(e,t){let n=Fn(e,t);if(n>=0)return e[n|1]}function Fn(e,t){return gv(e,t,1)}function gv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Re={},ne=[],Zt=new _(""),Fa=new _("",-1),ka=new _(""),Er=class{get(t,n=Ut){if(n===Ut){let o=$d("",-201);throw o.name="\u0275NotFound",o}return n}};function La(e){return e[Aa]||null}function et(e){return e[Ma]||null}function ui(e){return e[Sa]||null}function Yd(e){return e[Na]||null}function li(e){return{\u0275providers:e}}function Kd(...e){return{\u0275providers:Pa(!0,e),\u0275fromNgModule:!0}}function Pa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return si(t,s=>{let a=s;Xo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Qd(o,i),n}function Qd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ja(o,i=>{t(i,r)})}}function Xo(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=ha(e),s=!i&&et(e);if(!i&&!s){let c=e.ngModule;if(i=ha(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Xo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{si(i.imports,l=>{Xo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Qd(u,t)}if(!a){let u=mt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ne},o),t({provide:ka,useValue:o,multi:!0},o),t({provide:Zt,useValue:()=>$(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ja(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ja(e,t){for(let n of e)Ta(n)&&(n=n.\u0275providers),Array.isArray(n)?ja(n,t):t(n)}var mv=P({provide:String,useValue:P});function Xd(e){return e!==null&&typeof e=="object"&&mv in e}function yv(e){return!!(e&&e.useExisting)}function vv(e){return!!(e&&e.useFactory)}function zt(e){return typeof e=="function"}function Jd(e){return!!e.useClass}var Ba=new _(""),Ko={},kd={},pa;function kn(){return pa===void 0&&(pa=new Er),pa}var re=class{},Gt=class extends re{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Da(t,s=>this.processProvider(s)),this.records.set(Fa,Rn(void 0,this)),o.has("environment")&&this.records.set(re,Rn(void 0,this));let i=this.records.get(Ba);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ka,ne,{self:!0}))}retrieve(t,n){let r=$t(n)||0;try{return this.get(t,Ut,r)}catch(o){if(xn(o))return o;throw o}}destroy(){vr(this),this._destroyed=!0;let t=b(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(),b(t)}}onDestroy(t){return vr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){vr(this);let n=Ue(this),r=fe(void 0),o;try{return t()}finally{Ue(n),fe(r)}}get(t,n=Ut,r){if(vr(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=$t(r),i,s=Ue(this),a=fe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=bv(t)&&Tr(t);l&&this.injectableDefInScope(l)?u=Rn(va(t),Ko):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?kn():this.parent;return n=o&8&&n===Ut?null:n,c.get(t,n)}catch(c){let u=uv(c);throw u===-200||u===-201?new N(u,null):c}finally{fe(a),Ue(s)}}resolveInjectorInitializers(){let t=b(null),n=Ue(this),r=fe(void 0),o;try{let i=this.get(Zt,ne,{self:!0});for(let s of i)s()}finally{Ue(n),fe(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Je(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=zt(t)?t:Y(t&&t.provide),r=Ev(t);if(!zt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Rn(void 0,Ko,!0),o.factory=()=>ya(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=b(null);try{if(n.value===kd)throw xa(Je(t));return n.value===Ko&&(n.value=kd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Iv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function va(e){let t=Tr(e),n=t!==null?t.factory:mt(e);if(n!==null)return n;if(e instanceof _)throw new N(204,!1);if(e instanceof Function)return Dv(e);throw new N(204,!1)}function Dv(e){if(e.length>0)throw new N(204,!1);let n=sv(e);return n!==null?()=>n.factory(e):()=>new e}function Ev(e){if(Xd(e))return Rn(void 0,e.useValue);{let t=Va(e);return Rn(t,Ko)}}function Va(e,t,n){let r;if(zt(e)){let o=Y(e);return mt(o)||va(o)}else if(Xd(e))r=()=>Y(e.useValue);else if(vv(e))r=()=>e.useFactory(...ya(e.deps||[]));else if(yv(e))r=(o,i)=>$(Y(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(e&&(e.useClass||e.provide));if(_v(e))r=()=>new o(...ya(e.deps));else return mt(o)||va(o)}return r}function vr(e){if(e.destroyed)throw new N(205,!1)}function Rn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _v(e){return!!e.deps}function Iv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Da(e,t){for(let n of e)Array.isArray(n)?Da(n,t):n&&Ta(n)?Da(n.\u0275providers,t):t(n)}function Ln(e,t){let n;e instanceof Gt?(vr(e),n=e):n=new ma(e);let r,o=Ue(n),i=fe(void 0);try{return t()}finally{Ue(o),fe(i)}}function ef(){return zd()!==void 0||Yo()!=null}var Oe=0,E=1,T=2,K=3,be=4,ae=5,Yt=6,Pn=7,Z=8,tt=9,$e=10,B=11,jn=12,Ha=13,Kt=14,ce=15,Dt=16,Qt=17,ze=18,Nr=19,Ua=20,Xe=21,di=22,yt=23,De=24,Xt=25,Jt=26,V=27,tf=1,$a=6,Et=7,Ar=8,en=9,G=10;function Ge(e){return Array.isArray(e)&&typeof e[tf]=="object"}function Fe(e){return Array.isArray(e)&&e[tf]===!0}function za(e){return(e.flags&4)!==0}function nt(e){return e.componentOffset>-1}function Bn(e){return(e.flags&1)===1}function ke(e){return!!e.template}function Vn(e){return(e[T]&512)!==0}function tn(e){return(e[T]&256)===256}var Ga="svg",nf="math";function Ee(e){for(;Array.isArray(e);)e=e[Oe];return e}function Wa(e,t){return Ee(t[e])}function Ce(e,t){return Ee(t[e.index])}function xr(e,t){return e.data[t]}function qa(e,t){return e[t]}function Za(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function we(e,t){let n=t[e];return Ge(n)?n:n[Oe]}function rf(e){return(e[T]&4)===4}function fi(e){return(e[T]&128)===128}function of(e){return Fe(e[K])}function me(e,t){return t==null?null:e[t]}function Ya(e){e[Qt]=0}function Ka(e){e[T]&1024||(e[T]|=1024,fi(e)&&nn(e))}function sf(e,t){for(;e>0;)t=t[Kt],e--;return t}function Rr(e){return!!(e[T]&9216||e[De]?.dirty)}function pi(e){e[$e].changeDetectionScheduler?.notify(8),e[T]&64&&(e[T]|=1024),Rr(e)&&nn(e)}function nn(e){e[$e].changeDetectionScheduler?.notify(0);let t=vt(e);for(;t!==null&&!(t[T]&8192||(t[T]|=8192,!fi(t)));)t=vt(t)}function Qa(e,t){if(tn(e))throw new N(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function af(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function vt(e){let t=e[K];return Fe(t)?t[K]:t}function Xa(e){return e[Pn]??=[]}function Ja(e){return e.cleanup??=[]}function cf(e,t,n,r){let o=Xa(t);o.push(n),e.firstCreatePass&&Ja(e).push(r,o.length-1)}var A={lFrame:Ef(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ea=!1;function uf(){return A.lFrame.elementDepthCount}function lf(){A.lFrame.elementDepthCount++}function ec(){A.lFrame.elementDepthCount--}function hi(){return A.bindingsEnabled}function tc(){return A.skipHydrationRootTNode!==null}function nc(e){return A.skipHydrationRootTNode===e}function rc(){A.skipHydrationRootTNode=null}function C(){return A.lFrame.lView}function U(){return A.lFrame.tView}function df(e){return A.lFrame.contextLView=e,e[Z]}function ff(e){return A.lFrame.contextLView=null,e}function oe(){let e=oc();for(;e!==null&&e.type===64;)e=e.parent;return e}function oc(){return A.lFrame.currentTNode}function Hn(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function ic(){return A.lFrame.isParent}function sc(){A.lFrame.isParent=!1}function pf(){return A.lFrame.contextLView}function ac(){return Ea}function _r(e){let t=Ea;return Ea=e,t}function Or(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hf(e){return A.lFrame.bindingIndex=e}function _t(){return A.lFrame.bindingIndex++}function cc(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gf(){return A.lFrame.inI18n}function uc(e){A.lFrame.inI18n=e}function mf(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,gi(t)}function yf(){return A.lFrame.currentDirectiveIndex}function gi(e){A.lFrame.currentDirectiveIndex=e}function vf(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function mi(){return A.lFrame.currentQueryIndex}function Fr(e){A.lFrame.currentQueryIndex=e}function Cv(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ae]:null}function lc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Cv(i),o===null||(i=i[Kt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=Df();return r.currentTNode=t,r.lView=e,!0}function yi(e){let t=Df(),n=e[E];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Df(){let e=A.lFrame,t=e===null?null:e.child;return t===null?Ef(e):t}function Ef(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function _f(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var dc=_f;function vi(){let e=_f();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function If(e){return(A.lFrame.contextLView=sf(e,A.lFrame.contextLView))[Z]}function ot(){return A.lFrame.selectedIndex}function It(e){A.lFrame.selectedIndex=e}function kr(){let e=A.lFrame;return xr(e.tView,e.selectedIndex)}function bf(){A.lFrame.currentNamespace=Ga}function Cf(){wv()}function wv(){A.lFrame.currentNamespace=null}function wf(){return A.lFrame.currentNamespace}var Tf=!0;function Lr(){return Tf}function Un(e){Tf=e}function _a(e,t=null,n=null,r){let o=fc(e,t,n,r);return o.resolveInjectorInitializers(),o}function fc(e,t=null,n=null,r,o=new Set){let i=[n||ne,Kd(e)];return r=r||(typeof e=="object"?void 0:Je(e)),new Gt(i,t||kn(),r||null,o)}var te=class e{static THROW_IF_NOT_FOUND=Ut;static NULL=new Er;static create(t,n){if(Array.isArray(t))return _a({name:""},n,t,"");{let r=t.name??"";return _a({name:r},t.parent,t.providers,r)}}static \u0275prov=D({token:e,providedIn:"any",factory:()=>$(Fa)});static __NG_ELEMENT_ID__=-1},W=new _(""),it=(()=>{class e{static __NG_ELEMENT_ID__=Tv;static __NG_ENV_ID__=n=>n}return e})(),Jo=class extends it{_lView;constructor(t){super(),this._lView=t}get destroyed(){return tn(this._lView)}onDestroy(t){let n=this._lView;return Qa(n,t),()=>af(n,t)}};function Tv(){return new Jo(C())}var pc=!1,bt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Lt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new S(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=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ia=class extends O{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,ef()&&(this.destroyRef=h(it,{optional:!0})??void 0,this.pendingTasks=h(bt,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof H&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},ge=Ia;function ei(...e){}function hc(e){let t,n;function r(){e=ei;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gc(e){return queueMicrotask(()=>e()),()=>{e=ei}}var mc="isAngularZone",Ir=mc+"_ID",Mv=0,R=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=pc}=t;if(typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Av(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(mc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Sv,ei,ei);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Sv={};function yc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Nv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){hc(()=>{e.callbackScheduled=!1,ba(e),e.isCheckStableRunning=!0,yc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ba(e)}function Av(e){let t=()=>{Nv