copilot-usage-studio 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +29 -4
  2. package/README.md +206 -150
  3. package/data/github-copilot-pricing.json +34 -6
  4. package/dist/copilot-usage-studio/browser/chunk-2SAR2Q6M.js +1 -0
  5. package/dist/copilot-usage-studio/browser/chunk-5JYQJM5G.js +1 -0
  6. package/dist/copilot-usage-studio/browser/chunk-7FKLWMFH.js +1 -0
  7. package/dist/copilot-usage-studio/browser/chunk-EWN3YOHT.js +1 -0
  8. package/dist/copilot-usage-studio/browser/chunk-KS5W2HMH.js +1 -0
  9. package/dist/copilot-usage-studio/browser/chunk-OS2XPCVW.js +2 -0
  10. package/dist/copilot-usage-studio/browser/chunk-U4H425LY.js +1 -0
  11. package/dist/copilot-usage-studio/browser/chunk-VEKXIM47.js +1 -0
  12. package/dist/copilot-usage-studio/browser/chunk-WOIYAEKB.js +4 -0
  13. package/dist/copilot-usage-studio/browser/chunk-XHID4XVE.js +1 -0
  14. package/dist/copilot-usage-studio/browser/index.html +11 -11
  15. package/dist/copilot-usage-studio/browser/main-OZIMQRXC.js +1 -0
  16. package/dist/copilot-usage-studio/browser/styles-7RDDQXQV.css +1 -0
  17. package/docs/copilot-memory.md +91 -0
  18. package/docs/local-deployment.md +119 -13
  19. package/docs/pricing.md +3 -3
  20. package/docs/scanner-api.md +32 -3
  21. package/lib/cli.mjs +15 -1
  22. package/lib/local-runtime.mjs +530 -19
  23. package/lib/scanner-worker.mjs +25 -0
  24. package/package.json +95 -78
  25. package/scripts/pricing-utils.mjs +5 -0
  26. package/scripts/scan-vscode-sessions.mjs +418 -1204
  27. package/scripts/scanner-customization-evidence.mjs +576 -0
  28. package/scripts/scanner-customization-inventory.mjs +1021 -0
  29. package/scripts/scanner-memory.mjs +229 -0
  30. package/scripts/scanner-session-parser.mjs +1237 -0
  31. package/scripts/scanner-traversal.mjs +203 -0
  32. package/scripts/scanner-workspace.mjs +209 -0
  33. package/dist/copilot-usage-studio/browser/chunk-C6VWIY5S.js +0 -1
  34. package/dist/copilot-usage-studio/browser/chunk-DLWQO3VR.js +0 -1
  35. package/dist/copilot-usage-studio/browser/chunk-F6TIG2GE.js +0 -4
  36. package/dist/copilot-usage-studio/browser/chunk-JIP7ONRZ.js +0 -1
  37. package/dist/copilot-usage-studio/browser/chunk-RNKEPBEU.js +0 -1
  38. package/dist/copilot-usage-studio/browser/chunk-Z3XIAKMM.js +0 -1
  39. package/dist/copilot-usage-studio/browser/main-C6XOJRSH.js +0 -2
  40. package/dist/copilot-usage-studio/browser/styles-GZOQ5QIH.css +0 -1
