kc-sdk
Version:
Knowledge Components SDK
7 lines • 257 kB
JavaScript
var Vg=Object.defineProperty,jg=Object.defineProperties;var Bg=Object.getOwnPropertyDescriptors;var mc=Object.getOwnPropertySymbols;var Hg=Object.prototype.hasOwnProperty,Ug=Object.prototype.propertyIsEnumerable;var gc=(e,t,n)=>t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||={})Hg.call(t,n)&&gc(e,n,t[n]);if(mc)for(var n of mc(t))Ug.call(t,n)&&gc(e,n,t[n]);return e},K=(e,t)=>jg(e,Bg(t));var Xn=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,s);a((n=n.apply(e,t)).next())});function Ts(e,t){return Object.is(e,t)}var te=null,Ur=!1,Ms=1,be=Symbol("SIGNAL");function R(e){let t=te;return te=e,t}function yc(){return te}var tr={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ns(e){if(Ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.nextProducerIndex++;if(zr(te),t<te.producerNode.length&&te.producerNode[t]!==e&&er(te)){let n=te.producerNode[t];Wr(n,te.producerIndexOfThis[t])}te.producerNode[t]!==e&&(te.producerNode[t]=e,te.producerIndexOfThis[t]=er(te)?wc(e,te,t):0),te.producerLastReadVersion[t]=e.version}function $g(){Ms++}function As(e){if(!(er(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ms)){if(!e.producerMustRecompute(e)&&!Os(e)){xs(e);return}e.producerRecomputeValue(e),xs(e)}}function vc(e){if(e.liveConsumerNode===void 0)return;let t=Ur;Ur=!0;try{for(let n of e.liveConsumerNode)n.dirty||Gg(n)}finally{Ur=t}}function Dc(){return te?.consumerAllowSignalWrites!==!1}function Gg(e){e.dirty=!0,vc(e),e.consumerMarkedDirty?.(e)}function xs(e){e.dirty=!1,e.lastCleanEpoch=Ms}function Gr(e){return e&&(e.nextProducerIndex=0),R(e)}function ks(e,t){if(R(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(er(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Wr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Os(e){zr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(As(n),r!==n.version))return!0}return!1}function Rs(e){if(zr(e),er(e))for(let t=0;t<e.producerNode.length;t++)Wr(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 wc(e,t,n){if(Ec(e),e.liveConsumerNode.length===0&&Ic(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=wc(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Wr(e,t){if(Ec(e),e.liveConsumerNode.length===1&&Ic(e))for(let r=0;r<e.producerNode.length;r++)Wr(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];zr(o),o.producerIndexOfThis[r]=t}}function er(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function zr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ec(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ic(e){return e.producerNode!==void 0}function _c(e){let t=Object.create(Wg);t.computation=e;let n=()=>{if(As(t),Ns(t),t.value===$r)throw t.error;return t.value};return n[be]=t,n}var bs=Symbol("UNSET"),Ss=Symbol("COMPUTING"),$r=Symbol("ERRORED"),Wg=K(V({},tr),{value:bs,dirty:!0,error:null,equal:Ts,producerMustRecompute(e){return e.value===bs||e.value===Ss},producerRecomputeValue(e){if(e.value===Ss)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ss;let n=Gr(e),r;try{r=e.computation()}catch(o){r=$r,e.error=o}finally{ks(e,n)}if(t!==bs&&t!==$r&&r!==$r&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function zg(){throw new Error}var Cc=zg;function bc(){Cc()}function Sc(e){Cc=e}var qg=null;function xc(e){let t=Object.create(Mc);t.value=e;let n=()=>(Ns(t),t.value);return n[be]=t,n}function Fs(e,t){Dc()||bc(),e.equal(e.value,t)||(e.value=t,Zg(e))}function Tc(e,t){Dc()||bc(),Fs(e,t(e.value))}var Mc=K(V({},tr),{equal:Ts,value:void 0});function Zg(e){e.version++,$g(),vc(e),qg?.()}function M(e){return typeof e=="function"}function qr(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 Zr=qr(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 nr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ie=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(M(r))try{r()}catch(i){t=i instanceof Zr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Nc(i)}catch(s){t=t??[],s instanceof Zr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Zr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Nc(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)&&nr(n,t)}remove(t){let{_finalizers:n}=this;n&&nr(n,t),t instanceof e&&t._removeParent(this)}};ie.EMPTY=(()=>{let e=new ie;return e.closed=!0,e})();var Ps=ie.EMPTY;function Kr(e){return e instanceof ie||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Nc(e){M(e)?e():e.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rn={setTimeout(e,t,...n){let{delegate:r}=rn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Yr(e){rn.setTimeout(()=>{let{onUnhandledError:t}=Re;if(t)t(e);else throw e})}function Ls(){}var Ac=Vs("C",void 0,void 0);function kc(e){return Vs("E",void 0,e)}function Oc(e){return Vs("N",e,void 0)}function Vs(e,t,n){return{kind:e,value:t,error:n}}var Pt=null;function on(e){if(Re.useDeprecatedSynchronousErrorHandling){let t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pt;if(Pt=null,n)throw r}}else e()}function Rc(e){Re.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}var Lt=class extends ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Kr(t)&&t.add(this)):this.destination=Qg}static create(t,n,r){return new sn(t,n,r)}next(t){this.isStopped?Bs(Oc(t),this):this._next(t)}error(t){this.isStopped?Bs(kc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Bs(Ac,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()}}},Kg=Function.prototype.bind;function js(e,t){return Kg.call(e,t)}var Hs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Qr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Qr(r)}else Qr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Qr(n)}}},sn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Re.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&js(t.next,i),error:t.error&&js(t.error,i),complete:t.complete&&js(t.complete,i)}):o=t}this.destination=new Hs(o)}};function Qr(e){Re.useDeprecatedSynchronousErrorHandling?Rc(e):Yr(e)}function Yg(e){throw e}function Bs(e,t){let{onStoppedNotification:n}=Re;n&&rn.setTimeout(()=>n(e,t))}var Qg={closed:!0,next:Ls,error:Yg,complete:Ls};var an=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Fc(e){return e}function Pc(e){return e.length===0?Fc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var z=(()=>{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=Xg(n)?n:new sn(n,r,o);return on(()=>{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=Lc(r),new r((o,i)=>{let s=new sn({next:a=>{try{n(a)}catch(l){i(l),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)}[an](){return this}pipe(...n){return Pc(n)(this)}toPromise(n){return n=Lc(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 Lc(e){var t;return(t=e??Re.Promise)!==null&&t!==void 0?t:Promise}function Jg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Xg(e){return e&&e instanceof Lt||Jg(e)&&Kr(e)}function ey(e){return M(e?.lift)}function fe(e){return t=>{if(ey(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 pe(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}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))}}};var Vc=qr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Qe=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Jr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Vc}next(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){on(()=>{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(){on(()=>{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?Ps:(this.currentObservers=null,i.push(n),new ie(()=>{this.currentObservers=null,nr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Jr(t,n),e})(),Jr=class extends Qe{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:Ps}};var rr=class extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function jc(e){return e&&M(e.schedule)}function Bc(e){return e[e.length-1]}function Hc(e){return M(Bc(e))?e.pop():void 0}function Uc(e){return jc(Bc(e))?e.pop():void 0}function Gc(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(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function $c(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 Vt(e){return this instanceof Vt?(this.v=e,this):new Vt(e)}function Wc(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(y,w){i.push([f,m,y,w])>1||l(f,m)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof Vt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function zc(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 $c=="function"?$c(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,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Xr=e=>e&&typeof e.length=="number"&&typeof e!="function";function eo(e){return M(e?.then)}function to(e){return M(e[an])}function no(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function ro(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 ty(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oo=ty();function io(e){return M(e?.[oo])}function so(e){return Wc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Vt(n.read());if(o)return yield Vt(void 0);yield yield Vt(r)}}finally{n.releaseLock()}})}function ao(e){return M(e?.getReader)}function he(e){if(e instanceof z)return e;if(e!=null){if(to(e))return ny(e);if(Xr(e))return ry(e);if(eo(e))return oy(e);if(no(e))return qc(e);if(io(e))return iy(e);if(ao(e))return sy(e)}throw ro(e)}function ny(e){return new z(t=>{let n=e[an]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ry(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function oy(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Yr)})}function iy(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function qc(e){return new z(t=>{ay(e,t).catch(n=>t.error(n))})}function sy(e){return qc(so(e))}function ay(e,t){var n,r,o,i;return Gc(this,void 0,void 0,function*(){try{for(n=zc(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 Se(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 lo(e,t=0){return fe((n,r)=>{n.subscribe(pe(r,o=>Se(r,e,()=>r.next(o),t),()=>Se(r,e,()=>r.complete(),t),o=>Se(r,e,()=>r.error(o),t)))})}function co(e,t=0){return fe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zc(e,t){return he(e).pipe(co(t),lo(t))}function Kc(e,t){return he(e).pipe(co(t),lo(t))}function Yc(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qc(e,t){return new z(n=>{let r;return Se(n,t,()=>{r=e[oo](),Se(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)}),()=>M(r?.return)&&r.return()})}function uo(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{Se(n,t,()=>{let r=e[Symbol.asyncIterator]();Se(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Jc(e,t){return uo(so(e),t)}function Xc(e,t){if(e!=null){if(to(e))return Zc(e,t);if(Xr(e))return Yc(e,t);if(eo(e))return Kc(e,t);if(no(e))return uo(e,t);if(io(e))return Qc(e,t);if(ao(e))return Jc(e,t)}throw ro(e)}function jt(e,t){return t?Xc(e,t):he(e)}function fo(...e){let t=Uc(e);return jt(e,t)}function me(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ly}=Array;function cy(e,t){return ly(t)?e(...t):e(t)}function eu(e){return me(t=>cy(e,t))}var{isArray:uy}=Array,{getPrototypeOf:dy,prototype:fy,keys:py}=Object;function tu(e){if(e.length===1){let t=e[0];if(uy(t))return{args:t,keys:null};if(hy(t)){let n=py(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hy(e){return e&&typeof e=="object"&&dy(e)===fy}function nu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ru(e,t,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&t.complete()},f=m=>c<r?h(m):l.push(m),h=m=>{i&&t.next(m),c++;let y=!1;he(n(m,u++)).subscribe(pe(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<r;){let w=l.shift();s?Se(t,s,()=>h(w)):h(w)}p()}catch(w){t.error(w)}}))};return e.subscribe(pe(t,f,()=>{d=!0,p()})),()=>{a?.()}}function po(e,t,n=1/0){return M(t)?po((r,o)=>me((i,s)=>t(r,i,o,s))(he(e(r,o))),n):(typeof t=="number"&&(n=t),fe((r,o)=>ru(r,o,e,n)))}function $s(...e){let t=Hc(e),{args:n,keys:r}=tu(e),o=new z(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;he(n[u]).subscribe(pe(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?nu(r,a):a),i.complete())}))}});return t?o.pipe(eu(t)):o}function Gs(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ws(e,t){return M(t)?po(e,t,1):po(e,1)}function ho(e){return fe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function zs(e,t){return fe((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(pe(r,l=>{o?.unsubscribe();let c=0,u=i++;he(e(l,u)).subscribe(o=pe(r,d=>r.next(t?t(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var my="https://g.co/ng/security#xss",S=class extends Error{code;constructor(t,n){super(qo(t,n)),this.code=t}};function qo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function gr(e){return{toString:e}.toString()}var mo="__parameters__";function gy(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function $u(e,t,n){return gr(()=>{let r=gy(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(l,c,u){let d=l.hasOwnProperty(mo)?l[mo]:Object.defineProperty(l,mo,{value:[]})[mo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function H(e){for(let t in e)if(e[t]===H)return t;throw Error("Could not find renamed property on target object.")}function yy(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function De(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
`);return n===-1?t:t.substring(0,n)}function ou(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var vy=H({__forward_ref__:H});function Ve(e){return e.__forward_ref__=Ve,e.toString=function(){return De(this())},e}function se(e){return Gu(e)?e():e}function Gu(e){return typeof e=="function"&&e.hasOwnProperty(vy)&&e.__forward_ref__===Ve}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Za(e){return iu(e,Wu)||iu(e,zu)}function iu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dy(e){let t=e&&(e[Wu]||e[zu]);return t||null}function su(e){return e&&(e.hasOwnProperty(au)||e.hasOwnProperty(wy))?e[au]:null}var Wu=H({\u0275prov:H}),au=H({\u0275inj:H}),zu=H({ngInjectableDef:H}),wy=H({ngInjectorDef:H}),_=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=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qu(e){return e&&!!e.\u0275providers}var Ey=H({\u0275cmp:H}),Iy=H({\u0275dir:H}),_y=H({\u0275pipe:H});var _o=H({\u0275fac:H}),ar=H({__NG_ELEMENT_ID__:H}),lu=H({__NG_ENV_ID__:H});function Ka(e){return typeof e=="string"?e:e==null?"":String(e)}function Cy(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ka(e)}function by(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function Ya(e,t){throw new S(-201,!1)}var N=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}(N||{}),ia;function Zu(){return ia}function xe(e){let t=ia;return ia=e,t}function Ku(e,t,n){let r=Za(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Ya(e,"Injector")}var Sy={},lr=Sy,sa="__NG_DI_FLAG__",Co="ngTempTokenPath",xy="ngTokenPath",Ty=/\n/gm,My="\u0275",cu="__source",dn;function Ny(){return dn}function ut(e){let t=dn;return dn=e,t}function Ay(e,t=N.Default){if(dn===void 0)throw new S(-203,!1);return dn===null?Ku(e,void 0,t):dn.get(e,t&N.Optional?null:void 0,t)}function x(e,t=N.Default){return(Zu()||Ay)(se(e),t)}function C(e,t=N.Default){return x(e,Zo(t))}function Zo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function aa(e){let t=[];for(let n=0;n<e.length;n++){let r=se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=N.Default;for(let s=0;s<r.length;s++){let a=r[s],l=ky(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(x(o,i))}else t.push(x(r))}return t}function Yu(e,t){return e[sa]=t,e.prototype[sa]=t,e}function ky(e){return e[sa]}function Oy(e,t,n,r){let o=e[Co];throw t[cu]&&o.unshift(t[cu]),e.message=Ry(`
`+e.message,o,n,r),e[xy]=o,e[Co]=null,e}function Ry(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==My?e.slice(2):e;let o=De(t);if(Array.isArray(t))o=t.map(De).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):De(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ty,`
`)}`}var Qu=Yu($u("Optional"),8);var Fy=Yu($u("SkipSelf"),4);function pn(e,t){let n=e.hasOwnProperty(_o);return n?e[_o]:null}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Py(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 Ly(e,t,n){let r=yr(e,t);return r>=0?e[r|1]=n:(r=~r,Py(e,r,t,n)),r}function qs(e,t){let n=yr(e,t);if(n>=0)return e[n|1]}function yr(e,t){return Vy(e,t,1)}function Vy(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 hn={},Te=[],cr=new _(""),Xu=new _("",-1),ed=new _(""),So=class{get(t,n=lr){if(n===lr){let r=new Error(`NullInjectorError: No provider for ${De(t)}!`);throw r.name="NullInjectorError",r}return n}};function mn(e){return e[Ey]||null}function td(e){return e[Iy]||null}function nd(e){return e[_y]||null}function jy(e){let t=mn(e)||td(e)||nd(e);return t!==null?t.standalone:!1}function Ja(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:rd(!0,e),\u0275fromNgModule:!0}}function rd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Qa(t,s=>{let a=s;la(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];Xa(o,i=>{t(i,r)})}}function la(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=su(e),s=!i&&mn(e);if(!i&&!s){let l=e.ngModule;if(i=su(l),i)o=l;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 l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)la(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Qa(i.imports,u=>{la(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&od(c,t)}if(!a){let c=pn(o)||(()=>new o);t({provide:o,useFactory:c,deps:Te},o),t({provide:ed,useValue:o,multi:!0},o),t({provide:cr,useValue:()=>x(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Xa(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)qu(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n)}var Hy=H({provide:String,useValue:H});function id(e){return e!==null&&typeof e=="object"&&Hy in e}function Uy(e){return!!(e&&e.useExisting)}function $y(e){return!!(e&&e.useFactory)}function gn(e){return typeof e=="function"}function Gy(e){return!!e.useClass}var Ko=new _(""),vo={},Wy={},Zs;function el(){return Zs===void 0&&(Zs=new So),Zs}var Ge=class{},ur=class extends Ge{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,ua(t,s=>this.processProvider(s)),this.records.set(Xu,ln(void 0,this)),o.has("environment")&&this.records.set(Ge,ln(void 0,this));let i=this.records.get(Ko);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ed,Te,N.Self))}destroy(){ir(this),this._destroyed=!0;let t=R(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(),R(t)}}onDestroy(t){return ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ir(this);let n=ut(this),r=xe(void 0),o;try{return t()}finally{ut(n),xe(r)}}get(t,n=lr,r=N.Default){if(ir(this),t.hasOwnProperty(lu))return t[lu](this);r=Zo(r);let o,i=ut(this),s=xe(void 0);try{if(!(r&N.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=Yy(t)&&Za(t);c&&this.injectableDefInScope(c)?l=ln(ca(t),vo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&N.Self?el():this.parent;return n=r&N.Optional&&n===lr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Co]=a[Co]||[]).unshift(De(t)),i)throw a;return Oy(a,t,"R3InjectorError",this.source)}else throw a}finally{xe(s),ut(i)}}resolveInjectorInitializers(){let t=R(null),n=ut(this),r=xe(void 0),o;try{let i=this.get(cr,Te,N.Self);for(let s of i)s()}finally{ut(n),xe(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(De(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=gn(t)?t:se(t&&t.provide),r=qy(t);if(!gn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ln(void 0,vo,!0),o.factory=()=>aa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===vo&&(n.value=Wy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ky(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(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 ca(e){let t=Za(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof _)throw new S(204,!1);if(e instanceof Function)return zy(e);throw new S(204,!1)}function zy(e){if(e.length>0)throw new S(204,!1);let n=Dy(e);return n!==null?()=>n.factory(e):()=>new e}function qy(e){if(id(e))return ln(void 0,e.useValue);{let t=sd(e);return ln(t,vo)}}function sd(e,t,n){let r;if(gn(e)){let o=se(e);return pn(o)||ca(o)}else if(id(e))r=()=>se(e.useValue);else if($y(e))r=()=>e.useFactory(...aa(e.deps||[]));else if(Uy(e))r=()=>x(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(Zy(e))r=()=>new o(...aa(e.deps));else return pn(o)||ca(o)}return r}function ir(e){if(e.destroyed)throw new S(205,!1)}function ln(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zy(e){return!!e.deps}function Ky(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Yy(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function ua(e,t){for(let n of e)Array.isArray(n)?ua(n,t):n&&qu(n)?ua(n.\u0275providers,t):t(n)}function Yo(e,t){e instanceof ur&&ir(e);let n,r=ut(e),o=xe(void 0);try{return t()}finally{ut(r),xe(o)}}function Qy(){return Zu()!==void 0||Ny()!=null}function Jy(e){return typeof e=="function"}var et=0,A=1,I=2,ae=3,Pe=4,je=5,xo=6,To=7,Le=8,yn=9,pt=10,ne=11,dr=12,uu=13,Cn=14,We=15,vn=16,cn=17,Dn=18,Qo=19,ad=20,dt=21,Ks=22,Mo=23,we=24,Je=25,ld=1;var Ht=7,No=8,Ao=9,Me=10,ko=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ko||{});function ft(e){return Array.isArray(e)&&typeof e[ld]=="object"}function tt(e){return Array.isArray(e)&&e[ld]===!0}function cd(e){return(e.flags&4)!==0}function Jo(e){return e.componentOffset>-1}function tl(e){return(e.flags&1)===1}function ht(e){return!!e.template}function da(e){return(e[I]&512)!==0}var fa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ud(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bn=(()=>{let e=()=>dd;return e.ngInherit=!0,e})();function dd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ev),Xy}function Xy(){let e=pd(this),t=e?.current;if(t){let n=e.previous;if(n===hn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ev(e,t,n,r,o){let i=this.declaredInputs[r],s=pd(e)||tv(e,{previous:hn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new fa(c&&c.currentValue,n,l===hn),ud(e,t,o,n)}var fd="__ngSimpleChanges__";function pd(e){return e[fd]||null}function tv(e,t){return e[fd]=t}var du=null;var Ue=function(e,t,n){du?.(e,t,n)},nv="svg",rv="math";function ze(e){for(;Array.isArray(e);)e=e[et];return e}function hd(e,t){return ze(t[e])}function Ne(e,t){return ze(t[e.index])}function md(e,t){return e.data[t]}function ov(e,t){return e[t]}function Dt(e,t){let n=t[e];return ft(n)?n:n[et]}function nl(e){return(e[I]&128)===128}function iv(e){return tt(e[ae])}function Oo(e,t){return t==null?null:e[t]}function gd(e){e[cn]=0}function rl(e){e[I]&1024||(e[I]|=1024,nl(e)&&ei(e))}function sv(e,t){for(;e>0;)t=t[Cn],e--;return t}function Xo(e){return!!(e[I]&9216||e[we]?.dirty)}function pa(e){e[pt].changeDetectionScheduler?.notify(9),e[I]&64&&(e[I]|=1024),Xo(e)&&ei(e)}function ei(e){e[pt].changeDetectionScheduler?.notify(0);let t=Ut(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!nl(t)));)t=Ut(t)}function yd(e,t){if((e[I]&256)===256)throw new S(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function av(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Ut(e){let t=e[ae];return tt(t)?t[ae]:t}var T={lFrame:Sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ha=!1;function lv(){return T.lFrame.elementDepthCount}function cv(){T.lFrame.elementDepthCount++}function uv(){T.lFrame.elementDepthCount--}function vd(){return T.bindingsEnabled}function dv(){return T.skipHydrationRootTNode!==null}function fv(e){return T.skipHydrationRootTNode===e}function pv(){T.skipHydrationRootTNode=null}function j(){return T.lFrame.lView}function Ee(){return T.lFrame.tView}function U(e){return T.lFrame.contextLView=e,e[Le]}function $(e){return T.lFrame.contextLView=null,e}function ye(){let e=Dd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dd(){return T.lFrame.currentTNode}function hv(){let e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vr(e,t){let n=T.lFrame;n.currentTNode=e,n.isParent=t}function wd(){return T.lFrame.isParent}function mv(){T.lFrame.isParent=!1}function gv(){return T.lFrame.contextLView}function Ed(){return ha}function fu(e){let t=ha;return ha=e,t}function Id(){let e=T.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yv(e){return T.lFrame.bindingIndex=e}function ti(){return T.lFrame.bindingIndex++}function vv(e){let t=T.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dv(){return T.lFrame.inI18n}function wv(e,t){let n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,ma(t)}function Ev(){return T.lFrame.currentDirectiveIndex}function ma(e){T.lFrame.currentDirectiveIndex=e}function Iv(e){let t=T.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _d(e){T.lFrame.currentQueryIndex=e}function _v(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[je]:null}function Cd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=_v(i),o===null||(i=i[Cn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=T.lFrame=bd();return r.currentTNode=t,r.lView=e,!0}function ol(e){let t=bd(),n=e[A];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function bd(){let e=T.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 xd(){let e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Td=xd;function il(){let e=xd();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 Cv(e){return(T.lFrame.contextLView=sv(e,T.lFrame.contextLView))[Le]}function Sn(){return T.lFrame.selectedIndex}function $t(e){T.lFrame.selectedIndex=e}function sl(){let e=T.lFrame;return md(e.tView,e.selectedIndex)}function bv(){return T.lFrame.currentNamespace}var Md=!0;function al(){return Md}function ll(e){Md=e}function Sv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Do(e,t,n){Nd(e,t,3,n)}function wo(e,t,n,r){(e[I]&3)===n&&Nd(e,t,n,r)}function Ys(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nd(e,t,n,r){let o=r!==void 0?e[cn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[cn]+=65536),(a<i||i==-1)&&(xv(e,n,t,l),e[cn]=(e[cn]&4294901760)+l+2),l++}function pu(e,t){Ue(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),Ue(5,e,t)}}function xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[cn]>>16&&(e[I]&3)===t&&(e[I]+=16384,pu(a,i)):pu(a,i)}var fn=-1,Gt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Tv(e){return e instanceof Gt}function Mv(e){return(e.flags&8)!==0}function Nv(e){return(e.flags&16)!==0}function ga(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];kv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Av(e){return e===3||e===4||e===6}function kv(e){return e.charCodeAt(0)===64}function fr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?hu(e,n,o,null,t[++r]):hu(e,n,o,null,null))}}return e}function hu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Qs={},ya=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zo(r);let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function Ad(e){return e!==fn}function Ro(e){return e&32767}function Ov(e){return e>>16}function Fo(e,t){let n=Ov(e),r=t;for(;n>0;)r=r[Cn],n--;return r}var va=!0;function mu(e){let t=va;return va=e,t}var Rv=256,kd=Rv-1,Od=5,Fv=0,$e={};function Pv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ar)&&(r=n[ar]),r==null&&(r=n[ar]=Fv++);let o=r&kd,i=1<<o;t.data[e+(o>>Od)]|=i}function Po(e,t){let n=Rd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Js(r.data,e),Js(t,null),Js(r.blueprint,null));let o=ul(e,t),i=e.injectorIndex;if(Ad(o)){let s=Ro(o),a=Fo(o,t),l=a[A].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Js(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ul(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=jd(o),r===null)return fn;if(n++,o=o[Cn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn}function Da(e,t,n){Pv(e,t,n)}function Fd(e,t,n){if(n&N.Optional||e!==void 0)return e;Ya(t,"NodeInjector")}function Pd(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[yn],i=xe(void 0);try{return o?o.get(t,r,n&N.Optional):Ku(t,r,n&N.Optional)}finally{xe(i)}}return Fd(r,t,n)}function Ld(e,t,n,r=N.Default,o){if(e!==null){if(t[I]&2048&&!(r&N.Self)){let s=Hv(e,t,n,r,$e);if(s!==$e)return s}let i=Vd(e,t,n,r,$e);if(i!==$e)return i}return Pd(t,n,r,o)}function Vd(e,t,n,r,o){let i=jv(n);if(typeof i=="function"){if(!Cd(t,e,r))return r&N.Host?Fd(o,n,r):Pd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Ya(n);else return s}finally{Td()}}else if(typeof i=="number"){let s=null,a=Rd(e,t),l=fn,c=r&N.Host?t[We][je]:null;for((a===-1||r&N.SkipSelf)&&(l=a===-1?ul(e,t):t[a+8],l===fn||!yu(r,!1)?a=-1:(s=t[A],a=Ro(l),t=Fo(l,t)));a!==-1;){let u=t[A];if(gu(i,a,u.data)){let d=Lv(a,t,n,s,r,c);if(d!==$e)return d}l=t[a+8],l!==fn&&yu(r,t[A].data[a+8]===c)&&gu(i,a,t)?(s=u,a=Ro(l),t=Fo(l,t)):a=-1}}return o}function Lv(e,t,n,r,o,i){let s=t[A],a=s.data[e+8],l=r==null?Jo(a)&&va:r!=s&&(a.type&3)!==0,c=o&N.Host&&i===a,u=Vv(a,s,n,l,c);return u!==null?wn(t,s,u,a):$e}function Vv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&ht(f)&&f.type===n)return l}return null}function wn(e,t,n,r){let o=e[n],i=t.data;if(Tv(o)){let s=o;s.resolving&&by(Cy(i[n]));let a=mu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?xe(s.injectImpl):null,u=Cd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Sv(n,i[n],t)}finally{c!==null&&xe(c),mu(a),s.resolving=!1,Td()}}return o}function jv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&kd:Bv:t}function gu(e,t,n){let r=1<<e;return!!(n[t+(e>>Od)]&r)}function yu(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Bt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ld(this._tNode,this._lView,t,Zo(r),n)}};function Bv(){return new Bt(ye(),j())}function xn(e){return gr(()=>{let t=e.prototype.constructor,n=t[_o]||wa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||wa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wa(e){return Gu(e)?()=>{let t=wa(se(e));return t&&t()}:pn(e)}function Hv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Vd(i,s,n,r|N.Self,$e);if(a!==$e)return a;let l=i.parent;if(!l){let c=s[ad];if(c){let u=c.get(n,$e,r);if(u!==$e)return u}l=jd(s),s=s[Cn]}i=l}return o}function jd(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[je]:null}function vu(e,t=null,n=null,r){let o=Uv(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uv(e,t=null,n=null,r,o=new Set){let i=[n||Te,By(e)];return r=r||(typeof e=="object"?void 0:De(e)),new ur(i,t||el(),r||null,o)}var Wt=class e{static THROW_IF_NOT_FOUND=lr;static NULL=new So;static create(t,n){if(Array.isArray(t))return vu({name:""},n,t,"");{let r=t.name??"";return vu({name:r},t.parent,t.providers,r)}}static \u0275prov=k({token:e,providedIn:"any",factory:()=>x(Xu)});static __NG_ELEMENT_ID__=-1};var $v=new _("");$v.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new S(204,!1)};var Bd=!1,Hd=(()=>{class e{static __NG_ELEMENT_ID__=Gv;static __NG_ENV_ID__=n=>n}return e})(),Ea=class extends Hd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yd(this._lView,t),()=>av(this._lView,t)}};function Gv(){return new Ea(j())}var pr=class{},dl=new _("",{providedIn:"root",factory:()=>!1});var Ud=new _(""),$d=new _(""),Yt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new rr(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ia=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qy()&&(this.destroyRef=C(Hd,{optional:!0})??void 0,this.pendingTasks=C(Yt,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ie&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ge=Ia;function Lo(...e){}function Gd(e){let t,n;function r(){e=Lo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Du(e){return queueMicrotask(()=>e()),()=>{e=Lo}}var fl="isAngularZone",Vo=fl+"_ID",Wv=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Bd}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Zv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,zv,Lo,Lo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},zv={};function pl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Gd(()=>{e.callbackScheduled=!1,_a(e),e.isCheckStableRunning=!0,pl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),_a(e)}function Zv(e){let t=()=>{qv(e)},n=Wv++;e._inner=e._inner.fork({name:"angular",properties:{[fl]:!0,[Vo]:n,[Vo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Kv(l))return r.invokeTask(i,s,a,l);try{return wu(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Eu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return wu(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Yv(l)&&t(),Eu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,_a(e),pl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function _a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eu(e){e._nesting--,pl(e)}var Ca=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ge;onMicrotaskEmpty=new ge;onStable=new ge;onError=new ge;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Kv(e){return Wd(e,"__ignore_ng_zone__")}function Yv(e){return Wd(e,"__scheduler_tick__")}function Wd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Qv=new _("",{providedIn:"root",factory:()=>{let e=C(Y),t=C(mt);return n=>e.runOutsideAn