UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

4 lines 431 kB
import{a as _,b as B,c as z3,j as Re}from"./chunk-RTRJ3KFH.js";function N(e){return typeof e=="function"}function br(e){return N(e?.lift)}function E(e){return t=>{if(br(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 ot(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 D3=ot(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function M1(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Z=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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(N(r))try{r()}catch(o){t=o instanceof D3?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{R6(o)}catch(a){t=t??[],a instanceof D3?t=[...t,...a.errors]:t.push(a)}}if(t)throw new D3(t)}}add(t){var n;if(t&&t!==this)if(this.closed)R6(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)&&M1(n,t)}remove(t){let{_finalizers:n}=this;n&&M1(n,t),t instanceof e&&t._removeParent(this)}};Z.EMPTY=(()=>{let e=new Z;return e.closed=!0,e})();var wr=Z.EMPTY;function b3(e){return e instanceof Z||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function R6(e){N(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var at={setTimeout(e,t,...n){let{delegate:r}=at;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=at;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function w3(e){at.setTimeout(()=>{let{onUnhandledError:t}=qe;if(t)t(e);else throw e})}function y1(){}var F6=Sr("C",void 0,void 0);function P6(e){return Sr("E",void 0,e)}function O6(e){return Sr("N",e,void 0)}function Sr(e,t,n){return{kind:e,value:t,error:n}}var C1=null;function st(e){if(qe.useDeprecatedSynchronousErrorHandling){let t=!C1;if(t&&(C1={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=C1;if(C1=null,n)throw r}}else e()}function V6(e){qe.useDeprecatedSynchronousErrorHandling&&C1&&(C1.errorThrown=!0,C1.error=e)}var L1=class extends Z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,b3(t)&&t.add(this)):this.destination=Ou}static create(t,n,r){return new Ye(t,n,r)}next(t){this.isStopped?xr(O6(t),this):this._next(t)}error(t){this.isStopped?xr(P6(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?xr(F6,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()}}},Fu=Function.prototype.bind;function Er(e,t){return Fu.call(e,t)}var Nr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){S3(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){S3(r)}else S3(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){S3(n)}}},Ye=class extends L1{constructor(t,n,r){super();let i;if(N(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&qe.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Er(t.next,o),error:t.error&&Er(t.error,o),complete:t.complete&&Er(t.complete,o)}):i=t}this.destination=new Nr(i)}};function S3(e){qe.useDeprecatedSynchronousErrorHandling?V6(e):w3(e)}function Pu(e){throw e}function xr(e,t){let{onStoppedNotification:n}=qe;n&&at.setTimeout(()=>n(e,t))}var Ou={closed:!0,next:y1,error:Pu,complete:y1};function I(e,t,n,r,i){return new Ir(e,t,n,r,i)}var Ir=class extends L1{constructor(t,n,r,i,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=n?function(s){try{n(s)}catch(c){t.error(c)}}:super._next,this._error=i?function(s){try{i(s)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){t.error(s)}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 D2(e,t){return E((n,r)=>{let i=0;n.subscribe(I(r,o=>e.call(t,o,i++)&&r.next(o)))})}var ct=typeof Symbol=="function"&&Symbol.observable||"@@observable";function he(e){return e}function Vu(...e){return Tr(e)}function Tr(e){return e.length===0?he:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var R=(()=>{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,i){let o=ju(n)?n:new Ye(n,r,i);return st(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=B6(r),new r((i,o)=>{let a=new Ye({next:s=>{try{n(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});this.subscribe(a)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ct](){return this}pipe(...n){return Tr(n)(this)}toPromise(n){return n=B6(n),new n((r,i)=>{let o;this.subscribe(a=>o=a,a=>i(a),()=>r(o))})}}return e.create=t=>new e(t),e})();function B6(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function Bu(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function ju(e){return e&&e instanceof L1||Bu(e)&&b3(e)}var b2=new R(e=>e.complete());function lt(e){return e<=0?()=>b2:E((t,n)=>{let r=0;t.subscribe(I(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}var _r;function E3(){return _r}function s2(e){let t=_r;return _r=e,t}var j6=Symbol("NotFound");function ft(e){return e===j6||e?.name==="\u0275NotFound"}function _3(e,t){return Object.is(e,t)}var ue=null,x3=!1,Ar=1,Hu=null,ae=Symbol("SIGNAL");function T(e){let t=ue;return ue=e,t}function A3(){return ue}var U2={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 z1(e){if(x3)throw new Error("");if(ue===null)return;ue.consumerOnSignalRead(e);let t=ue.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ue.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ue.producers,n!==void 0&&n.producer===e)){ue.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===ue&&(!r||$u(i,ue)))return;let o=dt(ue),a={producer:e,consumer:ue,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};ue.producersTail=a,t!==void 0?t.nextProducer=a:ue.producers=a,o&&U6(e,a)}function H6(){Ar++}function k3(e){if(!(dt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ar)){if(!e.producerMustRecompute(e)&&!ut(e)){T3(e);return}e.producerRecomputeValue(e),T3(e)}}function kr(e){if(e.consumers===void 0)return;let t=x3;x3=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Uu(r)}}finally{x3=t}}function Rr(){return ue?.consumerAllowSignalWrites!==!1}function Uu(e){e.dirty=!0,kr(e),e.consumerMarkedDirty?.(e)}function T3(e){e.dirty=!1,e.lastCleanEpoch=Ar}function $2(e){return e&&(e.producersTail=void 0,e.recomputing=!0),T(e)}function D1(e,t){if(T(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(dt(e))do r=Fr(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function ut(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(k3(n),r!==n.version))return!0}return!1}function b1(e){if(dt(e)){let t=e.producers;for(;t!==void 0;)t=Fr(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function U6(e,t){let n=e.consumersTail,r=dt(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 i=e.producers;i!==void 0;i=i.nextProducer)U6(i.producer,i)}function Fr(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!dt(t)){let o=t.producers;for(;o!==void 0;)o=Fr(o)}return n}function dt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function R3(e){Hu?.(e)}function $u(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 F3(e,t){let n=Object.create(Gu);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(k3(n),z1(n),n.value===i4)throw n.error;return n.value};return r[ae]=n,R3(n),r}var N3=Symbol("UNSET"),I3=Symbol("COMPUTING"),i4=Symbol("ERRORED"),Gu=B(_({},U2),{value:N3,dirty:!0,error:null,equal:_3,kind:"computed",producerMustRecompute(e){return e.value===N3||e.value===I3},producerRecomputeValue(e){if(e.value===I3)throw new Error("");let t=e.value;e.value=I3;let n=$2(e),r,i=!1;try{r=e.computation(),T(null),i=t!==N3&&t!==i4&&r!==i4&&e.equal(t,r)}catch(o){r=i4,e.error=o}finally{D1(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Wu(){throw new Error}var $6=Wu;function G6(e){$6(e)}function Pr(e){$6=e}var qu=null;function Or(e,t){let n=Object.create(P3);n.value=e,t!==void 0&&(n.equal=t);let r=()=>W6(n);return r[ae]=n,R3(n),[r,a=>w1(n,a),a=>Vr(n,a)]}function W6(e){return z1(e),e.value}function w1(e,t){Rr()||G6(e),e.equal(e.value,t)||(e.value=t,Yu(e))}function Vr(e,t){Rr()||G6(e),w1(e,t(e.value))}var P3=B(_({},U2),{equal:_3,value:void 0,kind:"signal"});function Yu(e){e.version++,H6(),kr(e),qu?.(e)}function Br(){return E((e,t)=>{let n=null;e._refCount++;let r=I(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var jr=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,br(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 Z;let n=this.getSubject();t.add(this.source.subscribe(I(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Z.EMPTY)}return t}refCount(){return Br()(this)}};var pt={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=pt;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new Z(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=pt;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=pt;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var q6=ot(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var J=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new O3(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new q6}next(n){st(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){st(()=>{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(){st(()=>{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:i,observers:o}=this;return r||i?wr:(this.currentObservers=null,o.push(n),new Z(()=>{this.currentObservers=null,M1(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new O3(t,n),e})(),O3=class extends J{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:wr}};var G2=class extends J{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var o4={now(){return(o4.delegate||Date).now()},delegate:void 0};var a4=class extends J{constructor(t=1/0,n=1/0,r=o4){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:i,_timestampProvider:o,_windowTime:a}=this;n||(r.push(t),!i&&r.push(o.now()+a)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let a=0;a<o.length&&!t.closed;a+=r?1:2)t.next(o[a]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let a=n.now(),s=0;for(let c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}};var V3=class extends Z{constructor(t,n){super()}schedule(t,n=0){return this}};var s4={setInterval(e,t,...n){let{delegate:r}=s4;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=s4;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var W2=class extends V3{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 i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return s4.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&&s4.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,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,M1(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var mt=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)}};mt.now=o4.now;var q2=class extends mt{constructor(t,n=mt.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 S1=new q2(W2),Y6=S1;var B3=class extends W2{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var j3=class extends q2{};var Zu=new j3(B3);var H3=class extends W2{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=pt.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:o}=t;n!=null&&n===t._scheduled&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(pt.cancelAnimationFrame(n),t._scheduled=void 0)}};var U3=class extends q2{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,i;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,i){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw i}}};var Qu=new U3(H3);function $3(e){return e&&N(e.schedule)}function Hr(e){return e[e.length-1]}function G3(e){return N(Hr(e))?e.pop():void 0}function Fe(e){return $3(Hr(e))?e.pop():void 0}function W3(e,t){return typeof Hr(e)=="number"?e.pop():t}function cE(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function lE(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Q6(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{l(r.next(f))}catch(u){a(u)}}function c(f){try{l(r.throw(f))}catch(u){a(u)}}function l(f){f.done?o(f.value):i(f.value).then(s,c)}l((r=r.apply(e,t||[])).next())})}function Z6(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 E1(e){return this instanceof E1?(this.v=e,this):new E1(e)}function K6(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(m){return Promise.resolve(m).then(d,u)}}function s(d,m){r[d]&&(i[d]=function(g){return new Promise(function(y,M){o.push([d,g,y,M])>1||c(d,g)})},m&&(i[d]=m(i[d])))}function c(d,m){try{l(r[d](m))}catch(g){p(o[0][3],g)}}function l(d){d.value instanceof E1?Promise.resolve(d.value.v).then(f,u):p(o[0][2],d)}function f(d){c("next",d)}function u(d){c("throw",d)}function p(d,m){d(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function X6(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 Z6=="function"?Z6(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(s,c){a=e[o](a),i(s,c,a.done,a.value)})}}function i(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}}var ht=e=>e&&typeof e.length=="number"&&typeof e!="function";function q3(e){return N(e?.then)}function Y3(e){return N(e[ct])}function Z3(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Q3(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 Ku(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var K3=Ku();function X3(e){return N(e?.[K3])}function J3(e){return K6(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield E1(n.read());if(i)return yield E1(void 0);yield yield E1(r)}}finally{n.releaseLock()}})}function en(e){return N(e?.getReader)}function O(e){if(e instanceof R)return e;if(e!=null){if(Y3(e))return Xu(e);if(ht(e))return Ju(e);if(q3(e))return ed(e);if(Z3(e))return J6(e);if(X3(e))return td(e);if(en(e))return nd(e)}throw Q3(e)}function Xu(e){return new R(t=>{let n=e[ct]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ju(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ed(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,w3)})}function td(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function J6(e){return new R(t=>{rd(e,t).catch(n=>t.error(n))})}function nd(e){return J6(J3(e))}function rd(e,t){var n,r,i,o;return Q6(this,void 0,void 0,function*(){try{for(n=X6(e);r=yield n.next(),!r.done;){let a=r.value;if(t.next(a),t.closed)return}}catch(a){i={error:a}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function De(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function c4(e,t=0){return E((n,r)=>{n.subscribe(I(r,i=>De(r,e,()=>r.next(i),t),()=>De(r,e,()=>r.complete(),t),i=>De(r,e,()=>r.error(i),t)))})}function tn(e,t=0){return E((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ec(e,t){return O(e).pipe(tn(t),c4(t))}function tc(e,t){return O(e).pipe(tn(t),c4(t))}function nc(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function rc(e,t){return new R(n=>{let r;return De(n,t,()=>{r=e[K3](),De(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(a){n.error(a);return}o?n.complete():n.next(i)},0,!0)}),()=>N(r?.return)&&r.return()})}function nn(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{De(n,t,()=>{let r=e[Symbol.asyncIterator]();De(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function ic(e,t){return nn(J3(e),t)}function oc(e,t){if(e!=null){if(Y3(e))return ec(e,t);if(ht(e))return nc(e,t);if(q3(e))return tc(e,t);if(Z3(e))return nn(e,t);if(X3(e))return rc(e,t);if(en(e))return ic(e,t)}throw Q3(e)}function be(e,t){return t?oc(e,t):O(e)}function gt(...e){let t=Fe(e);return be(e,t)}function Ur(e,t){let n=N(e)?e:()=>e,r=i=>i.error(n());return new R(t?i=>t.schedule(r,0,i):r)}function id(e){return!!e&&(e instanceof R||N(e.lift)&&N(e.subscribe))}var Ze=ot(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function od(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=!1,a;e.subscribe({next:s=>{a=s,o=!0},error:i,complete:()=>{o?r(a):n?r(t.defaultValue):i(new Ze)}})})}function ad(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new Ye({next:a=>{r(a),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Ze)}});e.subscribe(o)})}function ac(e){return e instanceof Date&&!isNaN(e)}function se(e,t){return E((n,r)=>{let i=0;n.subscribe(I(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:sd}=Array;function cd(e,t){return sd(t)?e(...t):e(t)}function vt(e){return se(t=>cd(e,t))}var{isArray:ld}=Array,{getPrototypeOf:fd,prototype:ud,keys:dd}=Object;function rn(e){if(e.length===1){let t=e[0];if(ld(t))return{args:t,keys:null};if(pd(t)){let n=dd(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function pd(e){return e&&typeof e=="object"&&fd(e)===ud}function on(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function md(...e){let t=Fe(e),n=G3(e),{args:r,keys:i}=rn(e);if(r.length===0)return be([],t);let o=new R(hd(r,t,i?a=>on(i,a):he));return n?o.pipe(vt(n)):o}function hd(e,t,n=he){return r=>{sc(t,()=>{let{length:i}=e,o=new Array(i),a=i,s=i;for(let c=0;c<i;c++)sc(t,()=>{let l=be(e[c],t),f=!1;l.subscribe(I(r,u=>{o[c]=u,f||(f=!0,s--),s||r.next(n(o.slice()))},()=>{--a||r.complete()}))},r)},r)}}function sc(e,t,n){e?De(n,e,t):t()}function cc(e,t,n,r,i,o,a,s){let c=[],l=0,f=0,u=!1,p=()=>{u&&!c.length&&!l&&t.complete()},d=g=>l<r?m(g):c.push(g),m=g=>{o&&t.next(g),l++;let y=!1;O(n(g,f++)).subscribe(I(t,M=>{i?.(M),o?d(M):t.next(M)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;c.length&&l<r;){let M=c.shift();a?De(t,a,()=>m(M)):m(M)}p()}catch(M){t.error(M)}}))};return e.subscribe(I(t,d,()=>{u=!0,p()})),()=>{s?.()}}function Pe(e,t,n=1/0){return N(t)?Pe((r,i)=>se((o,a)=>t(r,o,i,a))(O(e(r,i))),n):(typeof t=="number"&&(n=t),E((r,i)=>cc(r,i,e,n)))}function x1(e=1/0){return Pe(he,e)}function lc(){return x1(1)}function Y2(...e){return lc()(be(e,Fe(e)))}function gd(e){return new R(t=>{O(e()).subscribe(t)})}function $r(...e){let t=G3(e),{args:n,keys:r}=rn(e),i=new R(o=>{let{length:a}=n;if(!a){o.complete();return}let s=new Array(a),c=a,l=a;for(let f=0;f<a;f++){let u=!1;O(n[f]).subscribe(I(o,p=>{u||(u=!0,l--),s[f]=p},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(r?on(r,s):s),o.complete())}))}});return t?i.pipe(vt(t)):i}var vd=["addListener","removeListener"],Md=["addEventListener","removeEventListener"],yd=["on","off"];function Gr(e,t,n,r){if(N(n)&&(r=n,n=void 0),r)return Gr(e,t,n).pipe(vt(r));let[i,o]=zd(e)?Md.map(a=>s=>e[a](t,s,n)):Cd(e)?vd.map(fc(e,t)):Ld(e)?yd.map(fc(e,t)):[];if(!i&&ht(e))return Pe(a=>Gr(a,t,n))(O(e));if(!i)throw new TypeError("Invalid event target");return new R(a=>{let s=(...c)=>a.next(1<c.length?c:c[0]);return i(s),()=>o(s)})}function fc(e,t){return n=>r=>e[n](t,r)}function Cd(e){return N(e.addListener)&&N(e.removeListener)}function Ld(e){return N(e.on)&&N(e.off)}function zd(e){return N(e.addEventListener)&&N(e.removeEventListener)}function N1(e=0,t,n=Y6){let r=-1;return t!=null&&($3(t)?n=t:r=t),new R(i=>{let o=ac(e)?+e-n.now():e;o<0&&(o=0);let a=0;return n.schedule(function(){i.closed||(i.next(a++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Wr(...e){let t=Fe(e),n=W3(e,1/0),r=e;return r.length?r.length===1?O(r[0]):x1(n)(be(r,t)):b2}function uc(e){return E((t,n)=>{let r=!1,i=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,r){r=!1;let l=i;i=null,n.next(l)}a&&n.complete()},c=()=>{o=null,a&&n.complete()};t.subscribe(I(n,l=>{r=!0,i=l,o||O(e(l)).subscribe(o=I(n,s,c))},()=>{a=!0,(!r||!o||o.closed)&&n.complete()}))})}function Dd(e,t=S1){return uc(()=>N1(e,t))}function qr(e){return E((t,n)=>{let r=null,i=!1,o;r=t.subscribe(I(n,void 0,void 0,a=>{o=O(e(a,qr(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function an(e,t,n,r,i){return(o,a)=>{let s=n,c=t,l=0;o.subscribe(I(a,f=>{let u=l++;c=s?e(c,f,u):(s=!0,f),r&&a.next(c)},i&&(()=>{s&&a.next(c),a.complete()})))}}function dc(e,t){return E(an(e,t,arguments.length>=2,!1,!0))}var bd=(e,t)=>(e.push(t),e);function wd(){return E((e,t)=>{dc(bd,[])(e).subscribe(t)})}function sn(e,t){return N(t)?Pe(e,t,1):Pe(e,1)}function Sd(e,t=S1){return E((n,r)=>{let i=null,o=null,a=null,s=()=>{if(i){i.unsubscribe(),i=null;let l=o;o=null,r.next(l)}};function c(){let l=a+e,f=t.now();if(f<l){i=this.schedule(void 0,l-f),r.add(i);return}s()}n.subscribe(I(r,l=>{o=l,a=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{s(),r.complete()},void 0,()=>{o=i=null}))})}function l4(e){return E((t,n)=>{let r=!1;t.subscribe(I(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function pc(){return E((e,t)=>{e.subscribe(I(t,y1))})}function mc(e){return se(()=>e)}function Yr(e,t){return t?n=>Y2(t.pipe(lt(1),pc()),n.pipe(Yr(e))):Pe((n,r)=>O(e(n,r)).pipe(lt(1),mc(n)))}function Ed(e,t=S1){let n=N1(e,t);return Yr(()=>n)}function xd(e,t=he){return e=e??Nd,E((n,r)=>{let i,o=!0;n.subscribe(I(r,a=>{let s=t(a);(o||!e(i,s))&&(o=!1,i=s,r.next(a))}))})}function Nd(e,t){return e===t}function cn(e=Id){return E((t,n)=>{let r=!1;t.subscribe(I(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Id(){return new Ze}function f4(e){return E((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Td(e,t){let n=arguments.length>=2;return r=>r.pipe(e?D2((i,o)=>e(i,o,r)):he,lt(1),n?l4(t):cn(()=>new Ze))}function Zr(e){return e<=0?()=>b2:E((t,n)=>{let r=[];t.subscribe(I(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function _d(e,t){let n=arguments.length>=2;return r=>r.pipe(e?D2((i,o)=>e(i,o,r)):he,Zr(1),n?l4(t):cn(()=>new Ze))}function hc(...e){let t=Fe(e),n=W3(e,1/0);return E((r,i)=>{x1(n)(be([r,...e],t)).subscribe(i)})}function Ad(...e){return hc(...e)}function kd(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>b2:E((r,i)=>{let o=0,a,s=()=>{if(a?.unsubscribe(),a=null,n!=null){let l=typeof n=="number"?N1(n):O(n(o)),f=I(i,()=>{f.unsubscribe(),c()});l.subscribe(f)}else c()},c=()=>{let l=!1;a=r.subscribe(I(i,void 0,()=>{++o<t?a?s():l=!0:i.complete()})),l&&s()};c()})}function Rd(e){return E((t,n)=>{let r,i=!1,o,a=()=>{r=t.subscribe(I(n,void 0,void 0,s=>{o||(o=new J,O(e(o)).subscribe(I(n,()=>r?a():i=!0))),o&&o.next(s)})),i&&(r.unsubscribe(),r=null,i=!1,a())};a()})}function Fd(e,t){return E(an(e,t,arguments.length>=2,!0))}function Kr(e={}){let{connector:t=()=>new J,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let a,s,c,l=0,f=!1,u=!1,p=()=>{s?.unsubscribe(),s=void 0},d=()=>{p(),a=c=void 0,f=u=!1},m=()=>{let g=a;d(),g?.unsubscribe()};return E((g,y)=>{l++,!u&&!f&&p();let M=c=c??t();y.add(()=>{l--,l===0&&!u&&!f&&(s=Qr(m,i))}),M.subscribe(y),!a&&l>0&&(a=new Ye({next:F=>M.next(F),error:F=>{u=!0,p(),s=Qr(d,n,F),M.error(F)},complete:()=>{f=!0,p(),s=Qr(d,r),M.complete()}}),O(g).subscribe(a))})(o)}}function Qr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ye({next:()=>{r.unsubscribe(),e()}});return O(t(...n)).subscribe(r)}function Xr(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Kr({connector:()=>new a4(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Pd(e){return D2((t,n)=>e<=n)}function Od(...e){let t=Fe(e);return E((n,r)=>{(t?Y2(e,n,t):Y2(e,n)).subscribe(r)})}function ln(e,t){return E((n,r)=>{let i=null,o=0,a=!1,s=()=>a&&!i&&r.complete();n.subscribe(I(r,c=>{i?.unsubscribe();let l=0,f=o++;O(e(c,f)).subscribe(i=I(r,u=>r.next(t?t(c,u,f,l++):u),()=>{i=null,s()}))},()=>{a=!0,s()}))})}function Jr(e){return E((t,n)=>{O(e).subscribe(I(n,()=>n.complete(),y1)),!n.closed&&t.subscribe(n)})}function Vd(e,t,n){let r=N(e)||t||n?{next:e,error:t,complete:n}:e;return r?E((i,o)=>{var a;(a=r.subscribe)===null||a===void 0||a.call(r);let s=!0;i.subscribe(I(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;s=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;s=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;s&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):he}function gc(e){let t=T(null);try{return e()}finally{T(t)}}var mn="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",z=class extends Error{code;constructor(t,n){super(c2(t,n)),this.code=t}};function Bd(e){return`NG0${Math.abs(e)}`}function c2(e,t){return`${Bd(e)}${t?": "+t:""}`}var K2=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("")}function yc(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function S2(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(S2).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 hn(e,t){return e?t?`${e} ${t}`:e:t||""}var jd=j({__forward_ref__:j});function re(e){return e.__forward_ref__=re,e.toString=function(){return S2(this())},e}function ce(e){return ui(e)?e():e}function ui(e){return typeof e=="function"&&e.hasOwnProperty(jd)&&e.__forward_ref__===re}function Cc(e,t){e==null&&di(t,e,null,"!=")}function di(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Se(e){return{providers:e.providers||[],imports:e.imports||[]}}function g4(e){return Ud(e,gn)}function Hd(e){return g4(e)!==null}function Ud(e,t){return e.hasOwnProperty(t)&&e[t]||null}function $d(e){let t=e?.[gn]??null;return t||null}function ti(e){return e&&e.hasOwnProperty(un)?e[un]:null}var gn=j({\u0275prov:j}),un=j({\u0275inj:j}),D=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=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function pi(e){return e&&!!e.\u0275providers}var mi=j({\u0275cmp:j}),hi=j({\u0275dir:j}),gi=j({\u0275pipe:j}),vi=j({\u0275mod:j}),p4=j({\u0275fac:j}),k1=j({__NG_ELEMENT_ID__:j}),vc=j({__NG_ENV_ID__:j});function E2(e){return typeof e=="string"?e:e==null?"":String(e)}function dn(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():E2(e)}var Mi=j({ngErrorCode:j}),Lc=j({ngErrorMessage:j}),d4=j({ngTokenPath:j});function yi(e,t){return zc("",-200,t)}function vn(e,t){throw new z(-201,!1)}function Gd(e,t){e[d4]??=[];let n=e[d4],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Cc(t.provide,"Token with multi: true should have a provide property"),r=dn(t.provide)):r=dn(t),n[0]!==r&&e[d4].unshift(r)}function Wd(e,t){let n=e[d4],r=e[Mi],i=e[Lc]||e.message;return e.message=Yd(i,r,n,t),e}function zc(e,t,n){let r=new z(t,e);return r[Mi]=t,r[Lc]=e,n&&(r[d4]=n),r}function qd(e){return e[Mi]}function Yd(e,t,n=[],r=null){let i="";n&&n.length>1&&(i=` Path: ${n.join(" -> ")}.`);let o=r?` Source: ${r}.`:"";return c2(t,`${e}${o}${i}`)}var ni;function Dc(){return ni}function ge(e){let t=ni;return ni=e,t}function Ci(e,t,n){let r=g4(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;vn(e,"Injector")}var Zd={},I1=Zd,ri="__NG_DI_FLAG__",ii=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=T1(n)||0;try{return this.injector.get(t,r&8?null:I1,r)}catch(i){if(ft(i))return i;throw i}}};function Qd(e,t=0){let n=E3();if(n===void 0)throw new z(-203,!1);if(n===null)return Ci(e,void 0,t);{let r=Kd(t),i=n.retrieve(e,r);if(ft(i)){if(r.optional)return null;throw i}return i}}function C(e,t=0){return(Dc()||Qd)(ce(e),t)}function v(e,t){return C(e,T1(t))}function T1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Kd(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function oi(e){let t=[];for(let n=0;n<e.length;n++){let r=ce(e[n]);if(Array.isArray(r)){if(r.length===0)throw new z(900,!1);let i,o=0;for(let a=0;a<r.length;a++){let s=r[a],c=Xd(s);typeof c=="number"?c===-1?i=s.token:o|=c:i=s}t.push(C(i,o))}else t.push(C(r))}return t}function Li(e,t){return e[ri]=t,e.prototype[ri]=t,e}function Xd(e){return e[ri]}function Z2(e,t){let n=e.hasOwnProperty(p4);return n?e[p4]:null}function bc(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function wc(e){return e.flat(Number.POSITIVE_INFINITY)}function Mn(e,t){e.forEach(n=>Array.isArray(n)?Mn(n,t):t(n))}function zi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function v4(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sc(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ec(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function yn(e,t,n){let r=yt(e,t);return r>=0?e[r|1]=n:(r=~r,Ec(e,r,t,n)),r}function Cn(e,t){let n=yt(e,t);if(n>=0)return e[n|1]}function yt(e,t){return Jd(e,t,1)}function Jd(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),a=e[o<<n];if(t===a)return o<<n;a>t?i=o:r=o+1}return~(i<<n)}var X2={},ve=[],J2=new D(""),Di=new D("",-1),bi=new D(""),m4=class{get(t,n=I1){if(n===I1){let i=zc("",-201);throw i.name="\u0275NotFound",i}return n}};function wi(e){return e[vi]||null}function x2(e){return e[mi]||null}function Si(e){return e[hi]||null}function xc(e){return e[gi]||null}function N2(e){return{\u0275providers:e}}function Nc(...e){return{\u0275providers:Ei(!0,e),\u0275fromNgModule:!0}}function Ei(e,...t){let n=[],r=new Set,i,o=a=>{n.push(a)};return Mn(t,a=>{let s=a;pn(s,o,[],r)&&(i||=[],i.push(s))}),i!==void 0&&Ic(i,o),n}function Ic(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];xi(i,o=>{t(o,r)})}}function pn(e,t,n,r){if(e=ce(e),!e)return!1;let i=null,o=ti(e),a=!o&&x2(e);if(!o&&!a){let c=e.ngModule;if(o=ti(c),o)i=c;else return!1}else{if(a&&!a.standalone)return!1;i=e}let s=r.has(i);if(a){if(s)return!1;if(r.add(i),a.dependencies){let c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let l of c)pn(l,t,n,r)}}else if(o){if(o.imports!=null&&!s){r.add(i);let l;try{Mn(o.imports,f=>{pn(f,t,n,r)&&(l||=[],l.push(f))})}finally{}l!==void 0&&Ic(l,t)}if(!s){let l=Z2(i)||(()=>new i);t({provide:i,useFactory:l,deps:ve},i),t({provide:bi,useValue:i,multi:!0},i),t({provide:J2,useValue:()=>C(i),multi:!0},i)}let c=o.providers;if(c!=null&&!s){let l=e;xi(c,f=>{t(f,l)})}}else return!1;return i!==e&&e.providers!==void 0}function xi(e,t){for(let n of e)pi(n)&&(n=n.\u0275providers),Array.isArray(n)?xi(n,t):t(n)}var ep=j({provide:String,useValue:j});function Tc(e){return e!==null&&typeof e=="object"&&ep in e}function tp(e){return!!(e&&e.useExisting)}function np(e){return!!(e&&e.useFactory)}function _1(e){return typeof e=="function"}function _c(e){return!!e.useClass}var M4=new D(""),fn={},Mc={},ei;function Ct(){return ei===void 0&&(ei=new m4),ei}var we=class{},A1=class extends we{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,si(t,a=>this.processProvider(a)),this.records.set(Di,Mt(void 0,this)),i.has("environment")&&this.records.set(we,Mt(void 0,this));let o=this.records.get(M4);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(bi,ve,{self:!0}))}retrieve(t,n){let r=T1(n)||0;try{return this.get(t,I1,r)}catch(i){if(ft(i))return i;throw i}}destroy(){u4(this),this._destroyed=!0;let t=T(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(),T(t)}}onDestroy(t){return u4(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){u4(this);let n=s2(this),r=ge(void 0),i;try{return t()}finally{s2(n),ge(r)}}get(t,n=I1,r){if(u4(this),t.hasOwnProperty(vc))return t[vc](this);let i=T1(r),o,a=s2(this),s=ge(void 0);try{if(!(i&4)){let l=this.records.get(t);if(l===void 0){let f=sp(t)&&g4(t);f&&this.injectableDefInScope(f)?l=Mt(ai(t),fn):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,i)}let c=i&2?Ct():this.parent;return n=i&8&&n===I1?null:n,c.get(t,n)}catch(c){let l=qd(c);throw l===-200||l===-201?new z(l,null):c}finally{ge(s),s2(a)}}resolveInjectorInitializers(){let t=T(null),n=s2(this),r=ge(void 0),i;try{let o=this.get(J2,ve,{self:!0});for(let a of o)a()}finally{s2(n),ge(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(S2(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ce(t);let n=_1(t)?t:ce(t&&t.provide),r=ip(t);if(!_1(t)&&t.multi===!0){let i=this.records.get(n);i||(i=Mt(void 0,fn,!0),i.factory=()=>oi(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=T(null);try{if(n.value===Mc)throw yi(S2(t));return n.value===fn&&(n.value=Mc,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&ap(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ce(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 ai(e){let t=g4(e),n=t!==null?t.factory:Z2(e);if(n!==null)return n;if(e instanceof D)throw new z(204,!1);if(e instanceof Function)return rp(e);throw new z(204,!1)}function rp(e){if(e.length>0)throw new z(204,!1);let n=$d(e);return n!==null?()=>n.factory(e):()=>new e}function ip(e){if(Tc(e))return Mt(void 0,e.useValue);{let t=Ni(e);return Mt(t,fn)}}function Ni(e,t,n){let r;if(_1(e)){let i=ce(e);return Z2(i)||ai(i)}else if(Tc(e))r=()=>ce(e.useValue);else if(np(e))r=()=>e.useFactory(...oi(e.deps||[]));else if(tp(e))r=(i,o)=>C(ce(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=ce(e&&(e.useClass||e.provide));if(op(e))r=()=>new i(...oi(e.deps));else return Z2(i)||ai(i)}return r}function u4(e){if(e.destroyed)throw new z(205,!1)}function Mt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function op(e){return!!e.deps}function ap(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function sp(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function si(e,t){for(let n of e)Array.isArray(n)?si(n,t):n&&pi(n)?si(n.\u0275providers,t):t(n)}function Lt(e,t){let n;e instanceof A1?(u4(e),n=e):n=new ii(e);let r,i=s2(n),o=ge(void 0);try{return t()}finally{s2(i),ge(o)}}function Ac(){return Dc()!==void 0||E3()!=null}var Oe=0,x=1,A=2,te=3,Ve=4,Me=5,R1=6,zt=7,Q=8,F1=9,l2=10,H=11,Dt=12,Ii=13,P1=14,ye=15,e1=16,O1=17,f2=18,y4=19,Ti=20,w2=21,Ln=22,I2=23,Ie=24,V1=25,$=26,_i=1,Ai=6,t1=7,C4=8,B1=9,ie=10;function u2(e){return Array.isArray(e)&&typeof e[_i]=="object"}function Ke(e){return Array.isArray(e)&&e[_i]===!0}function ki(e){return(e.flags&4)!==0}function n1(e){return e.componentOffset>-1}function bt(e){return(e.flags&1)===1}function Xe(e){return!!e.template}function wt(e){return(e[A]&512)!==0}function j1(e){return(e[A]&256)===256}var kc="svg",Rc="math";function Be(e){for(;Array.isArray(e);)e=e[Oe];return e}function Ri(e){for(;Array.isArray(e);){if(typeof e[_i]=="object")return e;e=e[Oe]}return null}function Fi(e,t){return Be(t[e])}function Je(e,t){return Be(t[e.index])}function L4(e,t){return e.data[t]}function z4(e,t){return e[t]}function Pi(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function je(e,t){let n=t[e];return u2(n)?n:n[Oe]}function Fc(e){return(e[A]&4)===4}function zn(e){return(e[A]&128)===128}function Pc(e){return Ke(e[te])}function He(e,t){return t==null?null:e[t]}function Oi(e){e[O1]=0}function Vi(e){e[A]&1024||(e[A]|=1024,zn(e)&&r1(e))}function Oc(e,t){for(;e>0;)t=t[P1],e--;return t}function D4(e){return!!(e[A]&9216||e[Ie]?.dirty)}function Dn(e){e[l2].changeDetectionScheduler?.notify(8),e[A]&64&&(e[A]|=1024),D4(e)&&r1(e)}function r1(e){e[l2].changeDetectionScheduler?.notify(0);let t=Q2(e);for(;t!==null&&!(t[A]&8192||(t[A]|=8192,!zn(t)));)t=Q2(t)}function Bi(e,t){if(j1(e))throw new z(911,!1);e[w2]===null&&(e[w2]=[]),e[w2].push(t)}function Vc(e,t){if(e[w2]===null)return;let n=e[w2].indexOf(t);n!==-1&&e[w2].splice(n,1)}function Q2(e){let t=e[te];return Ke(t)?t[te]:t}function ji(e){return e[zt]??=[]}function Hi(e){return e.cleanup??=[]}function Bc(e,t,n,r){let i=ji(t);i.push(n),e.firstCreatePass&&Hi(e).push(r,i.length-1)}var k={lFrame:Jc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},b4=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(b4||{}),cp=0,ci=!1;function jc(){return k.lFrame.elementDepthCount}function Hc(){k.lFrame.elementDepthCount++}function Ui(){k.lFrame.elementDepthCount--}function bn(){return k.bindingsEnabled}function $i(){return k.skipHydrationRootTNode!==null}function Gi(e){return k.skipHydrationRootTNode===e}function Wi(){k.skipHydrationRootTNode=null}function b(){return k.lFrame.lView}function G(){return k.lFrame.tView}function Uc(e){return k.lFrame.contextLView=e,e[Q]}function $c(e){return k.lFrame.contextLView=null,e}function ee(){let e=qi();for(;e!==null&&e.type===64;)e=e.parent;return e}function qi(){return k.lFrame.currentTNode}function Gc(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function St(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function Yi(){return k.lFrame.isParent}function Zi(){k.lFrame.isParent=!1}function Wc(){return k.lFrame.contextLView}function Qi(e){di("Must never be called in production mode"),cp=e}function Ki(){return ci}function Et(e){let t=ci;return ci=e,t}function T2(){let e=k.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function qc(){return k.lFrame.bindingIndex}function Yc(e){return k.lFrame.bindingIndex=e}function d2(){return k.lFrame.bindingIndex++}function wn(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Zc(){return k.lFrame.inI18n}function Qc(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Sn(t)}function Kc(){return k.lFrame.currentDirectiveIndex}function Sn(e){k.lFrame.currentDirectiveIndex=e}function Xi(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ji(){return k.lFrame.currentQueryIndex}function En(e){k.lFrame.currentQueryIndex=e}function lp(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Me]:null}function eo(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=lp(o),i===null||(o=o[P1],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=k.lFrame=Xc();return r.currentTNode=t,r.lView=e,!0}function xn(e){let t=Xc(),n=e[x];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xc(){let e=k.lFrame,t=e===null?null:e.child;return t===null?Jc(e):t}function Jc(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 el(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var to=el;function Nn(){let e=el();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 tl(e){return(k.lFrame.contextLView=Oc(e,k.lFrame.contextLView))[Q]}function p2(){return k.lFrame.selectedIndex}function i1(e){k.lFrame.selectedIndex=e}function xt(){let e=k.lFrame;return L4(e.tView,e.selectedIndex)}function nl(){return k.lFrame.currentNamespace}var rl=!0;function In(){return rl}function w4(e){rl=e}var fp={elements:void 0};function Tn(){return fp}function li(e,t=null,n=null,r){let i=no(e,t,n,r);return i.resolveInjectorInitializers(),i}function no(e,t=null,n=null,r,i=new Set){let o=[n||ve,Nc(e)];return r=r||(typeof e=="object"?void 0:S2(e)),new A1(o,t||Ct(),r||null,i)}var le=class e{static THROW_IF_NOT_FOUND=I1;static NULL=new m4;static create(t,n){if(Array.isArray(t))return li({name:""},n,t,"");{let r=t.name??"";return li({name:r},t.parent,t.providers,r)}}static \u0275prov=L({token:e,providedIn:"any",factory:()=>C(Di)});static __NG_ELEMENT_ID__=-1},q=new D(""),e2=(()=>{class e{static __NG_ELEMENT_ID__=up;static __NG_ENV_ID__=n=>n}return e})(),h4=class extends e2{_lView;constructor(t){super(),this._lView=t}get destroyed(){return j1(this._lView)}onDestroy(t){let n=this._lView;return Bi(n,t),()=>Vc(n,t)}};function up(){return new h4(b())}var Ne=class{_console=console;handleError(t){this._console.error("ERROR",t)}},t2=new D("",{providedIn:"root",factory:()=>{let e=v(we),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ne),t.handl