@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
4 lines • 436 kB
JavaScript
import{a as T,b as V,d as Sn,i as Fe}from"./chunk-KAVP6UXH.js";function N(e){return typeof e=="function"}function Dr(e){return N(e?.lift)}function E(e){return t=>{if(Dr(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 st(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 En=st(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 y1(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=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 En?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{x6(o)}catch(a){t=t??[],a instanceof En?t=[...t,...a.errors]:t.push(a)}}if(t)throw new En(t)}}add(t){var n;if(t&&t!==this)if(this.closed)x6(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)&&y1(n,t)}remove(t){let{_finalizers:n}=this;n&&y1(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var wr=Y.EMPTY;function xn(e){return e instanceof Y||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function x6(e){N(e)?e():e.unsubscribe()}var Ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ct={setTimeout(e,t,...n){let{delegate:r}=ct;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ct;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Nn(e){ct.setTimeout(()=>{let{onUnhandledError:t}=Ye;if(t)t(e);else throw e})}function C1(){}var N6=Sr("C",void 0,void 0);function I6(e){return Sr("E",void 0,e)}function T6(e){return Sr("N",e,void 0)}function Sr(e,t,n){return{kind:e,value:t,error:n}}var L1=null;function lt(e){if(Ye.useDeprecatedSynchronousErrorHandling){let t=!L1;if(t&&(L1={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=L1;if(L1=null,n)throw r}}else e()}function A6(e){Ye.useDeprecatedSynchronousErrorHandling&&L1&&(L1.errorThrown=!0,L1.error=e)}var z1=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xn(t)&&t.add(this)):this.destination=$u}static create(t,n,r){return new Ze(t,n,r)}next(t){this.isStopped?xr(T6(t),this):this._next(t)}error(t){this.isStopped?xr(I6(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?xr(N6,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()}}},Hu=Function.prototype.bind;function Er(e,t){return Hu.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){In(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){In(r)}else In(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){In(n)}}},Ze=class extends z1{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&&Ye.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 In(e){Ye.useDeprecatedSynchronousErrorHandling?A6(e):Nn(e)}function Uu(e){throw e}function xr(e,t){let{onStoppedNotification:n}=Ye;n&&ct.setTimeout(()=>n(e,t))}var $u={closed:!0,next:C1,error:Uu,complete:C1};function I(e,t,n,r,i){return new Ir(e,t,n,r,i)}var Ir=class extends z1{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 b2(e,t){return E((n,r)=>{let i=0;n.subscribe(I(r,o=>e.call(t,o,i++)&&r.next(o)))})}var ft=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function Gu(...e){return Tr(e)}function Tr(e){return e.length===0?ge: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=qu(n)?n:new Ze(n,r,i);return lt(()=>{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=_6(r),new r((i,o)=>{let a=new Ze({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)}[ft](){return this}pipe(...n){return Tr(n)(this)}toPromise(n){return n=_6(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 _6(e){var t;return(t=e??Ye.Promise)!==null&&t!==void 0?t:Promise}function Wu(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function qu(e){return e&&e instanceof z1||Wu(e)&&xn(e)}var D2=new R(e=>e.complete());function ut(e){return e<=0?()=>D2:E((t,n)=>{let r=0;t.subscribe(I(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}var Ar;function Tn(){return Ar}function l2(e){let t=Ar;return Ar=e,t}var k6=Symbol("NotFound");function dt(e){return e===k6||e?.name==="\u0275NotFound"}var ue=null,An=!1,_r=1,Yu=null,ne=Symbol("SIGNAL");function A(e){let t=ue;return ue=e,t}function Rn(){return ue}var b1={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 D1(e){if(An)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||Qu(i,ue)))return;let o=ht(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&&O6(e,a)}function F6(){_r++}function Pn(e){if(!(ht(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===_r)){if(!e.producerMustRecompute(e)&&!mt(e)){Fn(e);return}e.producerRecomputeValue(e),Fn(e)}}function kr(e){if(e.consumers===void 0)return;let t=An;An=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Zu(r)}}finally{An=t}}function Fr(){return ue?.consumerAllowSignalWrites!==!1}function Zu(e){e.dirty=!0,kr(e),e.consumerMarkedDirty?.(e)}function Fn(e){e.dirty=!1,e.lastCleanEpoch=_r}function w1(e){return e&&R6(e),A(e)}function R6(e){e.producersTail=void 0,e.recomputing=!0}function pt(e,t){A(t),e&&P6(e)}function P6(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(ht(e))do n=Rr(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function mt(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Pn(n),r!==n.version))return!0}return!1}function S1(e){if(ht(e)){let t=e.producers;for(;t!==void 0;)t=Rr(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function O6(e,t){let n=e.consumersTail,r=ht(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)O6(i.producer,i)}function Rr(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,!ht(t)){let o=t.producers;for(;o!==void 0;)o=Rr(o)}return n}function ht(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function On(e){Yu?.(e)}function Qu(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 Bn(e,t){return Object.is(e,t)}function i4(e,t){let n=Object.create(Ku);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Pn(n),D1(n),n.value===r4)throw n.error;return n.value};return r[ne]=n,On(n),r}var _n=Symbol("UNSET"),kn=Symbol("COMPUTING"),r4=Symbol("ERRORED"),Ku=V(T({},b1),{value:_n,dirty:!0,error:null,equal:Bn,kind:"computed",producerMustRecompute(e){return e.value===_n||e.value===kn},producerRecomputeValue(e){if(e.value===kn)throw new Error("");let t=e.value;e.value=kn;let n=w1(e),r,i=!1;try{r=e.computation(),A(null),i=t!==_n&&t!==r4&&r!==r4&&e.equal(t,r)}catch(o){r=r4,e.error=o}finally{pt(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Xu(){throw new Error}var B6=Xu;function V6(e){B6(e)}function Pr(e){B6=e}var Ju=null;function Or(e,t){let n=Object.create(Vn);n.value=e,t!==void 0&&(n.equal=t);let r=()=>j6(n);return r[ne]=n,On(n),[r,a=>E1(n,a),a=>Br(n,a)]}function j6(e){return D1(e),e.value}function E1(e,t){Fr()||V6(e),e.equal(e.value,t)||(e.value=t,ed(e))}function Br(e,t){Fr()||V6(e),E1(e,t(e.value))}var Vn=V(T({},b1),{equal:Bn,value:void 0,kind:"signal"});function ed(e){e.version++,F6(),kr(e),Ju?.(e)}function Vr(){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,Dr(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 Y;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=Y.EMPTY)}return t}refCount(){return Vr()(this)}};var gt={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=gt;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new Y(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=gt;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=gt;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var H6=st(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{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 jn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new H6}next(n){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){lt(()=>{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(){lt(()=>{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 Y(()=>{this.currentObservers=null,y1(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 jn(t,n),e})(),jn=class extends ee{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 $2=class extends ee{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 ee{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 Hn=class extends Y{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 G2=class extends Hn{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,y1(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var vt=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)}};vt.now=o4.now;var W2=class extends vt{constructor(t,n=vt.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 x1=new W2(G2),U6=x1;var Un=class extends G2{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 $n=class extends W2{};var td=new $n(Un);var Gn=class extends G2{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=gt.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&&(gt.cancelAnimationFrame(n),t._scheduled=void 0)}};var Wn=class extends W2{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 nd=new Wn(Gn);function qn(e){return e&&N(e.schedule)}function Hr(e){return e[e.length-1]}function Yn(e){return N(Hr(e))?e.pop():void 0}function Re(e){return qn(Hr(e))?e.pop():void 0}function Zn(e,t){return typeof Hr(e)=="number"?e.pop():t}function xE(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 NE(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function G6(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 $6(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 N1(e){return this instanceof N1?(this.v=e,this):new N1(e)}function W6(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(M){return new Promise(function(y,v){o.push([d,M,y,v])>1||c(d,M)})},m&&(i[d]=m(i[d])))}function c(d,m){try{l(r[d](m))}catch(M){p(o[0][3],M)}}function l(d){d.value instanceof N1?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 q6(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 $6=="function"?$6(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 Mt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qn(e){return N(e?.then)}function Kn(e){return N(e[ft])}function Xn(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Jn(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 rd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var e3=rd();function t3(e){return N(e?.[e3])}function n3(e){return W6(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield N1(n.read());if(i)return yield N1(void 0);yield yield N1(r)}}finally{n.releaseLock()}})}function r3(e){return N(e?.getReader)}function B(e){if(e instanceof R)return e;if(e!=null){if(Kn(e))return id(e);if(Mt(e))return od(e);if(Qn(e))return ad(e);if(Xn(e))return Y6(e);if(t3(e))return sd(e);if(r3(e))return cd(e)}throw Jn(e)}function id(e){return new R(t=>{let n=e[ft]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function od(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ad(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Nn)})}function sd(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Y6(e){return new R(t=>{ld(e,t).catch(n=>t.error(n))})}function cd(e){return Y6(n3(e))}function ld(e,t){var n,r,i,o;return G6(this,void 0,void 0,function*(){try{for(n=q6(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 be(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=>be(r,e,()=>r.next(i),t),()=>be(r,e,()=>r.complete(),t),i=>be(r,e,()=>r.error(i),t)))})}function i3(e,t=0){return E((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Z6(e,t){return B(e).pipe(i3(t),c4(t))}function Q6(e,t){return B(e).pipe(i3(t),c4(t))}function K6(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 X6(e,t){return new R(n=>{let r;return be(n,t,()=>{r=e[e3](),be(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 o3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{be(n,t,()=>{let r=e[Symbol.asyncIterator]();be(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function J6(e,t){return o3(n3(e),t)}function ec(e,t){if(e!=null){if(Kn(e))return Z6(e,t);if(Mt(e))return K6(e,t);if(Qn(e))return Q6(e,t);if(Xn(e))return o3(e,t);if(t3(e))return X6(e,t);if(r3(e))return J6(e,t)}throw Jn(e)}function De(e,t){return t?ec(e,t):B(e)}function yt(...e){let t=Re(e);return De(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 fd(e){return!!e&&(e instanceof R||N(e.lift)&&N(e.subscribe))}var Qe=st(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ud(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 Qe)}})})}function dd(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new Ze({next:a=>{r(a),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Qe)}});e.subscribe(o)})}function tc(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:pd}=Array;function md(e,t){return pd(t)?e(...t):e(t)}function Ct(e){return se(t=>md(e,t))}var{isArray:hd}=Array,{getPrototypeOf:gd,prototype:vd,keys:Md}=Object;function a3(e){if(e.length===1){let t=e[0];if(hd(t))return{args:t,keys:null};if(yd(t)){let n=Md(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function yd(e){return e&&typeof e=="object"&&gd(e)===vd}function s3(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Cd(...e){let t=Re(e),n=Yn(e),{args:r,keys:i}=a3(e);if(r.length===0)return De([],t);let o=new R(Ld(r,t,i?a=>s3(i,a):ge));return n?o.pipe(Ct(n)):o}function Ld(e,t,n=ge){return r=>{nc(t,()=>{let{length:i}=e,o=new Array(i),a=i,s=i;for(let c=0;c<i;c++)nc(t,()=>{let l=De(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 nc(e,t,n){e?be(n,e,t):t()}function rc(e,t,n,r,i,o,a,s){let c=[],l=0,f=0,u=!1,p=()=>{u&&!c.length&&!l&&t.complete()},d=M=>l<r?m(M):c.push(M),m=M=>{o&&t.next(M),l++;let y=!1;B(n(M,f++)).subscribe(I(t,v=>{i?.(v),o?d(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;c.length&&l<r;){let v=c.shift();a?be(t,a,()=>m(v)):m(v)}p()}catch(v){t.error(v)}}))};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))(B(e(r,i))),n):(typeof t=="number"&&(n=t),E((r,i)=>rc(r,i,e,n)))}function I1(e=1/0){return Pe(ge,e)}function ic(){return I1(1)}function q2(...e){return ic()(De(e,Re(e)))}function zd(e){return new R(t=>{B(e()).subscribe(t)})}function $r(...e){let t=Yn(e),{args:n,keys:r}=a3(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;B(n[f]).subscribe(I(o,p=>{u||(u=!0,l--),s[f]=p},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(r?s3(r,s):s),o.complete())}))}});return t?i.pipe(Ct(t)):i}var bd=["addListener","removeListener"],Dd=["addEventListener","removeEventListener"],wd=["on","off"];function Gr(e,t,n,r){if(N(n)&&(r=n,n=void 0),r)return Gr(e,t,n).pipe(Ct(r));let[i,o]=xd(e)?Dd.map(a=>s=>e[a](t,s,n)):Sd(e)?bd.map(oc(e,t)):Ed(e)?wd.map(oc(e,t)):[];if(!i&&Mt(e))return Pe(a=>Gr(a,t,n))(B(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 oc(e,t){return n=>r=>e[n](t,r)}function Sd(e){return N(e.addListener)&&N(e.removeListener)}function Ed(e){return N(e.on)&&N(e.off)}function xd(e){return N(e.addEventListener)&&N(e.removeEventListener)}function T1(e=0,t,n=U6){let r=-1;return t!=null&&(qn(t)?n=t:r=t),new R(i=>{let o=tc(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=Re(e),n=Zn(e,1/0),r=e;return r.length?r.length===1?B(r[0]):I1(n)(De(r,t)):D2}function ac(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||B(e(l)).subscribe(o=I(n,s,c))},()=>{a=!0,(!r||!o||o.closed)&&n.complete()}))})}function Nd(e,t=x1){return ac(()=>T1(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=B(e(a,qr(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function c3(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 sc(e,t){return E(c3(e,t,arguments.length>=2,!1,!0))}var Id=(e,t)=>(e.push(t),e);function Td(){return E((e,t)=>{sc(Id,[])(e).subscribe(t)})}function l3(e,t){return N(t)?Pe(e,t,1):Pe(e,1)}function Ad(e,t=x1){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 cc(){return E((e,t)=>{e.subscribe(I(t,C1))})}function lc(e){return se(()=>e)}function Yr(e,t){return t?n=>q2(t.pipe(ut(1),cc()),n.pipe(Yr(e))):Pe((n,r)=>B(e(n,r)).pipe(ut(1),lc(n)))}function _d(e,t=x1){let n=T1(e,t);return Yr(()=>n)}function kd(e,t=ge){return e=e??Fd,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 Fd(e,t){return e===t}function f3(e=Rd){return E((t,n)=>{let r=!1;t.subscribe(I(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Rd(){return new Qe}function f4(e){return E((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?b2((i,o)=>e(i,o,r)):ge,ut(1),n?l4(t):f3(()=>new Qe))}function Zr(e){return e<=0?()=>D2: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 Od(e,t){let n=arguments.length>=2;return r=>r.pipe(e?b2((i,o)=>e(i,o,r)):ge,Zr(1),n?l4(t):f3(()=>new Qe))}function fc(...e){let t=Re(e),n=Zn(e,1/0);return E((r,i)=>{I1(n)(De([r,...e],t)).subscribe(i)})}function Bd(...e){return fc(...e)}function Vd(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>D2:E((r,i)=>{let o=0,a,s=()=>{if(a?.unsubscribe(),a=null,n!=null){let l=typeof n=="number"?T1(n):B(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 jd(e){return E((t,n)=>{let r,i=!1,o,a=()=>{r=t.subscribe(I(n,void 0,void 0,s=>{o||(o=new ee,B(e(o)).subscribe(I(n,()=>r?a():i=!0))),o&&o.next(s)})),i&&(r.unsubscribe(),r=null,i=!1,a())};a()})}function Hd(e,t){return E(c3(e,t,arguments.length>=2,!0))}function Kr(e={}){let{connector:t=()=>new ee,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 M=a;d(),M?.unsubscribe()};return E((M,y)=>{l++,!u&&!f&&p();let v=c=c??t();y.add(()=>{l--,l===0&&!u&&!f&&(s=Qr(m,i))}),v.subscribe(y),!a&&l>0&&(a=new Ze({next:P=>v.next(P),error:P=>{u=!0,p(),s=Qr(d,n,P),v.error(P)},complete:()=>{f=!0,p(),s=Qr(d,r),v.complete()}}),B(M).subscribe(a))})(o)}}function Qr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ze({next:()=>{r.unsubscribe(),e()}});return B(t(...n)).subscribe(r)}function u3(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 Ud(e){return b2((t,n)=>e<=n)}function $d(...e){let t=Re(e);return E((n,r)=>{(t?q2(e,n,t):q2(e,n)).subscribe(r)})}function d3(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++;B(e(c,f)).subscribe(i=I(r,u=>r.next(t?t(c,u,f,l++):u),()=>{i=null,s()}))},()=>{a=!0,s()}))})}function Xr(e){return E((t,n)=>{B(e).subscribe(I(n,()=>n.complete(),C1)),!n.closed&&t.subscribe(n)})}function Gd(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)}))}):ge}function uc(e){let t=A(null);try{return e()}finally{A(t)}}var dc=V(T({},b1),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function pc(e){if(e.dirty=!1,e.version>0&&!mt(e))return;e.version++;let t=w1(e);try{e.cleanup(),e.fn()}finally{pt(e,t)}}var g3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",L=class extends Error{code;constructor(t,n){super(E2(t,n)),this.code=t}};function Wd(e){return`NG0${Math.abs(e)}`}function E2(e,t){return`${Wd(e)}${t?": "+t:""}`}var Q2=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("")}function gc(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 v3(e,t){return e?t?`${e} ${t}`:e:t||""}var qd=j({__forward_ref__:j});function ie(e){return e.__forward_ref__=ie,e.toString=function(){return S2(this())},e}function ce(e){return li(e)?e():e}function li(e){return typeof e=="function"&&e.hasOwnProperty(qd)&&e.__forward_ref__===ie}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function h4(e){return Zd(e,M3)}function Yd(e){return h4(e)!==null}function Zd(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Qd(e){let t=e?.[M3]??null;return t||null}function ei(e){return e&&e.hasOwnProperty(m3)?e[m3]:null}var M3=j({\u0275prov:j}),m3=j({\u0275inj:j}),b=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=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function fi(e){return e&&!!e.\u0275providers}var ui=j({\u0275cmp:j}),di=j({\u0275dir:j}),pi=j({\u0275pipe:j}),mi=j({\u0275mod:j}),d4=j({\u0275fac:j}),R1=j({__NG_ELEMENT_ID__:j}),mc=j({__NG_ENV_ID__:j});function x2(e){return typeof e=="string"?e:e==null?"":String(e)}function vc(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():x2(e)}var Mc=j({ngErrorCode:j}),Kd=j({ngErrorMessage:j}),Xd=j({ngTokenPath:j});function hi(e,t){return yc("",-200,t)}function y3(e,t){throw new L(-201,!1)}function yc(e,t,n){let r=new L(t,e);return r[Mc]=t,r[Kd]=e,n&&(r[Xd]=n),r}function Jd(e){return e[Mc]}var ti;function Cc(){return ti}function ve(e){let t=ti;return ti=e,t}function gi(e,t,n){let r=h4(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;y3(e,"Injector")}var ep={},A1=ep,tp="__NG_DI_FLAG__",ni=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=_1(n)||0;try{return this.injector.get(t,r&8?null:A1,r)}catch(i){if(dt(i))return i;throw i}}};function np(e,t=0){let n=Tn();if(n===void 0)throw new L(-203,!1);if(n===null)return gi(e,void 0,t);{let r=rp(t),i=n.retrieve(e,r);if(dt(i)){if(r.optional)return null;throw i}return i}}function z(e,t=0){return(Cc()||np)(ce(e),t)}function g(e,t){return z(e,_1(t))}function _1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rp(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ri(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 L(900,!1);let i,o=0;for(let a=0;a<r.length;a++){let s=r[a],c=ip(s);typeof c=="number"?c===-1?i=s.token:o|=c:i=s}t.push(z(i,o))}else t.push(z(r))}return t}function ip(e){return e[tp]}function Y2(e,t){let n=e.hasOwnProperty(d4);return n?e[d4]:null}function Lc(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 zc(e){return e.flat(Number.POSITIVE_INFINITY)}function C3(e,t){e.forEach(n=>Array.isArray(n)?C3(n,t):t(n))}function vi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function g4(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function bc(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Dc(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 L3(e,t,n){let r=zt(e,t);return r>=0?e[r|1]=n:(r=~r,Dc(e,r,t,n)),r}function z3(e,t){let n=zt(e,t);if(n>=0)return e[n|1]}function zt(e,t){return op(e,t,1)}function op(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 K2={},de=[],X2=new b(""),Mi=new b("",-1),yi=new b(""),p4=class{get(t,n=A1){if(n===A1){let i=yc("",-201);throw i.name="\u0275NotFound",i}return n}};function Ci(e){return e[mi]||null}function N2(e){return e[ui]||null}function Li(e){return e[di]||null}function wc(e){return e[pi]||null}function I2(e){return{\u0275providers:e}}function Sc(...e){return{\u0275providers:zi(!0,e),\u0275fromNgModule:!0}}function zi(e,...t){let n=[],r=new Set,i,o=a=>{n.push(a)};return C3(t,a=>{let s=a;h3(s,o,[],r)&&(i||=[],i.push(s))}),i!==void 0&&Ec(i,o),n}function Ec(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];bi(i,o=>{t(o,r)})}}function h3(e,t,n,r){if(e=ce(e),!e)return!1;let i=null,o=ei(e),a=!o&&N2(e);if(!o&&!a){let c=e.ngModule;if(o=ei(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)h3(l,t,n,r)}}else if(o){if(o.imports!=null&&!s){r.add(i);let l;try{C3(o.imports,f=>{h3(f,t,n,r)&&(l||=[],l.push(f))})}finally{}l!==void 0&&Ec(l,t)}if(!s){let l=Y2(i)||(()=>new i);t({provide:i,useFactory:l,deps:de},i),t({provide:yi,useValue:i,multi:!0},i),t({provide:X2,useValue:()=>z(i),multi:!0},i)}let c=o.providers;if(c!=null&&!s){let l=e;bi(c,f=>{t(f,l)})}}else return!1;return i!==e&&e.providers!==void 0}function bi(e,t){for(let n of e)fi(n)&&(n=n.\u0275providers),Array.isArray(n)?bi(n,t):t(n)}var ap=j({provide:String,useValue:j});function xc(e){return e!==null&&typeof e=="object"&&ap in e}function sp(e){return!!(e&&e.useExisting)}function cp(e){return!!(e&&e.useFactory)}function k1(e){return typeof e=="function"}function Nc(e){return!!e.useClass}var v4=new b(""),p3={},hc={},Jr;function bt(){return Jr===void 0&&(Jr=new p4),Jr}var we=class{},F1=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,oi(t,a=>this.processProvider(a)),this.records.set(Mi,Lt(void 0,this)),i.has("environment")&&this.records.set(we,Lt(void 0,this));let o=this.records.get(v4);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(yi,de,{self:!0}))}retrieve(t,n){let r=_1(n)||0;try{return this.get(t,A1,r)}catch(i){if(dt(i))return i;throw i}}destroy(){u4(this),this._destroyed=!0;let t=A(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(),A(t)}}onDestroy(t){return u4(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){u4(this);let n=l2(this),r=ve(void 0),i;try{return t()}finally{l2(n),ve(r)}}get(t,n=A1,r){if(u4(this),t.hasOwnProperty(mc))return t[mc](this);let i=_1(r),o,a=l2(this),s=ve(void 0);try{if(!(i&4)){let l=this.records.get(t);if(l===void 0){let f=pp(t)&&h4(t);f&&this.injectableDefInScope(f)?l=Lt(ii(t),p3):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,i)}let c=i&2?bt():this.parent;return n=i&8&&n===A1?null:n,c.get(t,n)}catch(c){let l=Jd(c);throw l===-200||l===-201?new L(l,null):c}finally{ve(s),l2(a)}}resolveInjectorInitializers(){let t=A(null),n=l2(this),r=ve(void 0),i;try{let o=this.get(X2,de,{self:!0});for(let a of o)a()}finally{l2(n),ve(r),A(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=k1(t)?t:ce(t&&t.provide),r=fp(t);if(!k1(t)&&t.multi===!0){let i=this.records.get(n);i||(i=Lt(void 0,p3,!0),i.factory=()=>ri(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=A(null);try{if(n.value===hc)throw hi(S2(t));return n.value===p3&&(n.value=hc,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&dp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(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 ii(e){let t=h4(e),n=t!==null?t.factory:Y2(e);if(n!==null)return n;if(e instanceof b)throw new L(204,!1);if(e instanceof Function)return lp(e);throw new L(204,!1)}function lp(e){if(e.length>0)throw new L(204,!1);let n=Qd(e);return n!==null?()=>n.factory(e):()=>new e}function fp(e){if(xc(e))return Lt(void 0,e.useValue);{let t=Di(e);return Lt(t,p3)}}function Di(e,t,n){let r;if(k1(e)){let i=ce(e);return Y2(i)||ii(i)}else if(xc(e))r=()=>ce(e.useValue);else if(cp(e))r=()=>e.useFactory(...ri(e.deps||[]));else if(sp(e))r=(i,o)=>z(ce(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=ce(e&&(e.useClass||e.provide));if(up(e))r=()=>new i(...ri(e.deps));else return Y2(i)||ii(i)}return r}function u4(e){if(e.destroyed)throw new L(205,!1)}function Lt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function up(e){return!!e.deps}function dp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function pp(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function oi(e,t){for(let n of e)Array.isArray(n)?oi(n,t):n&&fi(n)?oi(n.\u0275providers,t):t(n)}function Dt(e,t){let n;e instanceof F1?(u4(e),n=e):n=new ni(e);let r,i=l2(n),o=ve(void 0);try{return t()}finally{l2(i),ve(o)}}function Ic(){return Cc()!==void 0||Tn()!=null}var Oe=0,x=1,_=2,re=3,Be=4,ye=5,P1=6,wt=7,X=8,T2=9,f2=10,H=11,St=12,wi=13,O1=14,Ce=15,J2=16,B1=17,u2=18,M4=19,Si=20,w2=21,b3=22,A2=23,Te=24,V1=25,j1=26,$=27,Ei=1,xi=6,e1=7,y4=8,H1=9,Z=10;function d2(e){return Array.isArray(e)&&typeof e[Ei]=="object"}function Xe(e){return Array.isArray(e)&&e[Ei]===!0}function Ni(e){return(e.flags&4)!==0}function t1(e){return e.componentOffset>-1}function Et(e){return(e.flags&1)===1}function Je(e){return!!e.template}function xt(e){return(e[_]&512)!==0}function U1(e){return(e[_]&256)===256}var Tc="svg",Ac="math";function Ve(e){for(;Array.isArray(e);)e=e[Oe];return e}function Ii(e){for(;Array.isArray(e);){if(typeof e[Ei]=="object")return e;e=e[Oe]}return null}function Ti(e,t){return Ve(t[e])}function e2(e,t){return Ve(t[e.index])}function C4(e,t){return e.data[t]}function Nt(e,t){return e[t]}function L4(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 d2(n)?n:n[Oe]}function _c(e){return(e[_]&4)===4}function D3(e){return(e[_]&128)===128}function kc(e){return Xe(e[re])}function He(e,t){return t==null?null:e[t]}function Ai(e){e[B1]=0}function _i(e){e[_]&1024||(e[_]|=1024,D3(e)&&n1(e))}function Fc(e,t){for(;e>0;)t=t[O1],e--;return t}function z4(e){return!!(e[_]&9216||e[Te]?.dirty)}function w3(e){e[f2].changeDetectionScheduler?.notify(8),e[_]&64&&(e[_]|=1024),z4(e)&&n1(e)}function n1(e){e[f2].changeDetectionScheduler?.notify(0);let t=Z2(e);for(;t!==null&&!(t[_]&8192||(t[_]|=8192,!D3(t)));)t=Z2(t)}function ki(e,t){if(U1(e))throw new L(911,!1);e[w2]===null&&(e[w2]=[]),e[w2].push(t)}function Rc(e,t){if(e[w2]===null)return;let n=e[w2].indexOf(t);n!==-1&&e[w2].splice(n,1)}function Z2(e){let t=e[re];return Xe(t)?t[re]:t}function Fi(e){return e[wt]??=[]}function Ri(e){return e.cleanup??=[]}function Pc(e,t,n,r){let i=Fi(t);i.push(n),e.firstCreatePass&&Ri(e).push(r,i.length-1)}var F={lFrame:Zc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ai=!1;function Oc(){return F.lFrame.elementDepthCount}function Bc(){F.lFrame.elementDepthCount++}function Pi(){F.lFrame.elementDepthCount--}function S3(){return F.bindingsEnabled}function Oi(){return F.skipHydrationRootTNode!==null}function Bi(e){return F.skipHydrationRootTNode===e}function Vi(){F.skipHydrationRootTNode=null}function D(){return F.lFrame.lView}function G(){return F.lFrame.tView}function Vc(e){return F.lFrame.contextLView=e,e[X]}function jc(e){return F.lFrame.contextLView=null,e}function te(){let e=ji();for(;e!==null&&e.type===64;)e=e.parent;return e}function ji(){return F.lFrame.currentTNode}function Hc(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function $1(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function Hi(){return F.lFrame.isParent}function Ui(){F.lFrame.isParent=!1}function $i(){return F.lFrame.contextLView}function Gi(){return ai}function It(e){let t=ai;return ai=e,t}function _2(){let e=F.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Uc(){return F.lFrame.bindingIndex}function $c(e){return F.lFrame.bindingIndex=e}function p2(){return F.lFrame.bindingIndex++}function E3(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Gc(){return F.lFrame.inI18n}function Wc(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,x3(t)}function qc(){return F.lFrame.currentDirectiveIndex}function x3(e){F.lFrame.currentDirectiveIndex=e}function Wi(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function N3(){return F.lFrame.currentQueryIndex}function b4(e){F.lFrame.currentQueryIndex=e}function mp(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[ye]:null}function qi(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=mp(o),i===null||(o=o[O1],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=F.lFrame=Yc();return r.currentTNode=t,r.lView=e,!0}function I3(e){let t=Yc(),n=e[x];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Yc(){let e=F.lFrame,t=e===null?null:e.child;return t===null?Zc(e):t}function Zc(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 Qc(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yi=Qc;function T3(){let e=Qc();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 Kc(e){return(F.lFrame.contextLView=Fc(e,F.lFrame.contextLView))[X]}function t2(){return F.lFrame.selectedIndex}function r1(e){F.lFrame.selectedIndex=e}function Tt(){let e=F.lFrame;return C4(e.tView,e.selectedIndex)}function Xc(){return F.lFrame.currentNamespace}var Jc=!0;function A3(){return Jc}function D4(e){Jc=e}function si(e,t=null,n=null,r){let i=Zi(e,t,n,r);return i.resolveInjectorInitializers(),i}function Zi(e,t=null,n=null,r,i=new Set){let o=[n||de,Sc(e)];return r=r||(typeof e=="object"?void 0:S2(e)),new F1(o,t||bt(),r||null,i)}var Me=class e{static THROW_IF_NOT_FOUND=A1;static NULL=new p4;static create(t,n){if(Array.isArray(t))return si({name:""},n,t,"");{let r=t.name??"";return si({name:r},t.parent,t.providers,r)}}static \u0275prov=C({token:e,providedIn:"any",factory:()=>z(Mi)});static __NG_ELEMENT_ID__=-1},Q=new b(""),Ae=(()=>{class e{static __NG_ELEMENT_ID__=hp;static __NG_ENV_ID__=n=>n}return e})(),m4=class extends Ae{_lView;constructor(t){super(),this._lView=t}get destroyed(){return U1(this._lView)}onDestroy(t){let n=this._lView;return ki(n,t),()=>Rc(n,t)}};function hp(){return new m4(D())}var Ne=class{_console=console;handleError(t){this._console.error("ERROR",t)}},n2=new b("",{providedIn:"root",factory:()=>{let e=g(we),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ne),t.handleError(n))}}}),el={provide:X2,useValue:()=>void g(Ne),multi:!0};function Qi(e){return typeof e=="function"&&e[ne]!==void 0}function m2(e,t){let[n,r,i]=Or(e,t?.equal),o=n,a=o[ne];return o.set=r,o.update=i,o.asReadonly=_3.bind(o),o}function _3(){let e=this[ne];if(e.readonlyFn===void 0){let t=()=>this();t[ne]=e,e.readonlyFn=t}return e.readonlyFn}function Ki(e){return Qi(e)&&typeof e.set=="function"}var At=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=gp}return e})();function gp(){return new At(D(),te())}var Ke=class{},_t=new b("",{providedIn:"root",factory:()=>!1});var Xi=new b(""),J