@@ -1,4 +0,0 @@
1
- var qh=Object.defineProperty,Zh=Object.defineProperties;var Yh=Object.getOwnPropertyDescriptors;var Nu=Object.getOwnPropertySymbols;var Qh=Object.prototype.hasOwnProperty,Kh=Object.prototype.propertyIsEnumerable;var Au=(e,t,n)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||={})Qh.call(t,n)&&Au(e,n,t[n]);if(Nu)for(var n of Nu(t))Kh.call(t,n)&&Au(e,n,t[n]);return e},F=(e,t)=>Zh(e,Yh(t));var X=null,Qr=!1,hs=1,Jh=null,te=Symbol("SIGNAL");function v(e){let t=X;return X=e,t}function eo(){return X}var bt={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Jt(e){if(Qr)throw new Error("");if(X===null)return;X.consumerOnSignalRead(e);let t=X.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=X.recomputing;if(r&&(n=t!==void 0?t.nextProducer:X.producers,n!==void 0&&n.producer===e)){X.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===X&&(!r||eg(o,X)))return;let i=en(X),s={producer:e,consumer:X,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};X.producersTail=s,t!==void 0?t.nextProducer=s:X.producers=s,i&&Ou(e,s)}function xu(){hs++}function to(e){if(!(en(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===hs)){if(!e.producerMustRecompute(e)&&!qn(e)){Xr(e);return}e.producerRecomputeValue(e),Xr(e)}}function gs(e){if(e.consumers===void 0)return;let t=Qr;Qr=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Xh(r)}}finally{Qr=t}}function ms(){return X?.consumerAllowSignalWrites!==!1}function Xh(e){e.dirty=!0,gs(e),e.consumerMarkedDirty?.(e)}function Xr(e){e.dirty=!1,e.lastCleanEpoch=hs}function wt(e){return e&&Fu(e),v(e)}function Fu(e){e.producersTail=void 0,e.recomputing=!0}function Xt(e,t){v(t),e&&Ru(e)}function Ru(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(en(e))do n=ys(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function qn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(to(n),r!==n.version))return!0}return!1}function Mt(e){if(en(e)){let t=e.producers;for(;t!==void 0;)t=ys(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ou(e,t){let n=e.consumersTail,r=en(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Ou(o.producer,o)}function ys(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!en(t)){let i=t.producers;for(;i!==void 0;)i=ys(i)}return n}function en(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function no(e){Jh?.(e)}function eg(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function ro(e,t){return Object.is(e,t)}function oo(e,t){let n=Object.create(tg);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(to(n),Jt(n),n.value===zn)throw n.error;return n.value};return r[te]=n,no(n),r}var Kr=Symbol("UNSET"),Jr=Symbol("COMPUTING"),zn=Symbol("ERRORED"),tg=F(T({},bt),{value:Kr,dirty:!0,error:null,equal:ro,kind:"computed",producerMustRecompute(e){return e.value===Kr||e.value===Jr},producerRecomputeValue(e){if(e.value===Jr)throw new Error("");let t=e.value;e.value=Jr;let n=wt(e),r,o=!1;try{r=e.computation(),v(null),o=t!==Kr&&t!==zn&&r!==zn&&e.equal(t,r)}catch(i){r=zn,e.error=i}finally{Xt(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function ng(){throw new Error}var ku=ng;function Pu(e){ku(e)}function vs(e){ku=e}var rg=null;function Ds(e,t){let n=Object.create(io);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Lu(n);return r[te]=n,no(n),[r,s=>tn(n,s),s=>Es(n,s)]}function Lu(e){return Jt(e),e.value}function tn(e,t){ms()||Pu(e),e.equal(e.value,t)||(e.value=t,og(e))}function Es(e,t){ms()||Pu(e),tn(e,t(e.value))}var io=F(T({},bt),{equal:ro,value:void 0,kind:"signal"});function og(e){e.version++,xu(),gs(e),rg?.(e)}var Cs=F(T({},bt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function _s(e){if(e.dirty=!1,e.version>0&&!qn(e))return;e.version++;let t=wt(e);try{e.cleanup(),e.fn()}finally{Xt(e,t)}}function I(e){return typeof e=="function"}function nn(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 so=nn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
- ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Zn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ne=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(I(r))try{r()}catch(i){t=i instanceof so?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Vu(i)}catch(s){t=t??[],s instanceof so?t=[...t,...s.errors]:t.push(s)}}if(t)throw new so(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vu(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)&&Zn(n,t)}remove(t){let{_finalizers:n}=this;n&&Zn(n,t),t instanceof e&&t._removeParent(this)}};ne.EMPTY=(()=>{let e=new ne;return e.closed=!0,e})();var Is=ne.EMPTY;function ao(e){return e instanceof ne||e&&"closed"in e&&I(e.remove)&&I(e.add)&&I(e.unsubscribe)}function Vu(e){I(e)?e():e.unsubscribe()}var be={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 co(e){rn.setTimeout(()=>{let{onUnhandledError:t}=be;if(t)t(e);else throw e})}function Yn(){}var ju=bs("C",void 0,void 0);function Bu(e){return bs("E",void 0,e)}function Hu(e){return bs("N",e,void 0)}function bs(e,t,n){return{kind:e,value:t,error:n}}var St=null;function on(e){if(be.useDeprecatedSynchronousErrorHandling){let t=!St;if(t&&(St={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=St;if(St=null,n)throw r}}else e()}function $u(e){be.useDeprecatedSynchronousErrorHandling&&St&&(St.errorThrown=!0,St.error=e)}var Tt=class extends ne{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ao(t)&&t.add(this)):this.destination=ag}static create(t,n,r){return new sn(t,n,r)}next(t){this.isStopped?Ms(Hu(t),this):this._next(t)}error(t){this.isStopped?Ms(Bu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ms(ju,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()}}},ig=Function.prototype.bind;function ws(e,t){return ig.call(e,t)}var Ss=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){uo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){uo(r)}else uo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){uo(n)}}},sn=class extends Tt{constructor(t,n,r){super();let o;if(I(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new Ss(o)}};function uo(e){be.useDeprecatedSynchronousErrorHandling?$u(e):co(e)}function sg(e){throw e}function Ms(e,t){let{onStoppedNotification:n}=be;n&&rn.setTimeout(()=>n(e,t))}var ag={closed:!0,next:Yn,error:sg,complete:Yn};var an=typeof Symbol=="function"&&Symbol.observable||"@@observable";function we(e){return e}function cg(...e){return Ts(e)}function Ts(e){return e.length===0?we:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A=(()=>{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=lg(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=Uu(r),new r((o,i)=>{let s=new sn({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)}[an](){return this}pipe(...n){return Ts(n)(this)}toPromise(n){return n=Uu(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 Uu(e){var t;return(t=e??be.Promise)!==null&&t!==void 0?t:Promise}function ug(e){return e&&I(e.next)&&I(e.error)&&I(e.complete)}function lg(e){return e&&e instanceof Tt||ug(e)&&ao(e)}function dg(e){return I(e?.lift)}function R(e){return t=>{if(dg(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 O(e,t,n,r,o){return new Ns(e,t,n,r,o)}var Ns=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))}}};var Gu=nn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var fe=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new lo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gu}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?Is:(this.currentObservers=null,i.push(n),new ne(()=>{this.currentObservers=null,Zn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new A;return n.source=this,n}}return e.create=(t,n)=>new lo(t,n),e})(),lo=class extends fe{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:Is}};var Qn=class extends fe{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 Kn=new A(e=>e.complete());function Wu(e){return e&&I(e.schedule)}function zu(e){return e[e.length-1]}function fo(e){return I(zu(e))?e.pop():void 0}function it(e){return Wu(zu(e))?e.pop():void 0}function Zu(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 qu(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 Yu(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(y){return new Promise(function(D,M){i.push([f,y,D,M])>1||c(f,y)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(y){p(i[0][3],y)}}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 Qu(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 qu=="function"?qu(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 po=e=>e&&typeof e.length=="number"&&typeof e!="function";function ho(e){return I(e?.then)}function go(e){return I(e[an])}function mo(e){return Symbol.asyncIterator&&I(e?.[Symbol.asyncIterator])}function yo(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 fg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vo=fg();function Do(e){return I(e?.[vo])}function Eo(e){return Yu(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 Co(e){return I(e?.getReader)}function W(e){if(e instanceof A)return e;if(e!=null){if(go(e))return pg(e);if(po(e))return hg(e);if(ho(e))return gg(e);if(mo(e))return Ku(e);if(Do(e))return mg(e);if(Co(e))return yg(e)}throw yo(e)}function pg(e){return new A(t=>{let n=e[an]();if(I(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hg(e){return new A(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function gg(e){return new A(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,co)})}function mg(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ku(e){return new A(t=>{vg(e,t).catch(n=>t.error(n))})}function yg(e){return Ku(Eo(e))}function vg(e,t){var n,r,o,i;return Zu(this,void 0,void 0,function*(){try{for(n=Qu(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 ie(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 _o(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>ie(r,e,()=>r.next(o),t),()=>ie(r,e,()=>r.complete(),t),o=>ie(r,e,()=>r.error(o),t)))})}function Io(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ju(e,t){return W(e).pipe(Io(t),_o(t))}function Xu(e,t){return W(e).pipe(Io(t),_o(t))}function el(e,t){return new A(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function tl(e,t){return new A(n=>{let r;return ie(n,t,()=>{r=e[vo](),ie(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)}),()=>I(r?.return)&&r.return()})}function bo(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(n=>{ie(n,t,()=>{let r=e[Symbol.asyncIterator]();ie(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function nl(e,t){return bo(Eo(e),t)}function rl(e,t){if(e!=null){if(go(e))return Ju(e,t);if(po(e))return el(e,t);if(ho(e))return Xu(e,t);if(mo(e))return bo(e,t);if(Do(e))return tl(e,t);if(Co(e))return nl(e,t)}throw yo(e)}function Le(e,t){return t?rl(e,t):W(e)}function Dg(...e){let t=it(e);return Le(e,t)}function Eg(e,t){let n=I(e)?e:()=>e,r=o=>o.error(n());return new A(t?o=>t.schedule(r,0,o):r)}function Cg(e){return!!e&&(e instanceof A||I(e.lift)&&I(e.subscribe))}var Jn=nn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ge(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:_g}=Array;function Ig(e,t){return _g(t)?e(...t):e(t)}function wo(e){return Ge(t=>Ig(e,t))}var{isArray:bg}=Array,{getPrototypeOf:wg,prototype:Mg,keys:Sg}=Object;function Mo(e){if(e.length===1){let t=e[0];if(bg(t))return{args:t,keys:null};if(Tg(t)){let n=Sg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Tg(e){return e&&typeof e=="object"&&wg(e)===Mg}function So(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ng(...e){let t=it(e),n=fo(e),{args:r,keys:o}=Mo(e);if(r.length===0)return Le([],t);let i=new A(Ag(r,t,o?s=>So(o,s):we));return n?i.pipe(wo(n)):i}function Ag(e,t,n=we){return r=>{ol(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ol(t,()=>{let u=Le(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ol(e,t,n){e?ie(n,e,t):t()}function il(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=!1;W(n(y,l++)).subscribe(O(t,M=>{o?.(M),i?f(M):t.next(M)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let M=c.shift();s?ie(t,s,()=>h(M)):h(M)}p()}catch(M){t.error(M)}}))};return e.subscribe(O(t,f,()=>{d=!0,p()})),()=>{a?.()}}function At(e,t,n=1/0){return I(t)?At((r,o)=>Ge((i,s)=>t(r,i,o,s))(W(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>il(r,o,e,n)))}function sl(e=1/0){return At(we,e)}function al(){return sl(1)}function To(...e){return al()(Le(e,it(e)))}function xg(e){return new A(t=>{W(e()).subscribe(t)})}function As(...e){let t=fo(e),{args:n,keys:r}=Mo(e),o=new A(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;W(n[l]).subscribe(O(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?So(r,a):a),i.complete())}))}});return t?o.pipe(wo(t)):o}function xs(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function cl(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=W(e(s,cl(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Fg(e,t){return I(t)?At(e,t,1):At(e,1)}function ul(e){return R((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Fs(e){return e<=0?()=>Kn:R((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ll(e=Rg){return R((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Rg(){return new Jn}function Og(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function kg(e,t){let n=arguments.length>=2;return r=>r.pipe(e?xs((o,i)=>e(o,i,r)):we,Fs(1),n?ul(t):ll(()=>new Jn))}function Pg(e){return e<=0?()=>Kn:R((t,n)=>{let r=[];t.subscribe(O(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 Lg(...e){let t=it(e);return R((n,r)=>{(t?To(e,n,t):To(e,n)).subscribe(r)})}function Vg(e,t){return R((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;W(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function jg(e){return R((t,n)=>{W(e).subscribe(O(n,()=>n.complete(),Yn)),!n.closed&&t.subscribe(n)})}function Bg(e,t,n){let r=I(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(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)}))}):we}var Rs;function No(){return Rs}function Ve(e){let t=Rs;return Rs=e,t}var dl=Symbol("NotFound");function cn(e){return e===dl||e?.name==="\u0275NotFound"}function fl(e){let t=v(null);try{return e()}finally{v(t)}}var Po="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",C=class extends Error{code;constructor(t,n){super(Lo(t,n)),this.code=t}};function Hg(e){return`NG0${Math.abs(e)}`}function Lo(e,t){return`${Hg(e)}${t?": "+t:""}`}var ln=globalThis;function k(e){for(let t in e)if(e[t]===k)return t;throw Error("")}function yl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ir(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ir).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(`
4
- `);return r>=0?n.slice(0,r):n}function zs(e,t){return e?t?`${e} ${t}`:e:t||""}var $g=k({__forward_ref__:k});function qe(e){return e.__forward_ref__=qe,e}function Q(e){return qs(e)?e():e}function qs(e){return typeof e=="function"&&e.hasOwnProperty($g)&&e.__forward_ref__===qe}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dn(e){return{providers:e.providers||[],imports:e.imports||[]}}function sr(e){return Gg(e,Vo)}function Ug(e){return sr(e)!==null}function Gg(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Wg(e){let t=e?.[Vo]??null;return t||null}function ks(e){return e&&e.hasOwnProperty(xo)?e[xo]:null}var Vo=k({\u0275prov:k}),xo=k({\u0275inj:k}),b=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zs(e){return e&&!!e.\u0275providers}var Ys=k({\u0275cmp:k}),Qs=k({\u0275dir:k}),Ks=k({\u0275pipe:k}),Js=k({\u0275mod:k}),er=k({\u0275fac:k}),Pt=k({__NG_ELEMENT_ID__:k}),pl=k({__NG_ENV_ID__:k});function Xs(e){return Bo(e,"@NgModule"),e[Js]||null}function Ze(e){return Bo(e,"@Component"),e[Ys]||null}function jo(e){return Bo(e,"@Directive"),e[Qs]||null}function ea(e){return Bo(e,"@Pipe"),e[Ks]||null}function Bo(e,t){if(e==null)throw new C(-919,!1)}function Ye(e){return typeof e=="string"?e:e==null?"":String(e)}var vl=k({ngErrorCode:k}),zg=k({ngErrorMessage:k}),qg=k({ngTokenPath:k});function ta(e,t){return Dl("",-200,t)}function Ho(e,t){throw new C(-201,!1)}function Dl(e,t,n){let r=new C(t,e);return r[vl]=t,r[zg]=e,n&&(r[qg]=n),r}function Zg(e){return e[vl]}var Ps;function El(){return Ps}function re(e){let t=Ps;return Ps=e,t}function na(e,t,n){let r=sr(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;Ho(e,"")}var Yg={},xt=Yg,Qg="__NG_DI_FLAG__",Ls=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ft(n)||0;try{return this.injector.get(t,r&8?null:xt,r)}catch(o){if(cn(o))return o;throw o}}};function Kg(e,t=0){let n=No();if(n===void 0)throw new C(-203,!1);if(n===null)return na(e,void 0,t);{let r=Jg(t),o=n.retrieve(e,r);if(cn(o)){if(r.optional)return null;throw o}return o}}function K(e,t=0){return(El()||Kg)(Q(e),t)}function m(e,t){return K(e,Ft(t))}function Ft(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Jg(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Vs(e){let t=[];for(let n=0;n<e.length;n++){let r=Q(e[n]);if(Array.isArray(r)){if(r.length===0)throw new C(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Xg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(K(o,i))}else t.push(K(r))}return t}function Xg(e){return e[Qg]}function st(e,t){let n=e.hasOwnProperty(er);return n?e[er]:null}function Cl(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 _l(e){return e.flat(Number.POSITIVE_INFINITY)}function $o(e,t){e.forEach(n=>Array.isArray(n)?$o(n,t):t(n))}function ra(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ar(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Il(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 bl(e,t,n){let r=fn(e,t);return r>=0?e[r|1]=n:(r=~r,Il(e,r,t,n)),r}function Uo(e,t){let n=fn(e,t);if(n>=0)return e[n|1]}function fn(e,t){return em(e,t,1)}function em(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 ut={},he=[],pn=new b(""),oa=new b("",-1),ia=new b(""),tr=class{get(t,n=xt){if(n===xt){let o=Dl("",-201);throw o.name="\u0275NotFound",o}return n}};function Go(e){return{\u0275providers:e}}function wl(e){return Go([{provide:pn,multi:!0,useValue:e}])}function Ml(...e){return{\u0275providers:Wo(!0,e),\u0275fromNgModule:!0}}function Wo(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return $o(t,s=>{let a=s;Fo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Sl(o,i),n}function Sl(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];sa(o,i=>{t(i,r)})}}function Fo(e,t,n,r){if(e=Q(e),!e)return!1;let o=null,i=ks(e),s=!i&&Ze(e);if(!i&&!s){let c=e.ngModule;if(i=ks(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)Fo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;$o(i.imports,l=>{Fo(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&Sl(u,t)}if(!a){let u=st(o)||(()=>new o);t({provide:o,useFactory:u,deps:he},o),t({provide:ia,useValue:o,multi:!0},o),t({provide:pn,useValue:()=>K(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;sa(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function sa(e,t){for(let n of e)Zs(n)&&(n=n.\u0275providers),Array.isArray(n)?sa(n,t):t(n)}var tm=k({provide:String,useValue:k});function Tl(e){return e!==null&&typeof e=="object"&&tm in e}function nm(e){return!!(e&&e.useExisting)}function rm(e){return!!(e&&e.useFactory)}function Rt(e){return typeof e=="function"}function Nl(e){return!!e.useClass}var aa=new b(""),Ao={},hl={},Os;function cr(){return Os===void 0&&(Os=new tr),Os}var ge=class{},Ot=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,Bs(t,s=>this.processProvider(s)),this.records.set(oa,un(void 0,this)),o.has("environment")&&this.records.set(ge,un(void 0,this));let i=this.records.get(aa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ia,he,{self:!0}))}retrieve(t,n){let r=Ft(n)||0;try{return this.get(t,xt,r)}catch(o){if(cn(o))return o;throw o}}destroy(){Xn(this),this._destroyed=!0;let t=v(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(),v(t)}}onDestroy(t){return Xn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Xn(this);let n=Ve(this),r=re(void 0),o;try{return t()}finally{Ve(n),re(r)}}get(t,n=xt,r){if(Xn(this),t.hasOwnProperty(pl))return t[pl](this);let o=Ft(r),i,s=Ve(this),a=re(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=cm(t)&&sr(t);l&&this.injectableDefInScope(l)?u=un(js(t),Ao):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?cr():this.parent;return n=o&8&&n===xt?null:n,c.get(t,n)}catch(c){let u=Zg(c);throw u===-200||u===-201?new C(u,null):c}finally{re(a),Ve(s)}}resolveInjectorInitializers(){let t=v(null),n=Ve(this),r=re(void 0),o;try{let i=this.get(pn,he,{self:!0});for(let s of i)s()}finally{Ve(n),re(r),v(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Q(t);let n=Rt(t)?t:Q(t&&t.provide),r=im(t);if(!Rt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=un(void 0,Ao,!0),o.factory=()=>Vs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=v(null);try{if(n.value===hl)throw ta("");return n.value===Ao&&(n.value=hl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&am(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Q(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 js(e){let t=sr(e),n=t!==null?t.factory:st(e);if(n!==null)return n;if(e instanceof b)throw new C(-204,!1);if(e instanceof Function)return om(e);throw new C(-204,!1)}function om(e){if(e.length>0)throw new C(-204,!1);let n=Wg(e);return n!==null?()=>n.factory(e):()=>new e}function im(e){if(Tl(e))return un(void 0,e.useValue);{let t=ca(e);return un(t,Ao)}}function ca(e,t,n){let r;if(Rt(e)){let o=Q(e);return st(o)||js(o)}else if(Tl(e))r=()=>Q(e.useValue);else if(rm(e))r=()=>e.useFactory(...Vs(e.deps||[]));else if(nm(e))r=(o,i)=>K(Q(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Q(e&&(e.useClass||e.provide));if(sm(e))r=()=>new o(...Vs(e.deps));else return st(o)||js(o)}return r}function Xn(e){if(e.destroyed)throw new C(-205,!1)}function un(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sm(e){return!!e.deps}function am(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function cm(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Bs(e,t){for(let n of e)Array.isArray(n)?Bs(n,t):n&&Zs(n)?Bs(n.\u0275providers,t):t(n)}function zo(e,t){let n;e instanceof Ot?(Xn(e),n=e):n=new Ls(e);let r,o=Ve(n),i=re(void 0);try{return t()}finally{Ve(o),re(i)}}function Al(){return El()!==void 0||No()!=null}var Te=0,g=1,E=2,z=3,De=4,Ee=5,hn=6,gn=7,G=8,oe=9,Ne=10,B=11,mn=12,ua=13,Lt=14,me=15,lt=16,Vt=17,je=18,Qe=19,la=20,We=21,qo=22,at=23,ye=24,jt=25,dt=26,H=27,xl=1,ft=6,pt=7,ur=8,Bt=9,$=10;function Ke(e){return Array.isArray(e)&&typeof e[xl]=="object"}function Ae(e){return Array.isArray(e)&&e[xl]===!0}function da(e){return(e.flags&4)!==0}function Je(e){return e.componentOffset>-1}function Zo(e){return(e.flags&1)===1}function Be(e){return!!e.template}function yn(e){return(e[E]&512)!==0}function ht(e){return(e[E]&256)===256}var Fl="svg",Rl="math";function Ce(e){for(;Array.isArray(e);)e=e[Te];return e}function fa(e,t){return Ce(t[e])}function xe(e,t){return Ce(t[e.index])}function vn(e,t){return e.data[t]}function pa(e,t){return e[t]}function ha(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function _e(e,t){let n=t[e];return Ke(n)?n:n[Te]}function Ol(e){return(e[E]&4)===4}function Yo(e){return(e[E]&128)===128}function kl(e){return Ae(e[z])}function Fe(e,t){return t==null?null:e[t]}function ga(e){e[Vt]=0}function ma(e){e[E]&1024||(e[E]|=1024,Yo(e)&&Ht(e))}function Pl(e,t){for(;e>0;)t=t[Lt],e--;return t}function lr(e){return!!(e[E]&9216||e[ye]?.dirty)}function Qo(e){e[Ne].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),lr(e)&&Ht(e)}function Ht(e){e[Ne].changeDetectionScheduler?.notify(0);let t=ct(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Yo(t)));)t=ct(t)}function Ko(e,t){if(ht(e))throw new C(911,!1);e[We]===null&&(e[We]=[]),e[We].push(t)}function ya(e,t){if(e[We]===null)return;let n=e[We].indexOf(t);n!==-1&&e[We].splice(n,1)}function ct(e){let t=e[z];return Ae(t)?t[z]:t}function va(e){return e[gn]??=[]}function Da(e){return e.cleanup??=[]}function Ll(e,t,n,r){let o=va(t);o.push(n),e.firstCreatePass&&Da(e).push(r,o.length-1)}var w={lFrame:Ql(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Hs=!1;function Vl(){return w.lFrame.elementDepthCount}function jl(){w.lFrame.elementDepthCount++}function Ea(){w.lFrame.elementDepthCount--}function Bl(){return w.bindingsEnabled}function Hl(){return w.skipHydrationRootTNode!==null}function Ca(e){return w.skipHydrationRootTNode===e}function _a(){w.skipHydrationRootTNode=null}function _(){return w.lFrame.lView}function q(){return w.lFrame.tView}function Jo(e){return w.lFrame.contextLView=e,e[G]}function Xo(e){return w.lFrame.contextLView=null,e}function J(){let e=Ia();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ia(){return w.lFrame.currentTNode}function $l(){let e=w.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dn(e,t){let n=w.lFrame;n.currentTNode=e,n.isParent=t}function ba(){return w.lFrame.isParent}function Ul(){w.lFrame.isParent=!1}function wa(){return Hs}function nr(e){let t=Hs;return Hs=e,t}function Ma(){let e=w.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Sa(){return w.lFrame.bindingIndex}function Gl(e){return w.lFrame.bindingIndex=e}function $t(){return w.lFrame.bindingIndex++}function ei(e){let t=w.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Wl(){return w.lFrame.inI18n}function zl(e,t){let n=w.lFrame;n.bindingIndex=n.bindingRootIndex=e,ti(t)}function ql(){return w.lFrame.currentDirectiveIndex}function ti(e){w.lFrame.currentDirectiveIndex=e}function Zl(e){let t=w.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ta(){return w.lFrame.currentQueryIndex}function ni(e){w.lFrame.currentQueryIndex=e}function um(e){let t=e[g];return t.type===2?t.declTNode:t.type===1?e[Ee]:null}function Na(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=um(i),o===null||(i=i[Lt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=w.lFrame=Yl();return r.currentTNode=t,r.lView=e,!0}function ri(e){let t=Yl(),n=e[g];w.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Yl(){let e=w.lFrame,t=e===null?null:e.child;return t===null?Ql(e):t}function Ql(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 Kl(){let e=w.lFrame;return w.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Aa=Kl;function oi(){let e=Kl();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 Jl(e){return(w.lFrame.contextLView=Pl(e,w.lFrame.contextLView))[G]}function He(){return w.lFrame.selectedIndex}function gt(e){w.lFrame.selectedIndex=e}function ii(){let e=w.lFrame;return vn(e.tView,e.selectedIndex)}function Xl(){return w.lFrame.currentNamespace}var ed=!0;function si(){return ed}function ai(e){ed=e}function $s(e,t=null,n=null,r){let o=xa(e,t,n,r);return o.resolveInjectorInitializers(),o}function xa(e,t=null,n=null,r,o=new Set){let i=[n||he,Ml(e)],s;return new Ot(i,t||cr(),s||null,o)}var Me=class e{static THROW_IF_NOT_FOUND=xt;static NULL=new tr;static create(t,n){if(Array.isArray(t))return $s({name:""},n,t,"");{let r=t.name??"";return $s({name:r},t.parent,t.providers,r)}}static \u0275prov=L({token:e,providedIn:"any",factory:()=>K(oa)});static __NG_ELEMENT_ID__=-1},Xe=new b(""),et=(()=>{class e{static __NG_ELEMENT_ID__=lm;static __NG_ENV_ID__=n=>n}return e})(),Ro=class extends et{_lView;constructor(t){super(),this._lView=t}get destroyed(){return ht(this._lView)}onDestroy(t){let n=this._lView;return Ko(n,t),()=>ya(n,t)}};function lm(){return new Ro(_())}var td=!1,nd=new b(""),Ut=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Qn(!1);debugTaskTracker=m(nd,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new A(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})(),Us=class extends fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Al()&&(this.destroyRef=m(et,{optional:!0})??void 0,this.pendingTasks=m(Ut,{optional:!0})??void 0)}emit(t){let n=v(null);try{super.next(t)}finally{v(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}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 ne&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},pe=Us;function Oo(...e){}function Fa(e){let t,n;function r(){e=Oo;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 rd(e){return queueMicrotask(()=>e()),()=>{e=Oo}}var Ra="isAngularZone",rr=Ra+"_ID",dm=0,Se=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new pe(!1);onMicrotaskEmpty=new pe(!1);onStable=new pe(!1);onError=new pe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=td}=t;if(typeof Zone>"u")throw new C(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,hm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ra)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(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,fm,Oo,Oo);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)}},fm={};function Oa(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 pm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Fa(()=>{e.callbackScheduled=!1,Gs(e),e.isCheckStableRunning=!0,Oa(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Gs(e)}function hm(e){let t=()=>{pm(e)},n=dm++;e._inner=e._inner.fork({name:"angular",properties:{[Ra]:!0,[rr]:n,[rr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(gm(c))return r.invokeTask(i,s,a,c);try{return gl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ml(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return gl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!mm(c)&&t(),ml(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Gs(e),Oa(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 Gs(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function gl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ml(e){e._nesting--,Oa(e)}var or=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new pe;onMicrotaskEmpty=new pe;onStable=new pe;onError=new pe;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 gm(e){return od(e,"__ignore_ng_zone__")}function mm(e){return od(e,"__scheduler_tick__")}function od(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var kt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},tt=new b("",{factory:()=>{let e=m(Se),t=m(ge),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(kt),n.handleError(r))})}}}),id={provide:pn,useValue:()=>{let e=m(kt,{optional:!0})},multi:!0},ym=new b("",{factory:()=>{let e=m(Xe).defaultView;if(!e)return;let t=m(tt),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),m(et).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function vm(){return Go([wl(()=>{m(ym)})])}function En(e,t){let[n,r,o]=Ds(e,t?.equal),i=n,s=i[te];return i.set=r,i.update=o,i.asReadonly=sd.bind(i),i}function sd(){let e=this[te];if(e.readonlyFn===void 0){let t=()=>this();t[te]=e,e.readonlyFn=t}return e.readonlyFn}var dr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Dm}return e})();function Dm(){return new dr(_(),J())}var ze=class{},fr=new b("",{factory:()=>!0});var ka=new b(""),Pa=(()=>{class e{internalPendingTasks=m(Ut);scheduler=m(ze);errorHandler=m(tt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})(),ci=(()=>{class e{static \u0275prov=L({token:e,providedIn:"root",factory:()=>new Ws})}return e})(),Ws=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},ko=class{[te];constructor(t){this[te]=t}destroy(){this[te].destroy()}};function Em(e,t){let n=t?.injector??m(Me),r=t?.manualCleanup!==!0?n.get(et):null,o,i=n.get(dr,null,{optional:!0}),s=n.get(ze);return i!==null?(o=Im(i.view,s,e),r instanceof Ro&&r._lView===i.view&&(r=null)):o=bm(e,n.get(ci),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ko(o)}var ad=F(T({},Cs),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=nr(!1);try{_s(this)}finally{nr(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=v(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],v(e)}}}),Cm=F(T({},ad),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Mt(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),_m=F(T({},ad),{consumerMarkedDirty(){this.view[E]|=8192,Ht(this.view),this.notifier.notify(13)},destroy(){if(Mt(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[at]?.delete(this)}});function Im(e,t,n){let r=Object.create(_m);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=cd(r,n),e[at]??=new Set,e[at].add(r),r.consumerMarkedDirty(r),r}function bm(e,t,n){let r=Object.create(Cm);return r.fn=cd(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function cd(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function wr(e){return{toString:e}.toString()}function Om(e){return typeof e=="function"}function Gd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var mi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},ki=(()=>{let e=()=>Wd;return e.ngInherit=!0,e})();function Wd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pm),km}function km(){let e=qd(this),t=e?.current;if(t){let n=e.previous;if(n===ut)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Pm(e,t,n,r,o){let i=this.declaredInputs[r],s=qd(e)||Lm(e,{previous:ut,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new mi(u&&u.currentValue,n,c===ut),Gd(e,t,o,n)}var zd="__ngSimpleChanges__";function qd(e){return e[zd]||null}function Lm(e,t){return e[zd]=t}var ud=[];var N=function(e,t=null,n){for(let r=0;r<ud.length;r++){let o=ud[r];o(e,t,n)}},S=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(S||{});function Vm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Wd(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 jm(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:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function li(e,t,n){Zd(e,t,3,n)}function di(e,t,n,r){(e[E]&3)===n&&Zd(e,t,n,r)}function La(e,t){let n=e[E];(n&3)===t&&(n&=16383,n+=1,e[E]=n)}function Zd(e,t,n,r){let o=r!==void 0?e[Vt]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Vt]+=65536),(a<i||i==-1)&&(Bm(e,n,t,c),e[Vt]=(e[Vt]&4294901760)+c+2),c++}function ld(e,t){N(S.LifecycleHookStart,e,t);let n=v(null);try{t.call(e)}finally{v(n),N(S.LifecycleHookEnd,e,t)}}function Bm(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[E]>>14<e[Vt]>>16&&(e[E]&3)===t&&(e[E]+=16384,ld(a,i)):ld(a,i)}var _n=-1,Wt=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Hm(e){return(e.flags&8)!==0}function $m(e){return(e.flags&16)!==0}function Um(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];Wm(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Gm(e){return e===3||e===4||e===6}function Wm(e){return e.charCodeAt(0)===64}function bn(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?dd(e,n,o,null,t[++r]):dd(e,n,o,null,null))}}return e}function dd(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){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Yd(e){return e!==_n}function yi(e){return e&32767}function zm(e){return e>>16}function vi(e,t){let n=zm(e),r=t;for(;n>0;)r=r[Lt],n--;return r}var Qa=!0;function Di(e){let t=Qa;return Qa=e,t}var qm=256,Qd=qm-1,Kd=5,Zm=0,$e={};function Ym(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pt)&&(r=n[Pt]),r==null&&(r=n[Pt]=Zm++);let o=r&Qd,i=1<<o;t.data[e+(o>>Kd)]|=i}function Ei(e,t){let n=Jd(e,t);if(n!==-1)return n;let r=t[g];r.firstCreatePass&&(e.injectorIndex=t.length,Va(r.data,e),Va(t,null),Va(r.blueprint,null));let o=bc(e,t),i=e.injectorIndex;if(Yd(o)){let s=yi(o),a=vi(o,t),c=a[g].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Va(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function bc(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=rf(o),r===null)return _n;if(n++,o=o[Lt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _n}function Ka(e,t,n){Ym(e,t,n)}function Xd(e,t,n){if(n&8||e!==void 0)return e;Ho(t,"NodeInjector")}function ef(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[oe],i=re(void 0);try{return o?o.get(t,r,n&8):na(t,r,n&8)}finally{re(i)}}return Xd(r,t,n)}function tf(e,t,n,r=0,o){if(e!==null){if(t[E]&2048&&!(r&2)){let s=Xm(e,t,n,r,$e);if(s!==$e)return s}let i=nf(e,t,n,r,$e);if(i!==$e)return i}return ef(t,n,r,o)}function nf(e,t,n,r,o){let i=Km(n);if(typeof i=="function"){if(!Na(t,e,r))return r&1?Xd(o,n,r):ef(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ho(n);else return s}finally{Aa()}}else if(typeof i=="number"){let s=null,a=Jd(e,t),c=_n,u=r&1?t[me][Ee]:null;for((a===-1||r&4)&&(c=a===-1?bc(e,t):t[a+8],c===_n||!pd(r,!1)?a=-1:(s=t[g],a=yi(c),t=vi(c,t)));a!==-1;){let l=t[g];if(fd(i,a,l.data)){let d=Qm(a,t,n,s,r,u);if(d!==$e)return d}c=t[a+8],c!==_n&&pd(r,t[g].data[a+8]===u)&&fd(i,a,t)?(s=l,a=yi(c),t=vi(c,t)):a=-1}}return o}function Qm(e,t,n,r,o,i){let s=t[g],a=s.data[e+8],c=r==null?Je(a)&&Qa:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=fi(a,s,n,c,u);return l!==null?yr(t,s,l,a,o):$e}function fi(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Be(f)&&f.type===n)return c}return null}function yr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Wt){let a=i;if(a.resolving)throw ta("");let c=Di(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?re(a.injectImpl):null,p=Na(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Vm(n,s[n],t)}finally{d!==null&&re(d),Di(c),a.resolving=!1,Aa()}}return i}function Km(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Pt)?e[Pt]:void 0;return typeof t=="number"?t>=0?t&Qd:Jm:t}function fd(e,t,n){let r=1<<e;return!!(n[t+(e>>Kd)]&r)}function pd(e,t){return!(e&2)&&!(e&1&&t)}var Gt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return tf(this._tNode,this._lView,t,Ft(r),n)}};function Jm(){return new Gt(J(),_())}function xn(e){return wr(()=>{let t=e.prototype.constructor,n=t[er]||Ja(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[er]||Ja(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ja(e){return qs(e)?()=>{let t=Ja(Q(e));return t&&t()}:st(e)}function Xm(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!yn(s);){let a=nf(i,s,n,r|2,$e);if(a!==$e)return a;let c=i.parent;if(!c){let u=s[la];if(u){let l=u.get(n,$e,r&-5);if(l!==$e)return l}c=rf(s),s=s[Lt]}i=c}return o}function rf(e){let t=e[g],n=t.type;return n===2?t.declTNode:n===1?e[Ee]:null}function ey(){return Fn(J(),_())}function Fn(e,t){return new ae(xe(e,t))}var ae=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ey}return e})();function ty(e){return e instanceof ae?e.nativeElement:e}function ny(){return this._results[Symbol.iterator]()}var Ci=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new fe}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=_l(t);(this._changesDetected=!Cl(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=ny};function of(e){return(e.flags&128)===128}var wc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(wc||{}),sf=new Map,ry=0;function oy(){return ry++}function iy(e){sf.set(e[Qe],e)}function Xa(e){sf.delete(e[Qe])}var hd="__ngContext__";function wn(e,t){Ke(t)?(e[hd]=t[Qe],iy(t)):e[hd]=t}function af(e){return uf(e[mn])}function cf(e){return uf(e[De])}function uf(e){for(;e!==null&&!Ae(e);)e=e[De];return e}var sy;function ay(e){sy=e}var cy=new b("",{factory:()=>uy}),uy="ng";var lf=new b(""),ly=new b("",{providedIn:"platform",factory:()=>"unknown"});var dy=new b("",{factory:()=>m(Xe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var df="r";var Mc="di",Sc="s";var ff=!1,pf=new b("",{factory:()=>ff});var hf=new b("");var gd=new WeakMap;function fy(e,t){if(e==null||typeof e!="object")return;let n=gd.get(e);n||(n=new WeakSet,gd.set(e,n)),n.add(t)}var py=(e,t,n,r)=>{};function hy(e,t,n,r){py(e,t,n,r)}var gf=new b("");function Tc(e){return(e.flags&32)===32}var gy=()=>null;function mf(e,t,n=!1){return gy(e,t,n)}function Nc(e){return e.get(hf,!1,{optional:!0})}function yf(e,t){let n=e.contentQueries;if(n!==null){let r=v(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ni(i),a.contentQueries(2,t[s],s)}}}finally{v(r)}}}function ec(e,t,n){ni(0);let r=v(null);try{t(e,n)}finally{v(r)}}function vf(e,t,n){if(da(t)){let r=v(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{v(r)}}}var zt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(zt||{});var _i=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Po})`}};function Ac(e){return e instanceof _i?e.changingThisBreaksApplicationSecurity:e}function Df(e,t){let n=Ef(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Po})`)}return n===t}function Ef(e){return e instanceof _i&&e.getTypeName()||null}var my=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cf(e){return e=String(e),e.match(my)?e:"unsafe:"+e}function yy(e,t){return e.createText(t)}function vy(e,t,n){e.setValue(t,n)}function _f(e,t,n){return e.createElement(t,n)}function Ii(e,t,n,r,o){e.insertBefore(t,n,r,o)}function If(e,t,n){e.appendChild(t,n)}function md(e,t,n,r,o){r!==null?Ii(e,t,n,r,o):If(e,t,n)}function bf(e,t,n,r){e.removeChild(null,t,n,r)}function Dy(e,t,n){e.setAttribute(t,"style",n)}function Ey(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function wf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Um(e,t,r),o!==null&&Ey(e,t,o),i!==null&&Dy(e,t,i)}var xc=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(xc||{});function Cy(e){let t=_y();return t?t.sanitize(xc.URL,e)||"":Df(e,"URL")?Ac(e):Cf(Ye(e))}function _y(){let e=_();return e&&e[Ne].sanitizer}function Mf(e){return e instanceof Function?e():e}function Iy(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Sf="ng-template";function by(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Iy(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Fc(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Fc(e){return e.type===4&&e.value!==Sf}function wy(e,t,n){let r=e.type===4&&!n?Sf:e.value;return t===r}function My(e,t,n){let r=4,o=e.attrs,i=o!==null?Ny(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Re(r)&&!Re(c))return!1;if(s&&Re(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!wy(e,c,n)||c===""&&t.length===1){if(Re(r))return!1;s=!0}}else if(r&8){if(o===null||!by(e,o,c,n)){if(Re(r))return!1;s=!0}}else{let u=t[++a],l=Sy(c,o,Fc(e),n);if(l===-1){if(Re(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Re(r))return!1;s=!0}}}}return Re(r)||s}function Re(e){return(e&1)===0}function Sy(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Ay(t,e)}function Ty(e,t,n=!1){for(let r=0;r<t.length;r++)if(My(e,t[r],n))return!0;return!1}function Ny(e){for(let t=0;t<e.length;t++){let n=e[t];if(Gm(n))return t}return e.length}function Ay(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function yd(e,t){return e?":not("+t.trim()+")":t}function xy(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Re(s)&&(t+=yd(i,o),o=""),r=s,i=i||!Re(r);n++}return o!==""&&(t+=yd(i,o)),t}function Fy(e){return e.map(xy).join(",")}function Ry(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Re(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ce={};function Rc(e,t,n,r,o,i,s,a,c,u,l){let d=H+r,p=d+o,f=Oy(d,p),h=typeof u=="function"?u():u;return f[g]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function Oy(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ce);return n}function ky(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Rc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Oc(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Te]=o,d[E]=r|4|128|8|64|1024,(u!==null||e&&e[E]&2048)&&(d[E]|=2048),ga(d),d[z]=d[Lt]=e,d[G]=n,d[Ne]=s||e&&e[Ne],d[B]=a||e&&e[B],d[oe]=c||e&&e[oe]||null,d[Ee]=i,d[Qe]=oy(),d[hn]=l,d[la]=u,d[me]=t.type==2?e[me]:d,d}function Py(e,t,n){let r=xe(t,e),o=ky(n),i=e[Ne].rendererFactory,s=kc(e,Oc(e,o,null,Tf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Tf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Nf(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function kc(e,t){return e[mn]?e[ua][De]=t:e[mn]=t,e[ua]=t,t}function Mr(e=1){Af(q(),_(),He()+e,!1)}function Af(e,t,n,r){if(!r)if((t[E]&3)===3){let i=e.preOrderCheckHooks;i!==null&&li(t,i,n)}else{let i=e.preOrderHooks;i!==null&&di(t,i,0,n)}gt(n)}var Pi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Pi||{});function tc(e,t,n,r){let o=v(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Pi.SignalBased)!==0&&(c=t[i][te]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Gd(t,c,i,r)}finally{v(o)}}var vr=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(vr||{}),Ly;function Pc(e,t){return Ly(e,t)}var L0=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var nc=new WeakMap,hr=new WeakSet;function Vy(e,t){let n=nc.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),hr.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function jy(e,t){let n=nc.get(e);n?n.includes(t)||n.push(t):nc.set(e,[t])}var Dr=new Set,Li=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Li||{}),Rn=new b(""),vd=new Set;function vt(e){vd.has(e)||(vd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Lc=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})(),xf=[0,1,2,3],Ff=(()=>{class e{ngZone=m(Se);scheduler=m(ze);errorHandler=m(kt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){m(Rn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&N(S.AfterRenderHooksStart),this.executing=!0;for(let r of xf)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&N(S.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[jt]??=[]).push(n),Ht(r),r[E]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Li.AFTER_NEXT_RENDER,n):n()}static \u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})(),bi=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[jt];t&&(this.view[jt]=t.filter(n=>n!==this))}};function Vc(e,t){let n=t?.injector??m(Me);return vt("NgAfterNextRender"),Hy(e,n,t,!0)}function By(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Hy(e,t,n,r){let o=t.get(Lc);o.impl??=t.get(Ff);let i=t.get(Rn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(et):null,a=t.get(dr,null,{optional:!0}),c=new bi(o.impl,By(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Rf=new b("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:m(ge)})});function Of(e,t,n){let r=e.get(Rf);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function $y(e,t){let n=e.get(Rf);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function Uy(e,t){for(let[n,r]of t)Of(e,r.animateFns)}function Dd(e,t,n,r){let o=e?.[dt]?.enter;t!==null&&o&&o.has(n.index)&&Uy(r,o)}function Cn(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Ae(o)?c=o:Ke(o)&&(u=!0,o=o[Te]);let l=Ce(o);e===0&&r!==null?(Dd(a,r,i,n),s==null?If(t,r,l):Ii(t,r,l,s||null,!0)):e===1&&r!==null?(Dd(a,r,i,n),Ii(t,r,l,s||null,!0),Vy(i,l)):e===2?(a?.[dt]?.leave?.has(i.index)&&jy(i,l),hr.delete(l),Ed(a,i,n,d=>{if(hr.has(l)){hr.delete(l);return}bf(t,l,u,d)})):e===3&&(hr.delete(l),Ed(a,i,n,()=>{t.destroyNode(l)})),c!=null&&nv(t,e,n,c,i,r,s)}}function Gy(e,t){kf(e,t),t[Te]=null,t[Ee]=null}function Wy(e,t,n,r,o,i){r[Te]=o,r[Ee]=t,ji(e,r,n,1,o,i)}function kf(e,t){t[Ne].changeDetectionScheduler?.notify(9),ji(e,t,t[B],2,null,null)}function zy(e){let t=e[mn];if(!t)return ja(e[g],e);for(;t;){let n=null;if(Ke(t))n=t[mn];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[De]&&t!==e;)Ke(t)&&ja(t[g],t),t=t[z];t===null&&(t=e),Ke(t)&&ja(t[g],t),n=t&&t[De]}t=n}}function jc(e,t){let n=e[Bt],r=n.indexOf(t);n.splice(r,1)}function Vi(e,t){if(ht(t))return;let n=t[B];n.destroyNode&&ji(e,t,n,3,null,null),zy(t)}function ja(e,t){if(ht(t))return;let n=v(null);try{t[E]&=-129,t[E]|=256,t[ye]&&Mt(t[ye]),Yy(e,t),Zy(e,t),t[g].type===1&&t[B].destroy();let r=t[lt];if(r!==null&&Ae(t[z])){r!==t[z]&&jc(r,t);let o=t[je];o!==null&&o.detachView(e)}Xa(t)}finally{v(n)}}function Ed(e,t,n,r){let o=e?.[dt];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Dr.add(e[Qe]),Of(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),qy(e,r)}else e&&Dr.delete(e[Qe]),r(!1)},o)}function qy(e,t){let n=e[dt]?.running;if(n){n.then(()=>{e[dt].running=void 0,Dr.delete(e[Qe]),t(!0)});return}t(!1)}function Zy(e,t){let n=e.cleanup,r=t[gn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[gn]=null);let o=t[We];if(o!==null){t[We]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[at];if(i!==null){t[at]=null;for(let s of i)s.destroy()}}function Yy(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Wt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];N(S.LifecycleHookStart,a,c);try{c.call(a)}finally{N(S.LifecycleHookEnd,a,c)}}else{N(S.LifecycleHookStart,o,i);try{i.call(o)}finally{N(S.LifecycleHookEnd,o,i)}}}}}function Qy(e,t,n){return Ky(e,t.parent,n)}function Ky(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Te];if(Je(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===zt.None||o===zt.Emulated)return null}return xe(r,n)}function Jy(e,t,n){return ev(e,t,n)}function Xy(e,t,n){return e.type&40?xe(e,n):null}var ev=Xy,Cd;function Bc(e,t,n,r){let o=Qy(e,r,t),i=t[B],s=r.parent||t[Ee],a=Jy(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)md(i,o,n[c],a,!1);else md(i,o,n,a,!1);Cd!==void 0&&Cd(i,r,t,n,o)}function gr(e,t){if(t!==null){let n=t.type;if(n&3)return xe(t,e);if(n&4)return rc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gr(e,r);{let o=e[t.index];return Ae(o)?rc(-1,o):Ce(o)}}else{if(n&128)return gr(e,t.next);if(n&32)return Pc(t,e)()||Ce(e[t.index]);{let r=Pf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=ct(e[me]);return gr(o,r)}else return gr(e,t.next)}}}return null}function Pf(e,t){if(t!==null){let r=e[me][Ee],o=t.projection;return r.projection[o]}return null}function rc(e,t){let n=$+e+1;if(n<t.length){let r=t[n],o=r[g].firstChild;if(o!==null)return gr(r,o)}return t[pt]}function Hc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[oe];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&wn(Ce(c),r),n.flags|=2),!Tc(n))if(u&8)Hc(e,t,n.child,r,o,i,!1),Cn(t,e,a,o,c,n,i,r);else if(u&32){let l=Pc(n,r),d;for(;d=l();)Cn(t,e,a,o,d,n,i,r);Cn(t,e,a,o,c,n,i,r)}else u&16?tv(e,t,r,n,o,i):Cn(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ji(e,t,n,r,o,i){Hc(n,r,e.firstChild,t,o,i,!1)}function tv(e,t,n,r,o,i){let s=n[me],c=s[Ee].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Cn(t,e,n[oe],o,l,r,i,n)}else{let u=c,l=s[z];of(r)&&(u.flags|=128),Hc(e,t,u,l,o,i,!0)}}function nv(e,t,n,r,o,i,s){let a=r[pt],c=Ce(r);a!==c&&Cn(t,e,n,i,a,o,s);for(let u=$;u<r.length;u++){let l=r[u];ji(l[g],l,e,t,i,a)}}function rv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:vr.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=vr.Important),e.setStyle(n,r,o,i))}}function Lf(e,t,n,r,o){let i=He(),s=r&2;try{gt(-1),s&&t.length>H&&Af(e,t,H,!1);let a=s?S.TemplateUpdateStart:S.TemplateCreateStart;N(a,o,n),n(r,o)}finally{gt(i);let a=s?S.TemplateUpdateEnd:S.TemplateCreateEnd;N(a,o,n)}}function Vf(e,t,n){lv(e,t,n),(n.flags&64)===64&&dv(e,t,n)}function $c(e,t,n=xe){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function ov(e,t,n,r){let i=r.get(pf,ff)||n===zt.ShadowDom||n===zt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return iv(s),s}function iv(e){sv(e)}var sv=()=>null;function av(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function cv(e,t,n,r,o,i){let s=t[g];if(Gc(e,s,t,n,r)){Je(e)&&uv(t,e.index);return}e.type&3&&(n=av(n)),jf(e,t,n,r,o,i)}function jf(e,t,n,r,o,i){if(e.type&3){let s=xe(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function uv(e,t){let n=_e(t,e);n[E]&16||(n[E]|=64)}function lv(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Je(n)&&Py(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ei(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=yr(t,e,s,n);if(wn(c,t),i!==null&&mv(t,s-r,c,a,n,i),Be(a)){let u=_e(n.index,t);u[G]=yr(t,e,s,n)}}}function dv(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ql();try{gt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ti(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&fv(c,u)}}finally{gt(-1),ti(s)}}function fv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function pv(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ty(t,i.selectors,!1)&&(r??=[],Be(i)?r.unshift(i):r.push(i))}return r}function hv(e,t,n,r,o,i){let s=xe(e,t);gv(t[B],s,i,e.value,n,r,o)}function gv(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Ye(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function mv(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];tc(r,n,c,u)}}function Bf(e,t,n,r,o){let i=H+n,s=t[g],a=o(s,t,e,r,n);t[i]=a,Dn(e,!0);let c=e.type===2;return c?(wf(t[B],a,e),(Vl()===0||Zo(e))&&wn(a,t),jl()):wn(a,t),si()&&(!c||!Tc(e))&&Bc(s,t,a,e),e}function Hf(e){let t=e;return ba()?Ul():(t=t.parent,Dn(t,!1)),t}function Uc(e,t){let n=e[oe];if(!n)return;let r;try{r=n.get(tt,null)}catch{r=null}r?.(t)}function Gc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];tc(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];tc(l,u,r,o),a=!0}return a}function yv(e,t){let n=_e(t,e),r=n[g];vv(r,n);let o=n[Te];o!==null&&n[hn]===null&&(n[hn]=mf(o,n[oe])),N(S.ComponentStart);try{Wc(r,n,n[G])}finally{N(S.ComponentEnd,n[G])}}function vv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Wc(e,t,n){ri(t);try{let r=e.viewQuery;r!==null&&ec(1,r,n);let o=e.template;o!==null&&Lf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[je]?.finishViewCreation(e),e.staticContentQueries&&yf(e,t),e.staticViewQueries&&ec(2,e.viewQuery,n);let i=e.components;i!==null&&Dv(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[E]&=-5,oi()}}function Dv(e,t){for(let n=0;n<t.length;n++)yv(e,t[n])}function Sr(e,t,n,r){let o=v(null);try{let i=t.tView,a=e[E]&4096?4096:16,c=Oc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[lt]=u;let l=e[je];return l!==null&&(c[je]=l.createEmbeddedView(i)),Wc(i,c,n),c}finally{v(o)}}function Mn(e,t){return!t||t.firstChild===null||of(e)}function Er(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ce(i)),Ae(i)&&$f(i,r);let s=n.type;if(s&8)Er(e,t,n.child,r);else if(s&32){let a=Pc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Pf(t,n);if(Array.isArray(a))r.push(...a);else{let c=ct(t[me]);Er(c[g],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function $f(e,t){for(let n=$;n<e.length;n++){let r=e[n],o=r[g].firstChild;o!==null&&Er(r[g],r,o,t)}e[pt]!==e[Te]&&t.push(e[pt])}function Uf(e){if(e[jt]!==null){for(let t of e[jt])t.impl.addSequence(t);e[jt].length=0}}var Gf=[];function Ev(e){return e[ye]??Cv(e)}function Cv(e){let t=Gf.pop()??Object.create(Iv);return t.lView=e,t}function _v(e){e.lView[ye]!==e&&(e.lView=null,Gf.push(e))}var Iv=F(T({},bt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ht(e.lView)},consumerOnSignalRead(){this.lView[ye]=this}});function bv(e){let t=e[ye]??Object.create(wv);return t.lView=e,t}var wv=F(T({},bt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=ct(e.lView);for(;t&&!Wf(t[g]);)t=ct(t);t&&ma(t)},consumerOnSignalRead(){this.lView[ye]=this}});function Wf(e){return e.type!==2}function zf(e){if(e[at]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[at])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[E]&8192)}}var Mv=100;function qf(e,t=0){let r=e[Ne].rendererFactory,o=!1;o||r.begin?.();try{Sv(e,t)}finally{o||r.end?.()}}function Sv(e,t){let n=wa();try{nr(!0),oc(e,t);let r=0;for(;lr(e);){if(r===Mv)throw new C(103,!1);r++,oc(e,1)}}finally{nr(n)}}function Tv(e,t,n,r){if(ht(t))return;let o=t[E],i=!1,s=!1;ri(t);let a=!0,c=null,u=null;i||(Wf(e)?(u=Ev(t),c=wt(u)):eo()===null?(a=!1,u=bv(t),c=wt(u)):t[ye]&&(Mt(t[ye]),t[ye]=null));try{ga(t),Gl(e.bindingStartIndex),n!==null&&Lf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&li(t,f,null)}else{let f=e.preOrderHooks;f!==null&&di(t,f,0,null),La(t,0)}if(s||Nv(t),zf(t),Zf(t,0),e.contentQueries!==null&&yf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&li(t,f)}else{let f=e.contentHooks;f!==null&&di(t,f,1),La(t,1)}xv(e,t);let d=e.components;d!==null&&Qf(t,d,0);let p=e.viewQuery;if(p!==null&&ec(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&li(t,f)}else{let f=e.viewHooks;f!==null&&di(t,f,2),La(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[qo]){for(let f of t[qo])f();t[qo]=null}i||(Uf(t),t[E]&=-73)}catch(l){throw i||Ht(t),l}finally{u!==null&&(Xt(u,c),a&&_v(u)),oi()}}function Zf(e,t){for(let n=af(e);n!==null;n=cf(n))for(let r=$;r<n.length;r++){let o=n[r];Yf(o,t)}}function Nv(e){for(let t=af(e);t!==null;t=cf(t)){if(!(t[E]&2))continue;let n=t[Bt];for(let r=0;r<n.length;r++){let o=n[r];ma(o)}}}function Av(e,t,n){N(S.ComponentStart);let r=_e(t,e);try{Yf(r,n)}finally{N(S.ComponentEnd,r[G])}}function Yf(e,t){Yo(e)&&oc(e,t)}function oc(e,t){let r=e[g],o=e[E],i=e[ye],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&qn(i)),s||=!1,i&&(i.dirty=!1),e[E]&=-9217,s)Tv(r,e,r.template,e[G]);else if(o&8192){let a=v(null);try{zf(e),Zf(e,1);let c=r.components;c!==null&&Qf(e,c,1),Uf(e)}finally{v(a)}}}function Qf(e,t,n){for(let r=0;r<t.length;r++)Av(e,t[r],n)}function xv(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)gt(~o);else{let i=o,s=n[++r],a=n[++r];zl(s,i);let c=t[i];N(S.HostBindingsUpdateStart,c);try{a(2,c)}finally{N(S.HostBindingsUpdateEnd,c)}}}}finally{gt(-1)}}function Bi(e,t){let n=wa()?64:1088;for(e[Ne].changeDetectionScheduler?.notify(t);e;){e[E]|=n;let r=ct(e);if(yn(e)&&!r)return e;e=r}return null}function Kf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Jf(e,t){let n=$+t;if(n<e.length)return e[n]}function Tr(e,t,n,r=!0){let o=t[g];if(Fv(o,t,e,n),r){let s=rc(n,e),a=t[B],c=a.parentNode(e[pt]);c!==null&&Wy(o,e[Ee],a,t,c,s)}let i=t[hn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function zc(e,t){let n=Cr(e,t);return n!==void 0&&Vi(n[g],n),n}function Cr(e,t){if(e.length<=$)return;let n=$+t,r=e[n];if(r){let o=r[lt];o!==null&&o!==e&&jc(o,r),t>0&&(e[n-1][De]=r[De]);let i=ar(e,$+t);Gy(r[g],r);let s=i[je];s!==null&&s.detachView(i[g]),r[z]=null,r[De]=null,r[E]&=-129}return r}function Fv(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][De]=t),r<i-$?(t[De]=n[o],ra(n,$+r,t)):(n.push(t),t[De]=null),t[z]=n;let s=t[lt];s!==null&&n!==s&&Xf(s,t);let a=t[je];a!==null&&a.insertView(e),Qo(t),t[E]|=128}function Xf(e,t){let n=e[Bt],r=t[z];if(Ke(r))e[E]|=2;else{let o=r[z][me];t[me]!==o&&(e[E]|=2)}n===null?e[Bt]=[t]:n.push(t)}var yt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[g];return Er(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[G]}set context(t){this._lView[G]=t}get destroyed(){return ht(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[z];if(Ae(t)){let n=t[ur],r=n?n.indexOf(this):-1;r>-1&&(Cr(t,r),ar(n,r))}this._attachedToViewContainer=!1}Vi(this._lView[g],this._lView)}onDestroy(t){Ko(this._lView,t)}markForCheck(){Bi(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){Qo(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,qf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=yn(this._lView),n=this._lView[lt];n!==null&&!t&&jc(n,this._lView),kf(this._lView[g],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=yn(this._lView),r=this._lView[lt];r!==null&&!n&&Xf(r,this._lView),Qo(this._lView)}};var Sn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Rv;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Sr(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new yt(i)}}return e})();function Rv(){return qc(J(),_())}function qc(e,t){return e.type&4?new Sn(t,e,Fn(e,t)):null}function Hi(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ov(e,t,n,r,o),Wl()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=$l();i.injectorIndex=s===null?-1:s.injectorIndex}return Dn(i,!0),i}function Ov(e,t,n,r,o){let i=Ia(),s=ba(),a=s?i:i&&i.parent,c=e.data[t]=Pv(e,a,n,t,r,o);return kv(e,c,i,s),c}function kv(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Pv(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Hl()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Lv(e){let t=e[ft]??[],r=e[z][B],o=[];for(let i of t)i.data[Mc]!==void 0?o.push(i):Vv(i,r);e[ft]=o}function Vv(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[df];for(;n<o;){let i=r.nextSibling;bf(t,r,!1),r=i,n++}}}var jv=()=>null,Bv=()=>null;function ic(e,t){return jv(e,t)}function ep(e,t,n){return Bv(e,t,n)}var tp=class{},$i=class{},sc=class{resolveComponentFactory(t){throw new C(917,!1)}},Nr=class{static NULL=new sc},_r=class{},Dt=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Hv()}return e})();function Hv(){let e=_(),t=J(),n=_e(t.index,e);return(Ke(n)?n:e)[B]}var np=(()=>{class e{static \u0275prov=L({token:e,providedIn:"root",factory:()=>null})}return e})();var pi={},In=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,pi,r);return o!==pi||n===pi?o:this.parentInjector.get(t,n,r)}};function wi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=zs(o,a);else if(i==2){let c=a,u=t[++s];r=zs(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function x(e,t=0){let n=_();if(n===null)return K(e,t);let r=J();return tf(r,n,Q(e),t)}function $v(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}Wv(e,t,n,a,i,c,u)}i!==null&&r!==null&&Uv(n,r,i)}function Uv(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new C(-301,!1);r.push(t[o],i)}}function Gv(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Wv(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Be(f)&&(c=f,Gv(e,n,p)),Ka(Ei(n,t),e,f.type)}Kv(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=Nf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=bn(n.mergedAttrs,f.hostAttrs),qv(e,n,t,d,f),Qv(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}zv(e,n,i)}function zv(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))_d(0,t,o,r),_d(1,t,o,r),bd(t,r,!1);else{let i=n.get(o);Id(0,t,i,r),Id(1,t,i,r),bd(t,r,!0)}}}function _d(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),rp(t,i)}}function Id(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),rp(t,s)}}function rp(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function bd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Fc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function qv(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=st(o.type,!0)),s=new Wt(i,Be(o),x,null);e.blueprint[r]=s,n[r]=s,Zv(e,t,r,Nf(e,n,o.hostVars,ce),o)}function Zv(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Yv(s)!=a&&s.push(a),s.push(n,r,i)}}function Yv(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Qv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Be(t)&&(n[""]=e)}}function Kv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function op(e,t,n,r,o,i,s,a){let c=t[g],u=c.consts,l=Fe(u,s),d=Hi(c,e,n,r,l);return i&&$v(c,t,d,Fe(u,a),o),d.mergedAttrs=bn(d.mergedAttrs,d.attrs),d.attrs!==null&&wi(d,d.attrs,!1),d.mergedAttrs!==null&&wi(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function ip(e,t){jm(e,t),da(t)&&e.queries.elementEnd(t)}function Jv(e,t,n,r,o,i){let s=t.consts,a=Fe(s,o),c=Hi(t,e,n,r,a);if(c.mergedAttrs=bn(c.mergedAttrs,c.attrs),i!=null){let u=Fe(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&wi(c,c.attrs,!1),c.mergedAttrs!==null&&wi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function sp(e,t,n){return e[t]=n}function Oe(e,t,n){if(n===ce)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Zc(e,t,n,r){let o=Oe(e,t,n);return Oe(e,t+1,r)||o}function Xv(e,t,n,r,o){let i=Zc(e,t,n,r);return Oe(e,t+2,o)||i}function hi(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&fy(o,i);let s=Je(e)?_e(e.index,t):t;Bi(s,5);let a=t[G],c=wd(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=wd(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function wd(e,t,n,r){let o=v(null);try{return N(S.OutputStart,t,n),n(r)!==!1}catch(i){return Uc(e,i),!1}finally{N(S.OutputEnd,t,n),v(o)}}function ap(e,t,n,r,o,i,s,a){let c=Zo(e),u=!1,l=null;if(!r&&c&&(l=tD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=xe(e,n),p=r?r(d):d;hy(n,p,i,a),r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!eD(i)){let h=r?y=>r(Ce(y[e.index])):e.index;cp(h,t,n,i,a,f,!1)}}return u}function eD(e){return e.startsWith("animation")||e.startsWith("transition")}function tD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[gn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function cp(e,t,n,r,o,i,s){let a=t.firstCreatePass?Da(t):null,c=va(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Md(e,t,n,r,o,i){let s=t[n],a=t[g],u=a.data[n].outputs[r],d=s[u].subscribe(i);cp(e.index,a,t,o,i,d,!0)}var ac=Symbol("BINDING");function up(e){return e.debugInfo?.className||e.type.name||null}var Mi=class extends Nr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Ze(t);return new Tn(n,this.ngModule)}};function nD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Pi.SignalBased)!==0};return o&&(i.transform=o),i})}function rD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function oD(e,t,n){let r=t instanceof ge?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new In(n,r):n}function iD(e){let t=e.get(_r,null);if(t===null)throw new C(407,!1);let n=e.get(np,null),r=e.get(ze,null),o=e.get(Rn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function sD(e,t){let n=lp(e);return _f(t,n,n==="svg"?Fl:n==="math"?Rl:null)}function lp(e){return(e.selectors[0][0]||"div").toLowerCase()}var Tn=class extends $i{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=nD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=rD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Fy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){N(S.DynamicComponentStart);let a=v(null);try{let c=this.componentDef,u=oD(c,o||this.ngModule,t),l=iD(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(up(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{v(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=aD(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?ov(u,o,a.encapsulation,n):sD(a,u),d=s?.some(Sd)||i?.some(h=>typeof h!="function"&&h.bindings.some(Sd)),p=Oc(null,c,null,512|Tf(a),null,null,t,u,n,null,mf(l,n,!0));p[H]=l,ri(p);let f=null;try{let h=op(H,p,2,"#host",()=>c.directiveRegistry,!0,0);wf(u,l,h),wn(l,p),Vf(c,p,h),vf(c,h,p),ip(c,h),r!==void 0&&uD(h,this.ngContentSelectors,r),f=_e(h.index,p),p[G]=f[G],Wc(c,p,null)}catch(h){throw f!==null&&Xa(f),Xa(p),h}finally{N(S.DynamicComponentEnd),oi()}return new Si(this.componentType,p,!!d)}};function aD(e,t,n,r){let o=e?["ng-version","21.2.11"]:Ry(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ac].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[ac].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=jo(d);c.push(p)}return Rc(0,null,cD(i,s),1,a,c,null,null,null,[o],null)}function cD(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Sd(e){let t=e[ac].kind;return t==="input"||t==="twoWay"}var Si=class extends tp{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vn(n[g],H),this.location=Fn(this._tNode,n),this.instance=_e(this._tNode.index,n)[G],this.hostView=this.changeDetectorRef=new yt(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Gc(r,o[g],o,t,n);this.previousInputValues.set(t,n);let s=_e(r.index,o);Bi(s,1)}get injector(){return new Gt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function uD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Ar=(()=>{class e{static __NG_ELEMENT_ID__=lD}return e})();function lD(){let e=J();return dp(e,_())}var cc=class e extends Ar{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fn(this._hostTNode,this._hostLView)}get injector(){return new Gt(this._hostTNode,this._hostLView)}get parentInjector(){let t=bc(this._hostTNode,this._hostLView);if(Yd(t)){let n=vi(t,this._hostLView),r=yi(t),o=n[g].data[r+8];return new Gt(o,n)}else return new Gt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Td(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ic(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mn(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Om(t),u;if(c)u=n;else{let D=n||{};u=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef,s=D.directives,a=D.bindings}let l=c?t:new Tn(Ze(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let M=(c?d:this.parentInjector).get(ge,null);M&&(i=M)}let p=Ze(l.componentType??{}),f=ic(this._lContainer,p?.id??null),h=f?.firstChild??null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,u,Mn(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(kl(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[z],u=new e(c,c[Ee],c[z]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tr(s,o,i,r),t.attachToViewContainerRef(),ra(Ba(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Td(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Cr(this._lContainer,n);r&&(ar(Ba(this._lContainer),n),Vi(r[g],r))}detach(t){let n=this._adjustIndex(t,-1),r=Cr(this._lContainer,n);return r&&ar(Ba(this._lContainer),n)!=null?new yt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Td(e){return e[ur]}function Ba(e){return e[ur]||(e[ur]=[])}function dp(e,t){let n,r=t[e.index];return Ae(r)?n=r:(n=Kf(r,t,null,e),t[e.index]=n,kc(t,n)),fD(n,t,e,r),new cc(n,e,t)}function dD(e,t){let n=e[B],r=n.createComment(""),o=xe(t,e),i=n.parentNode(o);return Ii(n,i,r,n.nextSibling(o),!1),r}var fD=hD,pD=()=>!1;function fp(e,t,n){return pD(e,t,n)}function hD(e,t,n,r){if(e[pt])return;let o;n.type&8?o=Ce(r):o=dD(t,n),e[pt]=o}var uc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},lc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Yc(t,n).matches!==null&&this.queries[n].setDirty()}},dc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=_D(t):this.predicate=t}},fc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},pc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,gD(n,i)),this.matchTNodeWithReadOption(t,n,fi(n,t,i,!1,!1))}else r===Sn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,fi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ae||o===Ar||o===Sn&&n.type&4)this.addMatch(n.index,-2);else{let i=fi(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function gD(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function mD(e,t){return e.type&11?Fn(e,t):e.type&4?qc(e,t):null}function yD(e,t,n,r){return n===-1?mD(t,e):n===-2?vD(e,t,r):yr(e,e[g],n,t)}function vD(e,t,n){if(n===ae)return Fn(t,e);if(n===Sn)return qc(t,e);if(n===Ar)return dp(t,e)}function pp(e,t,n,r){let o=t[je].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(yD(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function hc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=pp(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=$;d<l.length;d++){let p=l[d];p[lt]===p[z]&&hc(p[g],p,u,r)}if(l[Bt]!==null){let d=l[Bt];for(let p=0;p<d.length;p++){let f=d[p];hc(f[g],f,u,r)}}}}}return r}function DD(e,t){return e[je].queries[t].queryList}function ED(e,t,n){let r=new Ci((n&4)===4);return Ll(e,t,r,r.destroy),(t[je]??=new lc).queries.push(new uc(r))-1}function CD(e,t,n){let r=q();return r.firstCreatePass&&(ID(r,new dc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),ED(r,_(),t)}function _D(e){return e.split(",").map(t=>t.trim())}function ID(e,t,n){e.queries===null&&(e.queries=new fc),e.queries.track(new pc(t,n))}function Yc(e,t){return e.queries.getByIndex(t)}function bD(e,t){let n=e[g],r=Yc(n,t);return r.crossesNgTemplate?hc(n,e,t,[]):pp(n,e,r,t)}var qt=class{},hp=class{};var Ti=class extends qt{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Mi(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Xs(t);this._bootstrapComponents=Mf(i.bootstrap),this._r3Injector=xa(t,n,[{provide:qt,useValue:this},{provide:Nr,useValue:this.componentFactoryResolver},...r],ir(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ni=class extends hp{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ti(this.moduleType,t,[])}};var Ir=class extends qt{injector;componentFactoryResolver=new Mi(this);instance=null;constructor(t){super();let n=new Ot([...t.providers,{provide:qt,useValue:this},{provide:Nr,useValue:this.componentFactoryResolver}],t.parent||cr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Qc(e,t,n=null){return new Ir({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var wD=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Wo(!1,n.type),o=r.length>0?Qc([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(K(ge))})}return e})();function Kc(e){return wr(()=>{let t=gp(e),n=F(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(wD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||zt.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&vt("NgStandalone"),mp(n);let r=e.dependencies;return n.directiveDefs=Nd(r,MD),n.pipeDefs=Nd(r,ea),n.id=ND(n),n})}function MD(e){return Ze(e)||jo(e)}function xr(e){return wr(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function SD(e,t){if(e==null)return ut;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Pi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function TD(e){if(e==null)return ut;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ve(e){return wr(()=>{let t=gp(e);return mp(t),t})}function Ui(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function gp(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||ut,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:SD(e.inputs,t),outputs:TD(e.outputs),debugInfo:null}}function mp(e){e.features?.forEach(t=>t(e))}function Nd(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function ND(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function AD(e){return Object.getPrototypeOf(e.prototype).constructor}function nt(e){let t=AD(e.type),n=!0,r=[e];for(;t;){let o;if(Be(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ha(e.inputs),s.declaredInputs=Ha(e.declaredInputs),s.outputs=Ha(e.outputs);let a=o.hostBindings;a&&kD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&RD(e,c),u&&OD(e,u),xD(e,o),yl(e.outputs,o.outputs),Be(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===nt&&(n=!1)}}t=Object.getPrototypeOf(t)}FD(r)}function xD(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function FD(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=bn(o.hostAttrs,n=bn(n,o.hostAttrs))}}function Ha(e){return e===ut?{}:e===he?[]:e}function RD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function OD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function kD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function PD(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=bn(e.mergedAttrs,e.attrs);let l=e.tView=Rc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Dn(e,!1);let c=LD(n,t,e,r);si()&&Bc(n,t,c,e),wn(c,t);let u=Kf(c,t,c,e);t[r+H]=u,kc(t,u),fp(u,e,t)}function Nn(e,t,n,r,o,i,s,a,c,u,l){let d=n+H,p;if(t.firstCreatePass){if(p=Hi(t,d,4,s||null,a||null),u!=null){let f=Fe(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=t.data[d];return PD(p,e,t,n,r,o,i,c),u!=null&&$c(e,p,l),p}function yp(e,t,n,r,o,i,s,a){let c=_(),u=q(),l=Fe(u.consts,i);return Nn(c,u,e,t,n,r,o,l,void 0,s,a),yp}var LD=VD;function VD(e,t,n,r){return ai(!0),t[B].createComment("")}var se=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(se||{}),Ad=0,jD=1,Z=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(Z||{}),vp=(function(e){return e[e.Initial=-1]="Initial",e})(vp||{}),BD=0,Gi=1;var HD=4,$D=5,UD=6,GD=7,$a=8,WD=9,Jc=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(Jc||{});function Dp(e,t,n){let r=Cp(e);t[r]===null&&(t[r]=[]),t[r].push(n)}function gi(e,t){let n=Cp(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null}}function Ep(e){gi(1,e),gi(0,e),gi(2,e)}function Cp(e){let t=HD;return e===1?t=$D:e===2&&(t=WD),t}function Wi(e){return e+1}function On(e,t){let n=e[g],r=Wi(t.index);return e[r]}function zD(e,t,n){let r=e[g],o=Wi(t);e[o]=n}function kn(e,t){let n=Wi(t.index);return e.data[n]}function qD(e,t,n){let r=Wi(t);e.data[r]=n}function ZD(e,t,n){let r=t[g],o=kn(r,n);switch(e){case Z.Complete:return o.primaryTmplIndex;case Z.Loading:return o.loadingTmplIndex;case Z.Error:return o.errorTmplIndex;case Z.Placeholder:return o.placeholderTmplIndex;default:return null}}function xd(e,t){return t===Z.Placeholder?e.placeholderBlockConfig?.[Ad]??null:t===Z.Loading?e.loadingBlockConfig?.[Ad]??null:null}function YD(e){return e.loadingBlockConfig?.[jD]??null}function Fd(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function QD(e,t){let n=t.primaryTmplIndex+H;return vn(e,n)}function KD(e,t){let n=t.get(eE),r=()=>n.remove(e);return n.add(e),r}var JD=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,XD=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,eE=(()=>{class e{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=m(Se);requestIdleCallbackFn=JD().bind(globalThis);cancelIdleCallbackFn=XD().bind(globalThis);add(n){(this.executingCallbacks?this.deferred:this.current).add(n),this.idleId===null&&this.scheduleIdleCallback()}remove(n){let{current:r,deferred:o}=this;r.delete(n),o.delete(n),r.size===0&&o.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let n=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let r of this.current)r();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let r of this.deferred)this.current.add(r);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(n))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})();var tE=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?Qc(o,r,i):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=L({token:e,providedIn:"environment",factory:()=>new e})}return e})();var _p=new b("");function Ua(e,t,n){return e.get(tE).getOrCreateInjector(t,e,n,"")}function nE(e,t,n){if(e instanceof In){let o=e.injector,i=e.parentInjector,s=Ua(i,t,n);return new In(o,s)}let r=e.get(ge);if(r!==e){let o=Ua(r,t,n);return new In(e,o)}return Ua(e,t,n)}function mt(e,t,n,r=!1){let o=n[z],i=o[g];if(ht(o))return;let s=On(o,t),a=s[Gi],c=s[GD];if(!(c!==null&&e<c)&&Rd(a,e)&&Rd(s[BD]??-1,e)){let u=kn(i,t),d=!r&&!0&&(YD(u)!==null||xd(u,Z.Loading)!==null||xd(u,Z.Placeholder))?sE:oE;try{d(e,s,n,t,o)}catch(p){Uc(o,p)}}}function rE(e,t){let n=e[ft]?.findIndex(o=>o.data[Sc]===t[Gi])??-1;return{dehydratedView:n>-1?e[ft][n]:null,dehydratedViewIx:n}}function oE(e,t,n,r,o){N(S.DeferBlockStateStart);let i=ZD(e,o,r);if(i!==null){t[Gi]=e;let s=o[g],a=i+H,c=vn(s,a),u=0;zc(n,u);let l;if(e===Z.Complete){let h=kn(s,r),y=h.providers;y&&y.length>0&&(l=nE(o[oe],h,y))}let{dehydratedView:d,dehydratedViewIx:p}=rE(n,t),f=Sr(o,c,null,{injector:l,dehydratedView:d});if(Tr(n,f,u,Mn(c,d)),Bi(f,2),p>-1&&n[ft]?.splice(p,1),(e===Z.Complete||e===Z.Error)&&Array.isArray(t[$a])){for(let h of t[$a])h();t[$a]=null}}N(S.DeferBlockStateEnd)}function Rd(e,t){return e<t}function iE(e,t){let n=e[t.index];mt(Z.Placeholder,t,n)}function Od(e,t,n){e.loadingPromise.then(()=>{e.loadingState===se.COMPLETE?mt(Z.Complete,t,n):e.loadingState===se.FAILED&&mt(Z.Error,t,n)})}var sE=null;var aE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Ip=new b("");function Pn(e){return!!e&&typeof e.then=="function"}function Xc(e){return!!e&&typeof e.subscribe=="function"}var bp=new b("");var eu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(bp,{optional:!0})??[];injector=m(Me);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=zo(this.injector,o);if(Pn(i))n.push(i);else if(Xc(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wp=new b("");function Mp(){vs(()=>{let e="";throw new C(600,e)})}function Sp(e){return e.isBoundToModule}var cE=10;var Ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(tt);afterRenderManager=m(Lc);zonelessEnabled=m(fr);rootEffectScheduler=m(ci);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new fe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=m(Ut);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Ge(n=>!n))}constructor(){m(Rn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(ge);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Me.NULL){return this._injector.get(Se).run(()=>{N(S.BootstrapComponentStart);let s=n instanceof $i;if(!this._injector.get(eu).done){let h="";throw new C(405,h)}let c;s?c=n:c=this._injector.get(Nr).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=Sp(c)?void 0:this._injector.get(qt),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(Ip,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),mr(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),N(S.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){N(S.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Li.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw N(S.ChangeDetectionEnd),new C(101,!1);let n=v(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,v(n),this.afterTick.next(),N(S.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_r,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<cE;){N(S.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{N(S.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!lr(o))continue;let i=r&&!this.zonelessEnabled?0:1;qf(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>lr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;mr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(wp,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>mr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function uE(e){let t=_(),n=J();if(iE(t,n),!Np(0,t))return;let r=t[oe],o=On(t,n),i=e(()=>lE(0,t,n),r);Dp(0,o,i)}function Tp(e,t,n){let r=t[oe],o=t[g];if(e.loadingState!==se.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=On(t,n),s=QD(o,e);e.loadingState=se.IN_PROGRESS,gi(1,i);let a=e.dependencyResolverFn,c=r.get(Pa).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(u=>{let l=!1,d=null,p=[],f=[];for(let h=0;h<u.length;h++){let y=u[h];if(y.status==="fulfilled"){let D=y.value,M=Ze(D)||jo(D);if(M)p.push(M);else{let j=ea(D);j&&f.push(j)}}else{l=!0,d=y.reason instanceof Error?y.reason:new Error(String(y.reason));break}}if(l){if(e.loadingState=se.FAILED,e.errorTmplIndex===null){let y="",D=new C(-750,y);Uc(t,D)}}else{e.loadingState=se.COMPLETE;let h=s.tView;if(p.length>0){h.directiveRegistry=Fd(h.directiveRegistry,p);let y=p.map(M=>M.type),D=Wo(!1,...y);e.providers=D}f.length>0&&(h.pipeRegistry=Fd(h.pipeRegistry,f))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=se.COMPLETE,c()}),e.loadingPromise)}function Np(e,t){return t[oe].get(_p,null,{optional:!0})?.behavior!==Jc.Manual}function lE(e,t,n){let r=t[g],o=t[n.index];if(!Np(e,t))return;let i=On(t,n),s=kn(r,n);switch(Ep(i),s.loadingState){case se.NOT_STARTED:mt(Z.Loading,n,o),Tp(s,t,n),s.loadingState===se.IN_PROGRESS&&Od(s,n,o);break;case se.IN_PROGRESS:mt(Z.Loading,n,o),Od(s,n,o);break;case se.COMPLETE:mt(Z.Complete,n,o);break;case se.FAILED:mt(Z.Error,n,o);break;default:}}function dE(e,t,n){return e===0?kd(t,n):e===2?!kd(t,n):!0}function fE(e){return e!=null&&(e&1)===1}function kd(e,t){let n=e[oe],r=kn(e[g],t),o=Nc(n),i=fE(r.flags),a=On(e,t)[UD]!==null;return!(i&&a&&o)}function pE(e,t,n,r,o,i,s,a,c,u){let l=_(),d=q(),p=e+H,f=Nn(l,d,e,null,0,0),h=l[oe],y=Nc(h);if(d.firstCreatePass){vt("NgDefer");let Wn={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:se.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:u??0};c?.(d,Wn,a,s),qD(d,p,Wn)}let D=l[p];fp(D,f,l);let M=null,j=null;if(D[ft]?.length>0){let Wn=D[ft][0].data;j=Wn[Mc]??null,M=Wn[Sc]}let Pe=[null,vp.Initial,null,null,null,null,j,M,null,null];zD(l,p,Pe);let It=null;j!==null&&y&&(It=h.get(gf),It.add(j,{lView:l,tNode:f,lContainer:D}));let Gn=()=>{Ep(Pe),j!==null&&It?.cleanup([j])};Dp(0,Pe,()=>ya(l,Gn)),Ko(l,Gn)}function hE(){let e=_(),t=J();dE(0,e,t)&&uE(KD)}function Fr(e,t,n,r){let o=_(),i=$t();if(Oe(o,i,t)){let s=q(),a=ii();hv(a,o,e,t,n,r)}return Fr}var gc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ga(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function gE(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){v(r);let u=t.length-1;for(v(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Ga(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Ga(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),M=n(a,f),j=n(s,d);if(Object.is(j,M)){let Pe=n(u,h);Object.is(Pe,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ai,i??=Ld(e,s,a,n),mc(e,o,s,j))e.updateValue(s,d),s++,a++;else if(i.has(j))o.set(D,e.detach(s)),a--;else{let Pe=e.create(s,t[s]);e.attach(s,Pe),s++,a++}}for(;s<=u;)Pd(e,o,n,s,t[s]),s++}else if(t!=null){v(r);let u=t[Symbol.iterator]();v(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Ga(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else{o??=new Ai,i??=Ld(e,s,a,n);let h=n(s,p);if(mc(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else{let y=n(s,d);o.set(y,e.detach(s)),a--}}}for(;!l.done;)Pd(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function mc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Pd(e,t,n,r,o){if(mc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Ld(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ai=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function tu(e,t,n,r,o,i,s,a){vt("NgControlFlow");let c=_(),u=q(),l=Fe(u.consts,i);return Nn(c,u,e,t,n,r,o,l,256,s,a),nu}function nu(e,t,n,r,o,i,s,a){vt("NgControlFlow");let c=_(),u=q(),l=Fe(u.consts,i);return Nn(c,u,e,t,n,r,o,l,512,s,a),nu}function ru(e,t){vt("NgControlFlow");let n=_(),r=$t(),o=n[r]!==ce?n[r]:-1,i=o!==-1?xi(n,H+o):void 0,s=0;if(Oe(n,r,e)){let a=v(null);try{if(i!==void 0&&zc(i,s),e!==-1){let c=H+e,u=xi(n,c),l=Ec(n[g],c),d=ep(u,l,n),p=Sr(n,l,t,{dehydratedView:d});Tr(u,p,s,Mn(l,d))}}finally{v(a)}}else if(i!==void 0){let a=Jf(i,s);a!==void 0&&(a[G]=t)}}var yc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-$}};function mE(e,t){return t}var vc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function yE(e,t,n,r,o,i,s,a,c,u,l,d,p){vt("NgControlFlow");let f=_(),h=q(),y=c!==void 0,D=_(),M=a?s.bind(D[me][G]):s,j=new vc(y,M);D[H+e]=j,Nn(f,h,e+1,t,n,r,o,Fe(h.consts,i),256),y&&Nn(f,h,e+2,c,u,l,d,Fe(h.consts,p),512)}var Dc=class extends gc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-$}at(t){return this.getLView(t)[G].$implicit}attach(t,n){let r=n[hn];this.needsIndexUpdate||=t!==this.length,Tr(this.lContainer,n,t,Mn(this.templateTNode,r)),DE(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,EE(this.lContainer,t),CE(this.lContainer,t)}create(t,n){let r=ic(this.lContainer,this.templateTNode.tView.ssrId);return Sr(this.hostLView,this.templateTNode,new yc(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Vi(t[g],t)}updateValue(t,n){this.getLView(t)[G].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[G].$index=t}getLView(t){return _E(this.lContainer,t)}};function vE(e){let t=v(null),n=He();try{let r=_(),o=r[g],i=r[n],s=n+1,a=xi(r,s);if(i.liveCollection===void 0){let u=Ec(o,s);i.liveCollection=new Dc(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(gE(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=$t(),l=c.length===0;if(Oe(r,u,l)){let d=n+2,p=xi(r,d);if(l){let f=Ec(o,d),h=ep(p,f,r),y=Sr(r,f,void 0,{dehydratedView:h});Tr(p,y,0,Mn(f,h))}else o.firstUpdatePass&&Lv(p),zc(p,0)}}}finally{v(t)}}function xi(e,t){return e[t]}function DE(e,t){if(e.length<=$)return;let n=$+t,r=e[n],o=r?r[dt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[oe];$y(i,o),Dr.delete(r[Qe]),o.detachedLeaveAnimationFns=void 0}}function EE(e,t){if(e.length<=$)return;let n=$+t,r=e[n],o=r?r[dt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function CE(e,t){return Cr(e,t)}function _E(e,t){return Jf(e,t)}function Ec(e,t){return vn(e,t)}function Ap(e,t,n){let r=_(),o=$t();if(Oe(r,o,t)){let i=q(),s=ii();cv(s,r,e,t,r[B],n)}return Ap}function Vd(e,t,n,r,o){Gc(t,e,n,o?"class":"style",r)}function Fi(e,t,n,r){let o=_(),i=o[g],s=e+H,a=i.firstCreatePass?op(s,o,2,t,pv,Bl(),n,r):i.data[s];if(Je(a)){let c=o[Ne].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(up(u),()=>(jd(e,t,o,a,r),Fi))}}return jd(e,t,o,a,r),Fi}function jd(e,t,n,r,o){if(Bf(r,n,e,t,Fp),Zo(r)){let i=n[g];Vf(i,n,r),vf(i,r,n)}o!=null&&$c(n,r)}function ou(){let e=q(),t=J(),n=Hf(t);return e.firstCreatePass&&ip(e,n),Ca(n)&&_a(),Ea(),n.classesWithoutHost!=null&&Hm(n)&&Vd(e,n,_(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&$m(n)&&Vd(e,n,_(),n.stylesWithoutHost,!1),ou}function xp(e,t,n,r){return Fi(e,t,n,r),ou(),xp}function Et(e,t,n,r){let o=_(),i=o[g],s=e+H,a=i.firstCreatePass?Jv(s,i,2,t,n,r):i.data[s];return Bf(a,o,e,t,Fp),r!=null&&$c(o,a),Et}function Vn(){let e=J(),t=Hf(e);return Ca(t)&&_a(),Ea(),Vn}var Fp=(e,t,n,r,o)=>(ai(!0),_f(t[B],r,Xl()));function iu(){return _()}function Rp(e,t,n){let r=_(),o=$t();if(Oe(r,o,t)){let i=q(),s=ii();jf(s,r,e,t,r[B],n)}return Rp}var pr=void 0;function IE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var bE=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",pr,pr,pr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",IE],Wa={};function ue(e){let t=wE(e),n=Bd(t);if(n)return n;let r=t.split("-")[0];if(n=Bd(r),n)return n;if(r==="en")return bE;throw new C(701,!1)}function Bd(e){return e in Wa||(Wa[e]=ln.ng&&ln.ng.common&&ln.ng.common.locales&&ln.ng.common.locales[e]),Wa[e]}var U=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(U||{});function wE(e){return e.toLowerCase().replace(/_/g,"-")}var Rr="en-US";var ME=Rr;function Op(e){typeof e=="string"&&(ME=e.toLowerCase().replace(/_/g,"-"))}function jn(e,t,n){let r=_(),o=q(),i=J();return SE(o,r,r[B],i,e,t,n),jn}function Or(e,t,n){let r=_(),o=q(),i=J();return(i.type&3||n)&&ap(i,o,r,n,r[B],e,t,hi(i,r,t)),Or}function SE(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=hi(r,t,i),ap(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=hi(r,t,i),Md(r,t,p,f,o,c)}if(u&&u.length)for(let d of u)c??=hi(r,t,i),Md(r,t,d,o,o,c)}}function zi(e=1){return Jl(e)}function qi(e,t,n){return CD(e,t,n),qi}function su(e){let t=_(),n=q(),r=Ta();ni(r+1);let o=Yc(n,r);if(e.dirty&&Ol(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=bD(t,r);e.reset(i,ty),e.notifyOnChanges()}return!0}return!1}function au(){return DD(_(),Ta())}function ui(e,t){return e<<17|t<<2}function Zt(e){return e>>17&32767}function TE(e){return(e&2)==2}function NE(e,t){return e&131071|t<<17}function Cc(e){return e|2}function An(e){return(e&131068)>>2}function za(e,t){return e&-131069|t<<2}function AE(e){return(e&1)===1}function _c(e){return e|1}function xE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Zt(s),c=An(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||fn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=Zt(e[a+1]);e[r+1]=ui(p,a),p!==0&&(e[p+1]=za(e[p+1],r)),e[a+1]=NE(e[a+1],r)}else e[r+1]=ui(a,0),a!==0&&(e[a+1]=za(e[a+1],r)),a=r;else e[r+1]=ui(c,0),a===0?a=r:e[c+1]=za(e[c+1],r),c=r;u&&(e[r+1]=Cc(e[r+1])),Hd(e,l,r,!0),Hd(e,l,r,!1),FE(t,l,e,r,i),s=ui(a,c),i?t.classBindings=s:t.styleBindings=s}function FE(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&fn(i,t)>=0&&(n[r+1]=_c(n[r+1]))}function Hd(e,t,n,r){let o=e[n+1],i=t===null,s=r?Zt(o):An(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];RE(c,t)&&(a=!0,e[s+1]=r?_c(u):Cc(u)),s=r?Zt(u):An(u)}a&&(e[n+1]=r?Cc(o):_c(o))}function RE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?fn(e,t)>=0:!1}function Zi(e,t,n){return kp(e,t,n,!1),Zi}function Yt(e,t){return kp(e,t,null,!0),Yt}function kp(e,t,n,r){let o=_(),i=q(),s=ei(2);if(i.firstUpdatePass&&kE(i,e,s,r),t!==ce&&Oe(o,s,t)){let a=i.data[He()];BE(i,a,o,o[B],e,o[s+1]=HE(t,n),r,s)}}function OE(e,t){return t>=e.expandoStartIndex}function kE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[He()],s=OE(e,n);$E(i,r)&&t===null&&!s&&(t=!1),t=PE(o,i,t,r),xE(o,i,t,n,s,r)}}function PE(e,t,n,r){let o=Zl(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=qa(null,e,t,n,r),n=br(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=qa(o,e,t,n,r),i===null){let c=LE(e,t,r);c!==void 0&&Array.isArray(c)&&(c=qa(null,e,t,c[1],r),c=br(c,t.attrs,r),VE(e,t,r,c))}else i=jE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function LE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(An(r)!==0)return e[Zt(r)]}function VE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Zt(o)]=r}function jE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=br(r,s,n)}return br(r,t.attrs,n)}function qa(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=br(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function br(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),bl(e,s,n?!0:t[++i]))}return e===void 0?null:e}function BE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=AE(u)?$d(c,t,n,o,An(u),s):void 0;if(!Ri(l)){Ri(i)||TE(u)&&(i=$d(c,null,n,o,a,s));let d=fa(He(),n);rv(r,s,d,o,i)}}function $d(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===ce&&(p=d?he:void 0);let f=d?Uo(p,r):l===r?p:void 0;if(u&&!Ri(f)&&(f=Uo(c,r)),Ri(f)&&(a=f,s))return a;let h=e[o+1];o=s?Zt(h):An(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Uo(c,r))}return a}function Ri(e){return e!==void 0}function HE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ir(Ac(e)))),e}function $E(e,t){return(e.flags&(t?8:16))!==0}function kr(e,t=""){let n=_(),r=q(),o=e+H,i=r.firstCreatePass?Hi(r,o,1,t,null):r.data[o],s=UE(r,n,i,t);n[o]=s,si()&&Bc(r,n,s,i),Dn(i,!1)}var UE=(e,t,n,r)=>(ai(!0),yy(t[B],r));function GE(e,t,n,r=""){return Oe(e,$t(),n)?t+Ye(n)+r:ce}function WE(e,t,n,r,o,i=""){let s=Sa(),a=Zc(e,s,n,o);return ei(2),a?t+Ye(n)+r+Ye(o)+i:ce}function zE(e,t,n,r,o,i,s,a=""){let c=Sa(),u=Xv(e,c,n,o,s);return ei(3),u?t+Ye(n)+r+Ye(o)+i+Ye(s)+a:ce}function Pp(e){return Pr("",e),Pp}function Pr(e,t,n){let r=_(),o=GE(r,e,t,n);return o!==ce&&cu(r,He(),o),Pr}function Lp(e,t,n,r,o){let i=_(),s=WE(i,e,t,n,r,o);return s!==ce&&cu(i,He(),s),Lp}function Vp(e,t,n,r,o,i,s){let a=_(),c=zE(a,e,t,n,r,o,i,s);return c!==ce&&cu(a,He(),c),Vp}function cu(e,t,n){let r=fa(t,e);vy(e[B],r,n)}function Ud(e,t,n){let r=q();r.firstCreatePass&&jp(t,r.data,r.blueprint,Be(e),n)}function jp(e,t,n,r,o){if(e=Q(e),Array.isArray(e))for(let i=0;i<e.length;i++)jp(e[i],t,n,r,o);else{let i=q(),s=_(),a=J(),c=Rt(e)?e:Q(e.provide),u=ca(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Rt(e)||!e.multi){let f=new Wt(u,o,x,null),h=Ya(c,t,o?l:l+p,d);h===-1?(Ka(Ei(a,s),i,c),Za(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Ya(c,t,l+p,d),h=Ya(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(o&&!D||!o&&!y){Ka(Ei(a,s),i,c);let M=YE(o?ZE:qE,n.length,o,r,u,e);!o&&D&&(n[h].providerFactory=M),Za(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(M),s.push(M)}else{let M=Bp(n[o?h:f],u,!o&&r);Za(i,e,f>-1?f:h,M)}!o&&r&&D&&n[h].componentProviders++}}}function Za(e,t,n,r){let o=Rt(t),i=Nl(t);if(o||i){let c=(i?Q(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Bp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ya(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function qE(e,t,n,r,o){return Ic(this.multi,[])}function ZE(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=yr(r,r[g],this.providerFactory.index,o);s=c.slice(0,a),Ic(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Ic(i,s);return s}function Ic(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function YE(e,t,n,r,o,i){let s=new Wt(e,n,x,null);return s.multi=[],s.index=t,s.componentProviders=0,Bp(s,o,r&&!n),s}function Bn(e,t){return n=>{n.providersResolver=(r,o)=>Ud(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Ud(r,o?o(t):t,!0))}}function Hp(e,t){let n=e[t];return n===ce?void 0:n}function QE(e,t,n,r,o,i){let s=t+n;return Oe(e,s,o)?sp(e,s+1,i?r.call(i,o):r(o)):Hp(e,s+1)}function KE(e,t,n,r,o,i,s){let a=t+n;return Zc(e,a,o,i)?sp(e,a+2,s?r.call(s,o,i):r(o,i)):Hp(e,a+2)}function JE(e,t){let n=q(),r,o=e+H;n.firstCreatePass?(r=XE(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=st(r.type,!0)),s,a=re(x);try{let c=Di(!1),u=i();return Di(c),ha(n,_(),o,u),u}finally{re(a)}}function XE(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function eC(e,t,n){let r=e+H,o=_(),i=pa(o,r);return $p(o,r)?QE(o,Ma(),t,i.transform,n,i):i.transform(n)}function tC(e,t,n,r){let o=e+H,i=_(),s=pa(i,o);return $p(i,o)?KE(i,Ma(),t,s.transform,n,r,s):s.transform(n,r)}function $p(e,t){return e[g].data[t].pure}var Oi=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},nC=(()=>{class e{compileModuleSync(n){return new Ni(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Xs(n),i=Mf(o.declarations).reduce((s,a)=>{let c=Ze(a);return c&&s.push(new Tn(c)),s},[]);return new Oi(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Up=(()=>{class e{applicationErrorHandler=m(tt);appRef=m(Ln);taskService=m(Ut);ngZone=m(Se);zonelessEnabled=m(fr);tracing=m(Rn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(rr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(ka,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?rd:Fa;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(rr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Gp(){return[{provide:ze,useExisting:Up},{provide:Se,useClass:or},{provide:fr,useValue:!0}]}function rC(){return typeof $localize<"u"&&$localize.locale||Rr}var Hn=new b("",{factory:()=>m(Hn,{optional:!0,skipSelf:!0})||rC()});function rt(e){return fl(e)}function Lr(e,t){return oo(e,t?.equal)}var zp=Symbol("InputSignalNode#UNSET"),pC=F(T({},io),{transformFn:void 0,applyValueToInputSignal(e,t){tn(e,t)}});function qp(e,t){let n=Object.create(pC);n.value=e,n.transformFn=t?.transform;function r(){if(Jt(n),n.value===zp){let o=null;throw new C(-950,o)}return n.value}return r[te]=n,r}function Wp(e,t){return qp(e,t)}function hC(e){return qp(zp,e)}var ik=(Wp.required=hC,Wp);var uu=new b(""),gC=new b("");function Vr(e){return!e.moduleRef}function mC(e){let t=Vr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Se);return n.run(()=>{Vr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Vr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(uu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(uu);s.add(i),e.moduleRef.onDestroy(()=>{mr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vC(r,n,()=>{let i=t.get(Ut),s=i.add(),a=t.get(eu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Hn,Rr);if(Op(c||Rr),!t.get(gC,!0))return Vr(e)?t.get(Ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Vr(e)){let l=t.get(Ln);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return yC?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var yC;function vC(e,t,n){try{let r=n();return Pn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Yi=null;function DC(e=[],t){return Me.create({name:t,providers:[{provide:aa,useValue:"platform"},{provide:uu,useValue:new Set([()=>Yi=null])},...e]})}function EC(e=[]){if(Yi)return Yi;let t=DC(e);return Yi=t,Mp(),CC(t),t}function CC(e){let t=e.get(lf,null);zo(e,()=>{t?.forEach(n=>n())})}var _C=1e4;var sk=_C-1e3;var Qi=(()=>{class e{static __NG_ELEMENT_ID__=IC}return e})();function IC(e){return bC(J(),_(),(e&16)===16)}function bC(e,t,n){if(Je(e)&&!n){let r=_e(e.index,t);return new yt(r,r)}else if(e.type&175){let r=t[me];return new yt(r,t)}return null}function ak(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;N(S.BootstrapApplicationStart);try{let i=o?.injector??EC(r),s=[Gp(),id,...n||[]],a=new Ir({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return mC({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{N(S.BootstrapApplicationEnd)}}function Zp(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Yp=null;function Qt(){return Yp}function wC(e){Yp??=e}var lu=class{},Ki=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:()=>m(Qp),providedIn:"platform"})}return e})();var Qp=(()=>{class e extends Ki{_location;_history;_doc=m(Xe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qt().getBaseHref(this._doc)}onPopState(n){let r=Qt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Qt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Xp(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Kp(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ct(e){return e&&e[0]!=="?"?`?${e}`:e}var Ji=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L({token:e,factory:()=>m(SC),providedIn:"root"})}return e})(),MC=new b(""),SC=(()=>{class e extends Ji{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(Xe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Xp(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ct(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ct(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ct(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(K(Ki),K(MC,8))};static \u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var eh=(()=>{class e{_subject=new fe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=AC(Kp(Jp(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ct(r))}normalize(n){return e.stripTrailingSlash(NC(this._basePath,Jp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ct(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ct(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Ct;static joinWithSlash=Xp;static stripTrailingSlash=Kp;static \u0275fac=function(r){return new(r||e)(K(Ji))};static \u0275prov=L({token:e,factory:()=>TC(),providedIn:"root"})}return e})();function TC(){return new eh(K(Ji))}function NC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Jp(e){return e.replace(/\/index.html$/,"")}function AC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var yu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(yu||{});var ee=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ee||{}),P=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(P||{}),le=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(le||{}),de={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function oh(e){return ue(e)[U.LocaleId]}function ih(e,t,n){let r=ue(e),o=[r[U.DayPeriodsFormat],r[U.DayPeriodsStandalone]],i=Ie(o,t);return Ie(i,n)}function sh(e,t,n){let r=ue(e),o=[r[U.DaysFormat],r[U.DaysStandalone]],i=Ie(o,t);return Ie(i,n)}function ah(e,t,n){let r=ue(e),o=[r[U.MonthsFormat],r[U.MonthsStandalone]],i=Ie(o,t);return Ie(i,n)}function ch(e,t){let r=ue(e)[U.Eras];return Ie(r,t)}function Br(e,t){let n=ue(e);return Ie(n[U.DateFormat],t)}function Hr(e,t){let n=ue(e);return Ie(n[U.TimeFormat],t)}function $r(e,t){let r=ue(e)[U.DateTimeFormat];return Ie(r,t)}function Ue(e,t){let n=ue(e),r=n[U.NumberSymbols][t];if(typeof r>"u"){if(t===de.CurrencyDecimal)return n[U.NumberSymbols][de.Decimal];if(t===de.CurrencyGroup)return n[U.NumberSymbols][de.Group]}return r}function uh(e,t){return ue(e)[U.NumberFormats][t]}function lh(e){if(!e[U.ExtraData])throw new C(2303,!1)}function dh(e){let t=ue(e);return lh(t),(t[U.ExtraData][2]||[]).map(r=>typeof r=="string"?du(r):[du(r[0]),du(r[1])])}function fh(e,t,n){let r=ue(e);lh(r);let o=[r[U.ExtraData][0],r[U.ExtraData][1]],i=Ie(o,t)||[];return Ie(i,n)||[]}function Ie(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new C(2304,!1)}function du(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var xC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xi={},FC=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function ph(e,t,n,r){let o=HC(e);t=ot(n,t)||t;let s=[],a;for(;t;)if(a=FC.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=gh(r,c),o=BC(o,r));let u="";return s.forEach(l=>{let d=VC(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function os(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ot(e,t){let n=oh(e);if(Xi[n]??={},Xi[n][t])return Xi[n][t];let r="";switch(t){case"shortDate":r=Br(e,le.Short);break;case"mediumDate":r=Br(e,le.Medium);break;case"longDate":r=Br(e,le.Long);break;case"fullDate":r=Br(e,le.Full);break;case"shortTime":r=Hr(e,le.Short);break;case"mediumTime":r=Hr(e,le.Medium);break;case"longTime":r=Hr(e,le.Long);break;case"fullTime":r=Hr(e,le.Full);break;case"short":let o=ot(e,"shortTime"),i=ot(e,"shortDate");r=es($r(e,le.Short),[o,i]);break;case"medium":let s=ot(e,"mediumTime"),a=ot(e,"mediumDate");r=es($r(e,le.Medium),[s,a]);break;case"long":let c=ot(e,"longTime"),u=ot(e,"longDate");r=es($r(e,le.Long),[c,u]);break;case"full":let l=ot(e,"fullTime"),d=ot(e,"fullDate");r=es($r(e,le.Full),[l,d]);break}return r&&(Xi[n][t]=r),r}function es(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function ke(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function RC(e,t){return ke(e,3).substring(0,t)}function Y(e,t,n=0,r=!1,o=!1){return function(i,s){let a=OC(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return RC(a,t);let c=Ue(s,de.MinusSign);return ke(a,t,c,r,o)}}function OC(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new C(2301,!1)}}function V(e,t,n=ee.Format,r=!1){return function(o,i){return kC(o,i,e,t,n,r)}}function kC(e,t,n,r,o,i){switch(n){case 2:return ah(t,o,r)[e.getMonth()];case 1:return sh(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=dh(t),l=fh(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return!0}else if(y||D)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return ih(t,o,r)[s<12?0:1];case 3:return ch(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new C(2302,!1)}}function ts(e){return function(t,n,r){let o=-1*r,i=Ue(n,de.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+ke(s,2,i)+ke(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+ke(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+ke(s,2,i)+":"+ke(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+ke(s,2,i)+":"+ke(Math.abs(o%60),2,i);default:throw new C(2310,!1)}}}var PC=0,rs=4;function LC(e){let t=os(e,PC,1).getDay();return os(e,0,1+(t<=rs?rs:rs+7)-t)}function hh(e){let t=e.getDay(),n=t===0?-3:rs-t;return os(e.getFullYear(),e.getMonth(),e.getDate()+n)}function fu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=hh(n),s=LC(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return ke(o,e,Ue(r,de.MinusSign))}}function ns(e,t=!1){return function(n,r){let i=hh(n).getFullYear();return ke(i,e,Ue(r,de.MinusSign),t)}}var pu={};function VC(e){if(pu[e])return pu[e];let t;switch(e){case"G":case"GG":case"GGG":t=V(3,P.Abbreviated);break;case"GGGG":t=V(3,P.Wide);break;case"GGGGG":t=V(3,P.Narrow);break;case"y":t=Y(0,1,0,!1,!0);break;case"yy":t=Y(0,2,0,!0,!0);break;case"yyy":t=Y(0,3,0,!1,!0);break;case"yyyy":t=Y(0,4,0,!1,!0);break;case"Y":t=ns(1);break;case"YY":t=ns(2,!0);break;case"YYY":t=ns(3);break;case"YYYY":t=ns(4);break;case"M":case"L":t=Y(1,1,1);break;case"MM":case"LL":t=Y(1,2,1);break;case"MMM":t=V(2,P.Abbreviated);break;case"MMMM":t=V(2,P.Wide);break;case"MMMMM":t=V(2,P.Narrow);break;case"LLL":t=V(2,P.Abbreviated,ee.Standalone);break;case"LLLL":t=V(2,P.Wide,ee.Standalone);break;case"LLLLL":t=V(2,P.Narrow,ee.Standalone);break;case"w":t=fu(1);break;case"ww":t=fu(2);break;case"W":t=fu(1,!0);break;case"d":t=Y(2,1);break;case"dd":t=Y(2,2);break;case"c":case"cc":t=Y(7,1);break;case"ccc":t=V(1,P.Abbreviated,ee.Standalone);break;case"cccc":t=V(1,P.Wide,ee.Standalone);break;case"ccccc":t=V(1,P.Narrow,ee.Standalone);break;case"cccccc":t=V(1,P.Short,ee.Standalone);break;case"E":case"EE":case"EEE":t=V(1,P.Abbreviated);break;case"EEEE":t=V(1,P.Wide);break;case"EEEEE":t=V(1,P.Narrow);break;case"EEEEEE":t=V(1,P.Short);break;case"a":case"aa":case"aaa":t=V(0,P.Abbreviated);break;case"aaaa":t=V(0,P.Wide);break;case"aaaaa":t=V(0,P.Narrow);break;case"b":case"bb":case"bbb":t=V(0,P.Abbreviated,ee.Standalone,!0);break;case"bbbb":t=V(0,P.Wide,ee.Standalone,!0);break;case"bbbbb":t=V(0,P.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=V(0,P.Abbreviated,ee.Format,!0);break;case"BBBB":t=V(0,P.Wide,ee.Format,!0);break;case"BBBBB":t=V(0,P.Narrow,ee.Format,!0);break;case"h":t=Y(3,1,-12);break;case"hh":t=Y(3,2,-12);break;case"H":t=Y(3,1);break;case"HH":t=Y(3,2);break;case"m":t=Y(4,1);break;case"mm":t=Y(4,2);break;case"s":t=Y(5,1);break;case"ss":t=Y(5,2);break;case"S":t=Y(6,1);break;case"SS":t=Y(6,2);break;case"SSS":t=Y(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ts(0);break;case"ZZZZZ":t=ts(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ts(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ts(2);break;default:return null}return pu[e]=t,t}function gh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function jC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function BC(e,t,n){let o=e.getTimezoneOffset(),i=gh(t,o);return jC(e,-1*(i-o))}function HC(e){if(th(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return os(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(xC))return $C(r)}let t=new Date(e);if(!th(t))throw new C(2311,!1);return t}function $C(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function th(e){return e instanceof Date&&!isNaN(e.valueOf())}var UC=/^(\d+)?\.((\d+)(-(\d+))?)?$/,nh=22,is=".",Ur="0",GC=";",WC=",",hu="#";function zC(e,t,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=Ue(n,de.Infinity);else{let u=YC(e);s&&(u=ZC(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let j=i.match(UC);if(j===null)throw new C(2306,!1);let Pe=j[1],It=j[3],Gn=j[5];Pe!=null&&(l=gu(Pe)),It!=null&&(d=gu(It)),Gn!=null?p=gu(Gn):It!=null&&d>p&&(p=d)}QC(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every(j=>!j);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let M=[];for(f.length>=t.lgSize&&M.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)M.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&M.unshift(f.join("")),a=M.join(Ue(n,r)),D.length&&(a+=Ue(n,o)+D.join("")),y&&(a+=Ue(n,de.Exponential)+"+"+y)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function mh(e,t,n){let r=uh(t,yu.Decimal),o=qC(r,Ue(t,de.MinusSign));return zC(e,o,t,de.Group,de.Decimal,n)}function qC(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(GC),o=r[0],i=r[1],s=o.indexOf(is)!==-1?o.split(is):[o.substring(0,o.lastIndexOf(Ur)+1),o.substring(o.lastIndexOf(Ur)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(hu));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Ur?n.minFrac=n.maxFrac=l+1:d===hu?n.maxFrac=l+1:n.posSuf+=d}let u=a.split(WC);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(hu);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function ZC(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function YC(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(is))>-1&&(t=t.replace(is,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Ur;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===Ur;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>nh&&(r=r.splice(0,nh-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function QC(e,t,n){if(t>n)throw new C(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=!1),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function gu(e){let t=parseInt(e);if(isNaN(t))throw new C(2305,!1);return t}var mu=/\s+/,rh=[],KC=(()=>{class e{_ngEl;_renderer;initialClasses=rh;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(mu):rh}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(mu):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(mu).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(x(ae),x(Dt))};static \u0275dir=ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();function yh(e,t){return new C(2100,!1)}var JC="mediumDate",vh=new b(""),Dh=new b(""),XC=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??JC,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ph(n,s,i||this.locale,a)}catch(s){throw yh(e,s.message)}}static \u0275fac=function(r){return new(r||e)(x(Hn,16),x(vh,24),x(Dh,24))};static \u0275pipe=Ui({name:"date",type:e,pure:!0})}return e})();var e_=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!t_(n))return null;o||=this._locale;try{let i=n_(n);return mh(i,o,r)}catch(i){throw yh(e,i.message)}}static \u0275fac=function(r){return new(r||e)(x(Hn,16))};static \u0275pipe=Ui({name:"number",type:e,pure:!0})}return e})();function t_(e){return!(e==null||e===""||e!==e)}function n_(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new C(2309,!1);return e}function r_(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var vu=class{};var bP="browser";var _t={version:"github-copilot-usage-pricing-2026-06-14",sourceUrl:"https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing",sourceLabel:"GitHub Docs: Models and pricing for GitHub Copilot",snapshotDate:"2026-06-14",importedAt:"2026-06-14",fallbackModel:"GPT-5.4",models:{"GPT-5 mini":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.25,cachedInput:.025,output:2},"GPT-5.3-Codex":{provider:"OpenAI",releaseStatus:"GA",category:"Powerful",input:1.75,cachedInput:.175,output:14},"GPT-5.4":{provider:"OpenAI",releaseStatus:"GA",category:"Versatile",input:2.5,cachedInput:.25,output:15,tierLabel:"Default",tierThresholdLabel:"Up to 272K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:272e3,thresholdLabel:"Over 272K input tokens",input:5,cachedInput:.5,output:22.5}]},"GPT-5.4 mini":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.75,cachedInput:.075,output:4.5},"GPT-5.4 nano":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.2,cachedInput:.02,output:1.25},"GPT-5.5":{provider:"OpenAI",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,output:30,tierLabel:"Default",tierThresholdLabel:"Up to 272K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:272e3,thresholdLabel:"Over 272K input tokens",input:10,cachedInput:1,output:45}]},"Claude Haiku 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:1,cachedInput:.1,cacheWrite:1.25,output:5},"Claude Sonnet 4":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Sonnet 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Sonnet 4.6":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Opus 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.6":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.7":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.8":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Fable 5":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:10,cachedInput:1,cacheWrite:12.5,output:50,note:"GitHub currently marks this model as unavailable"},"Gemini 2.5 Pro":{provider:"Google",releaseStatus:"GA",category:"Powerful",input:1.25,cachedInput:.125,output:10},"Gemini 3 Flash":{provider:"Google",releaseStatus:"Public preview",category:"Lightweight",input:.5,cachedInput:.05,output:3},"Gemini 3.1 Pro":{provider:"Google",releaseStatus:"Public preview",category:"Powerful",input:2,cachedInput:.2,output:12,tierLabel:"Default",tierThresholdLabel:"Up to 200K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:2e5,thresholdLabel:"Over 200K input tokens",input:4,cachedInput:.4,output:18}]},"Gemini 3.5 Flash":{provider:"Google",releaseStatus:"GA",category:"Lightweight",input:1.5,cachedInput:.15,output:9},"Raptor mini":{provider:"Fine-tuned (GitHub)",releaseStatus:"Public preview",category:"Versatile",input:.25,cachedInput:.025,output:2},"MAI-Code-1-Flash":{provider:"Microsoft",releaseStatus:"GA",category:"Lightweight",input:.75,cachedInput:.075,output:4.5}}};var RP=_t.version,OP=_t.sourceUrl,kP=_t.sourceLabel,PP=_t.snapshotDate,LP=_t.importedAt,Eh=_t.fallbackModel,Ch=.01,VP="https://docs.github.com/en/copilot/concepts/billing/usage-based-billing-for-organizations-and-enterprises",Gr=_t.models,jP=[{id:"business-standard",label:"Copilot Business",shortLabel:"Business",creditsPerUserMonthly:1900,period:"Standard monthly allowance",note:"Included AI credits are pooled at the billing entity level."},{id:"enterprise-standard",label:"Copilot Enterprise",shortLabel:"Enterprise",creditsPerUserMonthly:3900,period:"Standard monthly allowance",note:"Included AI credits are pooled at the billing entity level."},{id:"business-promo",label:"Copilot Business promo",shortLabel:"Business promo",creditsPerUserMonthly:3e3,period:"Existing-customer promo, Jun 1-Sep 1 2026",note:"GitHub documents this temporary higher allowance for existing Business customers."},{id:"enterprise-promo",label:"Copilot Enterprise promo",shortLabel:"Enterprise promo",creditsPerUserMonthly:7e3,period:"Existing-customer promo, Jun 1-Sep 1 2026",note:"GitHub documents this temporary higher allowance for existing Enterprise customers."}];function Du(e){return String(e??"").replace(/^copilot\//i,"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim().replace(/\s+/g," ")}function Eu(e){let t=String(e??"").replace(/^copilot\//i,"").trim(),n=Du(t),r=Object.keys(Gr);return r.find(o=>Du(o)===n)??r.find(o=>n.includes(Du(o)))??(t||"Unknown model")}function _h(e){let t=Eu(e);return Gr[t]?t:Eh}function s_(e){return Gr[e||""]??Gr[Eh]}function Ih(e,t){let n=s_(e),r=Math.max(0,t.input)+Math.max(0,t.cachedInput),o=[...n.tiers??[]].sort((i,s)=>s.thresholdInputTokensExclusive-i.thresholdInputTokensExclusive).find(i=>r>i.thresholdInputTokensExclusive);return o?F(T(T({},n),o),{tiers:n.tiers}):n}function ss(e,t){let n=Eu(e);return(t||_h(n))!==n||!Gr[n]}function a_(e,t){let n=Eu(e),r=t||_h(n);return ss(n,r)?`${n||"Unknown model"} is priced with the ${r} row because that raw model id is not in the local GitHub pricing table.`:"This model matched a GitHub price row directly."}function GP(e,t){let n=e.pricingModel||e.model,r=Ih(n,e.tokens),o=e.costBreakdown?.inputUsd??as(e.tokens.input,r.input),i=e.costBreakdown?.cachedInputUsd??as(e.tokens.cachedInput,r.cachedInput),s=e.costBreakdown?.cacheWriteUsd??as(e.tokens.cacheWrite,r.cacheWrite??0),a=e.costBreakdown?.outputUsd??as(e.tokens.output,r.output),c=o+i+s+a,u=e.pricingTiers?.length?e.pricingTiers:[r.label??r.tierLabel??"Default"];return F(T({},e),{provider:r.provider,releaseStatus:r.releaseStatus,category:r.category,inputRate:r.input,cachedInputRate:r.cachedInput,cacheWriteRate:r.cacheWrite??0,outputRate:r.output,inputUsd:o,cachedInputUsd:i,cacheWriteUsd:s,outputUsd:a,totalUsd:c,share:t>0?c/t*100:0,usesFallbackPrice:ss(e.model,n),pricingTierLabel:u.join(" + "),hasMixedPricingTiers:u.length>1})}function as(e,t){return e/1e6*t}function c_(e){return e.input+e.cachedInput+e.cacheWrite+e.output}function WP(e){return c_(e.tokens)}function zP(e){return Cu(e.sourceUsage?.usd)??e.cost.usd}function qP(e){return Cu(e.sourceUsage?.credits)??e.cost.usd/Ch}function ZP(e){return e.sourceUsage?"GitHub usage":"Estimate fallback"}function YP(e){return Cu(e.sourceUsage?.usd)}function QP(e,t){return e===0?null:(t-e)/e*100}var KP=ss;function JP(e,t){return e.size!==t.size?!0:[...e].some(n=>!t.has(n))}function Cu(e){return typeof e=="number"&&Number.isFinite(e)?e:null}var u_=["panel"];function l_(e,t){if(e&1){let n=iu();Et(0,"button",5),Or("click",function(){Jo(n);let o=zi();return Xo(o.openPanel())}),Et(1,"span",6),kr(2,"?"),Vn()()}if(e&2){let n=zi();Fr("aria-label",n.label)}}function d_(e,t){e&1&&(Et(0,"span",3)(1,"span"),kr(2,"?"),Vn()())}var bh=class e{host=m(ae);panel;text;label="More information";interactive=!0;panelLeft=0;panelTop=0;panelWidth=320;arrowLeft=160;placement="below";open=!1;openPanel(){this.positionPanel(),this.open=!0}closePanel(){this.open=!1}positionPanel(){if(typeof window>"u")return;let t=12,n=window.innerWidth,r=window.innerHeight,o=Math.min(340,n-t*2),i=Math.min(220,o),s=this.host.nativeElement.getBoundingClientRect(),a=Math.min(o,Math.max(i,this.text.length*4.8)),c=Math.min(o,a),u=s.left+s.width/2-c/2,l=this.estimatedPanelHeight(c),d=s.bottom+10,p=s.top-l-10,h=d+l<=r-t||p<t?d:p;this.panelWidth=c,this.panelLeft=Math.min(n-t-c,Math.max(t,u)),this.panelTop=Math.min(r-t-l,Math.max(t,h)),this.arrowLeft=Math.min(c-18,Math.max(18,s.left+s.width/2-this.panelLeft)),this.placement=this.panelTop<s.top?"above":"below"}estimatedPanelHeight(t){let n=Math.max(26,Math.floor(t/6.5)),r=Math.ceil(this.text.length/n);return Math.min(190,Math.max(54,r*18+28))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Kc({type:e,selectors:[["app-help-popover"]],viewQuery:function(n,r){if(n&1&&qi(u_,5),n&2){let o;su(o=au())&&(r.panel=o.first)}},inputs:{text:"text",label:"label",interactive:"interactive"},decls:6,vars:14,consts:[["panel",""],[1,"help-popover",3,"mouseenter","mouseleave","focusin","focusout"],["type","button"],["aria-hidden","true",1,"help-trigger"],["role","tooltip",1,"help-panel"],["type","button",3,"click"],["aria-hidden","true"]],template:function(n,r){n&1&&(Et(0,"span",1),Or("mouseenter",function(){return r.openPanel()})("mouseleave",function(){return r.closePanel()})("focusin",function(){return r.openPanel()})("focusout",function(){return r.closePanel()}),tu(1,l_,3,1,"button",2)(2,d_,3,0,"span",3),Et(3,"span",4,0),kr(5),Vn()()),n&2&&(Yt("open",r.open),Mr(),ru(r.interactive?1:2),Mr(2),Zi("left",r.panelLeft,"px")("top",r.panelTop,"px")("width",r.panelWidth,"px")("--arrow-left",r.arrowLeft,"px"),Yt("above",r.placement==="above"),Mr(2),Pr(" ",r.text," "))},styles:['[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:15px;height:15px;vertical-align:middle;text-transform:none!important}.help-popover[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;text-transform:none!important}button[_ngcontent-%COMP%], .help-trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:15px;height:15px;border:1px solid rgba(39,214,176,.3);border-radius:50%;padding:0;background:linear-gradient(135deg,#7c5cff29,#1fd1a51f),#ffffff09;color:var(--accent-2);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:9px;font-weight:850;line-height:1;cursor:help;box-shadow:inset 0 0 0 1px #ffffff09;text-transform:none!important}button[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .help-trigger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1;transform:translateY(-.35px);text-transform:none!important}button[_ngcontent-%COMP%]:hover, .help-popover[_ngcontent-%COMP%]:hover .help-trigger[_ngcontent-%COMP%]{border-color:#6f5cff8f;color:var(--text-strong);background:linear-gradient(135deg,#7c5cff47,#1fd1a533),#ffffff0d}button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px}.help-panel[_ngcontent-%COMP%]{position:fixed;z-index:1000;max-width:calc(100vw - 24px);border:1px solid rgba(39,214,176,.26);border-radius:12px;padding:11px 12px 11px 13px;background:radial-gradient(circle at 0% 0%,rgba(124,92,255,.22),transparent 44%),linear-gradient(135deg,#1fd1a521,#7c5cff14),var(--surface-raised, #0d1520);color:var(--text);box-shadow:0 18px 46px #0000005c,0 0 0 1px #ffffff09;font-size:12px;font-weight:520;line-height:1.45;overflow-wrap:anywhere;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease;text-transform:none;text-align:left;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.help-panel[_ngcontent-%COMP%]:before{content:"";position:absolute;left:var(--arrow-left, 18px);top:-6px;width:10px;height:10px;border-left:1px solid rgba(39,214,176,.26);border-top:1px solid rgba(39,214,176,.26);background:linear-gradient(135deg,#1fd1a529,#7c5cff24),var(--surface-raised, #0d1520);transform:translate(-50%) rotate(45deg)}.help-panel.above[_ngcontent-%COMP%]:before{top:auto;bottom:-6px;border:0;border-right:1px solid rgba(39,214,176,.26);border-bottom:1px solid rgba(39,214,176,.26)}.help-popover.open[_ngcontent-%COMP%] .help-panel[_ngcontent-%COMP%]{opacity:1;pointer-events:auto;transform:translateY(0)}.theme-light[_nghost-%COMP%] button[_ngcontent-%COMP%], .theme-light [_nghost-%COMP%] button[_ngcontent-%COMP%], .theme-light[_nghost-%COMP%] .help-trigger[_ngcontent-%COMP%], .theme-light [_nghost-%COMP%] .help-trigger[_ngcontent-%COMP%]{border-color:#0c9f8338;background:linear-gradient(135deg,#6f5cff1f,#0c9f831a),#ffffffc2;color:#0c8f76}.theme-light[_nghost-%COMP%] .help-panel[_ngcontent-%COMP%], .theme-light [_nghost-%COMP%] .help-panel[_ngcontent-%COMP%]{border-color:#0c9f8333;background:radial-gradient(circle at 0% 0%,rgba(111,92,255,.12),transparent 44%),linear-gradient(135deg,#0c9f8314,#6f5cff0b),#fffffff5;color:var(--text);box-shadow:0 18px 42px #1f2d4029;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.theme-light[_nghost-%COMP%] .help-panel[_ngcontent-%COMP%]:before, .theme-light [_nghost-%COMP%] .help-panel[_ngcontent-%COMP%]:before{border-color:#0c9f8333;background:linear-gradient(135deg,#0c9f8317,#6f5cff0f),#fffffff5}']})};var Rh=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(x(Dt),x(ae))};static \u0275dir=ve({type:e})}return e})(),Su=(()=>{class e extends Rh{static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=ve({type:e,features:[nt]})}return e})(),fs=new b("");var f_={provide:fs,useExisting:qe(()=>Oh),multi:!0};function p_(){let e=Qt()?Qt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var h_=new b(""),Oh=(()=>{class e extends Rh{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!p_())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(x(Dt),x(ae),x(h_,8))};static \u0275dir=ve({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&jn("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Bn([f_]),nt]})}return e})();var g_=new b(""),m_=new b("");function kh(e){return e!=null}function Ph(e){return Pn(e)?Le(e):e}function Lh(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function Vh(e,t){return t.map(n=>n(e))}function y_(e){return!e.validate}function jh(e){return e.map(t=>y_(t)?t:n=>t.validate(n))}function v_(e){if(!e)return null;let t=e.filter(kh);return t.length==0?null:function(n){return Lh(Vh(n,t))}}function Bh(e){return e!=null?v_(jh(e)):null}function D_(e){if(!e)return null;let t=e.filter(kh);return t.length==0?null:function(n){let r=Vh(n,t).map(Ph);return As(r).pipe(Ge(Lh))}}function Hh(e){return e!=null?D_(jh(e)):null}function wh(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function E_(e){return e._rawValidators}function C_(e){return e._rawAsyncValidators}function _u(e){return e?Array.isArray(e)?e:[e]:[]}function us(e,t){return Array.isArray(e)?e.includes(t):e===t}function Mh(e,t){let n=_u(t);return _u(e).forEach(o=>{us(n,o)||n.push(o)}),n}function Sh(e,t){return _u(t).filter(n=>!us(e,n))}var ls=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Bh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Hh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Iu=class extends ls{name;get formDirective(){return null}get path(){return null}},Yr=class extends ls{_parent=null;name=null;valueAccessor=null},bu=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var C1=(()=>{class e extends bu{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(x(Yr,2))};static \u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Yt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[nt]})}return e})();var Wr="VALID",cs="INVALID",$n="PENDING",zr="DISABLED",Kt=class{},ds=class extends Kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},qr=class extends Kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Zr=class extends Kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Un=class extends Kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var wu=class extends Kt{source;constructor(t){super(),this.source=t}};function __(e){return(ps(e)?e.validators:e)||null}function I_(e){return Array.isArray(e)?Bh(e):e||null}function b_(e,t){return(ps(t)?t.asyncValidators:e)||null}function w_(e){return Array.isArray(e)?Hh(e):e||null}function ps(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Mu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return rt(this.statusReactive)}set status(t){rt(()=>this.statusReactive.set(t))}_status=Lr(()=>this.statusReactive());statusReactive=En(void 0);get valid(){return this.status===Wr}get invalid(){return this.status===cs}get pending(){return this.status===$n}get disabled(){return this.status===zr}get enabled(){return this.status!==zr}errors;get pristine(){return rt(this.pristineReactive)}set pristine(t){rt(()=>this.pristineReactive.set(t))}_pristine=Lr(()=>this.pristineReactive());pristineReactive=En(!0);get dirty(){return!this.pristine}get touched(){return rt(this.touchedReactive)}set touched(t){rt(()=>this.touchedReactive.set(t))}_touched=Lr(()=>this.touchedReactive());touchedReactive=En(!1);get untouched(){return!this.touched}_events=new fe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Mh(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Mh(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Sh(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Sh(t,this._rawAsyncValidators))}hasValidator(t){return us(this._rawValidators,t)}hasAsyncValidator(t){return us(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(F(T({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Zr(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Zr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(F(T({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new qr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new qr(!0,r))}markAsPending(t={}){this.status=$n;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Un(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(F(T({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=zr,this.errors=null,this._forEachChild(o=>{o.disable(F(T({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ds(this.value,r)),this._events.next(new Un(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(T({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Wr,this._forEachChild(r=>{r.enable(F(T({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(F(T({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wr||this.status===$n)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ds(this.value,n)),this._events.next(new Un(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(F(T({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zr:Wr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=$n,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=Ph(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Un(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?zr:this.errors?cs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($n)?$n:this._anyControlsHaveStatus(cs)?cs:Wr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new qr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Zr(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ps(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=I_(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=w_(this._rawAsyncValidators)}};var $h=new b("",{factory:()=>Tu}),Tu="always";function M_(e,t){return[...t.path,e]}function S_(e,t,n=Tu){N_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),A_(e,t),F_(e,t),x_(e,t),T_(e,t)}function Th(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function T_(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function N_(e,t){let n=E_(e);t.validator!==null?e.setValidators(wh(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=C_(e);t.asyncValidator!==null?e.setAsyncValidators(wh(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Th(t._rawValidators,o),Th(t._rawAsyncValidators,o)}function A_(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Uh(e,t)})}function x_(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Uh(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Uh(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function F_(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function R_(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function O_(e){return Object.getPrototypeOf(e.constructor)===Su}function k_(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Oh?n=i:O_(i)?r=i:o=i}),o||r||n||null}function Nh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ah(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var P_=class extends Mu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(__(n),b_(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ps(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Ah(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new wu(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Nh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Nh(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ah(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var L_={provide:Yr,useExisting:qe(()=>V_)},xh=Promise.resolve(),V_=(()=>{class e extends Yr{_changeDetectorRef;callSetDisabledState;control=new P_;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new pe;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=k_(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),R_(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){S_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){xh.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Zp(r);xh.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?M_(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(x(Iu,9),x(g_,10),x(m_,10),x(fs,10),x(Qi,8),x($h,8))};static \u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Bn([L_]),nt,ki]})}return e})();var j_={provide:fs,useExisting:qe(()=>Wh),multi:!0};function Gh(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function B_(e){return e.split(":")[0]}var Wh=(()=>{class e extends Su{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=m(Ln).injector;destroyRef=m(et);cdr=m(Qi);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Vc({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=Gh(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=B_(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&jn("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Bn([j_]),nt]})}return e})(),I1=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Gh(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(x(ae),x(Dt),x(Wh,9))};static \u0275dir=ve({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),H_={provide:fs,useExisting:qe(()=>zh),multi:!0};function Fh(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function $_(e){return e.split(":")[0]}var zh=(()=>{class e extends Su{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],u=this._getOptionValue(c.value);o.push(u)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let u=this._getOptionValue(c.value);o.push(u)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=$_(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&jn("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Bn([H_]),nt]})}return e})(),b1=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Fh(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Fh(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(x(ae),x(Dt),x(zh,9))};static \u0275dir=ve({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var U_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=xr({type:e});static \u0275inj=dn({})}return e})();var w1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:$h,useValue:n.callSetDisabledState??Tu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=xr({type:e});static \u0275inj=dn({imports:[U_]})}return e})();export{T as a,F as b,ne as c,cg as d,A as e,fe as f,Qn as g,Kn as h,Le as i,Dg as j,Eg as k,Cg as l,Jn as m,Ge as n,Ng as o,At as p,To as q,xg as r,xs as s,cl as t,Fg as u,Fs as v,Og as w,kg as x,Pg as y,Lg as z,Vg as A,jg as B,Bg as C,C as D,Lo as E,L as F,Ug as G,b as H,K as I,m as J,Go as K,aa as L,ge as M,zo as N,Jo as O,Xo as P,Me as Q,Xe as R,et as S,Ut as T,pe as U,Se as V,kt as W,tt as X,vm as Y,En as Z,Pa as _,Em as $,ki as aa,xn as ba,ae as ca,ay as da,cy as ea,lf as fa,ly as ga,dy as ha,zt as ia,Cy as ja,Mr as ka,vr as la,Dr as ma,Rn as na,_r as oa,Ar as pa,hp as qa,Qc as ra,Kc as sa,ve as ta,yp as ua,aE as va,Pn as wa,wp as xa,Ln as ya,pE as za,hE as Aa,Fr as Ba,tu as Ca,ru as Da,mE as Ea,yE as Fa,vE as Ga,Ap as Ha,Fi as Ia,ou as Ja,xp as Ka,Et as La,Vn as Ma,iu as Na,Rp as Oa,jn as Pa,Or as Qa,zi as Ra,Zi as Sa,Yt as Ta,kr as Ua,Pp as Va,Pr as Wa,Lp as Xa,Vp as Ya,JE as Za,eC as _a,tC as $a,nC as ab,rt as bb,Lr as cb,ik as db,Qi as eb,ak as fb,Qt as gb,wC as hb,lu as ib,Ki as jb,eh as kb,KC as lb,XC as mb,e_ as nb,r_ as ob,vu as pb,bP as qb,RP as rb,OP as sb,kP as tb,PP as ub,LP as vb,Ch as wb,VP as xb,Gr as yb,jP as zb,Du as Ab,_h as Bb,Ih as Cb,ss as Db,a_ as Eb,GP as Fb,c_ as Gb,WP as Hb,zP as Ib,qP as Jb,ZP as Kb,YP as Lb,QP as Mb,KP as Nb,JP as Ob,bh as Pb,Oh as Qb,C1 as Rb,V_ as Sb,Wh as Tb,I1 as Ub,b1 as Vb,w1 as Wb};
@@ -1 +0,0 @@
1
- import{Gb as M,Hb as p,Ib as d,Jb as h,Nb as U,a as D,b as T}from"./chunk-F6TIG2GE.js";function P(t,r,o,e){let n=O(t,r);return t.filter(s=>{let i=new Date(s.startedAt).getTime();return n.start!==null&&i<n.start||n.end!==null&&i>=n.end||o!=="all"&&s.workspace!==o?!1:e==="all"||s.modelBreakdown.some(u=>u.pricingModel===e||u.model===e)})}function V(t,r){let o=new Map;for(let e of t)for(let n of e.modelBreakdown){let s=`${n.model}::${n.pricingModel}`,i=o.get(s)??{model:n.model,pricingModel:n.pricingModel,turns:0,sessions:new Set,tokens:0,input:0,cachedInput:0,cacheWrite:0,output:0,cost:0};i.turns+=n.turns,i.sessions.add(e.id),i.tokens+=M(n.tokens),i.input+=n.tokens.input,i.cachedInput+=n.tokens.cachedInput,i.cacheWrite+=n.tokens.cacheWrite,i.output+=n.tokens.output,i.cost+=n.cost.usd,o.set(s,i)}return[...o.values()].map(e=>T(D({},e),{sessionCount:e.sessions.size,costPer1k:e.tokens?e.cost/e.tokens*1e3:0,share:r>0?e.cost/r*100:0,usesFallbackPrice:U(e.model,e.pricingModel)})).sort((e,n)=>n.cost-e.cost)}function B(t,r){let o=new Map;for(let e of t){let n=W(e.startedAt,r),s=o.get(n.key)??T(D({},n),{count:0,tokens:0,cost:0,credits:0,topSession:null,topSessionCost:0});s.count+=1,s.tokens+=p(e);let i=d(e);s.cost+=i,s.credits+=h(e),(!s.topSession||i>s.topSessionCost)&&(s.topSession=e,s.topSessionCost=i),o.set(n.key,s)}return[...o.values()].sort((e,n)=>n.key.localeCompare(e.key)).slice(0,8)}function G(t,r){return["Small","Medium","Large","Very large"].map(e=>{let n=t.filter(a=>v(p(a))===e),s=n.reduce((a,c)=>a+p(c),0),i=n.reduce((a,c)=>a+d(c),0),u=n.reduce((a,c)=>a+h(c),0),l=S(n,a=>d(a));return{size:e,count:n.length,tokens:s,cost:i,share:r>0?i/r*100:0,credits:u,topSession:l,topSessionCost:l?d(l):0}})}function E(t,r,o){if(!t.length)return[];let e=F(t.map(s=>d(s))),n=F(t.map(s=>p(s)));return t.map(s=>{let i=p(s),u=e>0?(d(s)-r)/e:0,l=n>0?(i-o)/n:0,a=Math.max(u,l),c=I(s,u,l);return{session:s,tokens:i,score:a,reason:c}}).filter(s=>s.score>=1||t.length<=5).sort((s,i)=>i.score-s.score||d(i.session)-d(s.session)).slice(0,5)}function H(t,r,o=new Date){let e=Number.isFinite(o.getTime())?o:new Date,n=S(t,L=>Date.parse(L.startedAt)||0),s=$(e),i=b(s,1),u=N(e),l=b(s,1),a=R(e),c=Y(e),m=w(t,s,i),g=w(t,u,l),k=w(t,a,c),x=n?z(n.startedAt):null;return[f("last-session","Last session",n?[n]:[],r,n?.title??"No imported sessions",x?y(x):"No imported sessions"),f("today","Today",m,r,"Imported sessions from today",y(s)),f("week","This week",g,r,"Week so far",A(u,b(l,-1))),f("month","Calendar month",k,r,"Current calendar month",A(a,b(c,-1))),f("visible","Selected scope",t,r,"Sessions matching Usage filters","All imported dates in this view")]}function O(t,r){if(r==="all"||!t.length)return{start:null,end:null,anchor:null};let o=Math.max(...t.map(s=>new Date(s.startedAt).getTime()).filter(Number.isFinite));if(!Number.isFinite(o))return{start:null,end:null,anchor:null};let e=new Date(o);if(r==="current-month"||r==="previous-month"){let s=r==="current-month"?0:-1,i=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+s,1)),u=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+s+1,1));return{start:i.getTime(),end:u.getTime(),anchor:e}}return{start:o-(r==="7d"?7:r==="30d"?30:90)*24*60*60*1e3,end:null,anchor:e}}function W(t,r){let o=new Date(t);if(!Number.isFinite(o.getTime()))return{key:"unknown",label:"Unknown date"};let e=C(o);if(r==="day")return{key:e,label:e};if(r==="month")return{key:e.slice(0,7),label:e.slice(0,7)};let n=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),s=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()-s+1),{key:C(n),label:`Week of ${C(n)}`}}function v(t){return t>=15e5?"Very large":t>=5e5?"Large":t>=1e5?"Medium":"Small"}function S(t,r){return t.reduce((o,e)=>!o||r(e)>r(o)?e:o,null)}function I(t,r,o){let e=p(t),n=t.tokens.input+t.tokens.cachedInput+t.tokens.cacheWrite,s=e?n/e*100:0,i=S(t.modelBreakdown,k=>k.cost.usd),u=d(t),l=i&&u>0?i.cost.usd/u*100:0,a=t.traceSummary.modelTurns,c=t.traceSummary.toolCalls,m=a+c;return Math.max(r,o)>=2&&m<=3&&e>=1e5?`Suspicious spike: ${e.toLocaleString()} tokens with only ${m.toLocaleString()} imported model/tool events. Inspect the largest model call and source log shape.`:s>=85&&n>=1e5?`Mostly input/context tokens (${s.toFixed(0)}% of imported tokens). Check prompt context, repo reads, prior conversation, and tool results.`:i&&l>=70?`${i.pricingModel} produced ${l.toFixed(0)}% of this run's estimate. Model mix is the first thing to inspect.`:c>=20?`${c.toLocaleString()} tool calls may have added results back into later model input.`:t.traceSummary.errors===0&&a>=8&&c>=8?`Large but plausible long agent run: ${a.toLocaleString()} model turns and ${c.toLocaleString()} tool calls with no imported errors. Inspect input/context and tool activity before treating it as waste.`:r>=o?`Cost is ${r.toFixed(1)} standard deviations above this cohort. Check model price rows and output mix.`:`Tokens are ${o.toFixed(1)} standard deviations above this cohort. Check input context and model-turn count.`}function f(t,r,o,e,n,s){let i=o.reduce((m,g)=>m+h(g),0),u=o.reduce((m,g)=>m+d(g),0),l=S(o,m=>d(m)),a=o.filter(m=>!m.sourceUsage).length,c=e>0?i/e*100:0;return{id:t,label:r,period:s,credits:i,usd:u,count:o.length,allowanceShare:c,fallbackCount:a,session:l,detail:o.length?`${o.length.toLocaleString()} session${o.length===1?"":"s"}`:n,actionLabel:l?t==="last-session"?"Open run":"Open top run":"No run to open"}}function w(t,r,o){let e=r.getTime(),n=o.getTime();return t.filter(s=>{let i=Date.parse(s.startedAt);return Number.isFinite(i)&&i>=e&&i<n})}function $(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function N(t){let r=t.getDay()||7,o=$(t);return o.setDate(o.getDate()-r+1),o}function R(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Y(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function b(t,r){let o=new Date(t);return o.setDate(o.getDate()+r),o}function z(t){let r=Date.parse(t);return Number.isFinite(r)?new Date(r):null}function y(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(t)}function A(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()?`${new Intl.DateTimeFormat("en-US",{month:"short"}).format(t)} ${t.getDate()}-${r.getDate()}, ${t.getFullYear()}`:`${y(t)} - ${y(r)}`}function F(t){if(t.length<2)return 0;let r=t.reduce((e,n)=>e+n,0)/t.length,o=t.reduce((e,n)=>e+(n-r)**2,0)/t.length;return Math.sqrt(o)}function C(t){return t.toISOString().slice(0,10)}export{P as a,V as b,B as c,G as d,E as e,H as f,S as g};
@@ -1 +0,0 @@
1
- import{f as Q}from"./chunk-JIP7ONRZ.js";import{$a as b,Ca as v,Da as O,Ea as T,Fa as P,Ga as h,Ha as g,Ia as i,Ib as U,Ja as o,Jb as W,Ka as F,Na as I,O as E,P as D,Pa as f,Pb as Y,Ra as x,Rb as j,Sa as $,Sb as H,Ta as z,Tb as G,U as A,Ua as l,Ub as q,Va as m,Vb as J,Wa as B,Wb as K,Xa as w,Ya as V,Z as y,Za as s,_a as _,cb as C,ka as r,mb as L,nb as R,sa as N,zb as S}from"./chunk-F6TIG2GE.js";var X=(n,t)=>t.id,ae=(n,t)=>t.key;function ie(n,t){if(n&1&&(i(0,"option",6),l(1),o()),n&2){let e=t.$implicit;g("value",e),r(),m(e==="all"?"All workspaces":e)}}function oe(n,t){if(n&1&&(i(0,"option",6),l(1),o()),n&2){let e=t.$implicit;g("value",e),r(),m(e==="all"?"All models":e)}}function re(n,t){if(n&1&&(i(0,"option",6),l(1),o()),n&2){let e=t.$implicit;g("value",e.id),r(),m(e.label)}}function le(n,t){if(n&1){let e=I();i(0,"button",17),f("click",function(){E(e);let p=x();return D(p.resetScope())}),l(1,"Reset scope"),o()}}function se(n,t){if(n&1&&(l(0),s(1,"number")),n&2){let e=x().$implicit;w(" \xB7 ",_(1,2,e.fallbackCount)," fallback",e.fallbackCount===1?"":"s"," ")}}function pe(n,t){if(n&1){let e=I();i(0,"button",18),f("click",function(){let p=E(e).$implicit,c=x();return D(c.emitOpenSession(p.session))}),i(1,"span",19),l(2),o(),i(3,"strong"),l(4),s(5,"number"),o(),i(6,"em",20),l(7),o(),i(8,"em"),l(9),s(10,"number"),o(),i(11,"i",21),F(12,"b"),o(),i(13,"small",22)(14,"span"),l(15),s(16,"number"),v(17,se,2,4),o(),i(18,"span",23),l(19),o()()()}if(n&2){let e=t.$implicit,a=x();z("primary",e.id==="last-session"),g("disabled",!e.session),r(2),m(e.label),r(2),B("",b(5,14,e.credits,"1.0-2")," credits"),r(3),m(e.period),r(2),w("$",b(10,17,e.usd,"1.2-4")," \xB7 ",e.detail),r(3),$("width",e.allowanceShare>100?100:e.allowanceShare,"%"),r(3),w(" ",b(16,20,e.allowanceShare,"1.0-1"),"% of ",a.selectedAllowance().shortLabel," "),r(2),O(e.fallbackCount?17:-1),r(2),m(e.actionLabel)}}function ce(n,t){if(n&1&&(i(0,"span"),l(1),s(2,"number"),s(3,"number"),o()),n&2){let e=t;r(),w("",_(2,2,e.sourceCount)," source \xB7 ",_(3,4,e.fallbackCount)," fallback")}}function de(n,t){if(n&1&&(l(0),s(1,"number")),n&2){let e=x().$implicit;w(" \xB7 ",_(1,2,e.fallbackCount)," fallback",e.fallbackCount===1?"":"s"," ")}}function ge(n,t){if(n&1){let e=I();i(0,"button",24),f("click",function(){let p=E(e).$implicit,c=x();return D(c.emitOpenSession(p.topSession))}),i(1,"span"),l(2),s(3,"date"),o(),i(4,"strong"),l(5),s(6,"number"),o(),i(7,"em"),l(8),s(9,"number"),s(10,"number"),v(11,de,2,4),o()()}if(n&2){let e=t.$implicit;g("disabled",!e.topSession),r(2),m(b(3,7,e.date,"EEE, MMM d")),r(3),B("",b(6,10,e.credits,"1.0-2")," credits"),r(3),V(" ",_(9,13,e.count)," session",e.count===1?"":"s"," \xB7 $",b(10,15,e.usd,"1.2-4")," "),r(3),O(e.fallbackCount?11:-1)}}var Z=class n{sessionsInput=y([]);allowancePlanInput=y("business-standard");workspaceFilter=y("all");modelFilter=y("all");set sessions(t){this.sessionsInput.set(t??[])}set allowancePlan(t){this.allowancePlanInput.set(t??"business-standard")}allowancePlanChange=new A;openSession=new A;allowancePlans=S;help={scope:"Usage is calculated from imported local VS Code sessions. When VS Code reports Copilot usage units, the app uses those. Otherwise it estimates from token buckets and GitHub model prices.",allowance:"Compares your local imported usage with the included monthly AI credits for the selected Copilot plan."};selectedAllowance=C(()=>S.find(t=>t.id===this.allowancePlanInput())??S[0]);currentAllowancePlan=C(()=>this.selectedAllowance().id);workspaceOptions=C(()=>["all",...[...new Set(this.sessionsInput().map(t=>t.workspace).filter(Boolean))].sort()]);modelOptions=C(()=>["all",...[...new Set(this.sessionsInput().map(t=>t.model).filter(Boolean))].sort()]);scopedSessions=C(()=>this.sessionsInput().filter(t=>(this.workspaceFilter()==="all"||t.workspace===this.workspaceFilter())&&(this.modelFilter()==="all"||t.model===this.modelFilter())));scopeActive=C(()=>this.workspaceFilter()!=="all"||this.modelFilter()!=="all");usageWindows=C(()=>Q(this.scopedSessions(),this.selectedAllowance().creditsPerUserMonthly));dailyRows=C(()=>this.buildDailyRows(this.scopedSessions(),14));sourceCoverage=C(()=>{let t=this.scopedSessions(),e=t.filter(a=>a.sourceUsage).length;return{sourceCount:e,fallbackCount:t.length-e,total:t.length}});setAllowancePlan(t){if(!S.some(a=>a.id===t))return;let e=t;this.allowancePlanInput.set(e),this.allowancePlanChange.emit(e)}setWorkspaceFilter(t){this.workspaceFilter.set(t)}setModelFilter(t){this.modelFilter.set(t)}resetScope(){this.workspaceFilter.set("all"),this.modelFilter.set("all")}emitOpenSession(t){t&&this.openSession.emit(t)}buildDailyRows(t,e){let a=ue(new Date);return Array.from({length:e},(p,c)=>{let k=ee(a,-c),te=ee(k,1),M=t.filter(d=>{let u=Date.parse(d.startedAt);return Number.isFinite(u)&&u>=k.getTime()&&u<te.getTime()}),ne=M.reduce((d,u)=>!d||U(u)>U(d)?u:d,null);return{date:k,key:me(k),credits:M.reduce((d,u)=>d+W(u),0),usd:M.reduce((d,u)=>d+U(u),0),count:M.length,topSession:ne,fallbackCount:M.filter(d=>!d.sourceUsage).length}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-usage-page"]],inputs:{sessions:"sessions",allowancePlan:"allowancePlan"},outputs:{allowancePlanChange:"allowancePlanChange",openSession:"openSession"},decls:55,vars:15,consts:[[1,"usage-page"],[1,"usage-header"],[1,"eyebrow"],["label","Explain usage scope",3,"text"],[1,"usage-controls"],[3,"ngModelChange","ngModel"],[3,"value"],["label","Explain allowance",3,"text"],[1,"usage-scope"],["type","button"],["aria-label","Usage answer cards",1,"usage-answer-grid"],["type","button",1,"usage-answer-card",3,"primary","disabled"],[1,"usage-panels"],[1,"usage-panel"],[1,"panel-heading"],[1,"daily-usage-list"],["type","button",3,"disabled"],["type","button",3,"click"],["type","button",1,"usage-answer-card",3,"click","disabled"],[1,"usage-card-label"],[1,"usage-card-period"],["aria-hidden","true"],[1,"usage-card-footer"],[1,"usage-card-action"],["type","button",3,"click","disabled"]],template:function(e,a){if(e&1&&(i(0,"section",0)(1,"header",1)(2,"div")(3,"p",2),l(4,"Usage home"),o(),i(5,"h2"),l(6,"Your Copilot usage"),o(),i(7,"p"),l(8," Today, this week, this month, and recent activity across imported VS Code sessions. "),F(9,"app-help-popover",3),o()(),i(10,"div",4)(11,"label")(12,"span"),l(13,"Workspace"),o(),i(14,"select",5),f("ngModelChange",function(c){return a.setWorkspaceFilter(c)}),P(15,ie,2,2,"option",6,T),o()(),i(17,"label")(18,"span"),l(19,"Model"),o(),i(20,"select",5),f("ngModelChange",function(c){return a.setModelFilter(c)}),P(21,oe,2,2,"option",6,T),o()(),i(23,"label")(24,"span"),l(25," Monthly allowance "),F(26,"app-help-popover",7),o(),i(27,"select",5),f("ngModelChange",function(c){return a.setAllowancePlan(c)}),P(28,re,2,2,"option",6,X),o()()()(),i(30,"div",8)(31,"span"),l(32),s(33,"number"),s(34,"number"),o(),i(35,"span"),l(36),o(),i(37,"span"),l(38),o(),v(39,le,2,0,"button",9),o(),i(40,"section",10),P(41,pe,20,23,"button",11,X),o(),i(43,"section",12)(44,"article",13)(45,"div",14)(46,"div")(47,"h3"),l(48,"Recent days"),o(),i(49,"p"),l(50,"Local imported usage by calendar day."),o()(),v(51,ce,4,6,"span"),o(),i(52,"div",15),P(53,ge,12,18,"button",16,ae),o()()()()),e&2){let p;r(9),g("text",a.help.scope),r(5),g("ngModel",a.workspaceFilter()),r(),h(a.workspaceOptions()),r(5),g("ngModel",a.modelFilter()),r(),h(a.modelOptions()),r(5),g("text",a.help.allowance),r(),g("ngModel",a.currentAllowancePlan()),r(),h(a.allowancePlans),r(4),w("",_(33,11,a.scopedSessions().length)," of ",_(34,13,a.sessionsInput().length)," sessions"),r(4),m(a.workspaceFilter()==="all"?"All workspaces":a.workspaceFilter()),r(2),m(a.modelFilter()==="all"?"All models":a.modelFilter()),r(),O(a.scopeActive()?39:-1),r(2),h(a.usageWindows()),r(10),O((p=a.sourceCoverage())?51:-1,p),r(2),h(a.dailyRows())}},dependencies:[K,q,J,G,j,H,Y,L,R],styles:["[_nghost-%COMP%]{display:block}.usage-page[_ngcontent-%COMP%]{display:grid;gap:12px}.usage-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border:1px solid color-mix(in srgb,var(--accent-2) 24%,var(--line));border-radius:18px;padding:16px;background:var(--header-gradient);box-shadow:var(--shadow)}.eyebrow[_ngcontent-%COMP%]{margin:0;color:var(--muted-2);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}.usage-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:3px 0 0;color:var(--text-strong);font-size:26px;font-weight:820;letter-spacing:0}.usage-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;max-width:720px;margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.usage-controls[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:8px;width:min(720px,58vw)}.usage-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;gap:6px;min-width:0;color:var(--muted);font-size:11px;font-weight:760}.usage-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px}.usage-controls[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;min-height:34px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:13px;font-weight:760}.usage-scope[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--muted);font-size:11px}.usage-scope[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .usage-scope[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:var(--surface-soft)}.usage-scope[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--accent);font:inherit;font-weight:800;cursor:pointer}.usage-answer-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.usage-answer-card[_ngcontent-%COMP%], .usage-panel[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:var(--shadow-soft)}.usage-answer-card[_ngcontent-%COMP%]{display:grid;gap:6px;min-width:0;padding:13px;color:var(--text);text-align:left;cursor:pointer}.usage-answer-card.primary[_ngcontent-%COMP%]{border-color:#0c9f8347;background:linear-gradient(135deg,#0c9f831f,#6f5cff0d),var(--surface)}.usage-answer-card[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.72}.usage-answer-card[_ngcontent-%COMP%]:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 42%,var(--line));transform:translateY(-1px)}.usage-answer-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .usage-answer-card[_ngcontent-%COMP%] em[_ngcontent-%COMP%], .usage-answer-card[_ngcontent-%COMP%] small[_ngcontent-%COMP%], .daily-usage-list[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .daily-usage-list[_ngcontent-%COMP%] em[_ngcontent-%COMP%], .usage-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .usage-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .panel-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .panel-heading[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--muted);font-size:12px;font-style:normal;line-height:1.35}.usage-answer-card[_ngcontent-%COMP%] .usage-card-label[_ngcontent-%COMP%]{color:var(--muted-2);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}.usage-answer-card[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--text-strong);font-size:21px;font-weight:820;line-height:1.05;overflow-wrap:anywhere}.usage-card-period[_ngcontent-%COMP%]{color:var(--text)!important;font-size:12px!important;font-weight:760}.usage-answer-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:100%;height:5px;overflow:hidden;border-radius:999px;background:#61708524}.usage-answer-card[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-2))}.usage-card-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.usage-card-footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-width:0}.usage-card-action[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--accent-strong, var(--accent))!important;font-size:11px!important;font-weight:820}.usage-answer-card[_ngcontent-%COMP%]:disabled .usage-card-action[_ngcontent-%COMP%]{color:var(--muted-2)!important}.usage-panels[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}.usage-panel[_ngcontent-%COMP%]{display:grid;gap:10px;padding:13px}.panel-heading[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-heading[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .usage-panel[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:var(--text-strong);font-size:16px;font-weight:800}.panel-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:3px 0 0}.panel-heading[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:var(--surface-soft);font-weight:760}.daily-usage-list[_ngcontent-%COMP%]{display:grid;gap:6px}.daily-usage-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(120px,.45fr) minmax(110px,.35fr) minmax(0,1fr);gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--surface-soft);color:var(--text);text-align:left;cursor:pointer}.daily-usage-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.64}.daily-usage-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--line-strong)}.daily-usage-list[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--text-strong);font-size:14px;font-weight:800}@media(max-width:1200px){.usage-answer-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.usage-header[_ngcontent-%COMP%], .panel-heading[_ngcontent-%COMP%]{display:grid}.usage-controls[_ngcontent-%COMP%]{grid-template-columns:1fr;width:100%}.usage-answer-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-usage-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:4px}}@media(max-width:560px){.usage-answer-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};function ue(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function ee(n,t){let e=new Date(n);return e.setDate(e.getDate()+t),e}function me(n){let t=n.getFullYear(),e=String(n.getMonth()+1).padStart(2,"0"),a=String(n.getDate()).padStart(2,"0");return`${t}-${e}-${a}`}export{Z as UsagePageComponent};