UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

7 lines • 217 kB
var Cp=Object.create;var Xn=Object.defineProperty,bp=Object.defineProperties,_p=Object.getOwnPropertyDescriptor,Mp=Object.getOwnPropertyDescriptors,Tp=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,Sp=Object.getPrototypeOf,ei=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable;var pu=(e,t,n)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t)=>{for(var n in t||(t={}))ei.call(t,n)&&pu(e,n,t[n]);if(Jn)for(var n of Jn(t))hu.call(t,n)&&pu(e,n,t[n]);return e},Se=(e,t)=>bp(e,Mp(t));var sw=e=>t=>{var n=e[t];if(n)return n();throw new Error("Module not found in bundle: "+t)};var aw=(e,t)=>{var n={};for(var r in e)ei.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jn)for(var r of Jn(e))t.indexOf(r)<0&&hu.call(e,r)&&(n[r]=e[r]);return n};var uw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cw=(e,t)=>{for(var n in t)Xn(e,n,{get:t[n],enumerable:!0})},xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tp(t))!ei.call(e,o)&&o!==n&&Xn(e,o,{get:()=>t[o],enumerable:!(r=_p(t,o))||r.enumerable});return e};var lw=(e,t,n)=>(n=e!=null?Cp(Sp(e)):{},xp(t||!e||!e.__esModule?Xn(n,"default",{value:e,enumerable:!0}):n,e));var gu=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function y(e){return typeof e=="function"}function Ft(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 er=Ft(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ct(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(y(r))try{r()}catch(i){t=i instanceof er?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{mu(i)}catch(s){t=t!=null?t:[],s instanceof er?t=[...t,...s.errors]:t.push(s)}}if(t)throw new er(t)}}add(t){var n;if(t&&t!==this)if(this.closed)mu(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)&&ct(n,t)}remove(t){let{_finalizers:n}=this;n&&ct(n,t),t instanceof e&&t._removeParent(this)}};$.EMPTY=(()=>{let e=new $;return e.closed=!0,e})();var ti=$.EMPTY;function tr(e){return e instanceof $||e&&"closed"in e&&y(e.remove)&&y(e.add)&&y(e.unsubscribe)}function mu(e){y(e)?e():e.unsubscribe()}var me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pt={setTimeout(e,t,...n){let{delegate:r}=Pt;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pt;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function nr(e){Pt.setTimeout(()=>{let{onUnhandledError:t}=me;if(t)t(e);else throw e})}function je(){}var yu=ni("C",void 0,void 0);function vu(e){return ni("E",void 0,e)}function Du(e){return ni("N",e,void 0)}function ni(e,t,n){return{kind:e,value:t,error:n}}var lt=null;function Lt(e){if(me.useDeprecatedSynchronousErrorHandling){let t=!lt;if(t&&(lt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=lt;if(lt=null,n)throw r}}else e()}function Eu(e){me.useDeprecatedSynchronousErrorHandling&&lt&&(lt.errorThrown=!0,lt.error=e)}var dt=class extends ${constructor(t){super(),this.isStopped=!1,t?(this.destination=t,tr(t)&&t.add(this)):this.destination=Op}static create(t,n,r){return new ye(t,n,r)}next(t){this.isStopped?oi(Du(t),this):this._next(t)}error(t){this.isStopped?oi(vu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?oi(yu,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()}}},Np=Function.prototype.bind;function ri(e,t){return Np.call(e,t)}var ii=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){rr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){rr(r)}else rr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){rr(n)}}},ye=class extends dt{constructor(t,n,r){super();let o;if(y(t)||!t)o={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:r!=null?r:void 0};else{let i;this&&me.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ri(t.next,i),error:t.error&&ri(t.error,i),complete:t.complete&&ri(t.complete,i)}):o=t}this.destination=new ii(o)}};function rr(e){me.useDeprecatedSynchronousErrorHandling?Eu(e):nr(e)}function Ap(e){throw e}function oi(e,t){let{onStoppedNotification:n}=me;n&&Pt.setTimeout(()=>n(e,t))}var Op={closed:!0,next:je,error:Ap,complete:je};var jt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Z(e){return e}function Rp(...e){return si(e)}function si(e){return e.length===0?Z:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Fp(n)?n:new ye(n,r,o);return Lt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Iu(r),new r((o,i)=>{let s=new ye({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[jt](){return this}pipe(...n){return si(n)(this)}toPromise(n){return n=Iu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Iu(e){var t;return(t=e!=null?e:me.Promise)!==null&&t!==void 0?t:Promise}function kp(e){return e&&y(e.next)&&y(e.error)&&y(e.complete)}function Fp(e){return e&&e instanceof dt||kp(e)&&tr(e)}var wu=Ft(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new or(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new wu}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:o,observers:i}=this;return r||o?ti:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,ct(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new or(t,n),e})(),or=class extends re{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:ti}};var ve=Ft(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Pp(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new ye({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new ve)}});e.subscribe(i)})}var ir=class extends ${constructor(t,n){super()}schedule(t,n=0){return this}};var dn={setInterval(e,t,...n){let{delegate:r}=dn;return r!=null&&r.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=dn;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var sr=class extends ir{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return dn.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&&dn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,ct(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var fn={now(){return(fn.delegate||Date).now()},delegate:void 0};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=fn.now;var ar=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 ft=new ar(sr),Cu=ft;function ai(e){return y(e==null?void 0:e.lift)}function C(e){return t=>{if(ai(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 D(e,t,n,r,o){return new ui(e,t,n,r,o)}var ui=class extends dt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function bu(e,t=ft){return C((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l<c){o=this.schedule(void 0,c-l),r.add(o);return}a()}n.subscribe(D(r,c=>{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}var pt=new S(e=>e.complete());function Bt(e){return e<=0?()=>pt:C((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ci(){return C((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var li=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ai(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==null||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new $;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=$.EMPTY)}return t}refCount(){return ci()(this)}};var pn=class extends re{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 ur=class extends re{constructor(t=1/0,n=1/0,r=fn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}}};function cr(e){return e&&y(e.schedule)}function _u(e){return e[e.length-1]}function Qe(e){return y(_u(e))?e.pop():void 0}function Ke(e){return cr(_u(e))?e.pop():void 0}function Tu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Mu(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 ht(e){return this instanceof ht?(this.v=e,this):new ht(e)}function Su(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(g){return new Promise(function(E,m){i.push([f,g,E,m])>1||u(f,g)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(g){p(i[0][3],g)}}function c(f){f.value instanceof ht?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function xu(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 Mu=="function"?Mu(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Ht=e=>e&&typeof e.length=="number"&&typeof e!="function";function lr(e){return y(e==null?void 0:e.then)}function dr(e){return y(e[jt])}function fr(e){return Symbol.asyncIterator&&y(e==null?void 0:e[Symbol.asyncIterator])}function pr(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 Lp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var hr=Lp();function gr(e){return y(e==null?void 0:e[hr])}function mr(e){return Su(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ht(n.read());if(o)return yield ht(void 0);yield yield ht(r)}}finally{n.releaseLock()}})}function yr(e){return y(e==null?void 0:e.getReader)}function A(e){if(e instanceof S)return e;if(e!=null){if(dr(e))return jp(e);if(Ht(e))return Vp(e);if(lr(e))return Bp(e);if(fr(e))return Nu(e);if(gr(e))return Hp(e);if(yr(e))return $p(e)}throw pr(e)}function jp(e){return new S(t=>{let n=e[jt]();if(y(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vp(e){return new S(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Bp(e){return new S(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,nr)})}function Hp(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Nu(e){return new S(t=>{Up(e,t).catch(n=>t.error(n))})}function $p(e){return Nu(mr(e))}function Up(e,t){var n,r,o,i;return Tu(this,void 0,void 0,function*(){try{for(n=xu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function oe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function vr(e,t=0){return C((n,r)=>{n.subscribe(D(r,o=>oe(r,e,()=>r.next(o),t),()=>oe(r,e,()=>r.complete(),t),o=>oe(r,e,()=>r.error(o),t)))})}function Dr(e,t=0){return C((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Au(e,t){return A(e).pipe(Dr(t),vr(t))}function Ou(e,t){return A(e).pipe(Dr(t),vr(t))}function Ru(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ku(e,t){return new S(n=>{let r;return oe(n,t,()=>{r=e[hr](),oe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>y(r==null?void 0:r.return)&&r.return()})}function Er(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{oe(n,t,()=>{let r=e[Symbol.asyncIterator]();oe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Fu(e,t){return Er(mr(e),t)}function Pu(e,t){if(e!=null){if(dr(e))return Au(e,t);if(Ht(e))return Ru(e,t);if(lr(e))return Ou(e,t);if(fr(e))return Er(e,t);if(gr(e))return ku(e,t);if(yr(e))return Fu(e,t)}throw pr(e)}function Je(e,t){return t?Pu(e,t):A(e)}function di(...e){let t=Ke(e);return Je(e,t)}function zp(e,t){let n=y(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function Wp(e){return!!e&&(e instanceof S||y(e.lift)&&y(e.subscribe))}function Gp(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):n?r(t.defaultValue):o(new ve)}})})}function Lu(e){return e instanceof Date&&!isNaN(e)}function Ve(e,t){return C((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:qp}=Array;function Zp(e,t){return qp(t)?e(...t):e(t)}function $t(e){return Ve(t=>Zp(e,t))}var{isArray:Yp}=Array,{getPrototypeOf:Qp,prototype:Kp,keys:Jp}=Object;function Ir(e){if(e.length===1){let t=e[0];if(Yp(t))return{args:t,keys:null};if(Xp(t)){let n=Jp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Xp(e){return e&&typeof e=="object"&&Qp(e)===Kp}function wr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function eh(...e){let t=Ke(e),n=Qe(e),{args:r,keys:o}=Ir(e);if(r.length===0)return Je([],t);let i=new S(th(r,t,o?s=>wr(o,s):Z));return n?i.pipe($t(n)):i}function th(e,t,n=Z){return r=>{ju(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u<o;u++)ju(t,()=>{let c=Je(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ju(e,t,n){e?oe(n,e,t):t()}function Vu(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=g=>c<r?h(g):u.push(g),h=g=>{i&&t.next(g),c++;let E=!1;A(n(g,l++)).subscribe(D(t,m=>{o==null||o(m),i?f(m):t.next(m)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;u.length&&c<r;){let m=u.shift();s?oe(t,s,()=>h(m)):h(m)}p()}catch(m){t.error(m)}}))};return e.subscribe(D(t,f,()=>{d=!0,p()})),()=>{a==null||a()}}function De(e,t,n=1/0){return y(t)?De((r,o)=>Ve((i,s)=>t(r,i,o,s))(A(e(r,o))),n):(typeof t=="number"&&(n=t),C((r,o)=>Vu(r,o,e,n)))}function fi(e=1/0){return De(Z,e)}function Bu(){return fi(1)}function Xe(...e){return Bu()(Je(e,Ke(e)))}function nh(e){return new S(t=>{A(e()).subscribe(t)})}function rh(...e){let t=Qe(e),{args:n,keys:r}=Ir(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l<s;l++){let d=!1;A(n[l]).subscribe(D(i,p=>{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?wr(r,a):a),i.complete())}))}});return t?o.pipe($t(t)):o}var oh=["addListener","removeListener"],ih=["addEventListener","removeEventListener"],sh=["on","off"];function pi(e,t,n,r){if(y(n)&&(r=n,n=void 0),r)return pi(e,t,n).pipe($t(r));let[o,i]=ch(e)?ih.map(s=>a=>e[s](t,a,n)):ah(e)?oh.map(Hu(e,t)):uh(e)?sh.map(Hu(e,t)):[];if(!o&&Ht(e))return De(s=>pi(s,t,n))(A(e));if(!o)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1<u.length?u:u[0]);return o(a),()=>i(a)})}function Hu(e,t){return n=>r=>e[n](t,r)}function ah(e){return y(e.addListener)&&y(e.removeListener)}function uh(e){return y(e.on)&&y(e.off)}function ch(e){return y(e.addEventListener)&&y(e.removeEventListener)}function hn(e=0,t,n=Cu){let r=-1;return t!=null&&(cr(t)?n=t:r=t),new S(o=>{let i=Lu(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function lh(e=0,t=ft){return e<0&&(e=0),hn(e,e,t)}var{isArray:dh}=Array;function Cr(e){return e.length===1&&dh(e[0])?e[0]:e}function gt(e,t){return C((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function fh(...e){return e=Cr(e),e.length===1?A(e[0]):new S(ph(e))}function ph(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r<e.length;r++)n.push(A(e[r]).subscribe(D(t,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(o)})))}}function hh(...e){let t=Qe(e),n=Cr(e);return n.length?new S(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s<n.length;s++)A(n[s]).subscribe(D(r,a=>{if(o[s].push(a),o.every(u=>u.length)){let u=o.map(c=>c.shift());r.next(t?t(...u):u),o.some((c,l)=>!c.length&&i[l])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):pt}function $u(e){return C((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=A(e(s,$u(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Uu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function gh(e,t){return y(t)?De(e,t,1):De(e,1)}function gn(e){return C((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function zu(){return C((e,t)=>{e.subscribe(D(t,je))})}function Wu(e){return Ve(()=>e)}function hi(e,t){return t?n=>Xe(t.pipe(Bt(1),zu()),n.pipe(hi(e))):De((n,r)=>A(e(n,r)).pipe(Bt(1),Wu(n)))}function mh(e,t=ft){let n=hn(e,t);return hi(()=>n)}function yh(e,t=Z){return e=e!=null?e:vh,C((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function vh(e,t){return e===t}function br(e=Dh){return C((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Dh(){return new ve}function Eh(...e){return t=>Xe(t,di(...e))}function Ih(e){return C((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function wh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?gt((o,i)=>e(o,i,r)):Z,Bt(1),n?gn(t):br(()=>new ve))}function gi(e){return e<=0?()=>pt:C((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ch(e,t){let n=arguments.length>=2;return r=>r.pipe(e?gt((o,i)=>e(o,i,r)):Z,gi(1),n?gn(t):br(()=>new ve))}function bh(e,t){return C(Uu(e,t,arguments.length>=2,!0))}function yi(e={}){let{connector:t=()=>new re,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a==null||a.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let g=s;f(),g==null||g.unsubscribe()};return C((g,E)=>{c++,!d&&!l&&p();let m=u=u!=null?u:t();E.add(()=>{c--,c===0&&!d&&!l&&(a=mi(h,o))}),m.subscribe(E),!s&&c>0&&(s=new ye({next:P=>m.next(P),error:P=>{d=!0,p(),a=mi(f,n,P),m.error(P)},complete:()=>{l=!0,p(),a=mi(f,r),m.complete()}}),A(g).subscribe(s))})(i)}}function mi(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ye({next:()=>{r.unsubscribe(),e()}});return A(t(...n)).subscribe(r)}function _h(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e!=null?e:1/0,yi({connector:()=>new ur(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Mh(e){return gt((t,n)=>e<=n)}function Th(...e){let t=Ke(e);return C((n,r)=>{(t?Xe(e,n,t):Xe(e,n)).subscribe(r)})}function Gu(e,t){return C((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o==null||o.unsubscribe();let c=0,l=i++;A(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function qu(e){return C((t,n)=>{A(e).subscribe(D(n,()=>n.complete(),je)),!n.closed&&t.subscribe(n)})}function Sh(e,t,n){let r=y(e)||t||n?{next:e,error:t,complete:n}:e;return r?C((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Z}function xh(...e){let t=Qe(e);return C((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let u=0;u<o;u++)A(e[u]).subscribe(D(r,c=>{i[u]=c,!a&&!s[u]&&(s[u]=!0,(a=s.every(Z))&&(s=null))},je));n.subscribe(D(r,u=>{if(a){let c=[u,...i];r.next(t?t(...c):c)}}))})}function Yu(e,t){return Object.is(e,t)}var H=null,_r=!1,Ii=1,X=Symbol("SIGNAL");function T(e){let t=H;return H=e,t}function Qu(){return H}var yn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function vn(e){if(_r)throw new Error("");if(H===null)return;H.consumerOnSignalRead(e);let t=H.nextProducerIndex++;if(xr(H),t<H.producerNode.length&&H.producerNode[t]!==e&&mn(H)){let n=H.producerNode[t];Sr(n,H.producerIndexOfThis[t])}H.producerNode[t]!==e&&(H.producerNode[t]=e,H.producerIndexOfThis[t]=mn(H)?ec(e,H,t):0),H.producerLastReadVersion[t]=e.version}function Nh(){Ii++}function Ku(e){if(!(mn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ii)){if(!e.producerMustRecompute(e)&&!Ci(e)){Zu(e);return}e.producerRecomputeValue(e),Zu(e)}}function Ju(e){if(e.liveConsumerNode===void 0)return;let t=_r;_r=!0;try{for(let n of e.liveConsumerNode)n.dirty||Ah(n)}finally{_r=t}}function Xu(){return(H==null?void 0:H.consumerAllowSignalWrites)!==!1}function Ah(e){var t;e.dirty=!0,Ju(e),(t=e.consumerMarkedDirty)==null||t.call(e,e)}function Zu(e){e.dirty=!1,e.lastCleanEpoch=Ii}function Tr(e){return e&&(e.nextProducerIndex=0),T(e)}function wi(e,t){if(T(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(mn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Sr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ci(e){xr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Ku(n),r!==n.version))return!0}return!1}function bi(e){if(xr(e),mn(e))for(let t=0;t<e.producerNode.length;t++)Sr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ec(e,t,n){if(tc(e),e.liveConsumerNode.length===0&&nc(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ec(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Sr(e,t){if(tc(e),e.liveConsumerNode.length===1&&nc(e))for(let r=0;r<e.producerNode.length;r++)Sr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];xr(o),o.producerIndexOfThis[r]=t}}function mn(e){var t,n;return e.consumerIsAlwaysLive||((n=(t=e==null?void 0:e.liveConsumerNode)==null?void 0:t.length)!=null?n:0)>0}function xr(e){var t,n,r;(t=e.producerNode)!=null||(e.producerNode=[]),(n=e.producerIndexOfThis)!=null||(e.producerIndexOfThis=[]),(r=e.producerLastReadVersion)!=null||(e.producerLastReadVersion=[])}function tc(e){var t,n;(t=e.liveConsumerNode)!=null||(e.liveConsumerNode=[]),(n=e.liveConsumerIndexOfThis)!=null||(e.liveConsumerIndexOfThis=[])}function nc(e){return e.producerNode!==void 0}function _i(e,t){let n=Object.create(Oh);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ku(n),vn(n),n.value===Mr)throw n.error;return n.value};return r[X]=n,r}var vi=Symbol("UNSET"),Di=Symbol("COMPUTING"),Mr=Symbol("ERRORED"),Oh=Se(Te({},yn),{value:vi,dirty:!0,error:null,equal:Yu,kind:"computed",producerMustRecompute(e){return e.value===vi||e.value===Di},producerRecomputeValue(e){if(e.value===Di)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Di;let n=Tr(e),r,o=!1;try{r=e.computation(),T(null),o=t!==vi&&t!==Mr&&r!==Mr&&e.equal(t,r)}catch(i){r=Mr,e.error=i}finally{wi(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Rh(){throw new Error}var rc=Rh;function oc(e){rc(e)}function ic(e){rc=e}var Ei=null;function sc(e,t){let n=Object.create(Mi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(vn(n),n.value);return r[X]=n,r}function Dn(e,t){Xu()||oc(e),e.equal(e.value,t)||(e.value=t,kh(e))}function ac(e,t){Xu()||oc(e),Dn(e,t(e.value))}var Mi=Se(Te({},yn),{equal:Yu,value:void 0,kind:"signal"});function kh(e){e.version++,Nh(),Ju(e),Ei==null||Ei()}function uc(e){let t=T(null);try{return e()}finally{T(t)}}var Ti;function En(){return Ti}function Be(e){let t=Ti;return Ti=e,t}var Si=Symbol("NotFound");var sl="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(t,n){super(na(t,n)),this.code=t}};function na(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var mo=Symbol("InputSignalNode#UNSET"),al=Se(Te({},Mi),{transformFn:void 0,applyValueToInputSignal(e,t){Dn(e,t)}});function ul(e,t){let n=Object.create(al);n.value=e,n.transformFn=t==null?void 0:t.transform;function r(){if(vn(n),n.value===mo){let i=null;throw new b(-950,i)}return n.value}return r[X]=n,r}function Ln(e){return{toString:e}.toString()}var Nr="__parameters__";function Fh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function cl(e,t,n){return Ln(()=>{let r=Fh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Nr)?u[Nr]:Object.defineProperty(u,Nr,{value:[]})[Nr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var et=globalThis;function k(e){for(let t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function Ph(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function se(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(se).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 Ui(e,t){return e?t?`${e} ${t}`:e:t||""}var Lh=k({__forward_ref__:k});function ll(e){return e.__forward_ref__=ll,e.toString=function(){return se(this())},e}function Y(e){return dl(e)?e():e}function dl(e){return typeof e=="function"&&e.hasOwnProperty(Lh)&&e.__forward_ref__===ll}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ra(e){return{providers:e.providers||[],imports:e.imports||[]}}function yo(e){return cc(e,fl)||cc(e,pl)}function lx(e){return yo(e)!==null}function cc(e,t){return e.hasOwnProperty(t)?e[t]:null}function jh(e){let t=e&&(e[fl]||e[pl]);return t||null}function lc(e){return e&&(e.hasOwnProperty(dc)||e.hasOwnProperty(Vh))?e[dc]:null}var fl=k({\u0275prov:k}),dc=k({\u0275inj:k}),pl=k({ngInjectableDef:k}),Vh=k({ngInjectorDef:k}),N=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=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function hl(e){return e&&!!e.\u0275providers}var Bh=k({\u0275cmp:k}),Hh=k({\u0275dir:k}),$h=k({\u0275pipe:k}),Uh=k({\u0275mod:k}),Hr=k({\u0275fac:k}),bn=k({__NG_ELEMENT_ID__:k}),fc=k({__NG_ENV_ID__:k});function Ne(e){return typeof e=="string"?e:e==null?"":String(e)}function zh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ne(e)}function gl(e,t){throw new b(-200,e)}function oa(e,t){throw new b(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),zi;function ml(){return zi}function ie(e){let t=zi;return zi=e,t}function yl(e,t,n){let r=yo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;oa(e,"Injector")}var Wh={},yt=Wh,Wi="__NG_DI_FLAG__",$r=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?Si:yt,r)}},Ur="ngTempTokenPath",Gh="ngTokenPath",qh=/\n/gm,Zh="\u0275",pc="__source";function Yh(e,t=x.Default){if(En()===void 0)throw new b(-203,!1);if(En()===null)return yl(e,void 0,t);{let n=En(),r;return n instanceof $r?r=n.injector:r=n,r.get(e,t&x.Optional?null:void 0,t)}}function U(e,t=x.Default){return(ml()||Yh)(Y(e),t)}function I(e,t=x.Default){return U(e,vo(t))}function vo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gi(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new b(900,!1);let o,i=x.Default;for(let s=0;s<r.length;s++){let a=r[s],u=Qh(a);typeof u=="number"?u===-1?o=a.token:i|=u:o=a}t.push(U(o,i))}else t.push(U(r))}return t}function vl(e,t){return e[Wi]=t,e.prototype[Wi]=t,e}function Qh(e){return e[Wi]}function Kh(e,t,n,r){let o=e[Ur];throw t[pc]&&o.unshift(t[pc]),e.message=Jh(` `+e.message,o,n,r),e[Gh]=o,e[Ur]=null,e}function Jh(e,t,n,r=null){e=e&&e.charAt(0)===` `&&e.charAt(1)==Zh?e.slice(2):e;let o=se(t);if(Array.isArray(t))o=t.map(se).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):se(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(qh,` `)}`}var Dl=vl(cl("Optional"),8);var El=vl(cl("SkipSelf"),4);function Dt(e,t){let n=e.hasOwnProperty(Hr);return n?e[Hr]:null}function Xh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function eg(e){return e.flat(Number.POSITIVE_INFINITY)}function ia(e,t){e.forEach(n=>Array.isArray(n)?ia(n,t):t(n))}function Il(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function tg(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function ng(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Do(e,t,n){let r=jn(e,t);return r>=0?e[r|1]=n:(r=~r,ng(e,r,t,n)),r}function xi(e,t){let n=jn(e,t);if(n>=0)return e[n|1]}function jn(e,t){return rg(e,t,1)}function rg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ae={},ee=[],Wr=new N(""),wl=new N("",-1),Cl=new N(""),Gr=class{get(t,n=yt){if(n===yt){let r=new Error(`NullInjectorError: No provider for ${se(t)}!`);throw r.name="NullInjectorError",r}return n}};function bl(e,t){let n=e[Uh]||null;if(!n&&t===!0)throw new Error(`Type ${se(e)} does not have '\u0275mod' property.`);return n}function it(e){return e[Bh]||null}function _l(e){return e[Hh]||null}function og(e){return e[$h]||null}function dx(e){return{\u0275providers:e}}function ig(...e){return{\u0275providers:Ml(!0,e),\u0275fromNgModule:!0}}function Ml(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ia(t,s=>{let a=s;qi(a,i,[],r)&&(o||(o=[]),o.push(a))}),o!==void 0&&Tl(o,i),n}function Tl(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];sa(o,i=>{t(i,r)})}}function qi(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=lc(e),s=!i&&it(e);if(!i&&!s){let u=e.ngModule;if(i=lc(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)qi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{ia(i.imports,l=>{qi(l,t,n,r)&&(c||(c=[]),c.push(l))})}finally{}c!==void 0&&Tl(c,t)}if(!a){let c=Dt(o)||(()=>new o);t({provide:o,useFactory:c,deps:ee},o),t({provide:Cl,useValue:o,multi:!0},o),t({provide:Wr,useValue:()=>U(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;sa(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function sa(e,t){for(let n of e)hl(n)&&(n=n.\u0275providers),Array.isArray(n)?sa(n,t):t(n)}var sg=k({provide:String,useValue:k});function Sl(e){return e!==null&&typeof e=="object"&&sg in e}function ag(e){return!!(e&&e.useExisting)}function ug(e){return!!(e&&e.useFactory)}function Yt(e){return typeof e=="function"}function cg(e){return!!e.useClass}var xl=new N(""),Fr={},hc={},Ni;function Eo(){return Ni===void 0&&(Ni=new Gr),Ni}var st=class{},Tn=class extends st{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Yi(t,s=>this.processProvider(s)),this.records.set(wl,Ut(void 0,this)),o.has("environment")&&this.records.set(st,Ut(void 0,this));let i=this.records.get(xl);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Cl,ee,x.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Si:yt,r)}destroy(){wn(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 wn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){wn(this);let n=Be(this),r=ie(void 0),o;try{return t()}finally{Be(n),ie(r)}}get(t,n=yt,r=x.Default){if(wn(this),t.hasOwnProperty(fc))return t[fc](this);r=vo(r);let o,i=Be(this),s=ie(void 0);try{if(!(r&x.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=hg(t)&&yo(t);c&&this.injectableDefInScope(c)?u=Ut(Zi(t),Fr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&x.Self?Eo():this.parent;return n=r&x.Optional&&n===yt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ur]=a[Ur]||[]).unshift(se(t)),i)throw a;return Kh(a,t,"R3InjectorError",this.source)}else throw a}finally{ie(s),Be(i)}}resolveInjectorInitializers(){let t=T(null),n=Be(this),r=ie(void 0),o;try{let i=this.get(Wr,ee,x.Self);for(let s of i)s()}finally{Be(n),ie(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(se(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=Yt(t)?t:Y(t&&t.provide),r=dg(t);if(!Yt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ut(void 0,Fr,!0),o.factory=()=>Gi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=T(null);try{return n.value===hc?gl(se(t)):n.value===Fr&&(n.value=hc,n.value=n.factory()),typeof n.value=="object"&&n.value&&pg(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Zi(e){let t=yo(e),n=t!==null?t.factory:Dt(e);if(n!==null)return n;if(e instanceof N)throw new b(204,!1);if(e instanceof Function)return lg(e);throw new b(204,!1)}function lg(e){if(e.length>0)throw new b(204,!1);let n=jh(e);return n!==null?()=>n.factory(e):()=>new e}function dg(e){if(Sl(e))return Ut(void 0,e.useValue);{let t=Nl(e);return Ut(t,Fr)}}function Nl(e,t,n){let r;if(Yt(e)){let o=Y(e);return Dt(o)||Zi(o)}else if(Sl(e))r=()=>Y(e.useValue);else if(ug(e))r=()=>e.useFactory(...Gi(e.deps||[]));else if(ag(e))r=()=>U(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(fg(e))r=()=>new o(...Gi(e.deps));else return Dt(o)||Zi(o)}return r}function wn(e){if(e.destroyed)throw new b(205,!1)}function Ut(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function fg(e){return!!e.deps}function pg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function hg(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function Yi(e,t){for(let n of e)Array.isArray(n)?Yi(n,t):n&&hl(n)?Yi(n.\u0275providers,t):t(n)}function Al(e,t){let n;e instanceof Tn?(wn(e),n=e):n=new $r(e);let r,o=Be(n),i=ie(void 0);try{return t()}finally{Be(o),ie(i)}}function Ol(){return ml()!==void 0||En()!=null}function Rl(e){if(!Ol())throw new b(-203,!1)}function gg(e){return typeof e=="function"}var ke=0,_=1,w=2,K=3,we=4,ce=5,Qt=6,qt=7,G=8,Sn=9,He=10,j=11,xn=12,gc=13,sn=14,le=15,Et=16,zt=17,Ce=18,Io=19,kl=20,nt=21,Ai=22,qr=23,he=24,rt=25,q=26,aa=1;var It=7,Zr=8,Kt=9,Q=10;function ot(e){return Array.isArray(e)&&typeof e[aa]=="object"}function ze(e){return Array.isArray(e)&&e[aa]===!0}function ua(e){return(e.flags&4)!==0}function an(e){return e.componentOffset>-1}function wo(e){return(e.flags&1)===1}function be(e){return!!e.template}function Yr(e){return(e[w]&512)!==0}function Vn(e){return(e[w]&256)===256}var Qi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ca=(()=>{let e=()=>Pl;return e.ngInherit=!0,e})();function Pl(e){return e.type.prototype.ngOnChanges&&(e.setInput=yg),mg}function mg(){let e=jl(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===Ae)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function yg(e,t,n,r,o){let i=this.declaredInputs[r],s=jl(e)||vg(e,{previous:Ae,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Qi(c&&c.currentValue,n,u===Ae),Fl(e,t,o,n)}var Ll="__ngSimpleChanges__";function jl(e){return e[Ll]||null}function vg(e,t){return e[Ll]=t}var mc=null;var O=function(e,t=null,n){mc!=null&&mc(e,t,n)},Vl="svg",Dg="math";function Oe(e){for(;Array.isArray(e);)e=e[ke];return e}function Eg(e){for(;Array.isArray(e);){if(typeof e[aa]=="object")return e;e=e[ke]}return null}function Bl(e,t){return Oe(t[e])}function Fe(e,t){return Oe(t[e.index])}function la(e,t){return e.data[t]}function da(e,t){return e[t]}function Re(e,t){let n=t[e];return ot(n)?n:n[ke]}function Ig(e){return(e[w]&4)===4}function fa(e){return(e[w]&128)===128}function wg(e){return ze(e[K])}function at(e,t){return t==null?null:e[t]}function Hl(e){e[zt]=0}function $l(e){e[w]&1024||(e[w]|=1024,fa(e)&&Bn(e))}function Cg(e,t){for(;e>0;)t=t[sn],e--;return t}function Co(e){var t;return!!(e[w]&9216||(t=e[he])!=null&&t.dirty)}function Ki(e){var t;(t=e[He].changeDetectionScheduler)==null||t.notify(8),e[w]&64&&(e[w]|=1024),Co(e)&&Bn(e)}function Bn(e){var n;(n=e[He].changeDetectionScheduler)==null||n.notify(0);let t=wt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!fa(t)));)t=wt(t)}function Ul(e,t){if(Vn(e))throw new b(911,!1);e[nt]===null&&(e[nt]=[]),e[nt].push(t)}function bg(e,t){if(e[nt]===null)return;let n=e[nt].indexOf(t);n!==-1&&e[nt].splice(n,1)}function wt(e){let t=e[K];return ze(t)?t[K]:t}function zl(e){var t;return(t=e[qt])!=null?t:e[qt]=[]}function Wl(e){var t;return(t=e.cleanup)!=null?t:e.cleanup=[]}function _g(e,t,n,r){let o=zl(t);o.push(n),e.firstCreatePass&&Wl(e).push(r,o.length-1)}var M={lFrame:Xl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ji=!1;function Mg(){return M.lFrame.elementDepthCount}function Tg(){M.lFrame.elementDepthCount++}function Sg(){M.lFrame.elementDepthCount--}function pa(){return M.bindingsEnabled}function Gl(){return M.skipHydrationRootTNode!==null}function xg(e){return M.skipHydrationRootTNode===e}function Ng(){M.skipHydrationRootTNode=null}function v(){return M.lFrame.lView}function B(){return M.lFrame.tView}function fx(e){return M.lFrame.contextLView=e,e[G]}function px(e){return M.lFrame.contextLView=null,e}function J(){let e=ql();for(;e!==null&&e.type===64;)e=e.parent;return e}function ql(){return M.lFrame.currentTNode}function Ag(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xt(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function ha(){return M.lFrame.isParent}function ga(){M.lFrame.isParent=!1}function Og(){return M.lFrame.contextLView}function Zl(){return Ji}function yc(e){let t=Ji;return Ji=e,t}function Nt(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yl(){return M.lFrame.bindingIndex}function Rg(e){return M.lFrame.bindingIndex=e}function ut(){return M.lFrame.bindingIndex++}function bo(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kg(){return M.lFrame.inI18n}function Fg(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xi(t)}function Pg(){return M.lFrame.currentDirectiveIndex}function Xi(e){M.lFrame.currentDirectiveIndex=e}function Ql(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ma(){return M.lFrame.currentQueryIndex}function _o(e){M.lFrame.currentQueryIndex=e}function Lg(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[ce]:null}function Kl(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&x.Host);)if(o=Lg(i),o===null||(i=i[sn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Jl();return r.currentTNode=t,r.lView=e,!0}function ya(e){let t=Jl(),n=e[_];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jl(){let e=M.lFrame,t=e===null?null:e.child;return t===null?Xl(e):t}function Xl(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 ed(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var td=ed;function va(){let e=ed();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDept