UNPKG

homebridge-config-ui-x

Version:

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

7 lines • 216 kB
var Lg=Object.create;var $r=Object.defineProperty,jg=Object.defineProperties,Vg=Object.getOwnPropertyDescriptor,Bg=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertyNames,Hr=Object.getOwnPropertySymbols,$g=Object.getPrototypeOf,ys=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable;var rl=(e,t,n)=>t in e?$r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t)=>{for(var n in t||={})ys.call(t,n)&&rl(e,n,t[n]);if(Hr)for(var n of Hr(t))ol.call(t,n)&&rl(e,n,t[n]);return e},ne=(e,t)=>jg(e,Bg(t));var lb=e=>t=>{var n=e[t];if(n)return n();throw new Error("Module not found in bundle: "+t)};var db=(e,t)=>{var n={};for(var r in e)ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hr)for(var r of Hr(e))t.indexOf(r)<0&&ol.call(e,r)&&(n[r]=e[r]);return n};var fb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pb=(e,t)=>{for(var n in t)$r(e,n,{get:t[n],enumerable:!0})},Ug=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hg(t))!ys.call(e,o)&&o!==n&&$r(e,o,{get:()=>t[o],enumerable:!(r=Vg(t,o))||r.enumerable});return e};var hb=(e,t,n)=>(n=e!=null?Lg($g(e)):{},Ug(t||!e||!e.__esModule?$r(n,"default",{value:e,enumerable:!0}):n,e));var Ds=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function v(e){return typeof e=="function"}function on(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 Ur=on(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 bt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var z=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(i){t=i instanceof Ur?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{il(i)}catch(s){t=t??[],s instanceof Ur?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ur(t)}}add(t){var n;if(t&&t!==this)if(this.closed)il(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)&&bt(n,t)}remove(t){let{_finalizers:n}=this;n&&bt(n,t),t instanceof e&&t._removeParent(this)}};z.EMPTY=(()=>{let e=new z;return e.closed=!0,e})();var vs=z.EMPTY;function zr(e){return e instanceof z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function il(e){v(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(e,t,...n){let{delegate:r}=sn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Gr(e){sn.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function Qe(){}var sl=Es("C",void 0,void 0);function al(e){return Es("E",void 0,e)}function cl(e){return Es("N",e,void 0)}function Es(e,t,n){return{kind:e,value:t,error:n}}var _t=null;function an(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!_t;if(t&&(_t={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=_t;if(_t=null,n)throw r}}else e()}function ul(e){Te.useDeprecatedSynchronousErrorHandling&&_t&&(_t.errorThrown=!0,_t.error=e)}var Tt=class extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,zr(t)&&t.add(this)):this.destination=Wg}static create(t,n,r){return new Se(t,n,r)}next(t){this.isStopped?Cs(cl(t),this):this._next(t)}error(t){this.isStopped?Cs(al(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cs(sl,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()}}},zg=Function.prototype.bind;function Is(e,t){return zg.call(e,t)}var ws=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Wr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Wr(r)}else Wr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Wr(n)}}},Se=class extends Tt{constructor(t,n,r){super();let o;if(v(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Te.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Is(t.next,i),error:t.error&&Is(t.error,i),complete:t.complete&&Is(t.complete,i)}):o=t}this.destination=new ws(o)}};function Wr(e){Te.useDeprecatedSynchronousErrorHandling?ul(e):Gr(e)}function Gg(e){throw e}function Cs(e,t){let{onStoppedNotification:n}=Te;n&&sn.setTimeout(()=>n(e,t))}var Wg={closed:!0,next:Qe,error:Gg,complete:Qe};var cn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ee(e){return e}function qg(...e){return bs(e)}function bs(e){return e.length===0?ee:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var T=(()=>{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=Yg(n)?n:new Se(n,r,o);return an(()=>{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=ll(r),new r((o,i)=>{let s=new Se({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[cn](){return this}pipe(...n){return bs(n)(this)}toPromise(n){return n=ll(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 ll(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function Zg(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Yg(e){return e&&e instanceof Tt||Zg(e)&&zr(e)}var dl=on(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new qr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new dl}next(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){an(()=>{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(){an(()=>{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?vs:(this.currentObservers=null,i.push(n),new z(()=>{this.currentObservers=null,bt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new qr(t,n),e})(),qr=class extends le{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:vs}};var Me=on(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Qg(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Se({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Me)}});e.subscribe(i)})}var Zr=class extends z{constructor(t,n){super()}schedule(t,n=0){return this}};var Bn={setInterval(e,t,...n){let{delegate:r}=Bn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Bn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Yr=class extends Zr{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 Bn.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&&Bn.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,bt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Hn={now(){return(Hn.delegate||Date).now()},delegate:void 0};var un=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)}};un.now=Hn.now;var Qr=class extends un{constructor(t,n=un.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 St=new Qr(Yr),fl=St;function _s(e){return v(e?.lift)}function _(e){return t=>{if(_s(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 E(e,t,n,r,o){return new Ts(e,t,n,r,o)}var Ts=class extends Tt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function pl(e,t=St){return _((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(E(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}var Mt=new T(e=>e.complete());function ln(e){return e<=0?()=>Mt:_((t,n)=>{let r=0;t.subscribe(E(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ss(){return _((e,t)=>{let n=null;e._refCount++;let r=E(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 Ms=class extends T{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,_s(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new z;let n=this.getSubject();t.add(this.source.subscribe(E(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=z.EMPTY)}return t}refCount(){return Ss()(this)}};var $n=class extends le{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 Kr=class extends le{constructor(t=1/0,n=1/0,r=Hn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};function Jr(e){return e&&v(e.schedule)}function hl(e){return e[e.length-1]}function st(e){return v(hl(e))?e.pop():void 0}function at(e){return Jr(hl(e))?e.pop():void 0}function ml(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function gl(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 Nt(e){return this instanceof Nt?(this.v=e,this):new Nt(e)}function yl(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(m){return new Promise(function(M,I){i.push([f,m,M,I])>1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(m){p(i[0][3],m)}}function u(f){f.value instanceof Nt?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Dl(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 gl=="function"?gl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var dn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Xr(e){return v(e?.then)}function eo(e){return v(e[cn])}function to(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function no(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Kg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ro=Kg();function oo(e){return v(e?.[ro])}function io(e){return yl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Nt(n.read());if(o)return yield Nt(void 0);yield yield Nt(r)}}finally{n.releaseLock()}})}function so(e){return v(e?.getReader)}function x(e){if(e instanceof T)return e;if(e!=null){if(eo(e))return Jg(e);if(dn(e))return Xg(e);if(Xr(e))return em(e);if(to(e))return vl(e);if(oo(e))return tm(e);if(so(e))return nm(e)}throw no(e)}function Jg(e){return new T(t=>{let n=e[cn]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xg(e){return new T(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function em(e){return new T(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Gr)})}function tm(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function vl(e){return new T(t=>{rm(e,t).catch(n=>t.error(n))})}function nm(e){return vl(io(e))}function rm(e,t){var n,r,o,i;return ml(this,void 0,void 0,function*(){try{for(n=Dl(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 de(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 ao(e,t=0){return _((n,r)=>{n.subscribe(E(r,o=>de(r,e,()=>r.next(o),t),()=>de(r,e,()=>r.complete(),t),o=>de(r,e,()=>r.error(o),t)))})}function co(e,t=0){return _((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function El(e,t){return x(e).pipe(co(t),ao(t))}function Il(e,t){return x(e).pipe(co(t),ao(t))}function Cl(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function wl(e,t){return new T(n=>{let r;return de(n,t,()=>{r=e[ro](),de(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)}),()=>v(r?.return)&&r.return()})}function uo(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{de(n,t,()=>{let r=e[Symbol.asyncIterator]();de(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function bl(e,t){return uo(io(e),t)}function _l(e,t){if(e!=null){if(eo(e))return El(e,t);if(dn(e))return Cl(e,t);if(Xr(e))return Il(e,t);if(to(e))return uo(e,t);if(oo(e))return wl(e,t);if(so(e))return bl(e,t)}throw no(e)}function ct(e,t){return t?_l(e,t):x(e)}function Ns(...e){let t=at(e);return ct(e,t)}function om(e,t){let n=v(e)?e:()=>e,r=o=>o.error(n());return new T(t?o=>t.schedule(r,0,o):r)}function im(e){return!!e&&(e instanceof T||v(e.lift)&&v(e.subscribe))}function sm(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 Me)}})})}function Tl(e){return e instanceof Date&&!isNaN(e)}function Ke(e,t){return _((n,r)=>{let o=0;n.subscribe(E(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:am}=Array;function cm(e,t){return am(t)?e(...t):e(t)}function fn(e){return Ke(t=>cm(e,t))}var{isArray:um}=Array,{getPrototypeOf:lm,prototype:dm,keys:fm}=Object;function lo(e){if(e.length===1){let t=e[0];if(um(t))return{args:t,keys:null};if(pm(t)){let n=fm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function pm(e){return e&&typeof e=="object"&&lm(e)===dm}function fo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function hm(...e){let t=at(e),n=st(e),{args:r,keys:o}=lo(e);if(r.length===0)return ct([],t);let i=new T(gm(r,t,o?s=>fo(o,s):ee));return n?i.pipe(fn(n)):i}function gm(e,t,n=ee){return r=>{Sl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Sl(t,()=>{let u=ct(e[c],t),l=!1;u.subscribe(E(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Sl(e,t,n){e?de(n,e,t):t()}function Ml(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=m=>u<r?h(m):c.push(m),h=m=>{i&&t.next(m),u++;let M=!1;x(n(m,l++)).subscribe(E(t,I=>{o?.(I),i?f(I):t.next(I)},()=>{M=!0},void 0,()=>{if(M)try{for(u--;c.length&&u<r;){let I=c.shift();s?de(t,s,()=>h(I)):h(I)}p()}catch(I){t.error(I)}}))};return e.subscribe(E(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Ne(e,t,n=1/0){return v(t)?Ne((r,o)=>Ke((i,s)=>t(r,i,o,s))(x(e(r,o))),n):(typeof t=="number"&&(n=t),_((r,o)=>Ml(r,o,e,n)))}function xs(e=1/0){return Ne(ee,e)}function Nl(){return xs(1)}function ut(...e){return Nl()(ct(e,at(e)))}function mm(e){return new T(t=>{x(e()).subscribe(t)})}function ym(...e){let t=st(e),{args:n,keys:r}=lo(e),o=new T(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;x(n[l]).subscribe(E(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?fo(r,a):a),i.complete())}))}});return t?o.pipe(fn(t)):o}var Dm=["addListener","removeListener"],vm=["addEventListener","removeEventListener"],Em=["on","off"];function As(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return As(e,t,n).pipe(fn(r));let[o,i]=wm(e)?vm.map(s=>a=>e[s](t,a,n)):Im(e)?Dm.map(xl(e,t)):Cm(e)?Em.map(xl(e,t)):[];if(!o&&dn(e))return Ne(s=>As(s,t,n))(x(e));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function xl(e,t){return n=>r=>e[n](t,r)}function Im(e){return v(e.addListener)&&v(e.removeListener)}function Cm(e){return v(e.on)&&v(e.off)}function wm(e){return v(e.addEventListener)&&v(e.removeEventListener)}function Un(e=0,t,n=fl){let r=-1;return t!=null&&(Jr(t)?n=t:r=t),new T(o=>{let i=Tl(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 bm(e=0,t=St){return e<0&&(e=0),Un(e,e,t)}var{isArray:_m}=Array;function po(e){return e.length===1&&_m(e[0])?e[0]:e}function xt(e,t){return _((n,r)=>{let o=0;n.subscribe(E(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Tm(...e){return e=po(e),e.length===1?x(e[0]):new T(Sm(e))}function Sm(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r<e.length;r++)n.push(x(e[r]).subscribe(E(t,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(o)})))}}function Mm(...e){let t=st(e),n=po(e);return n.length?new T(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s<n.length;s++)x(n[s]).subscribe(E(r,a=>{if(o[s].push(a),o.every(c=>c.length)){let c=o.map(u=>u.shift());r.next(t?t(...c):c),o.some((u,l)=>!u.length&&i[l])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):Mt}function Al(e){return _((t,n)=>{let r=null,o=!1,i;r=t.subscribe(E(n,void 0,void 0,s=>{i=x(e(s,Al(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Rl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(E(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Nm(e,t){return v(t)?Ne(e,t,1):Ne(e,1)}function zn(e){return _((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Ol(){return _((e,t)=>{e.subscribe(E(t,Qe))})}function Fl(e){return Ke(()=>e)}function Rs(e,t){return t?n=>ut(t.pipe(ln(1),Ol()),n.pipe(Rs(e))):Ne((n,r)=>x(e(n,r)).pipe(ln(1),Fl(n)))}function xm(e,t=St){let n=Un(e,t);return Rs(()=>n)}function Am(e,t=ee){return e=e??Rm,_((n,r)=>{let o,i=!0;n.subscribe(E(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Rm(e,t){return e===t}function ho(e=Om){return _((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Om(){return new Me}function Fm(...e){return t=>ut(t,Ns(...e))}function km(e){return _((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?xt((o,i)=>e(o,i,r)):ee,ln(1),n?zn(t):ho(()=>new Me))}function Os(e){return e<=0?()=>Mt:_((t,n)=>{let r=[];t.subscribe(E(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 Lm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?xt((o,i)=>e(o,i,r)):ee,Os(1),n?zn(t):ho(()=>new Me))}function jm(e,t){return _(Rl(e,t,arguments.length>=2,!0))}function ks(e={}){let{connector:t=()=>new le,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,l=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return _((m,M)=>{u++,!d&&!l&&p();let I=c=c??t();M.add(()=>{u--,u===0&&!d&&!l&&(a=Fs(h,o))}),I.subscribe(M),!s&&u>0&&(s=new Se({next:X=>I.next(X),error:X=>{d=!0,p(),a=Fs(f,n,X),I.error(X)},complete:()=>{l=!0,p(),a=Fs(f,r),I.complete()}}),x(m).subscribe(s))})(i)}}function Fs(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Se({next:()=>{r.unsubscribe(),e()}});return x(t(...n)).subscribe(r)}function Vm(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,ks({connector:()=>new Kr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Bm(e){return xt((t,n)=>e<=n)}function Hm(...e){let t=at(e);return _((n,r)=>{(t?ut(e,n,t):ut(e,n)).subscribe(r)})}function kl(e,t){return _((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(E(r,c=>{o?.unsubscribe();let u=0,l=i++;x(e(c,l)).subscribe(o=E(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Pl(e){return _((t,n)=>{x(e).subscribe(E(n,()=>n.complete(),Qe)),!n.closed&&t.subscribe(n)})}function $m(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?_((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(E(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ee}function Um(...e){let t=st(e);return _((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)x(e[c]).subscribe(E(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(ee))&&(s=null))},Qe));n.subscribe(E(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u)}}))})}var Ps;function Ls(){return Ps}function Je(e){let t=Ps;return Ps=e,t}var zm=Symbol("NotFound"),go=class extends Error{name="\u0275NotFound";constructor(t){super(t)}};function pn(e){return e===zm||e?.name==="\u0275NotFound"}function Eo(e,t){return Object.is(e,t)}var q=null,mo=!1,js=1,Gm=null,Z=Symbol("SIGNAL");function C(e){let t=q;return q=e,t}function Io(){return q}var At={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 Rt(e){if(mo)throw new Error("");if(q===null)return;q.consumerOnSignalRead(e);let t=q.nextProducerIndex++;if(_o(q),t<q.producerNode.length&&q.producerNode[t]!==e&&Wn(q)){let n=q.producerNode[t];bo(n,q.producerIndexOfThis[t])}q.producerNode[t]!==e&&(q.producerNode[t]=e,q.producerIndexOfThis[t]=Wn(q)?jl(e,q,t):0),q.producerLastReadVersion[t]=e.version}function Ll(){js++}function Co(e){if(!(Wn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===js)){if(!e.producerMustRecompute(e)&&!qn(e)){vo(e);return}e.producerRecomputeValue(e),vo(e)}}function Vs(e){if(e.liveConsumerNode===void 0)return;let t=mo;mo=!0;try{for(let n of e.liveConsumerNode)n.dirty||Wm(n)}finally{mo=t}}function Bs(){return q?.consumerAllowSignalWrites!==!1}function Wm(e){e.dirty=!0,Vs(e),e.consumerMarkedDirty?.(e)}function vo(e){e.dirty=!1,e.lastCleanEpoch=js}function Ot(e){return e&&(e.nextProducerIndex=0),C(e)}function hn(e,t){if(C(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Wn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)bo(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function qn(e){_o(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Co(n),r!==n.version))return!0}return!1}function wo(e){if(_o(e),Wn(e))for(let t=0;t<e.producerNode.length;t++)bo(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 jl(e,t,n){if(Vl(e),e.liveConsumerNode.length===0&&Bl(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=jl(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function bo(e,t){if(Vl(e),e.liveConsumerNode.length===1&&Bl(e))for(let r=0;r<e.producerNode.length;r++)bo(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];_o(o),o.producerIndexOfThis[r]=t}}function Wn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function _o(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Vl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Bl(e){return e.producerNode!==void 0}function To(e){Gm?.(e)}function Zn(e,t){let n=Object.create(qm);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Co(n),Rt(n),n.value===Gn)throw n.error;return n.value};return r[Z]=n,To(n),r}var yo=Symbol("UNSET"),Do=Symbol("COMPUTING"),Gn=Symbol("ERRORED"),qm=ne(te({},At),{value:yo,dirty:!0,error:null,equal:Eo,kind:"computed",producerMustRecompute(e){return e.value===yo||e.value===Do},producerRecomputeValue(e){if(e.value===Do)throw new Error("");let t=e.value;e.value=Do;let n=Ot(e),r,o=!1;try{r=e.computation(),C(null),o=t!==yo&&t!==Gn&&r!==Gn&&e.equal(t,r)}catch(i){r=Gn,e.error=i}finally{hn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Zm(){throw new Error}var Hl=Zm;function $l(e){Hl(e)}function Hs(e){Hl=e}var Ym=null;function $s(e,t){let n=Object.create(So);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Ul(n);return r[Z]=n,To(n),[r,s=>Ft(n,s),s=>Us(n,s)]}function Ul(e){return Rt(e),e.value}function Ft(e,t){Bs()||$l(e),e.equal(e.value,t)||(e.value=t,Qm(e))}function Us(e,t){Bs()||$l(e),Ft(e,t(e.value))}var So=ne(te({},At),{equal:Eo,value:void 0,kind:"signal"});function Qm(e){e.version++,Ll(),Vs(e),Ym?.(e)}function zl(e){let t=C(null);try{return e()}finally{C(t)}}var Oo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(Vt(t,n)),this.code=t}};function Km(e){return`NG0${Math.abs(e)}`}function Vt(e,t){return`${Km(e)}${t?": "+t:""}`}var Be=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function Zl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function fe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(fe).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 Fo(e,t){return e?t?`${e} ${t}`:e:t||""}var Jm=L({__forward_ref__:L});function ko(e){return e.__forward_ref__=ko,e.toString=function(){return fe(this())},e}function Y(e){return ta(e)?e():e}function ta(e){return typeof e=="function"&&e.hasOwnProperty(Jm)&&e.__forward_ref__===ko}function Yl(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Jn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xn(e){return ey(e,Po)}function Xm(e){return Xn(e)!==null}function ey(e,t){return e.hasOwnProperty(t)&&e[t]||null}function ty(e){let t=e?.[Po]??null;return t||null}function Gs(e){return e&&e.hasOwnProperty(No)?e[No]:null}var Po=L({\u0275prov:L}),No=L({\u0275inj:L}),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=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function na(e){return e&&!!e.\u0275providers}var ra=L({\u0275cmp:L}),oa=L({\u0275dir:L}),ia=L({\u0275pipe:L}),sa=L({\u0275mod:L}),Qn=L({\u0275fac:L}),Bt=L({__NG_ELEMENT_ID__:L}),Gl=L({__NG_ENV_ID__:L});function G(e){return typeof e=="string"?e:e==null?"":String(e)}function Ql(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():G(e)}function aa(e,t){throw new D(-200,e)}function Lo(e,t){throw new D(-201,!1)}var Ws;function Kl(){return Ws}function se(e){let t=Ws;return Ws=e,t}function ca(e,t,n){let r=Xn(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;Lo(e,"Injector")}var ny={},kt=ny,qs="__NG_DI_FLAG__",Zs=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Pt(n)||0;try{return this.injector.get(t,r&8?null:kt,r)}catch(o){if(pn(o))return o;throw o}}},xo="ngTempTokenPath",ry="ngTokenPath",oy=/\n/gm,iy="\u0275",Wl="__source";function sy(e,t=0){let n=Ls();if(n===void 0)throw new D(-203,!1);if(n===null)return ca(e,void 0,t);{let r=ay(t),o=n.retrieve(e,r);if(pn(o)){if(r.optional)return null;throw o}return o}}function V(e,t=0){return(Kl()||sy)(Y(e),t)}function g(e,t){return V(e,Pt(t))}function Pt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ay(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ys(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 D(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=cy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(V(o,i))}else t.push(V(r))}return t}function ua(e,t){return e[qs]=t,e.prototype[qs]=t,e}function cy(e){return e[qs]}function uy(e,t,n,r){let o=e[xo];throw t[Wl]&&o.unshift(t[Wl]),e.message=ly(` `+e.message,o,n,r),e[ry]=o,e[xo]=null,e}function ly(e,t,n,r=null){e=e&&e.charAt(0)===` `&&e.charAt(1)==iy?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).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):fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(oy,` `)}`}function lt(e,t){let n=e.hasOwnProperty(Qn);return n?e[Qn]:null}function Jl(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 Xl(e){return e.flat(Number.POSITIVE_INFINITY)}function jo(e,t){e.forEach(n=>Array.isArray(n)?jo(n,t):t(n))}function la(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function er(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ed(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function td(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 Vo(e,t,n){let r=mn(e,t);return r>=0?e[r|1]=n:(r=~r,td(e,r,t,n)),r}function Bo(e,t){let n=mn(e,t);if(n>=0)return e[n|1]}function mn(e,t){return dy(e,t,1)}function dy(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 xe={},re=[],Ht=new N(""),da=new N("",-1),fa=new N(""),Kn=class{get(t,n=kt){if(n===kt)throw new go(`NullInjectorError: No provider for ${fe(t)}!`);return n}};function pa(e){return e[sa]||null}function He(e){return e[ra]||null}function Ho(e){return e[oa]||null}function nd(e){return e[ia]||null}function ha(e){return{\u0275providers:e}}function rd(...e){return{\u0275providers:ga(!0,e),\u0275fromNgModule:!0}}function ga(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return jo(t,s=>{let a=s;Ao(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&od(o,i),n}function od(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ma(o,i=>{t(i,r)})}}function Ao(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Gs(e),s=!i&&He(e);if(!i&&!s){let c=e.ngModule;if(i=Gs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ao(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{jo(i.imports,l=>{Ao(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&od(u,t)}if(!a){let u=lt(o)||(()=>new o);t({provide:o,useFactory:u,deps:re},o),t({provide:fa,useValue:o,multi:!0},o),t({provide:Ht,useValue:()=>V(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ma(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ma(e,t){for(let n of e)na(n)&&(n=n.\u0275providers),Array.isArray(n)?ma(n,t):t(n)}var fy=L({provide:String,useValue:L});function id(e){return e!==null&&typeof e=="object"&&fy in e}function py(e){return!!(e&&e.useExisting)}function hy(e){return!!(e&&e.useFactory)}function Lt(e){return typeof e=="function"}function sd(e){return!!e.useClass}var ya=new N(""),Mo={},ql={},zs;function yn(){return zs===void 0&&(zs=new Kn),zs}var De=class{},jt=class extends De{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,Ks(t,s=>this.processProvider(s)),this.records.set(da,gn(void 0,this)),o.has("environment")&&this.records.set(De,gn(void 0,this));let i=this.records.get(ya);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fa,re,{self:!0}))}retrieve(t,n){let r=Pt(n)||0;try{return this.get(t,kt,r)}catch(o){if(pn(o))return o;throw o}}destroy(){Yn(this),this._destroyed=!0;let t=C(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(),C(t)}}onDestroy(t){return Yn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Yn(this);let n=Je(this),r=se(void 0),o;try{return t()}finally{Je(n),se(r)}}get(t,n=kt,r){if(Yn(this),t.hasOwnProperty(Gl))return t[Gl](this);let o=Pt(r),i,s=Je(this),a=se(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vy(t)&&Xn(t);l&&this.injectableDefInScope(l)?u=gn(Qs(t),Mo):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let c=o&2?yn():this.parent;return n=o&8&&n===kt?null:n,c.get(t,n)}catch(c){if(pn(c)){if((c[xo]=c[xo]||[]).unshift(fe(t)),s)throw c;return uy(c,t,"R3InjectorError",this.source)}else throw c}finally{se(a),Je(s)}}resolveInjectorInitializers(){let t=C(null),n=Je(this),r=se(void 0),o;try{let i=this.get(Ht,re,{self:!0});for(let s of i)s()}finally{Je(n),se(r),C(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(fe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=Lt(t)?t:Y(t&&t.provide),r=my(t);if(!Lt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=gn(void 0,Mo,!0),o.factory=()=>Ys(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=C(null);try{return n.value===ql?aa(fe(t)):n.value===Mo&&(n.value=ql,n.value=n.factory()),typeof n.value=="object"&&n.value&&Dy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(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 Qs(e){let t=Xn(e),n=t!==null?t.factory:lt(e);if(n!==null)return n;if(e instanceof N)throw new D(204,!1);if(e instanceof Function)return gy(e);throw new D(204,!1)}function gy(e){if(e.length>0)throw new D(204,!1);let n=ty(e);return n!==null?()=>n.factory(e):()=>new e}function my(e){if(id(e))return gn(void 0,e.useValue);{let t=Da(e);return gn(t,Mo)}}function Da(e,t,n){let r;if(Lt(e)){let o=Y(e);return lt(o)||Qs(o)}else if(id(e))r=()=>Y(e.useValue);else if(hy(e))r=()=>e.useFactory(...Ys(e.deps||[]));else if(py(e))r=()=>V(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(yy(e))r=()=>new o(...Ys(e.deps));else return lt(o)||Qs(o)}return r}function Yn(e){if(e.destroyed)throw new D(205,!1)}function gn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yy(e){return!!e.deps}function Dy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ks(e,t){for(let n of e)Array.isArray(n)?Ks(n,t):n&&na(n)?Ks(n.\u0275providers,t):t(n)}function $o(e,t){let n;e instanceof jt?(Yn(e),n=e):n=new Zs(e);let r,o=Je(n),i=se(void 0);try{return t()}finally{Je(o),se(i)}}function Uo(){return Kl()!==void 0||Ls()!=null}function va(e){if(!Uo())throw new D(-203,!1)}var Ee=0,b=1,w=2,Q=3,Ie=4,ae=5,$t=6,Dn=7,B=8,Ut=9,$e=10,F=11,vn=12,Ea=13,zt=14,ce=15,ft=16,Gt=17,Ue=18,tr=19,Ia=20,Xe=21,zo=22,En=23,me=24,Wt=25,H=26,Ca=1,wa=6,pt=7,nr=8,qt=9,K=10;function ze(e){return Array.isArray(e)&&typeof e[Ca]=="object"}function Ae(e){return Array.isArray(e)&&e[Ca]===!0}function Go(e){return(e.flags&4)!==0}function ht(e){return e.componentOffset>-1}function rr(e){return(e.flags&1)===1}function Ce(e){return!!e.template}function In(e){return(e[w]&512)!==0}function Zt(e){return(e[w]&256)===256}var ba="svg",ad="math";function we(e){for(;Array.isArray(e);)e=e[Ee];return e}function _a(e){for(;Array.isArray(e);){if(typeof e[Ca]=="object")return e;e=e[Ee]}return null}function Ta(e,t){return we(t[e])}function Re(e,t){return we(t[e.index])}function or(e,t){return e.data[t]}function Wo(e,t){return e[t]}function Sa(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function be(e,t){let n=t[e];return ze(n)?n:n[Ee]}function cd(e){return(e[w]&4)===4}function qo(e){return(e[w]&128)===128}function ud(e){return Ae(e[Q])}function Oe(e,t){return t==null?null:e[t]}function Ma(e){e[Gt]=0}function Na(e){e[w]&1024||(e[w]|=1024,qo(e)&&Yt(e))}function ld(e,t){for(;e>0;)t=t[zt],e--;return t}function ir(e){return!!(e[w]&9216||e[me]?.dirty)}function Zo(e){e[$e].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),ir(e)&&Yt(e)}function Yt(e){e[$e].changeDetectionScheduler?.notify(0);let t=dt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!qo(t)));)t=dt(t)}function xa(e,t){if(Zt(e))throw new D(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function dd(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function dt(e){let t=e[Q];return Ae(t)?t[Q]:t}function Aa(e){return e[Dn]??=[]}function Ra(e){return e.cleanup??=[]}function fd(e,t,n,r){let o=Aa(t);o.push(n),e.firstCreatePass&&Ra(e).push(r,o.length-1)}var S={lFrame:Sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null},sr=function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e}(sr||{}),Ey=0,Js=!1;function pd(){return S.lFrame.elementDepthCount}function hd(){S.lFrame.elementDepthCount++}function gd(){S.lFrame.elementDepthCount--}function Yo(){return S.bindingsEnabled}function Oa(){return S.skipHydrationRootTNode!==null}function md(e){return S.skipHydrationRootTNode===e}function yd(){S.skipHydrationRootTNode=null}function y(){return S.lFrame.lView}function k(){return S.lFrame.tView}function Dd(e){return S.lFrame.contextLView=e,e[B]}function vd(e){return S.lFrame.contextLView=null,e}function J(){let e=Fa();for(;e!==null&&e.type===64;)e=e.parent;return e}function Fa(){return S.lFrame.currentTNode}function Ed(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Qo(){return S.lFrame.isParent}function Ko(){S.lFrame.isParent=!1}function Id(){return S.lFrame.contextLView}function ka(e){Yl("Must never be called in production mode"),Ey=e}function Pa(){return Js}function Jo(e){let t=Js;return Js=e,t}function mt(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ar(){return S.lFrame.bindingIndex}function Cd(e){return S.lFrame.bindingIndex=e}function et(){return S.lFrame.bindingIndex++}function Qt(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function wd(){return S.lFrame.inI18n}function bd(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xo(t)}function _d(){return S.lFrame.currentDirectiveIndex}function Xo(e){S.lFrame.currentDirectiveIndex=e}function La(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ei(){return S.lFrame.currentQueryIndex}function cr(e){S.lFrame.currentQueryIndex=e}function Iy(e){let t=e[b];return t.type===2?t.declTNode:t.type===1?e[ae]:null}function ja(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Iy(i),o===null||(i=i[zt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=Td();return r.currentTNode=t,r.lView=e,!0}function ti(e){let t=Td(),n=e[b];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Td(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Sd(e):t}function Sd(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 Md(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Va=Md;function ni(){let e=Md();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 Nd(e){return(S.lFrame.contextLView=ld(e,S.lFrame.contextLView))[B]}function ye(){return S.lFrame.selectedIndex}function yt(e){S.lFrame.selectedIndex=e}function Cn(){let e=S.lFrame;return or(e.tView,e.selectedIndex)}function xd(){S.lFrame.currentNamespace=ba}function Ad(){return S.lFrame.currentNamespace}var Rd=!0;function ur(){return Rd}function lr(e){Rd=e}function Xs(e,t=null,n=null,r){let o=Ba(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ba(e,t=null,n=null,r,o=new Set){let i=[n||re,rd(e)];return r=r||(typeof e=="object"?void 0:fe(e)),new jt(i,t||yn(),r||null,o)}var ve=class e{static THROW_IF_NOT_FOUND=kt;static NULL=new Kn;static create(t,n){if(Array.isArray(t))return Xs({name:""},n,t,"");{let r=t.name??"";return Xs({name:r},t.parent,t.providers,r)}}static \u0275prov=A({token:e,providedIn:"any",factory:()=>V(da)});static __NG_ELEMENT_ID__=-1},Kt=new N(""),Dt=(()=>{class e{static __NG_ELEMENT_ID__=Cy;static __NG_ENV_ID__=n=>n}return e})(),Ro=class extends Dt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Zt(this._lView)}onDestroy(t){let n=this._lView;return xa(n,t),()=>dd(n,t)}};function Cy(){return new Ro(y())}var je=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ge=new N("",{providedIn:"root",factory:()=>{let e=g(De),t;return n=>{t??=e.get(je),t.handleError(n)}}}),Od={provide:Ht,useValue:()=>void g(je),multi:!0};function Ha(e){return typeof e=="function"&&e[Z]!==void 0}function ri(e,t){let[n,r,o]=$s(e,t?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=oi.bind(i),i}function oi(){let e=this[Z];if(e.readonlyFn===void 0){let t=()=>this();t[Z]=e,e.readonlyFn=t}return e.readonlyFn}function $a(e){return Ha(e)&&typeof e.set=="function"}var Ve=class{},ii=new N("",{providedIn:"root",factory:()=>!1});var Ua=new N(""),za=new N("");var dr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=wy}return e})();function wy(){return new dr(y(),J())}var Jt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=