@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.306 → 0.0.0-workstream-forge.310
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.
- package/browser/{chunk-BS8ewwkG.js → chunk-1Psr-icp.js} +1 -1
- package/browser/{chunk-C_lxOME_.js → chunk-B_4j4J3_.js} +1 -1
- package/browser/{chunk-Clx0bvGz.js → chunk-BgFBBwpx.js} +1 -1
- package/browser/{chunk-CEs51rlG.js → chunk-BlZk5vZF.js} +1 -1
- package/browser/chunk-C-qu5lON.js +750 -0
- package/browser/{chunk-CnKPyIQK.js → chunk-C4tkfNSW.js} +1 -1
- package/browser/{chunk-bHpAPe7O.js → chunk-CM2lHl3p.js} +1 -1
- package/browser/{chunk-CC-LFx8S.js → chunk-CPCXJtgc.js} +1 -1
- package/browser/{chunk-GflAHPXN.js → chunk-CYwplJeI.js} +1 -1
- package/browser/{chunk-B99O2JWv.js → chunk-D7Rw3ZfK.js} +4 -4
- package/browser/{chunk-CFeLuvfm.js → chunk-D9qJN01e.js} +1 -1
- package/browser/{chunk-BgwvxoIf.js → chunk-Dedq0OWd.js} +1 -1
- package/browser/{chunk-CRyj8s5o.js → chunk-Dl4d2552.js} +1 -1
- package/browser/{chunk-DzdTqKLn.js → chunk-DtYNvLBh.js} +1 -1
- package/browser/{chunk-C0hfXNUa.js → chunk-KRWk__j_.js} +1 -1
- package/browser/{chunk-Cn7Sh1Sa.js → chunk-el-z4iRF.js} +2 -2
- package/browser/index.html +1 -1
- package/browser/{main-YM5YA3UI.js → main-T4S6RIJZ.js} +21 -21
- package/package.json +1 -1
- package/browser/chunk-BsXlEFK6.js +0 -750
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var bb=Object.defineProperty,Db=Object.defineProperties;var Eb=Object.getOwnPropertyDescriptors;var Cf=Object.getOwnPropertySymbols;var _b=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable;var Tf=(e,t,n)=>t in e?bb(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,I$2=(e,t)=>{for(var n in t||={})_b.call(t,n)&&Tf(e,n,t[n]);if(Cf)for(var n of Cf(t))Ib.call(t,n)&&Tf(e,n,t[n]);return e},P=(e,t)=>Db(e,Eb(t));function x$2(e){return typeof e=="function"}function fc(e){return x$2(e?.lift)}function w$2(e){return t=>{if(fc(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 pr(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 Fi$2=pr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
2
|
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function bn$3(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var q$3=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;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(x$2(r))try{r();}catch(i){t=i instanceof Fi$2?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sf(i);}catch(s){t=t??[],s instanceof Fi$2?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Fi$2(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sf(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)&&bn$3(n,t);}remove(t){let{_finalizers:n}=this;n&&bn$3(n,t),t instanceof e&&t._removeParent(this);}};q$3.EMPTY=(()=>{let e=new q$3;return e.closed=true,e})();var pc=q$3.EMPTY;function Li$2(e){return e instanceof q$3||e&&"closed"in e&&x$2(e.remove)&&x$2(e.add)&&x$2(e.unsubscribe)}function Sf(e){x$2(e)?e():e.unsubscribe();}var We$2={Promise:void 0};var hr$1={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Pi$2(e){hr$1.setTimeout(()=>{throw e});}function Dn$2(){}function mr(e){e();}var _n$4=class _n extends q$3{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Li$2(t)&&t.add(this)):this.destination=Tb;}static create(t,n,r){return new Ct$6(t,n,r)}next(t){this.isStopped?gc():this._next(t);}error(t){this.isStopped?gc():(this.isStopped=true,this._error(t));}complete(){this.isStopped?gc():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var yc=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){ji$2(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){ji$2(r);}else ji$2(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){ji$2(n);}}},Ct$6=class Ct extends _n$4{constructor(t,n,r){super();let o;if(x$2(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new yc(o);}};function ji$2(e){Pi$2(e);}function Cb(e){throw e}function gc(e,t){}var Tb={closed:true,next:Dn$2,error:Cb,complete:Dn$2};function T(e,t,n,r,o){return new vc(e,t,n,r,o)}var vc=class extends _n$4{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function A$1(e,t){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>{r.next(e.call(t,i,o++));}));})}var gr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function we$3(e){return e}function Sb(...e){return bc(e)}function bc(e){return e.length===0?we$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k$1=(()=>{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=xb(n)?n:new Ct$6(n,r,o);return mr(()=>{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=Rf(r),new r((o,i)=>{let s=new Ct$6({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)}[gr](){return this}pipe(...n){return bc(n)(this)}toPromise(n){return n=Rf(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 Rf(e){var t;return (t=e??We$2.Promise)!==null&&t!==void 0?t:Promise}function Mb(e){return e&&x$2(e.next)&&x$2(e.error)&&x$2(e.complete)}function xb(e){return e&&e instanceof _n$4||Mb(e)&&Li$2(e)}var{isArray:Ab}=Array,{getPrototypeOf:Nb,prototype:Rb,keys:kb}=Object;function Bi$3(e){if(e.length===1){let t=e[0];if(Ab(t))return {args:t,keys:null};if(Ob(t)){let n=kb(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Ob(e){return e&&typeof e=="object"&&Nb(e)===Rb}function Of(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,[])).next());})}function kf(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 In$1(e){return this instanceof In$1?(this.v=e,this):new In$1(e)}function Ff(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(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(v){return new Promise(function(D,R){i.push([f,v,D,R])>1||c(f,v);})},m&&(o[f]=m(o[f])));}function c(f,m){try{u(r[f](m));}catch(v){p(i[0][3],v);}}function u(f){f.value instanceof In$1?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,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Lf(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 kf=="function"?kf(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 Vi$2=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ui$1(e){return x$2(e?.then)}function Hi$2(e){return x$2(e[gr])}function $i$1(e){return Symbol.asyncIterator&&x$2(e?.[Symbol.asyncIterator])}function zi$2(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 Fb(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wi$3=Fb();function Gi$2(e){return x$2(e?.[Wi$3])}function qi$2(e){return Ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield In$1(n.read());if(o)return yield In$1(void 0);yield yield In$1(r);}}finally{n.releaseLock();}})}function Zi$2(e){return x$2(e?.getReader)}function U$3(e){if(e instanceof k$1)return e;if(e!=null){if(Hi$2(e))return Lb(e);if(Vi$2(e))return Pb(e);if(Ui$1(e))return jb(e);if($i$1(e))return Pf(e);if(Gi$2(e))return Bb(e);if(Zi$2(e))return Vb(e)}throw zi$2(e)}function Lb(e){return new k$1(t=>{let n=e[gr]();if(x$2(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Pb(e){return new k$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function jb(e){return new k$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Pi$2);})}function Bb(e){return new k$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function Pf(e){return new k$1(t=>{Ub(e,t).catch(n=>t.error(n));})}function Vb(e){return Pf(qi$2(e))}function Ub(e,t){var n,r,o,i;return Of(this,void 0,void 0,function*(){try{for(n=Lf(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 Ee$4(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Yi$1(e,t=0){return w$2((n,r)=>{n.subscribe(T(r,o=>Ee$4(r,e,()=>r.next(o),t),()=>Ee$4(r,e,()=>r.complete(),t),o=>Ee$4(r,e,()=>r.error(o),t)));})}function Ki$1(e,t=0){return w$2((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function jf(e,t){return U$3(e).pipe(Ki$1(t),Yi$1(t))}function Bf(e,t){return U$3(e).pipe(Ki$1(t),Yi$1(t))}function Vf(e,t){return new k$1(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function Uf(e,t){return new k$1(n=>{let r;return Ee$4(n,t,()=>{r=e[Wi$3](),Ee$4(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,true);}),()=>x$2(r?.return)&&r.return()})}function Qi$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new k$1(n=>{Ee$4(n,t,()=>{let r=e[Symbol.asyncIterator]();Ee$4(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Hf(e,t){return Qi$1(qi$2(e),t)}function $f(e,t){if(e!=null){if(Hi$2(e))return jf(e,t);if(Vi$2(e))return Vf(e,t);if(Ui$1(e))return Bf(e,t);if($i$1(e))return Qi$1(e,t);if(Gi$2(e))return Uf(e,t);if(Zi$2(e))return Hf(e,t)}throw zi$2(e)}function at$3(e,t){return t?$f(e,t):U$3(e)}var{isArray:Hb}=Array;function $b(e,t){return Hb(t)?e(...t):e(t)}function Xi$1(e){return A$1(t=>$b(e,t))}function Ji$1(e){return e&&x$2(e.schedule)}function Dc(e){return e[e.length-1]}function es$1(e){return x$2(Dc(e))?e.pop():void 0}function ct$3(e){return Ji$1(Dc(e))?e.pop():void 0}function zf(e,t){return typeof Dc(e)=="number"?e.pop():t}function ts$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ec(...e){let t=ct$3(e),n=es$1(e),{args:r,keys:o}=Bi$3(e);if(r.length===0)return at$3([],t);let i=new k$1(zb(r,t,o?s=>ts$1(o,s):we$3));return n?i.pipe(Xi$1(n)):i}function zb(e,t,n=we$3){return r=>{Wf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Wf(t,()=>{let u=at$3(e[c],t),l=false;u.subscribe(T(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Wf(e,t,n){e?Ee$4(n,e,t):t();}var wn$1=new k$1(e=>e.complete());function Ge$3(e){return e<=0?()=>wn$1:w$2((t,n)=>{let r=0;t.subscribe(T(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function ns$1(e,t=we$3){return e=e??Wb,w$2((n,r)=>{let o,i=!0;n.subscribe(T(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Wb(e,t){return e===t}function yr(e){return w$2((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Tt$6(e,t){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>e.call(t,i,o++)&&r.next(i)));})}function vr(e){return Tt$6((t,n)=>e<=n)}function zt$6(e,t,n){let r=x$2(e)||t||n?{next:e,error:t,complete:n}:e;return r?w$2((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T(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$3}function Gf(){return w$2((e,t)=>{let n=null;e._refCount++;let r=T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe();});e.subscribe(r),r.closed||(n=e.connect());})}var _c=class extends k$1{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,fc(t)&&(this.lift=t.lift);}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return (!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe();}connect(){let t=this._connection;if(!t){t=this._connection=new q$3;let n=this.getSubject();t.add(this.source.subscribe(T(n,void 0,()=>{this._teardown(),n.complete();},r=>{this._teardown(),n.error(r);},()=>this._teardown()))),t.closed&&(this._connection=null,t=q$3.EMPTY);}return t}refCount(){return Gf()(this)}};var br={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new q$3(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=br;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var qf=pr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var Z$2=(()=>{class e extends k$1{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new rs$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new qf}next(n){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,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?pc:(this.currentObservers=null,i.push(n),new q$3(()=>{this.currentObservers=null,bn$3(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new k$1;return n.source=this,n}}return e.create=(t,n)=>new rs$1(t,n),e})(),rs$1=class rs extends Z$2{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:pc}};var Cn$3=class Cn extends Z$2{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 fo$1={now(){return (fo$1.delegate||Date).now()},delegate:void 0};var po$1=class po extends Z$2{constructor(t=1/0,n=1/0,r=fo$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var os$1=class os extends q$3{constructor(t,n){super();}schedule(t,n=0){return this}};var ho$1={setInterval(e,t,...n){let{delegate:r}=ho$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Wt$4=class Wt extends os$1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return ho$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&ho$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,bn$3(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Gb=1,Ic,wc={};function Zf(e){return e in wc?(delete wc[e],true):false}var Yf={setImmediate(e){let t=Gb++;return wc[t]=true,Ic||(Ic=Promise.resolve()),Ic.then(()=>Zf(t)&&e()),t},clearImmediate(e){Zf(e);}};var{setImmediate:qb,clearImmediate:Zb}=Yf,mo$1={setImmediate(...e){let{delegate:t}=mo$1;return (t?.setImmediate||qb)(...e)},clearImmediate(e){return (Zb)(e)},delegate:void 0};var is$1=class is extends Wt$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=mo$1.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(mo$1.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0));}};var Dr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Dr.now=fo$1.now;var Gt$3=class Gt extends Dr{constructor(t,n=Dr.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ss$1=class ss extends Gt$3{flush(t){this._active=true;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Yb=new ss$1(is$1);var Tn$3=new Gt$3(Wt$4),Kf=Tn$3;var as$1=class as extends Wt$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=br.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(br.cancelAnimationFrame(n),t._scheduled=void 0);}};var cs$1=class cs extends Gt$3{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Kb=new cs$1(as$1);function qe$3(...e){let t=ct$3(e);return at$3(e,t)}function ut$4(e,t){let n=x$2(e)?e:()=>e,r=o=>o.error(n());return new k$1(r)}function Qb(e){return !!e&&(e instanceof k$1||x$2(e.lift)&&x$2(e.subscribe))}var go$1=pr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Qf(e){return e instanceof Date&&!isNaN(e)}function Xf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=v=>u<r?m(v):c.push(v),m=v=>{u++;let D=false;U$3(n(v,l++)).subscribe(T(t,R=>{t.next(R);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let R=c.shift();s?Ee$4(t,s,()=>m(R)):m(R);}p();}catch(R){t.error(R);}}));};return e.subscribe(T(t,f,()=>{d=true,p();})),()=>{}}function lt$3(e,t,n=1/0){return x$2(t)?lt$3((r,o)=>A$1((i,s)=>t(r,i,o,s))(U$3(e(r,o))),n):(typeof t=="number"&&(n=t),w$2((r,o)=>Xf(r,o,e,n)))}function yo$1(e=1/0){return lt$3(we$3,e)}function Jf(){return yo$1(1)}function qt$3(...e){return Jf()(at$3(e,ct$3(e)))}function Xb(e){return new k$1(t=>{U$3(e()).subscribe(t);})}function Cc(...e){let t=es$1(e),{args:n,keys:r}=Bi$3(e),o=new k$1(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=false;U$3(n[l]).subscribe(T(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ts$1(r,a):a),i.complete());}));}});return t?o.pipe(Xi$1(t)):o}function vo$1(e=0,t,n=Kf){let r=-1;return t!=null&&(Ji$1(t)?n=t:r=t),new k$1(o=>{let i=Qf(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Jb(...e){let t=ct$3(e),n=zf(e,1/0),r=e;return r.length?r.length===1?U$3(r[0]):yo$1(n)(at$3(r,t)):wn$1}function ep(e){return w$2((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(T(n,u=>{r=!0,o=u,i||U$3(e(u)).subscribe(i=T(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function eD(e,t=Tn$3){return ep(()=>vo$1(e,t))}function ke$4(e){return w$2((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T(n,void 0,void 0,s=>{i=U$3(e(s,ke$4(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function tp(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l);},(()=>{a&&s.next(c),s.complete();})));}}function np(e,t){return w$2(tp(e,t,arguments.length>=2,!1,!0))}var tD=(e,t)=>(e.push(t),e);function nD(){return w$2((e,t)=>{np(tD,[])(e).subscribe(t);})}function Tc(e,t){return x$2(t)?lt$3(e,t,1):lt$3(e,1)}function bo$1(e,t=Tn$3){return w$2((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(T(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function rp(e){return w$2((t,n)=>{let r=!1;t.subscribe(T(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function op(){return w$2((e,t)=>{e.subscribe(T(t,Dn$2));})}function Sc(e){return A$1(()=>e)}function Mc(e,t){return t?n=>qt$3(t.pipe(Ge$3(1),op()),n.pipe(Mc(e))):lt$3((n,r)=>U$3(e(n,r)).pipe(Ge$3(1),Sc(n)))}function rD(e,t=Tn$3){let n=vo$1(e,t);return Mc(()=>n)}function ip(e=oD){return w$2((t,n)=>{let r=!1;t.subscribe(T(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function oD(){return new go$1}function iD(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Tt$6((o,i)=>e(o,i,r)):we$3,Ge$3(1),n?rp(t):ip(()=>new go$1))}function sD(e){return e<=0?()=>wn$1:w$2((t,n)=>{let r=[];t.subscribe(T(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 aD(){return w$2((e,t)=>{let n,r=!1;e.subscribe(T(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function Do$1(e={}){let{connector:t=()=>new Z$2,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},m=()=>{let v=s;f(),v?.unsubscribe();};return w$2((v,D)=>{u++,!d&&!l&&p();let R=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=xc(m,o));}),R.subscribe(D),!s&&u>0&&(s=new Ct$6({next:te=>R.next(te),error:te=>{d=!0,p(),a=xc(f,n,te),R.error(te);},complete:()=>{l=!0,p(),a=xc(f,r),R.complete();}}),U$3(v).subscribe(s));})(i)}}function xc(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Ct$6({next:()=>{r.unsubscribe(),e();}});return U$3(t(...n)).subscribe(r)}function cD(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,Do$1({connector:()=>new po$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Ac(...e){let t=ct$3(e);return w$2((n,r)=>{(t?qt$3(e,n,t):qt$3(e,n)).subscribe(r);})}function Nc(e,t){return w$2((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T(r,c=>{o?.unsubscribe();let u=0,l=i++;U$3(e(c,l)).subscribe(o=T(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Er(e){return w$2((t,n)=>{U$3(e).subscribe(T(n,()=>n.complete(),Dn$2)),!n.closed&&t.subscribe(n);})}function uD(e,t=false){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var ye$3=null,us$1=false,Sn$1=1,J$1=Symbol("SIGNAL");function _$2(e){let t=ye$3;return ye$3=e,t}function ls$1(){return ye$3}var Zt$5={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Yt$6(e){if(us$1)throw new Error("");if(ye$3===null)return;ye$3.consumerOnSignalRead(e);let t=ye$3.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ye$3.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ye$3.producers,n!==void 0&&n.producer===e)){ye$3.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Sn$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ye$3&&(!r||o.knownValidAtEpoch===Sn$1))return;let i=wr(ye$3),s={producer:e,consumer:ye$3,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Sn$1,lastReadVersion:e.version,nextConsumer:void 0};ye$3.producersTail=s,t!==void 0?t.nextProducer=s:ye$3.producers=s,i&&up(e,s);}function sp(){Sn$1++;}function An$2(e){if(!(wr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Sn$1)){if(!e.producerMustRecompute(e)&&!Ir(e)){_r(e);return}e.producerRecomputeValue(e),_r(e);}}function Rc(e){if(e.consumers===void 0)return;let t=us$1;us$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||dD(r);}}finally{us$1=t;}}function kc(){return ye$3?.consumerAllowSignalWrites!==false}function dD(e){e.dirty=true,Rc(e),e.consumerMarkedDirty?.(e);}function _r(e){e.dirty=false,e.lastCleanEpoch=Sn$1;}function St$5(e){return e&&ap(e),_$2(e)}function ap(e){if(e.producersTail?.knownValidAtEpoch===Sn$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Kt$3(e,t){_$2(t),e&&cp(e);}function cp(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(wr(e))do n=Oc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Ir(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(An$2(n),r!==n.version))return true}return false}function Qt$3(e){if(wr(e)){let t=e.producers;for(;t!==void 0;)t=Oc(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function up(e,t){let n=e.consumersTail,r=wr(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)up(o.producer,o);}function Oc(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,!wr(t)){let i=t.producers;for(;i!==void 0;)i=Oc(i);}return n}function wr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function _o$1(e,t){return Object.is(e,t)}function Io$1(e,t){let n=Object.create(fD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(An$2(n),Yt$6(n),n.value===dt$4)throw n.error;return n.value};return r[J$1]=n,r}var Mn$2=Symbol("UNSET"),xn$3=Symbol("COMPUTING"),dt$4=Symbol("ERRORED"),fD=P(I$2({},Zt$5),{value:Mn$2,dirty:true,error:null,equal:_o$1,kind:"computed",producerMustRecompute(e){return e.value===Mn$2||e.value===xn$3},producerRecomputeValue(e){if(e.value===xn$3)throw new Error("");let t=e.value;e.value=xn$3;let n=St$5(e),r,o=false;try{r=e.computation(),_$2(null),o=t!==Mn$2&&t!==dt$4&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function pD(){throw new Error}var lp=pD;function dp(e){lp(e);}function Fc(e){lp=e;}function Lc(e,t){let n=Object.create(wo$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>fp(n);return r[J$1]=n,[r,s=>Nn$2(n,s),s=>ds$1(n,s)]}function fp(e){return Yt$6(e),e.value}function Nn$2(e,t){kc()||dp(e),e.equal(e.value,t)||(e.value=t,mD(e));}function ds$1(e,t){kc()||dp(e),Nn$2(e,t(e.value));}var wo$1=P(I$2({},Zt$5),{equal:_o$1,value:void 0,kind:"signal"});function mD(e){e.version++,sp(),Rc(e);}var Pc=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function jc(e){if(e.dirty=false,e.version>0&&!Ir(e))return;e.version++;let t=St$5(e);try{e.cleanup(),e.fn();}finally{Kt$3(e,t);}}var Bc;function fs(){return Bc}function ft$5(e){let t=Bc;return Bc=e,t}var pp=Symbol("NotFound");function Cr(e){return e===pp||e?.name==="\u0275NotFound"}function Vc(e,t,n){let r=Object.create(gD);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(An$2(r),Yt$6(r),r.value===dt$4)throw r.error;return r.value};return i[J$1]=r,i}function hp(e,t){An$2(e),Nn$2(e,t),_r(e);}function mp(e,t){if(An$2(e),e.value===dt$4)throw e.error;ds$1(e,t),_r(e);}var gD=P(I$2({},Zt$5),{value:Mn$2,dirty:true,error:null,equal:_o$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===Mn$2||e.value===xn$3},producerRecomputeValue(e){if(e.value===xn$3)throw new Error("");let t=e.value;e.value=xn$3;let n=St$5(e),r,o=false;try{let i=e.source(),s=t!==Mn$2&&t!==dt$4,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,_$2(null),o=s&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function gp(e){let t=_$2(null);try{return e()}finally{_$2(t);}}var bs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(t,n){super(At$7(t,n)),this.code=t;}};function yD(e){return `NG0${Math.abs(e)}`}function At$7(e,t){return `${yD(e)}${t?": "+t:""}`}function B$3(e){for(let t in e)if(e[t]===B$3)return t;throw Error("")}function Ep(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Ao$1(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Ao$1).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 Ds(e,t){return e?t?`${e} ${t}`:e:t||""}var vD=B$3({__forward_ref__:B$3});function Es(e){return e.__forward_ref__=Es,e}function oe$2(e){return Jc(e)?e():e}function Jc(e){return typeof e=="function"&&e.hasOwnProperty(vD)&&e.__forward_ref__===Es}function M(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce$4(e){return {providers:e.providers||[],imports:e.imports||[]}}function No$1(e){return DD(e,_s)}function bD(e){return No$1(e)!==null}function DD(e,t){return e.hasOwnProperty(t)&&e[t]||null}function ED(e){let t=e?.[_s]??null;return t||null}function Hc(e){return e&&e.hasOwnProperty(hs)?e[hs]:null}var _s=B$3({\u0275prov:B$3}),hs=B$3({\u0275inj:B$3}),y=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=M({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function eu(e){return e&&!!e.\u0275providers}var tu=B$3({\u0275cmp:B$3}),nu=B$3({\u0275dir:B$3}),ru=B$3({\u0275pipe:B$3}),ou=B$3({\u0275mod:B$3}),To$1=B$3({\u0275fac:B$3}),Ln$3=B$3({__NG_ELEMENT_ID__:B$3}),yp=B$3({__NG_ENV_ID__:B$3});function _p(e){return ws(e),e[ou]||null}function Nt$7(e){return ws(e),e[tu]||null}function Is(e){return ws(e),e[nu]||null}function Ip(e){return ws(e),e[ru]||null}function ws(e,t){if(e==null)throw new g(-919,false)}function Rt$5(e){return typeof e=="string"?e:e==null?"":String(e)}var wp=B$3({ngErrorCode:B$3}),_D=B$3({ngErrorMessage:B$3});B$3({ngTokenPath:B$3});function iu(e,t){return Cp("",-200)}function Cs(e,t){throw new g(-201,false)}function Cp(e,t,n){let r=new g(t,e);return r[wp]=t,r[_D]=e,r}function wD(e){return e[wp]}var $c;function Tp(){return $c}function ve$4(e){let t=$c;return $c=e,t}function su(e,t,n){let r=No$1(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;Cs();}var Fe$6=globalThis;var CD={},Rn$2=CD,TD="__NG_DI_FLAG__",zc=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=kn$2(n)||0;try{return this.injector.get(t,r&8?null:Rn$2,r)}catch(o){if(Cr(o))return o;throw o}}};function SD(e,t=0){let n=fs();if(n===void 0)throw new g(-203,false);if(n===null)return su(e,void 0,t);{let r=MD(t),o=n.retrieve(e,r);if(Cr(o)){if(r.optional)return null;throw o}return o}}function C$1(e,t=0){return (Tp()||SD)(oe$2(e),t)}function h(e,t){return C$1(e,kn$2(t))}function kn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function MD(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Wc(e){let t=[];for(let n=0;n<e.length;n++){let r=oe$2(e[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=xD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(C$1(o,i));}else t.push(C$1(r));}return t}function xD(e){return e[TD]}function Xt$6(e,t){let n=e.hasOwnProperty(To$1);return n?e[To$1]:null}function Sp(e,t,n){if(e.length!==t.length)return false;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 false}return true}function Mp(e){return e.flat(Number.POSITIVE_INFINITY)}function Ts(e,t){e.forEach(n=>Array.isArray(n)?Ts(n,t):t(n));}function au(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Ro$1(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xp(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ap(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 Ss(e,t,n){let r=Mr(e,t);return r>=0?e[r|1]=n:(r=~r,Ap(e,r,t,n)),r}function Ms(e,t){let n=Mr(e,t);if(n>=0)return e[n|1]}function Mr(e,t){return AD(e,t,1)}function AD(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 en$3={},de$2=[],xr=new y(""),ko=new y("",-1),cu=new y(""),Sr=class{get(t,n=Rn$2){if(n===Rn$2){let o=Cp("",-201);throw o.name="\u0275NotFound",o}return n}};function Pn$2(e){return {\u0275providers:e}}function Np(...e){return {\u0275providers:uu(true,e),\u0275fromNgModule:true}}function uu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Ts(t,s=>{let a=s;ms(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Rp(o,i),n}function Rp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];lu(o,i=>{t(i,r);});}}function ms(e,t,n,r){if(e=oe$2(e),!e)return false;let o=null,i=Hc(e),s=!i&&Nt$7(e);if(!i&&!s){let c=e.ngModule;if(i=Hc(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ms(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Ts(i.imports,l=>{ms(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Rp(u,t);}if(!a){let u=Xt$6(o)||(()=>new o);t({provide:o,useFactory:u,deps:de$2},o),t({provide:cu,useValue:o,multi:true},o),t({provide:xr,useValue:()=>C$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;lu(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function lu(e,t){for(let n of e)eu(n)&&(n=n.\u0275providers),Array.isArray(n)?lu(n,t):t(n);}var ND=B$3({provide:String,useValue:B$3});function kp(e){return e!==null&&typeof e=="object"&&ND in e}function RD(e){return !!(e&&e.useExisting)}function kD(e){return !!(e&&e.useFactory)}function On$2(e){return typeof e=="function"}function Op(e){return !!e.useClass}var Oo$1=new y(""),ps={},vp={},Uc;function Ar(){return Uc===void 0&&(Uc=new Sr),Uc}var ae$3=class ae{},Fn$2=class Fn extends ae$3{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,qc(t,s=>this.processProvider(s)),this.records.set(ko,Tr(void 0,this)),o.has("environment")&&this.records.set(ae$3,Tr(void 0,this));let i=this.records.get(Oo$1);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cu,de$2,{self:true}));}retrieve(t,n){let r=kn$2(n)||0;try{return this.get(t,Rn$2,r)}catch(o){if(Cr(o))return o;throw o}}destroy(){Co(this),this._destroyed=true;let t=_$2(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(),_$2(t);}}onDestroy(t){return Co(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Co(this);let n=ft$5(this),r=ve$4(void 0);try{return t()}finally{ft$5(n),ve$4(r);}}get(t,n=Rn$2,r){if(Co(this),t.hasOwnProperty(yp))return t[yp](this);let o=kn$2(r),s=ft$5(this),a=ve$4(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=jD(t)&&No$1(t);l&&this.injectableDefInScope(l)?u=Tr(Gc(t),ps):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Ar():this.parent;return n=o&8&&n===Rn$2?null:n,c.get(t,n)}catch(c){let u=wD(c);throw u===-200||u===-201?new g(u,null):c}finally{ve$4(a),ft$5(s);}}resolveInjectorInitializers(){let t=_$2(null),n=ft$5(this),r=ve$4(void 0);try{let i=this.get(xr,de$2,{self:!0});for(let s of i)s();}finally{ft$5(n),ve$4(r),_$2(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=oe$2(t);let n=On$2(t)?t:oe$2(t&&t.provide),r=FD(t);if(!On$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Tr(void 0,ps,true),o.factory=()=>Wc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=_$2(null);try{if(n.value===vp)throw iu("");return n.value===ps&&(n.value=vp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&PD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_$2(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=oe$2(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 Gc(e){let t=No$1(e),n=t!==null?t.factory:Xt$6(e);if(n!==null)return n;if(e instanceof y)throw new g(-204,false);if(e instanceof Function)return OD(e);throw new g(-204,false)}function OD(e){if(e.length>0)throw new g(-204,false);let n=ED(e);return n!==null?()=>n.factory(e):()=>new e}function FD(e){if(kp(e))return Tr(void 0,e.useValue);{let t=du(e);return Tr(t,ps)}}function du(e,t,n){let r;if(On$2(e)){let o=oe$2(e);return Xt$6(o)||Gc(o)}else if(kp(e))r=()=>oe$2(e.useValue);else if(kD(e))r=()=>e.useFactory(...Wc(e.deps||[]));else if(RD(e))r=(o,i)=>C$1(oe$2(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=oe$2(e&&(e.useClass||e.provide));if(LD(e))r=()=>new o(...Wc(e.deps));else return Xt$6(o)||Gc(o)}return r}function Co(e){if(e.destroyed)throw new g(-205,false)}function Tr(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function LD(e){return !!e.deps}function PD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function jD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function qc(e,t){for(let n of e)Array.isArray(n)?qc(n,t):n&&eu(n)?qc(n.\u0275providers,t):t(n);}function Nr(e,t){let n;e instanceof Fn$2?(Co(e),n=e):n=new zc(e);let o=ft$5(n),i=ve$4(void 0);try{return t()}finally{ft$5(o),ve$4(i);}}function Fp(){return Tp()!==void 0||fs()!=null}var Ze$3=0,E$1=1,S$2=2,ie$2=3,Le$3=4,pe$2=5,jn$2=6,Rr=7,ee$1=8,ht$3=9,Ye$3=10,$$3=11,kr=12,fu=13,tn$4=14,be$3=15,nn$4=16,Bn$3=17,mt$5=18,gt$5=19,pu=20,Mt$5=21,xs=22,Jt$4=23,Ce$3=24,Vn$1=25,yt$7=26,z$2=27,Lp=1,hu=6,rn$4=7,Fo=8,Un$3=9,Q$2=10;function kt$3(e){return Array.isArray(e)&&typeof e[Lp]=="object"}function Pe$4(e){return Array.isArray(e)&&e[Lp]===true}function mu(e){return (e.flags&4)!==0}function vt$6(e){return e.componentOffset>-1}function Or(e){return (e.flags&1)===1}function Ke$3(e){return !!e.template}function Fr(e){return (e[S$2]&512)!==0}function Hn$3(e){return (e[S$2]&256)===256}var gu="svg",Pp="math";function je$2(e){for(;Array.isArray(e);)e=e[Ze$3];return e}function yu(e,t){return je$2(t[e])}function Te$6(e,t){return je$2(t[e.index])}function As(e,t){return e.data[t]}function Lr(e,t){return e[t]}function Lo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Be$2(e,t){let n=t[e];return kt$3(n)?n:n[Ze$3]}function jp(e){return (e[S$2]&4)===4}function Ns(e){return (e[S$2]&128)===128}function Bp(e){return Pe$4(e[ie$2])}function Se$3(e,t){return t==null?null:e[t]}function vu(e){e[Bn$3]=0;}function bu(e){e[S$2]&1024||(e[S$2]|=1024,Ns(e)&&$n$2(e));}function Vp(e,t){for(;e>0;)t=t[tn$4],e--;return t}function Po(e){return !!(e[S$2]&9216||e[Ce$3]?.dirty)}function Rs(e){e[Ye$3].changeDetectionScheduler?.notify(8),e[S$2]&64&&(e[S$2]|=1024),Po(e)&&$n$2(e);}function $n$2(e){e[Ye$3].changeDetectionScheduler?.notify(0);let t=xt$4(e);for(;t!==null&&!(t[S$2]&8192||(t[S$2]|=8192,!Ns(t)));)t=xt$4(t);}function ks(e,t){if(Hn$3(e))throw new g(911,false);e[Mt$5]===null&&(e[Mt$5]=[]),e[Mt$5].push(t);}function Up(e,t){if(e[Mt$5]===null)return;let n=e[Mt$5].indexOf(t);n!==-1&&e[Mt$5].splice(n,1);}function xt$4(e){let t=e[ie$2];return Pe$4(t)?t[ie$2]:t}function Du(e){return e[Rr]??=[]}function Eu(e){return e.cleanup??=[]}function Hp(e,t,n,r){let o=Du(t);o.push(n),e.firstCreatePass&&Eu(e).push(r,o.length-1);}var N={lFrame:eh(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Zc=false;function $p(){return N.lFrame.elementDepthCount}function zp(){N.lFrame.elementDepthCount++;}function _u(){N.lFrame.elementDepthCount--;}function Os(){return N.bindingsEnabled}function Iu(){return N.skipHydrationRootTNode!==null}function wu(e){return N.skipHydrationRootTNode===e}function Cu(){N.skipHydrationRootTNode=null;}function b(){return N.lFrame.lView}function H$1(){return N.lFrame.tView}function Wp(e){return N.lFrame.contextLView=e,e[ee$1]}function Gp(e){return N.lFrame.contextLView=null,e}function ne$3(){let e=Tu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Tu(){return N.lFrame.currentTNode}function qp(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function zn$2(e,t){let n=N.lFrame;n.currentTNode=e,n.isParent=t;}function Su(){return N.lFrame.isParent}function Mu(){N.lFrame.isParent=false;}function xu(){return N.lFrame.contextLView}function Au(){return Zc}function So$1(e){let t=Zc;return Zc=e,t}function Pr(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Nu(){return N.lFrame.bindingIndex}function Zp(e){return N.lFrame.bindingIndex=e}function on$4(){return N.lFrame.bindingIndex++}function jo(e){let t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yp(){return N.lFrame.inI18n}function Kp(e,t){let n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Fs(t);}function Qp(){return N.lFrame.currentDirectiveIndex}function Fs(e){N.lFrame.currentDirectiveIndex=e;}function Xp(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ls(){return N.lFrame.currentQueryIndex}function Bo(e){N.lFrame.currentQueryIndex=e;}function BD(e){let t=e[E$1];return t.type===2?t.declTNode:t.type===1?e[pe$2]:null}function Ru(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=BD(i),o===null||(i=i[tn$4],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N.lFrame=Jp();return r.currentTNode=t,r.lView=e,true}function Ps(e){let t=Jp(),n=e[E$1];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Jp(){let e=N.lFrame,t=e===null?null:e.child;return t===null?eh(e):t}function eh(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function th(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ku=th;function js(){let e=th();e.isParent=true,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 nh(e){return (N.lFrame.contextLView=Vp(e,N.lFrame.contextLView))[ee$1]}function Ve$3(){return N.lFrame.selectedIndex}function sn$3(e){N.lFrame.selectedIndex=e;}function jr(){let e=N.lFrame;return As(e.tView,e.selectedIndex)}function rh(){N.lFrame.currentNamespace=gu;}function oh(){VD();}function VD(){N.lFrame.currentNamespace=null;}function Ou(){return N.lFrame.currentNamespace}var ih=true;function Bs(){return ih}function Vo(e){ih=e;}function Yc(e,t=null,n=null,r){let o=Fu(e,t,n);return o.resolveInjectorInitializers(),o}function Fu(e,t=null,n=null,r,o=new Set){let i=[n||de$2,Np(e)];return new Fn$2(i,t||Ar(),null,o)}var K$4=class e{static THROW_IF_NOT_FOUND=Rn$2;static NULL=new Sr;static create(t,n){if(Array.isArray(t))return Yc({name:""},n,t);{let r=t.name??"";return Yc({name:r},t.parent,t.providers)}}static \u0275prov=M({token:e,providedIn:"any",factory:()=>C$1(ko)});static __NG_ELEMENT_ID__=-1},O$1=new y(""),Ue$3=(()=>{class e{static __NG_ELEMENT_ID__=UD;static __NG_ENV_ID__=n=>n}return e})(),gs=class extends Ue$3{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return Hn$3(this._lView)}onDestroy(t){let n=this._lView;return ks(n,t),()=>Up(n,t)}};function UD(){return new gs(b())}var sh=false,ah=new y(""),Wn$3=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Cn$3(false);debugTaskTracker=h(ah,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);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(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kc=class extends Z$2{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Fp()&&(this.destroyRef=h(Ue$3,{optional:true})??void 0,this.pendingTasks=h(Wn$3,{optional:true})??void 0);}emit(t){let n=_$2(null);try{super.next(t);}finally{_$2(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 q$3&&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);}});}}},Oe$4=Kc;function ys(...e){}function Lu(e){let t,n;function r(){e=ys;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 ch(e){return queueMicrotask(()=>e()),()=>{e=ys;}}var Pu="isAngularZone",Mo$1=Pu+"_ID",HD=0,j$1=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Oe$4(false);onMicrotaskEmpty=new Oe$4(false);onStable=new Oe$4(false);onError=new Oe$4(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=sh}=t;if(typeof Zone>"u")throw new g(908,false);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=false,s.scheduleInRootZone=i,WD(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Pu)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new g(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new g(909,false)}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,$D,ys,ys);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)}},$D={};function ju(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=true;}}}function zD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Lu(()=>{e.callbackScheduled=false,Qc(e),e.isCheckStableRunning=true,ju(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Qc(e);}function WD(e){let t=()=>{zD(e);},n=HD++;e._inner=e._inner.fork({name:"angular",properties:{[Pu]:true,[Mo$1]:n,[Mo$1+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(GD(c))return r.invokeTask(i,s,a,c);try{return bp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Dp(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return bp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!qD(c)&&t(),Dp(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Qc(e),ju(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Qc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function bp(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Dp(e){e._nesting--,ju(e);}var xo=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Oe$4;onMicrotaskEmpty=new Oe$4;onStable=new Oe$4;onError=new Oe$4;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 GD(e){return uh(e,"__ignore_ng_zone__")}function qD(e){return uh(e,"__scheduler_tick__")}function uh(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var fe$1=class fe{_console=console;handleError(t){this._console.error("ERROR",t);}},an$3=new y("",{factory:()=>{let e=h(j$1),t=h(ae$3),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(fe$1),n.handleError(r));});}}}),lh={provide:xr,useValue:()=>{h(fe$1,{optional:true});},multi:true};function Qe$3(e,t){let [n,r,o]=Lc(e,t?.equal),i=n;i[J$1];return i.set=r,i.update=o,i.asReadonly=Vs.bind(i),i}function Vs(){let e=this[J$1];if(e.readonlyFn===void 0){let t=()=>this();t[J$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Ot$3=new y("",{factory:()=>ZD}),ZD="ng";var Us=new y(""),Gn$2=new y("",{providedIn:"platform",factory:()=>"unknown"}),Bu=new y(""),qn$2=new y("",{factory:()=>h(O$1).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Br=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=YD}return e})();function YD(){return new Br(b(),ne$3())}var pt$4=class pt{},Uo$1=new y("",{factory:()=>true});var Vu=new y(""),Hs=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>new Xc})}return e})(),Xc=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=false;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=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},vs=class{[J$1];constructor(t){this[J$1]=t;}destroy(){this[J$1].destroy();}};function $s(e,t){let n=t?.injector??h(K$4),r=t?.manualCleanup!==true?n.get(Ue$3):null,o,i=n.get(Br,null,{optional:true}),s=n.get(pt$4);return i!==null?(o=XD(i.view,s,e),r instanceof gs&&r._lView===i.view&&(r=null)):o=JD(e,n.get(Hs),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new vs(o)}var dh=P(I$2({},Pc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=So$1(false);try{jc(this);}finally{So$1(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=_$2(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],_$2(e);}}}),KD=P(I$2({},dh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Qt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),QD=P(I$2({},dh),{consumerMarkedDirty(){this.view[S$2]|=8192,$n$2(this.view),this.notifier.notify(13);},destroy(){if(Qt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Jt$4]?.delete(this);}});function XD(e,t,n){let r=Object.create(QD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=fh(r,n),e[Jt$4]??=new Set,e[Jt$4].add(r),r.consumerMarkedDirty(r),r}function JD(e,t,n){let r=Object.create(KD);return r.fn=fh(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 fh(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Zn$2(e){return typeof e=="function"&&e[J$1]!==void 0}var Ho=(()=>{class e{internalPendingTasks=h(Wn$3);scheduler=h(pt$4);errorHandler=h(an$3);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();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();function ei$3(e){return {toString:e}.toString()}var L$1=(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})(L$1||{}),Xs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Jh(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var em=null,ya=(()=>{em=ph;let e=()=>ph;return e.ngInherit=true,e})();function dE(){return em}function ph(e){return e.type.prototype.ngOnChanges&&(e.setInput=pE),fE}function fE(){let e=tm(this),t=e?.current;if(t){let n=e.previous;if(n===en$3)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function pE(e,t,n,r,o){let i=this.declaredInputs[r],s=tm(e)||hE(e,{previous:en$3,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xs(u&&u.currentValue,n,c===en$3),Jh(e,t,o,n);}var Qu="__ngSimpleChanges__";function tm(e){return Object.hasOwn(e,Qu)&&e[Qu]||null}function hE(e,t){return e[Qu]=t}var hh=[];var V$2=function(e,t=null,n){for(let r=0;r<hh.length;r++){let o=hh[r];o(e,t,n);}};function mE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dE()(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 nm(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 Zs(e,t,n){rm(e,t,3,n);}function Ys(e,t,n,r){(e[S$2]&3)===n&&rm(e,t,n,r);}function Uu(e,t){let n=e[S$2];(n&3)===t&&(n&=16383,n+=1,e[S$2]=n);}function rm(e,t,n,r){let o=r!==void 0?e[Bn$3]&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[Bn$3]+=65536),(a<i||i==-1)&&(gE(e,n,t,c),e[Bn$3]=(e[Bn$3]&4294901760)+c+2),c++;}function mh(e,t){V$2(L$1.LifecycleHookStart,e,t);let n=_$2(null);try{t.call(e);}finally{_$2(n),V$2(L$1.LifecycleHookEnd,e,t);}}function gE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$2]>>14<e[Bn$3]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,mh(a,i)):mh(a,i);}var Ur=-1,Kn$2=class Kn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function yE(e){return (e.flags&8)!==0}function vE(e){return (e.flags&16)!==0}function bE(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];DE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function om(e){return e===3||e===4||e===6}function DE(e){return e.charCodeAt(0)===64}function Hr$1(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?gh(e,n,o,null,t[++r]):gh(e,n,o,null,null));}}return e}function gh(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 im(e){return e!==Ur}function Js(e){return e&32767}function EE(e){return e>>16}function ea(e,t){let n=EE(e),r=t;for(;n>0;)r=r[tn$4],n--;return r}var Xu=true;function ta(e){let t=Xu;return Xu=e,t}var _E=256,sm=_E-1,am=5,IE=0,bt$4={};function wE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ln$3)&&(r=n[Ln$3]),r==null&&(r=n[Ln$3]=IE++);let o=r&sm,i=1<<o;t.data[e+(o>>am)]|=i;}function na(e,t){let n=cm(e,t);if(n!==-1)return n;let r=t[E$1];r.firstCreatePass&&(e.injectorIndex=t.length,Hu(r.data,e),Hu(t,null),Hu(r.blueprint,null));let o=kl(e,t),i=e.injectorIndex;if(im(o)){let s=Js(o),a=ea(o,t),c=a[E$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Hu(e,t){e.push(0,0,0,0,0,0,0,0,t);}function cm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function kl(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=hm(o),r===null)return Ur;if(n++,o=o[tn$4],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ur}function Ju(e,t,n){wE(e,t,n);}function CE(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(om(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function um(e,t,n){if(n&8||e!==void 0)return e;Cs();}function lm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[ht$3],i=ve$4(void 0);try{return o?o.get(t,r,n&8):su(t,r,n&8)}finally{ve$4(i);}}return um(r,t,n)}function dm(e,t,n,r=0,o){if(e!==null){if(t[S$2]&2048&&!(r&2)){let s=xE(e,t,n,r,bt$4);if(s!==bt$4)return s}let i=fm(e,t,n,r,bt$4);if(i!==bt$4)return i}return lm(t,n,r,o)}function fm(e,t,n,r,o){let i=SE(n);if(typeof i=="function"){if(!Ru(t,e,r))return r&1?um(o,n,r):lm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Cs(n);else return s}finally{ku();}}else if(typeof i=="number"){let s=null,a=cm(e,t),c=Ur,u=r&1?t[be$3][pe$2]:null;for((a===-1||r&4)&&(c=a===-1?kl(e,t):t[a+8],c===Ur||!vh(r,false)?a=-1:(s=t[E$1],a=Js(c),t=ea(c,t)));a!==-1;){let l=t[E$1];if(yh(i,a,l.data)){let d=TE(a,t,n,s,r,u);if(d!==bt$4)return d}c=t[a+8],c!==Ur&&vh(r,t[E$1].data[a+8]===u)&&yh(i,a,t)?(s=l,a=Js(c),t=ea(c,t)):a=-1;}}return o}function TE(e,t,n,r,o,i){let s=t[E$1],a=s.data[e+8],c=r==null?vt$6(a)&&Xu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ks(a,s,n,c,u);return l!==null?Zo(t,s,l,a,o):bt$4}function Ks(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 m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&Ke$3(f)&&f.type===n)return c}return null}function Zo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Kn$2){let a=i;if(a.resolving)throw iu();let c=ta(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?ve$4(a.injectImpl):null;Ru(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&mE(n,s[n],t);}finally{d!==null&&ve$4(d),ta(c),a.resolving=false,ku();}}return i}function SE(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ln$3)?e[Ln$3]:void 0;return typeof t=="number"?t>=0?t&sm:ME:t}function yh(e,t,n){let r=1<<e;return !!(n[t+(e>>am)]&r)}function vh(e,t){return !(e&2)&&!(e&1&&t)}var cn$4=class cn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return dm(this._tNode,this._lView,t,kn$2(r),n)}};function ME(){return new cn$4(ne$3(),b())}function pm(e){return ei$3(()=>{let t=e.prototype.constructor,n=t[To$1]||el(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[To$1]||el(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function el(e){return Jc(e)?()=>{let t=el(oe$2(e));return t&&t()}:Xt$6(e)}function xE(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Fr(s);){let a=fm(i,s,n,r|2,bt$4);if(a!==bt$4)return a;let c=i.parent;if(!c){let u=s[pu];if(u){let l=u.get(n,bt$4,r&-5);if(l!==bt$4)return l}c=hm(s),s=s[tn$4];}i=c;}return o}function hm(e){let t=e[E$1],n=t.type;return n===2?t.declTNode:n===1?e[pe$2]:null}function Ol(e){return CE(ne$3(),e)}function F$2(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function AE(){return Zr$1(ne$3(),b())}function Zr$1(e,t){return new ue$2(Te$6(e,t))}var ue$2=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=AE}return e})();function mm(e){return e instanceof ue$2?e.nativeElement:e}function NE(){return this._results[Symbol.iterator]()}var Qn$2=class Qn{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z$2}constructor(t=false){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=false;let r=Mp(t);(this._changesDetected=!Sp(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=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=NE};function gm(e){return (e.flags&128)===128}var Fl=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Fl||{}),ym=new Map,RE=0;function kE(){return RE++}function OE(e){ym.set(e[gt$5],e);}function tl(e){ym.delete(e[gt$5]);}var bh="__ngContext__";function $r(e,t){kt$3(t)?(e[bh]=t[gt$5],OE(t)):e[bh]=t;}function vm(e){return Dm(e[kr])}function bm(e){return Dm(e[Le$3])}function Dm(e){for(;e!==null&&!Pe$4(e);)e=e[Le$3];return e}var nl;function Ll(e){nl=e;}function Em(){if(nl!==void 0)return nl;if(typeof document<"u")return document;throw new g(210,false)}var _m="r";var Im="di";var wm=false,Cm=new y("",{factory:()=>wm});var Dh=new WeakMap;function FE(e,t){if(e==null||typeof e!="object")return;let n=Dh.get(e);n||(n=new WeakSet,Dh.set(e,n)),n.add(t);}function va(e){return (e.flags&32)===32}var jE=()=>null;function Tm(e,t,n=false){return jE()}function Sm(e,t){let n=e.contentQueries;if(n!==null){let r=_$2(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];Bo(i),a.contentQueries(2,t[s],s);}}}finally{_$2(r);}}}function rl(e,t,n){Bo(0);let r=_$2(null);try{t(e,n);}finally{_$2(r);}}function Pl(e,t,n){if(mu(t)){let r=_$2(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{_$2(r);}}}var et$2=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(et$2||{});var zs;function BE(){if(zs===void 0&&(zs=null,Fe$6.trustedTypes))try{zs=Fe$6.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return zs}function ba(e){return BE()?.createHTML(e)||e}var Ws;function VE(){if(Ws===void 0&&(Ws=null,Fe$6.trustedTypes))try{Ws=Fe$6.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Ws}function Eh(e){return VE()?.createScriptURL(e)||e}var Ft$6=class Ft{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bs})`}},ol=class extends Ft$6{getTypeName(){return "HTML"}},il=class extends Ft$6{getTypeName(){return "Style"}},sl=class extends Ft$6{getTypeName(){return "Script"}},al=class extends Ft$6{getTypeName(){return "URL"}},cl=class extends Ft$6{getTypeName(){return "ResourceURL"}};function He$5(e){return e instanceof Ft$6?e.changingThisBreaksApplicationSecurity:e}function Lt$5(e,t){let n=Mm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${bs})`)}return n===t}function Mm(e){return e instanceof Ft$6&&e.getTypeName()||null}function jl(e){return new ol(e)}function Bl(e){return new il(e)}function Vl(e){return new sl(e)}function Ul(e){return new al(e)}function Hl(e){return new cl(e)}function UE(e){let t=new ll(e);return HE()?new ul(t):t}var ul=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ba(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},ll=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ba(t),n}};function HE(){try{return !!new window.DOMParser().parseFromString(ba(""),"text/html")}catch{return false}}var $E=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ti$3(e){return e=String(e),e.match($E)?e:"unsafe:"+e}function Pt$4(e){let t={};for(let n of e.split(","))t[n]=true;return t}function ni$3(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var xm=Pt$4("area,br,col,hr,img,wbr"),Am=Pt$4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nm=Pt$4("rp,rt"),zE=ni$3(Nm,Am),WE=ni$3(Am,Pt$4("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),GE=ni$3(Nm,Pt$4("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),_h=ni$3(xm,WE,GE,zE),Rm=Pt$4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qE=Pt$4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ZE=Pt$4("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),YE=ni$3(Rm,qE,ZE),KE=Pt$4("script,style,template"),dl=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=JE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=XE(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Ih(t).toLowerCase();if(!_h.hasOwnProperty(n))return this.sanitizedSomething=true,!KE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!YE.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Rm[a]&&(c=ti$3(c)),this.buf.push(" ",s,'="',wh(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Ih(t).toLowerCase();_h.hasOwnProperty(n)&&!xm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(wh(t));}};function QE(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XE(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw km(t);return t}function JE(e){let t=e.firstChild;if(t&&QE(e,t))throw km(t);return t}function Ih(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function km(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var e_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t_=/([^\#-~ |!])/g;function wh(e){return e.replace(/&/g,"&").replace(e_,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(t_,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Gs;function $l(e,t){let n=null;try{Gs=Gs||UE(e);let r=t?String(t):"";n=Gs.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Gs.getInertBodyElement(r);}while(r!==i);let a=new dl().sanitizeChildren(Ch(n)||n);return ba(a)}finally{if(n){let r=Ch(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Ch(e){return "content"in e&&n_(e)?e.content:null}function n_(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var r_=/^>|^->|<!--|-->|--!>|<!-$/g,o_=/(<|>)/g,i_="\u200B$1\u200B";function s_(e){return e.replace(r_,t=>t.replace(o_,i_))}function a_(e,t){return e.createText(t)}function c_(e,t,n){e.setValue(t,n);}function u_(e,t){return e.createComment(s_(t))}function Om(e,t,n){return e.createElement(t,n)}function ra(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Fm(e,t,n){e.appendChild(t,n);}function Th(e,t,n,r,o){r!==null?ra(e,t,n,r,o):Fm(e,t,n);}function Lm(e,t,n,r){e.removeChild(null,t,n,r);}function l_(e,t,n){e.setAttribute(t,"style",n);}function d_(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Pm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&bE(e,t,r),o!==null&&d_(e,t,o),i!==null&&l_(e,t,i);}var se$3=(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[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(se$3||{});function jm(e){let t=Vm();return t?t.sanitize(se$3.URL,e)||"":Lt$5(e,"URL")?He$5(e):ti$3(Rt$5(e))}function Bm(e){let t=Vm();if(t)return Eh(t.sanitize(se$3.RESOURCE_URL,e)||"");if(Lt$5(e,"ResourceURL"))return Eh(He$5(e));throw new g(904,false)}var f_={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function p_(e,t){return f_[e.toLowerCase()]?.[t.toLowerCase()]===true?Bm:jm}function h_(e,t,n){return p_(t,n)(e)}function Vm(){let e=b();return e&&e[Ye$3].sanitizer}function m_(e){return e.ownerDocument.defaultView}function g_(e){return e instanceof Function?e():e}function y_(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 Um="ng-template";function v_(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&y_(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(zl(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function zl(e){return e.type===4&&e.value!==Um}function b_(e,t,n){let r=e.type===4&&!n?Um:e.value;return t===r}function D_(e,t,n){let r=4,o=e.attrs,i=o!==null?I_(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Xe$3(r)&&!Xe$3(c))return false;if(s&&Xe$3(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!b_(e,c,n)||c===""&&t.length===1){if(Xe$3(r))return false;s=true;}}else if(r&8){if(o===null||!v_(e,o,c,n)){if(Xe$3(r))return false;s=true;}}else {let u=t[++a],l=E_(c,o,zl(e),n);if(l===-1){if(Xe$3(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Xe$3(r))return false;s=true;}}}}return Xe$3(r)||s}function Xe$3(e){return (e&1)===0}function E_(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;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 w_(t,e)}function Hm(e,t,n=false){for(let r=0;r<t.length;r++)if(D_(e,t[r],n))return true;return false}function __(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function I_(e){for(let t=0;t<e.length;t++){let n=e[t];if(om(n))return t}return e.length}function w_(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 C_(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Sh(e,t){return e?":not("+t.trim()+")":t}function T_(e){let t=e[0],n=1,r=2,o="",i=false;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!==""&&!Xe$3(s)&&(t+=Sh(i,o),o=""),r=s,i=i||!Xe$3(r);n++;}return o!==""&&(t+=Sh(i,o)),t}function S_(e){return e.map(T_).join(",")}function M_(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(!Xe$3(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var le$5={},Dt$3=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Dt$3||{}),x_;function Wl(e,t){return x_(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var fl=new WeakMap;function $m(e){return e?e[tn$4]??e:null}var zo=new WeakSet;function A_(e,t,n){let r=fl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=$m(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),zo.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function N_(e,t,n){let r=$m(n),o=fl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):fl.set(e,[{el:t,declarationView:r}]);}var un$4=new Set,Da=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Da||{}),Et$6=new y(""),Mh=new Set;function nt$3(e){Mh.has(e)||(Mh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ea=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gl=[0,1,2,3],ql=(()=>{class e{ngZone=h(j$1);scheduler=h(pt$4);errorHandler=h(fe$1,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){h(Et$6,{optional:true});}execute(){let n=this.sequences.size>0;n&&V$2(L$1.AfterRenderHooksStart),this.executing=true;for(let r of Gl)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=true,this.errorHandler?.handleError(i);}this.executing=false;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&&V$2(L$1.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Vn$1]??=[]).push(n),$n$2(r),r[S$2]|=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=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(Da.AFTER_NEXT_RENDER,n):n()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yo=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;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=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Vn$1];t&&(this.view[Vn$1]=t.filter(n=>n!==this));}};function Zl(e,t){let n=t?.injector??h(K$4);return nt$3("NgAfterNextRender"),k_(e,n,t,true)}function R_(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function k_(e,t,n,r){let o=t.get(Ea);o.impl??=t.get(ql);let i=t.get(Et$6,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ue$3):null,a=t.get(Br,null,{optional:true}),c=new Yo(o.impl,R_(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Yl=new y("",{factory:()=>{let e=h(ae$3),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function zm(e,t,n){let r=e.get(Yl);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 O_(e,t){let n=e.get(Yl);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function F_(e,t){let n=e.get(Yl);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function L_(e,t){for(let[n,r]of t)zm(e,r.animateFns);}function xh(e,t,n,r){let o=e?.[yt$7]?.enter;t!==null&&o&&o.has(n.index)&&L_(r,o);}function Ah(e,t,n,r){try{n.get(ko);}catch{return r(false)}let o=e?.[yt$7];o?.enter?.has(t.index)&&O_(n,o.enter.get(t.index).animateFns);let i=P_(e,t,o);if(i.size===0){let s=false;if(e){let a=[];_a(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&un$4.add(e[gt$5]),zm(n,()=>j_(e,t,o||void 0,i,r),o||void 0);}function P_(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function j_(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&_a(e,t,i),i.length>0){let s=n||e?.[yt$7];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),V_(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&un$4.delete(e[gt$5]),o(true);});}else e&&un$4.delete(e[gt$5]),o(false);}function _a(e,t,n){if(t.type&12){let o=e[t.index];if(Pe$4(o))for(let i=Q$2;i<o.length;i++){let s=o[i];s[E$1].type===2&&B_(s,n);}}let r=t.child;for(;r;)_a(e,r,n),r=r.next;}function B_(e,t){let n=e[yt$7];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$1].firstChild;for(;r;)_a(e,r,t),r=r.next;}function V_(e,t,n){t.then(()=>{e[yt$7]?.running===t&&(e[yt$7].running=void 0,un$4.delete(e[gt$5])),n(true);});}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Pe$4(o)?c=o:kt$3(o)&&(u=true,o=o[Ze$3]);let l=je$2(o);e===0&&r!==null?(xh(a,r,i,n),s==null?Fm(t,r,l):ra(t,r,l,s||null,true)):e===1&&r!==null?(xh(a,r,i,n),ra(t,r,l,s||null,true),A_(i,l,a)):e===2?(a?.[yt$7]?.leave?.has(i.index)&&N_(i,l,a),zo.delete(l),Ah(a,i,n,d=>{if(zo.has(l)){zo.delete(l);return}Lm(t,l,u,d);})):e===3&&(zo.delete(l),Ah(a,i,n,()=>{t.destroyNode(l);})),c!=null&&K_(t,e,n,c,i,r,s);}}function U_(e,t){Wm(e,t),t[Ze$3]=null,t[pe$2]=null;}function H_(e,t,n,r,o,i){r[Ze$3]=o,r[pe$2]=t,wa(e,r,n,1,o,i);}function Wm(e,t){t[Ye$3].changeDetectionScheduler?.notify(9),wa(e,t,t[$$3],2,null,null);}function $_(e){let t=e[kr];if(!t)return $u(e[E$1],e);for(;t;){let n=null;if(kt$3(t))n=t[kr];else {let r=t[Q$2];r&&(n=r);}if(!n){for(;t&&!t[Le$3]&&t!==e;)kt$3(t)&&$u(t[E$1],t),t=t[ie$2];t===null&&(t=e),kt$3(t)&&$u(t[E$1],t),n=t&&t[Le$3];}t=n;}}function Kl(e,t){let n=e[Un$3],r=n.indexOf(t);n.splice(r,1);}function Ia(e,t){if(Hn$3(t))return;let n=t[$$3];n.destroyNode&&wa(e,t,n,3,null,null),$_(t);}function $u(e,t){if(Hn$3(t))return;let n=_$2(null);try{t[S$2]&=-129,t[S$2]|=256,t[Ce$3]&&Qt$3(t[Ce$3]),W_(e,t),z_(e,t),t[E$1].type===1&&t[$$3].destroy();let r=t[nn$4];if(r!==null&&Pe$4(t[ie$2])){r!==t[ie$2]&&Kl(r,t);let o=t[mt$5];o!==null&&o.detachView(e);}tl(t);}finally{_$2(n);}}function z_(e,t){let n=e.cleanup,r=t[Rr];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[Rr]=null);let o=t[Mt$5];if(o!==null){t[Mt$5]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Jt$4];if(i!==null){t[Jt$4]=null;for(let s of i)s.destroy();}}function W_(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 Kn$2)){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];V$2(L$1.LifecycleHookStart,a,c);try{c.call(a);}finally{V$2(L$1.LifecycleHookEnd,a,c);}}else {V$2(L$1.LifecycleHookStart,o,i);try{i.call(o);}finally{V$2(L$1.LifecycleHookEnd,o,i);}}}}}function Gm(e,t,n){return G_(e,t.parent,n)}function G_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze$3];if(vt$6(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===et$2.None||o===et$2.Emulated)return null}return Te$6(r,n)}function qm(e,t,n){return Z_(e,t,n)}function q_(e,t,n){return e.type&40?Te$6(e,n):null}var Z_=q_;function Ql(e,t,n,r){let o=Gm(e,r,t),i=t[$$3],s=r.parent||t[pe$2],a=qm(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Th(i,o,n[c],a,false);else Th(i,o,n,a,false);}function Wo(e,t){if(t!==null){let n=t.type;if(n&3)return Te$6(t,e);if(n&4)return pl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Wo(e,r);{let o=e[t.index];return Pe$4(o)?pl(-1,o):je$2(o)}}else {if(n&128)return Wo(e,t.next);if(n&32)return Wl(t,e)()||je$2(e[t.index]);{let r=Zm(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=xt$4(e[be$3]);return Wo(o,r)}else return Wo(e,t.next)}}}return null}function Zm(e,t){if(t!==null){let r=e[be$3][pe$2],o=t.projection;return r.projection[o]}return null}function pl(e,t){let n=Q$2+e+1;if(n<t.length){let r=t[n],o=r[E$1].firstChild;if(o!==null)return Wo(r,o)}return t[rn$4]}function Xl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[ht$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&$r(je$2(c),r),n.flags|=2),!va(n))if(u&8)Xl(e,t,n.child,r,o,i,false),Vr(t,e,a,o,c,n,i,r);else if(u&32){let l=Wl(n,r),d;for(;d=l();)Vr(t,e,a,o,d,n,i,r);Vr(t,e,a,o,c,n,i,r);}else u&16?Ym(e,t,r,n,o,i):Vr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function wa(e,t,n,r,o,i){Xl(n,r,e.firstChild,t,o,i,false);}function Y_(e,t,n){let r=t[$$3],o=Gm(e,n,t),i=n.parent||t[pe$2],s=qm(i,n,t);Ym(r,0,t,n,o,s);}function Ym(e,t,n,r,o,i){let s=n[be$3],c=s[pe$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Vr(t,e,n[ht$3],o,l,r,i,n);}else {let u=c,l=s[ie$2];gm(r)&&(u.flags|=128),Xl(e,t,u,l,o,i,true);}}function K_(e,t,n,r,o,i,s){let a=r[rn$4],c=je$2(r);a!==c&&Vr(t,e,n,i,a,o,s);for(let u=Q$2;u<r.length;u++){let l=r[u];wa(l[E$1],l,e,t,i,a);}}function Q_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Dt$3.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Dt$3.Important),e.setStyle(n,r,o,i));}}function Jl(e,t,n,r,o,i,s,a,c,u,l){let d=z$2+r,p=d+o,f=X_(d,p),m=typeof u=="function"?u():u;return f[E$1]={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:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,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:m,incompleteFirstPass:false,ssrId:l}}function X_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:le$5);return n}function J_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Jl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ed(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ze$3]=o,d[S$2]=r|4|128|8|64|1024,(u!==null||e&&e[S$2]&2048)&&(d[S$2]|=2048),vu(d),d[ie$2]=d[tn$4]=e,d[ee$1]=n,d[Ye$3]=s||e&&e[Ye$3],d[$$3]=a||e&&e[$$3],d[ht$3]=c||e&&e[ht$3]||null,d[pe$2]=i,d[gt$5]=kE(),d[jn$2]=l,d[pu]=u,d[be$3]=t.type==2?e[be$3]:d,d}function eI(e,t,n){let r=Te$6(t,e),o=J_(n),i=e[Ye$3].rendererFactory,s=td(e,ed(e,o,null,Km(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Km(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Qm(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 td(e,t){return e[kr]?e[fu][Le$3]=t:e[kr]=t,e[fu]=t,t}function ri$3(e=1){Xm(H$1(),b(),Ve$3()+e);}function Xm(e,t,n,r){if((t[S$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Zs(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ys(t,i,0,n);}sn$3(n);}var Ca=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ca||{});function Xn$2(e,t,n,r){let o=_$2(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ca.SignalBased)!==0&&(c=t[i][J$1]),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):Jh(t,c,i,r);}finally{_$2(o);}}function Jm(e,t,n,r,o){let i=Ve$3(),s=r&2;try{sn$3(-1),s&&t.length>z$2&&Xm(e,t,z$2,!1);let a=s?L$1.TemplateUpdateStart:L$1.TemplateCreateStart;V$2(a,o,n),n(r,o);}finally{sn$3(i);let a=s?L$1.TemplateUpdateEnd:L$1.TemplateCreateEnd;V$2(a,o,n);}}function Ta(e,t,n){sI(e,t,n),(n.flags&64)===64&&aI(e,t,n);}function oi$3(e,t,n=Te$6){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 tI(e,t,n,r){let i=r.get(Cm,wm)||n===et$2.ShadowDom||n===et$2.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function oI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function iI(e,t,n,r,o,i){let s=t[E$1];if(Sa(e,s,t,n,r)){vt$6(e)&&tg(t,e.index);return}e.type&3&&(n=oI(n)),eg(e,t,n,r,o,i);}function eg(e,t,n,r,o,i){if(e.type&3){let s=Te$6(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function tg(e,t){let n=Be$2(t,e);n[S$2]&16||(n[S$2]|=64);}function sI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;vt$6(n)&&eI(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||na(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Zo(t,e,s,n);if($r(c,t),i!==null&&lI(t,s-r,c,a,n,i),Ke$3(a)){let u=Be$2(n.index,t);u[ee$1]=Zo(t,e,s,n);}}}function aI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Qp();try{sn$3(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Fs(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&cI(c,u);}}finally{sn$3(-1),Fs(s);}}function cI(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function nd(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Hm(t,i.selectors,false)&&(r??=[],Ke$3(i)?r.unshift(i):r.push(i));}return r}function uI(e,t,n,r,o,i){let s=Te$6(e,t);ng(t[$$3],s,i,e.value,n,r,o);}function ng(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Rt$5(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function lI(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];Xn$2(r,n,c,u);}}function rd(e,t,n,r,o){let i=z$2+n,s=t[E$1],a=o(s,t,e,r,n);t[i]=a,zn$2(e,true);let c=e.type===2;return c?(Pm(t[$$3],a,e),($p()===0||Or(e))&&$r(a,t),zp()):$r(a,t),Bs()&&(!c||!va(e))&&Ql(s,t,a,e),e}function od(e){let t=e;return Su()?Mu():(t=t.parent,zn$2(t,false)),t}function dI(e,t){let n=e[ht$3];if(!n)return;let r;try{r=n.get(an$3,null);}catch{r=null;}r?.(t);}function Sa(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Xn$2(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Xn$2(l,u,r,o),a=true;}return a}function fI(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let m=t.data[f],v=d[p+1];Xn$2(m,n[f],v,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Xn$2(r,n[s],o,i),u=true),u}function pI(e,t){let n=Be$2(t,e),r=n[E$1];hI(r,n);let o=n[Ze$3];o!==null&&n[jn$2]===null&&(n[jn$2]=Tm(o,n[ht$3])),V$2(L$1.ComponentStart);try{id(r,n,n[ee$1]);}finally{V$2(L$1.ComponentEnd,n[ee$1]);}}function hI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function id(e,t,n){Ps(t);try{let r=e.viewQuery;r!==null&&rl(1,r,n);let o=e.template;o!==null&&Jm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mt$5]?.finishViewCreation(e),e.staticContentQueries&&Sm(e,t),e.staticViewQueries&&rl(2,e.viewQuery,n);let i=e.components;i!==null&&mI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,js();}}function mI(e,t){for(let n=0;n<t.length;n++)pI(e,t[n]);}function ii$3(e,t,n,r){let o=_$2(null);try{let i=t.tView,a=e[S$2]&4096?4096:16,c=ed(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[nn$4]=u;let l=e[mt$5];return l!==null&&(c[mt$5]=l.createEmbeddedView(i)),id(i,c,n),c}finally{_$2(o);}}function zr(e,t){return !t||t.firstChild===null||gm(e)}function Ko(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(je$2(i)),Pe$4(i)&&rg(i,r);let s=n.type;if(s&8)Ko(e,t,n.child,r);else if(s&32){let a=Wl(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Zm(t,n);if(Array.isArray(a))r.push(...a);else {let c=xt$4(t[be$3]);Ko(c[E$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function rg(e,t){for(let n=Q$2;n<e.length;n++){let r=e[n],o=r[E$1].firstChild;o!==null&&Ko(r[E$1],r,o,t);}e[rn$4]!==e[Ze$3]&&t.push(e[rn$4]);}function og(e){if(e[Vn$1]!==null){for(let t of e[Vn$1])t.impl.addSequence(t);e[Vn$1].length=0;}}var ig=[];function gI(e){return e[Ce$3]??yI(e)}function yI(e){let t=ig.pop()??Object.create(bI);return t.lView=e,t}function vI(e){e.lView[Ce$3]!==e&&(e.lView=null,ig.push(e));}var bI=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{$n$2(e.lView);},consumerOnSignalRead(){this.lView[Ce$3]=this;}});function DI(e){let t=e[Ce$3]??Object.create(EI);return t.lView=e,t}var EI=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=xt$4(e.lView);for(;t&&!sg(t[E$1]);)t=xt$4(t);t&&bu(t);},consumerOnSignalRead(){this.lView[Ce$3]=this;}});function sg(e){return e.type!==2}function ag(e){if(e[Jt$4]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Jt$4])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$2]&8192);}}var _I=100;function cg(e,t=0){let r=e[Ye$3].rendererFactory;r.begin?.();try{II(e,t);}finally{r.end?.();}}function II(e,t){let n=Au();try{So$1(!0),hl(e,t);let r=0;for(;Po(e);){if(r===_I)throw new g(103,!1);r++,hl(e,1);}}finally{So$1(n);}}function wI(e,t,n,r){if(Hn$3(t))return;let o=t[S$2],i=false,s=false;Ps(t);let a=true,c=null,u=null;(sg(e)?(u=gI(t),c=St$5(u)):ls$1()===null?(a=false,u=DI(t),c=St$5(u)):t[Ce$3]&&(Qt$3(t[Ce$3]),t[Ce$3]=null));try{vu(t),Zp(e.bindingStartIndex),n!==null&&Jm(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Zs(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Ys(t,f,0,null),Uu(t,0);}if(s||CI(t),ag(t),ug(t,0),e.contentQueries!==null&&Sm(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Zs(t,f);}else {let f=e.contentHooks;f!==null&&Ys(t,f,1),Uu(t,1);}SI(e,t);let d=e.components;d!==null&&dg(t,d,0);let p=e.viewQuery;if(p!==null&&rl(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Zs(t,f);}else {let f=e.viewHooks;f!==null&&Ys(t,f,2),Uu(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xs]){for(let f of t[xs])f();t[xs]=null;}i||(og(t),t[S$2]&=-73);}catch(l){throw $n$2(t),l}finally{u!==null&&(Kt$3(u,c),a&&vI(u)),js();}}function ug(e,t){for(let n=vm(e);n!==null;n=bm(n))for(let r=Q$2;r<n.length;r++){let o=n[r];lg(o,t);}}function CI(e){for(let t=vm(e);t!==null;t=bm(t)){if(!(t[S$2]&2))continue;let n=t[Un$3];for(let r=0;r<n.length;r++){let o=n[r];bu(o);}}}function TI(e,t,n){V$2(L$1.ComponentStart);let r=Be$2(t,e);try{lg(r,n);}finally{V$2(L$1.ComponentEnd,r[ee$1]);}}function lg(e,t){Ns(e)&&hl(e,t);}function hl(e,t){let r=e[E$1],o=e[S$2],i=e[Ce$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Ir(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)wI(r,e,r.template,e[ee$1]);else if(o&8192){let a=_$2(null);try{ag(e),ug(e,1);let c=r.components;c!==null&&dg(e,c,1),og(e);}finally{_$2(a);}}}function dg(e,t,n){for(let r=0;r<t.length;r++)TI(e,t[r],n);}function SI(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)sn$3(~o);else {let i=o,s=n[++r],a=n[++r];Kp(s,i);let c=t[i];V$2(L$1.HostBindingsUpdateStart,c);try{a(2,c);}finally{V$2(L$1.HostBindingsUpdateEnd,c);}}}}finally{sn$3(-1);}}function sd(e,t){let n=Au()?64:1088;for(e[Ye$3].changeDetectionScheduler?.notify(t);e;){e[S$2]|=n;let r=xt$4(e);if(Fr(e)&&!r)return e;e=r;}return null}function fg(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function pg(e,t){let n=Q$2+t;if(n<e.length)return e[n]}function si$3(e,t,n,r=true){let o=t[E$1];if(MI(o,t,e,n),r){let s=pl(n,e),a=t[$$3],c=a.parentNode(e[rn$4]);c!==null&&H_(o,e[pe$2],a,t,c,s);}let i=t[jn$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function hg(e,t){let n=Qo(e,t);return n!==void 0&&Ia(n[E$1],n),n}function Qo(e,t){if(e.length<=Q$2)return;let n=Q$2+t,r=e[n];if(r){let o=r[nn$4];o!==null&&o!==e&&Kl(o,r),t>0&&(e[n-1][Le$3]=r[Le$3]);let i=Ro$1(e,Q$2+t);U_(r[E$1],r);let s=i[mt$5];s!==null&&s.detachView(i[E$1]),r[ie$2]=null,r[Le$3]=null,r[S$2]&=-129;}return r}function MI(e,t,n,r){let o=Q$2+r,i=n.length;r>0&&(n[o-1][Le$3]=t),r<i-Q$2?(t[Le$3]=n[o],au(n,Q$2+r,t)):(n.push(t),t[Le$3]=null),t[ie$2]=n;let s=t[nn$4];s!==null&&n!==s&&mg(s,t);let a=t[mt$5];a!==null&&a.insertView(e),Rs(t),t[S$2]|=128;}function mg(e,t){let n=e[Un$3],r=t[ie$2];if(kt$3(r))e[S$2]|=2;else {let o=r[ie$2][be$3];t[be$3]!==o&&(e[S$2]|=2);}n===null?e[Un$3]=[t]:n.push(t);}var ln$4=class ln{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$1];return Ko(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[ee$1]}set context(t){this._lView[ee$1]=t;}get destroyed(){return Hn$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ie$2];if(Pe$4(t)){let n=t[Fo],r=n?n.indexOf(this):-1;r>-1&&(Qo(t,r),Ro$1(n,r));}this._attachedToViewContainer=false;}Ia(this._lView[E$1],this._lView);}onDestroy(t){ks(this._lView,t);}markForCheck(){sd(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$2]&=-129;}reattach(){Rs(this._lView),this._lView[S$2]|=128;}detectChanges(){this._lView[S$2]|=1024,cg(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Fr(this._lView),n=this._lView[nn$4];n!==null&&!t&&Kl(n,this._lView),Wm(this._lView[E$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new g(902,false);this._appRef=t;let n=Fr(this._lView),r=this._lView[nn$4];r!==null&&!n&&mg(r,this._lView),Rs(this._lView);}};var Wr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=xI;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=ii$3(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ln$4(i)}}return e})();function xI(){return Ma(ne$3(),b())}function Ma(e,t){return e.type&4?new Wr$1(t,e,Zr$1(e,t)):null}function nr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=AI(e,t,n,r,o),Yp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=qp();i.injectorIndex=s===null?-1:s.injectorIndex;}return zn$2(i,true),i}function AI(e,t,n,r,o){let i=Tu(),s=Su(),a=s?i:i&&i.parent,c=e.data[t]=RI(e,a,n,t,r,o);return NI(e,c,i,s),c}function NI(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 RI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Iu()&&(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,namespace:Ou(),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 kI(e){let t=e[hu]??[],r=e[ie$2][$$3],o=[];for(let i of t)i.data[Im]!==void 0?o.push(i):OI(i,r);e[hu]=o;}function OI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[_m];for(;n<o;){let i=r.nextSibling;Lm(t,r,false),r=i,n++;}}}var FI=()=>null,LI=()=>null;function oa(e,t){return FI()}function gg(e,t,n){return LI()}var yg=class{},tt$1=class tt{},ai$4=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>PI()}return e})();function PI(){let e=b(),t=ne$3(),n=Be$2(t.index,e);return (kt$3(n)?n:e)[$$3]}var vg=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();function bg(e){return e.debugInfo?.className||e.type.name||null}var Qs={},ia=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function ad(e){return Eg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:false}function Dg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else {let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value);}}function Eg(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function xa(e,t,n){return e[t]=n}function jI(e,t){return e[t]}function Me$5(e,t,n){if(n===le$5)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function cd(e,t,n,r){let o=Me$5(e,t,n);return Me$5(e,t+1,r)||o}function _g(e,t,n,r,o){let i=cd(e,t,n,r);return Me$5(e,t+2,o)||i}function Yn$2(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&FE(o,i);let s=vt$6(e)?Be$2(e.index,t):t;sd(s,5);let a=t[ee$1],c=Rh(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Rh(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Rh(e,t,n,r){let o=_$2(null);try{return V$2(L$1.OutputStart,t,n),n(r)!==!1}catch(i){return dI(e,i),false}finally{V$2(L$1.OutputEnd,t,n),_$2(o);}}function ud(e,t,n,r,o,i,s,a){let c=Or(e),u=false,l=null;if(!r&&c&&(l=VI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Te$6(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!BI(i)){let m=r?v=>r(je$2(v[e.index])):e.index;Ig(m,t,n,i,a,f,false);}}return u}function BI(e){return e.startsWith("animation")||e.startsWith("transition")}function VI(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[Rr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Ig(e,t,n,r,o,i,s){let a=t.firstCreatePass?Eu(t):null,c=Du(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function kh(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,sa(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,sa(e,t,i,r,r,o)),c}function sa(e,t,n,r,o,i){let s=t[n],a=t[E$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);Ig(e.index,a,t,o,i,d,true);}function UI(){HI();}function HI(){let e=b(),t=H$1(),n=ne$3();if(t.firstCreatePass&&WI(t,n),n.controlDirectiveIndex===-1)return;nt$3("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new aa(e,t,n));}function $I(){zI();}function zI(){let e=b(),t=H$1(),n=jr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new aa(e,t,n));}var aa=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Te$6(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];kh(this.tNode,this.lView,r,t,Yn$2(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];kh(this.tNode,this.lView,r,n,Yn$2(this.tNode,this.lView,t));}listenToDom(t,n){ud(this.tNode,this.tView,this.lView,void 0,this.lView[$$3],t,n,Yn$2(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];Xn$2(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];Xn$2(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";fI(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=Oh(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=Oh(i.directive);s!==null&&r.push(...s);}}}return n}};function Oh(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function WI(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}GI(e,t);}function GI(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Fh(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Fh(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,m]=d;if(c>=f&&c<=m)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Fh(e,t){return qI(e,t)&&ZI(e,t+"Change")}function qI(e,t){return t in e.inputs}function ZI(e,t){return t in e.outputs}var ml=Symbol("BINDING");var rr$1=new y("");function ca(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=Ds(o,a);else if(i==2){let c=a,u=t[++s];r=Ds(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function _t$5(e,t=0){let n=b();if(n===null)return C$1(e,t);let r=ne$3();return dm(r,n,oe$2(e),t)}function YI(){let e="invalid";throw new Error(e)}function wg(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}XI(e,t,n,a,i,c,u);}i!==null&&r!==null&&KI(n,r,i);}function KI(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 g(-301,false);r.push(t[o],i);}}function QI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function XI(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&&Ke$3(f)&&(c=f,QI(e,n,p)),Ju(na(n,t),e,f.type);}ow(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=false,l=false,d=Qm(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Hr$1(n.mergedAttrs,f.hostAttrs),ew(e,n,t,d,f),rw(d,f,o),s!==null&&s.has(f)){let[v,D]=s.get(f);n.directiveToIndex.set(f.type,[d,v+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 m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}JI(e,n,i);}function JI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Lh(0,t,o,r),Lh(1,t,o,r),jh(t,r,false);else {let i=n.get(o);Ph(0,t,i,r),Ph(1,t,i,r),jh(t,r,true);}}}function Lh(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),Cg(t,i);}}function Ph(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),Cg(t,s);}}function Cg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function jh(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||zl(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 ew(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Xt$6(o.type)),s=new Kn$2(i,Ke$3(o),_t$5,null);e.blueprint[r]=s,n[r]=s,tw(e,t,r,Qm(e,n,o.hostVars,le$5),o);}function tw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;nw(s)!=a&&s.push(a),s.push(n,r,i);}}function nw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function rw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ke$3(t)&&(n[""]=e);}}function ow(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ld(e,t,n,r,o,i,s,a){let c=t[E$1],u=c.consts,l=Se$3(u,s),d=nr$1(c,e,n,r,l);return wg(c,t,d,Se$3(u,a),o),d.mergedAttrs=Hr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&ca(d,d.attrs,false),d.mergedAttrs!==null&&ca(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function dd(e,t){nm(e,t),mu(t)&&e.queries.elementEnd(t);}function iw(e,t,n,r,o,i){let s=t.consts,a=Se$3(s,o),c=nr$1(t,e,n,r,a);if(c.mergedAttrs=Hr$1(c.mergedAttrs,c.attrs),i!=null){let u=Se$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&ca(c,c.attrs,false),c.mergedAttrs!==null&&ca(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Tg=typeof ShadowRoot<"u",sw=typeof Document<"u";function aw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ca.SignalBased)!==0};return o&&(i.transform=o),i})}function cw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function uw(e,t,n){let r=t instanceof ae$3?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ia(n,r):n}function lw(e){let t=e.get(tt$1,null);if(t===null)throw new g(407,false);let n=e.get(vg,null),r=e.get(pt$4,null),o=e.get(Et$6,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function dw(e,t){let n=Sg(e);return Om(t,n,n==="svg"?gu:n==="math"?Pp:null)}function fw(e){if(e?.toLowerCase()==="script")throw new g(905,false)}function Sg(e){return (e.selectors[0][0]||"div").toLowerCase()}var Jn$2=class Jn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=aw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=cw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=S_(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V$2(L$1.DynamicComponentStart);let a=_$2(null);try{let c=this.componentDef,u=uw(c,o||this.ngModule,t),l=lw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(bg(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{_$2(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=pw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?tI(u,o,a.encapsulation,n):dw(a,u);fw(l?.tagName);let d=n.get(rr$1,null),p=hw(l,()=>n.get(O$1,null)??Em());d&&d.addHost(p);let f=s?.some(Bh)||i?.some(D=>typeof D!="function"&&D.bindings.some(Bh)),m=ed(null,c,null,512|Km(a),null,null,t,u,n,null,Tm(l,n,true));d&&Tg&&p instanceof ShadowRoot&&ks(m,()=>{d.removeHost(p);}),m[z$2]=l,Ps(m);let v=null;try{let D=ld(z$2,m,2,"#host",()=>c.directiveRegistry,!0,0);Pm(u,l,D),$r(l,m),Ta(c,m,D),Pl(c,D,m),dd(c,D),r!==void 0&&gw(D,this.ngContentSelectors,r),v=Be$2(D.index,m),m[ee$1]=v[ee$1],id(c,m,null);}catch(D){throw v!==null&&tl(v),tl(m),D}finally{V$2(L$1.DynamicComponentEnd),js();}return new ua(this.componentType,m,!!f)}};function pw(e,t,n,r){let o=e?["ng-version","22.0.8"]:M_(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ml].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[ml].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=Is(d);c.push(p);}return Jl(0,null,mw(i,s),1,a,c,null,null,null,[o],null)}function hw(e,t){let n=e.getRootNode?.();return sw&&n instanceof Document?n.head:n&&Tg&&n instanceof ShadowRoot?n:t().head}function mw(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 Bh(e){let t=e[ml].kind;return t==="input"||t==="twoWay"}var ua=class extends yg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=As(n[E$1],z$2),this.location=Zr$1(this._tNode,n),this.instance=Be$2(this._tNode.index,n)[ee$1],this.hostView=this.changeDetectorRef=new ln$4(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;Sa(r,o[E$1],o,t,n);this.previousInputValues.set(t,n);let s=Be$2(r.index,o);sd(s,1);}get injector(){return new cn$4(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function gw(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 Yr$1=(()=>{class e{static __NG_ELEMENT_ID__=yw}return e})();function yw(){let e=ne$3();return Mg(e,b())}var gl=class e extends Yr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return Zr$1(this._hostTNode,this._hostLView)}get injector(){return new cn$4(this._hostTNode,this._hostLView)}get parentInjector(){let t=kl(this._hostTNode,this._hostLView);if(im(t)){let n=ea(t,this._hostLView),r=Js(t),o=n[E$1].data[r+8];return new cn$4(o,n)}else return new cn$4(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=Vh(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Q$2}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=oa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Jn$2(Nt$7(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let R=this.parentInjector.get(ae$3,null);R&&(i=R);}let p=Nt$7(l.componentType??{}),f=oa(this._lContainer,p?.id??null),m=null,v=l.create(d,o,m,i,s,a);return this.insertImpl(v.hostView,c,zr(this._hostTNode,f)),v}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Bp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ie$2],u=new e(c,c[pe$2],c[ie$2]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return si$3(s,o,i,r),t.attachToViewContainerRef(),au(zu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Vh(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Qo(this._lContainer,n);r&&(Ro$1(zu(this._lContainer),n),Ia(r[E$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=Qo(this._lContainer,n);return r&&Ro$1(zu(this._lContainer),n)!=null?new ln$4(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Vh(e){return e[Fo]}function zu(e){return e[Fo]||(e[Fo]=[])}function Mg(e,t){let n,r=t[e.index];return Pe$4(r)?n=r:(n=fg(r,t,null,e),t[e.index]=n,td(t,n)),bw(n,t,e,r),new gl(n,e,t)}function vw(e,t){let n=e[$$3],r=n.createComment(""),o=Te$6(t,e),i=n.parentNode(o);return ra(n,i,r,n.nextSibling(o),false),r}var bw=_w;function _w(e,t,n,r){if(e[rn$4])return;let o;n.type&8?o=je$2(r):o=vw(t,n),e[rn$4]=o;}var yl=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},vl=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++)pd(t,n).matches!==null&&this.queries[n].setDirty();}},la=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Sw(t):this.predicate=t;}},bl=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);}},Dl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;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=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,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,Iw(n,i)),this.matchTNodeWithReadOption(t,n,Ks(n,t,i,false,false));}else r===Wr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ks(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ue$2||o===Yr$1||o===Wr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Ks(n,t,o,false,false);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 Iw(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 ww(e,t){return e.type&11?Zr$1(e,t):e.type&4?Ma(e,t):null}function Cw(e,t,n,r){return n===-1?ww(t,e):n===-2?Tw(e,t,r):Zo(e,e[E$1],n,t)}function Tw(e,t,n){if(n===ue$2)return Zr$1(t,e);if(n===Wr$1)return Ma(t,e);if(n===Yr$1)return Mg(t,e)}function xg(e,t,n,r){let o=t[mt$5].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(Cw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function El(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=xg(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=Q$2;d<l.length;d++){let p=l[d];p[nn$4]===p[ie$2]&&El(p[E$1],p,u,r);}if(l[Un$3]!==null){let d=l[Un$3];for(let p=0;p<d.length;p++){let f=d[p];El(f[E$1],f,u,r);}}}}}return r}function fd(e,t){return e[mt$5].queries[t].queryList}function Ag(e,t,n){let r=new Qn$2((n&4)===4);return Hp(e,t,r,r.destroy),(t[mt$5]??=new vl).queries.push(new yl(r))-1}function Ng(e,t,n){let r=H$1();return r.firstCreatePass&&(kg(r,new la(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Ag(r,b(),t)}function Rg(e,t,n,r){let o=H$1();if(o.firstCreatePass){let i=ne$3();kg(o,new la(t,n,r),i.index),Mw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Ag(o,b(),n)}function Sw(e){return e.split(",").map(t=>t.trim())}function kg(e,t,n){e.queries===null&&(e.queries=new bl),e.queries.track(new Dl(t,n));}function Mw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function pd(e,t){return e.queries.getByIndex(t)}function Og(e,t){let n=e[E$1],r=pd(n,t);return r.crossesNgTemplate?El(n,e,t,[]):xg(n,e,r,t)}function Fg(e,t,n){let r,o=Io$1(()=>{r._dirtyCounter();let i=xw(r,e);if(t&&i===void 0)throw new g(-951,false);return i});return r=o[J$1],r._dirtyCounter=Qe$3(0),r._flatValue=void 0,o}function hd(e){return Fg(true,false)}function md(e){return Fg(true,true)}function Lg(e,t){let n=e[J$1];n._lView=b(),n._queryIndex=t,n._queryList=fd(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function xw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$2]&4)return t?void 0:de$2;let o=fd(n,r),i=Og(n,r);return o.reset(i,mm),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Aa(e){return !!e&&typeof e.then=="function"}function gd(e){return !!e&&typeof e.subscribe=="function"}var er$1=class er{},Pg=class{};var da=class extends er$1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=_p(t);this._bootstrapComponents=g_(i.bootstrap),this._r3Injector=Fu(t,n,[{provide:er$1,useValue:this},...r],Ao$1(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);}},fa=class extends Pg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new da(this.moduleType,t,[])}};var Xo=class extends er$1{injector;instance=null;constructor(t){super();let n=new Fn$2([...t.providers,{provide:er$1,useValue:this}],t.parent||Ar(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function jg(e,t,n=null){return new Xo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var Aw=(()=>{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=uu(false,n.type),o=r.length>0?jg([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=M({token:e,providedIn:"environment",factory:()=>new e(C$1(ae$3))})}return e})();function xe$1(e){return ei$3(()=>{let t=Bg(e),n=P(I$2({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Fl.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Aw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||et$2.Emulated,styles:e.styles||de$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nt$3("NgStandalone"),Vg(n);let r=e.dependencies;return n.directiveDefs=Uh(r,Nw),n.pipeDefs=Uh(r,Ip),n.id=Ow(n),n})}function Nw(e){return Nt$7(e)||Is(e)}function he$2(e){return ei$3(()=>({type:e.type,bootstrap:e.bootstrap||de$2,declarations:e.declarations||de$2,imports:e.imports||de$2,exports:e.exports||de$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Rw(e,t){if(e==null)return en$3;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=Ca.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function kw(e){if(e==null)return en$3;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function rt$2(e){return ei$3(()=>{let t=Bg(e);return Vg(t),t})}function yd(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function Bg(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||en$3,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||de$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Rw(e.inputs,t),outputs:kw(e.outputs),debugInfo:null}}function Vg(e){e.features?.forEach(t=>t(e));}function Uh(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 Ow(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}var vd=new y("");function Fw(e){return Pn$2([{provide:vd,multi:true,useValue:e}])}var bd=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=h(vd,{optional:true})??[];injector=h(K$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nr(this.injector,o);if(Aa(i))n.push(i);else if(gd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function Lw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Pw(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=jw,n.hostDirectives=r?e.map(_l):[e]):r?n.hostDirectives.unshift(...e.map(_l)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function jw(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,Ug(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&Ke$3(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{Bw(s.declaredInputs,i.inputs);}),[t,r,o]}function Ug(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Hh(_l(s),t,n,r);}else Hh(o,t,n,r);}function Hh(e,t,n,r){let o=Is(e.directive);if(Ug(o,t,n,r),n.has(o)){let i=n.get(o);$h(i,e.inputs,"input"),$h(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function $h(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function _l(e){return typeof e=="function"?{directive:oe$2(e),inputs:{},outputs:{}}:{directive:oe$2(e.directive),inputs:zh(e.inputs),outputs:zh(e.outputs)}}function zh(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function Bw(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function Vw(e){return Object.getPrototypeOf(e.prototype).constructor}function Kr$1(e){let t=Vw(e.type),n=true,r=[e];for(;t;){let o;if(Ke$3(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new g(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Wu(e.inputs),s.declaredInputs=Wu(e.declaredInputs),s.outputs=Wu(e.outputs);let a=o.hostBindings;a&&Ww(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&$w(e,c),u&&zw(e,u),Uw(e,o),Ep(e.outputs,o.outputs),Ke$3(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===Kr$1&&(n=false);}}t=Object.getPrototypeOf(t);}Hw(r);}function Uw(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 Hw(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=Hr$1(o.hostAttrs,n=Hr$1(n,o.hostAttrs));}}function Wu(e){return e===en$3?{}:e===de$2?[]:e}function $w(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function zw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Ww(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Hg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Hr$1(e.mergedAttrs,e.attrs);let l=e.tView=Jl(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),zn$2(e,false);let c=qw(n,t);Bs()&&Ql(n,t,c,e),$r(c,t);let u=fg(c,t,c,e);t[r+z$2]=u,td(t,u);}function Gw(e,t,n,r,o,i,s,a,c,u,l){let d=n+z$2,p;return t.firstCreatePass?(p=nr$1(t,d,4,s||null,a||null),wg(t,e,p,Se$3(t.consts,u),nd),nm(t,p)):p=t.data[d],Hg(p,e,t,n,r,o,i,c),Or(p)&&Ta(t,e,p),u!=null&&oi$3(e,p,l),p}function Gr(e,t,n,r,o,i,s,a,c,u,l){let d=n+z$2,p;if(t.firstCreatePass){if(p=nr$1(t,d,4,s||null,a||null),u!=null){let f=Se$3(t.consts,u);p.localNames=[];for(let m=0;m<f.length;m+=2)p.localNames.push(f[m],-1);}}else p=t.data[d];return Hg(p,e,t,n,r,o,i,c),u!=null&&oi$3(e,p,l),p}function $g(e,t,n,r,o,i,s,a){let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gw(c,u,e,t,n,r,o,l,void 0,s,a),$g}function zg(e,t,n,r,o,i,s,a){let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,void 0,s,a),zg}var qw=Zw;function Zw(e,t,n,r){return Vo(true),t[$$3].createComment("")}var Wg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Dd=new y("");var Ed=new y("");function Gg(){Fc(()=>{let e="";throw new g(600,e)});}var Yw=10;var or$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=h(an$3);afterRenderManager=h(Ea);zonelessEnabled=h(Uo$1);rootEffectScheduler=h(Hs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new Z$2;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=h(Wn$3);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(A$1(n=>!n))}constructor(){h(Et$6,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=h(ae$3);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=K$4.NULL){return this._injector.get(j$1).run(()=>{if(V$2(L$1.BootstrapComponentStart),!this._injector.get(bd).done){let R="";throw new g(405,R)}let a=Nt$7(n),c=this._injector.get(er$1),u=new Jn$2(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Kw(r),f=l||u.selector,m=u.create(o,[],f,c.injector,d,p),v=m.location.nativeElement,D=m.injector.get(Dd,null);return D?.registerApplication(v),m.onDestroy(()=>{this.detachView(m.hostView),Go(this.components,m),D?.unregisterApplication(v);}),this._loadComponent(m),V$2(L$1.BootstrapComponentEnd,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V$2(L$1.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Da.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V$2(L$1.ChangeDetectionEnd),new g(101,false);let n=_$2(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,_$2(n),this.afterTick.next(),V$2(L$1.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tt$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Yw;){V$2(L$1.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V$2(L$1.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Po(o))continue;let i=r&&!this.zonelessEnabled?0:1;cg(o,i),n=true;}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})=>Po(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;Go(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(Ed,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>Go(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,false);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=F$2({token:e,factory:e.\u0275fac})}return e})();function Kw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Go(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function qg(e,t){let n=b(),r=on$4();if(Me$5(n,r,t)){let o=H$1(),i=jr();if(Sa(i,o,n,e,t))vt$6(i)&&tg(n,i.index);else {let a=Te$6(i,n);ng(n[$$3],a,null,i.value,e,t,null);}}return qg}function ir$1(e,t,n,r){let o=b(),i=on$4();if(Me$5(o,i,t)){H$1();let a=jr();uI(a,o,e,t,n,r);}return ir$1}var Il=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 Gu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Qw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){_$2(r);let u=t.length-1;for(_$2(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Gu(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),m=t[u],v=Gu(a,f,u,m,n);if(v!==0){v<0&&e.updateValue(a,m),a--,u--;continue}let D=n(s,l),R=n(a,f),te=n(s,d);if(Object.is(te,R)){let Re=n(u,m);Object.is(Re,D)?(e.swap(s,a),e.updateValue(a,m),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new pa,i??=Gh(e,s,a,n),wl(e,o,s,te))e.updateValue(s,d),s++,a++;else if(i.has(te))o.set(D,e.detach(s)),a--;else {let Re=e.create(s,t[s]);e.attach(s,Re),s++,a++;}}for(;s<=u;)Wh(e,o,n,s,t[s]),s++;}else if(t!=null){_$2(r);let u=t[Symbol.iterator]();_$2(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Gu(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new pa,i??=Gh(e,s,a,n);let m=n(s,p);if(wl(e,o,s,m))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(m))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let v=n(s,d);o.set(v,e.detach(s)),a--;}}}for(;!l.done;)Wh(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 wl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Wh(e,t,n,r,o){if(wl(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Gh(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 pa=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;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),true}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 ci$3(e,t,n,r,o,i,s,a){nt$3("NgControlFlow");let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,256,s,a),_d}function _d(e,t,n,r,o,i,s,a){nt$3("NgControlFlow");let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,512,s,a),_d}function ui$2(e,t){nt$3("NgControlFlow");let n=b(),r=on$4(),o=n[r]!==le$5?n[r]:-1,i=o!==-1?ha(n,z$2+o):void 0,s=0;if(Me$5(n,r,e)){let a=_$2(null);try{if(i!==void 0&&hg(i,s),e!==-1){let c=z$2+e,u=ha(n,c),l=Ml(n[E$1],c),d=gg(u,l,n),p=ii$3(n,l,t,{dehydratedView:d});si$3(u,p,s,zr(l,d));}}finally{_$2(a);}}else if(i!==void 0){let a=pg(i,s);a!==void 0&&(a[ee$1]=t);}}var Cl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-Q$2}};function Xw(e){return e}function Jw(e,t){return t}var Tl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function eC(e,t,n,r,o,i,s,a,c,u,l,d,p){nt$3("NgControlFlow");let f=b(),m=H$1(),v=c!==void 0,D=b(),R=a?s.bind(D[be$3][ee$1]):s,te=new Tl(v,R);D[z$2+e]=te,Gr(f,m,e+1,t,n,r,o,Se$3(m.consts,i),256),v&&Gr(f,m,e+2,c,u,l,d,Se$3(m.consts,p),512);}var Sl=class extends Il{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-Q$2}at(t){return this.getLView(t)[ee$1].$implicit}attach(t,n){let r=n[jn$2];this.needsIndexUpdate||=t!==this.length,si$3(this.lContainer,n,t,zr(this.templateTNode,r)),nC(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,rC(this.lContainer,t),oC(this.lContainer,t)}create(t,n){let r=oa(this.lContainer,this.templateTNode.tView.ssrId);return ii$3(this.hostLView,this.templateTNode,new Cl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ia(t[E$1],t);}updateValue(t,n){this.getLView(t)[ee$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ee$1].$index=t;}getLView(t){return iC(this.lContainer,t)}};function tC(e){let t=_$2(null),n=Ve$3();try{let r=b(),o=r[E$1],i=r[n],s=n+1,a=ha(r,s);if(i.liveCollection===void 0){let u=Ml(o,s);i.liveCollection=new Sl(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Qw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=on$4(),l=c.length===0;if(Me$5(r,u,l)){let d=n+2,p=ha(r,d);if(l){let f=Ml(o,d),m=gg(p,f,r),v=ii$3(r,f,void 0,{dehydratedView:m});si$3(p,v,0,zr(f,m));}else o.firstUpdatePass&&kI(p),hg(p,0);}}}finally{_$2(t);}}function ha(e,t){return e[t]}function nC(e,t){if(e.length<=Q$2)return;let n=Q$2+t,r=e[n],o=r?r[yt$7]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[ht$3];F_(i,o),un$4.delete(r[gt$5]),o.detachedLeaveAnimationFns=void 0;}}function rC(e,t){if(e.length<=Q$2)return;let n=Q$2+t,r=e[n],o=r?r[yt$7]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function oC(e,t){return Qo(e,t)}function iC(e,t){return pg(e,t)}function Ml(e,t){return As(e,t)}function Zg(e,t,n){let r=b(),o=on$4();if(Me$5(r,o,t)){H$1();let s=jr();iI(s,r,e,t,r[$$3],n);}return Zg}function xl(e,t,n,r,o){Sa(t,e,n,o?"class":"style",r);}function ma(e,t,n,r){let o=b(),i=o[E$1],s=e+z$2,a=i.firstCreatePass?ld(s,o,2,t,nd,Os(),n,r):i.data[s];if(vt$6(a)){let c=o[Ye$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(bg(u),()=>(qh(e,t,o,a,r),ma))}}return qh(e,t,o,a,r),ma}function qh(e,t,n,r,o){if(rd(r,n,e,t,Kg),Or(r)){let i=n[E$1];Ta(i,n,r),Pl(i,r,n);}o!=null&&oi$3(n,r);}function Id(){let e=H$1(),t=ne$3(),n=od(t);return e.firstCreatePass&&dd(e,n),wu(n)&&Cu(),_u(),n.classesWithoutHost!=null&&yE(n)&&xl(e,n,b(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&vE(n)&&xl(e,n,b(),n.stylesWithoutHost,false),Id}function Yg(e,t,n,r){return ma(e,t,n,r),Id(),Yg}function dn$3(e,t,n,r){let o=b(),i=o[E$1],s=e+z$2,a=i.firstCreatePass?iw(s,i,2,t,n,r):i.data[s];return rd(a,o,e,t,Kg),r!=null&&oi$3(o,a),dn$3}function fn$5(){let e=ne$3(),t=od(e);return wu(t)&&Cu(),_u(),fn$5}function pn$4(e,t,n,r){return dn$3(e,t,n,r),fn$5(),pn$4}var Kg=(e,t,n,r,o)=>(Vo(true),Om(t[$$3],r,Ou()));function wd(e,t,n){let r=b(),o=r[E$1],i=e+z$2,s=o.firstCreatePass?ld(i,r,8,"ng-container",nd,Os(),t,n):o.data[i];if(rd(s,r,e,"ng-container",sC),Or(s)){let a=r[E$1];Ta(a,r,s),Pl(a,s,r);}return n!=null&&oi$3(r,s),wd}function Cd(){let e=H$1(),t=ne$3(),n=od(t);return e.firstCreatePass&&dd(e,n),Cd}function Qg(e,t,n){return wd(e,t,n),Cd(),Qg}var sC=(e,t,n,r,o)=>(Vo(true),u_(t[$$3],""));function aC(){return b()}function Xg(e,t,n){let r=b(),o=on$4();if(Me$5(r,o,t)){H$1();let s=jr();eg(s,r,e,t,r[$$3],n);}return Xg}var $o=void 0;function cC(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var uC=["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"]],$o,[["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"]],$o,[["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}",$o,$o,$o],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",cC],qo=Object.create(null);function Td(e,t,n){typeof t!="string"&&(n=t,t=e[X$1.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),qo[t]=e,n&&(qo[t][X$1.ExtraData]=n);}function Ae$4(e){let t=lC(e),n=Zh(t);if(n)return n;let r=t.split("-")[0];if(n=Zh(r),n)return n;if(r==="en")return uC;throw new g(701,false)}function Zh(e){if(!(e in qo)){let t=Fe$6.ng&&Fe$6.ng.common&&Fe$6.ng.common.locales&&Fe$6.ng.common.locales[e];return t!==void 0&&(qo[e]=t),t}return qo[e]}var X$1={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,ExtraData:21};function lC(e){return e.toLowerCase().replace(/_/g,"-")}var li$3="en-US";function Jg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function ey(e,t,n){let r=b(),o=H$1(),i=ne$3();return fC(o,r,r[$$3],i,e,t,n),ey}function ty(e,t,n){let r=b(),o=H$1(),i=ne$3();return (i.type&3||n)&&ud(i,o,r,n,r[$$3],e,t,Yn$2(i,r,t)),ty}function fC(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Yn$2(r,t,i),ud(r,e,t,s,n,o,i,c)&&(a=false)),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??=Yn$2(r,t,i),sa(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Yn$2(r,t,i),sa(r,t,d,o,o,c);}}function pC(e=1){return nh(e)}function hC(e,t){let n=null,r=__(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Hm(e,i,true):C_(r,i))return o}return n}function sr$1(e){let t=b()[be$3][pe$2];if(!t.projection){let n=e?e.length:1,r=t.projection=xp(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?hC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function ot$3(e,t=0,n,r,o,i){let s=b(),a=H$1(),c=r?e+1:null;c!==null&&Gr(s,a,c,r,o,i,null,n);let u=nr$1(a,z$2+e,16,null,n||null);u.projection===null&&(u.projection=t),Mu();let d=!s[jn$2]||Iu();s[be$3][pe$2].projection[u.projection]===null&&c!==null?mC(s,a,c):d&&!va(u)&&Y_(a,s,u);}function mC(e,t,n){let r=z$2+n,o=t.data[r],i=e[r],s=oa(i,o.tView.ssrId),a=ii$3(e,o,void 0,{dehydratedView:s});si$3(i,a,0,zr(o,s));}function ny(e,t,n,r){return Rg(e,t,n,r),ny}function ry(e,t,n){return Ng(e,t,n),ry}function gC(e){let t=b(),n=H$1(),r=Ls();Bo(r+1);let o=pd(n,r);if(e.dirty&&jp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Og(t,r);e.reset(i,mm),e.notifyOnChanges();}return true}return false}function yC(){return fd(b(),Ls())}function oy(e,t,n,r,o){return Lg(t,Rg(e,n,r,o)),oy}function iy(e,t,n,r){return Lg(e,Ng(t,n,r)),iy}function vC(e=1){Bo(Ls()+e);}function bC(e){let t=xu();return Lr(t,z$2+e)}function qs(e,t){return e<<17|t<<2}function tr$1(e){return e>>17&32767}function DC(e){return (e&2)==2}function EC(e,t){return e&131071|t<<17}function Al(e){return e|2}function qr(e){return (e&131068)>>2}function qu(e,t){return e&-131069|t<<2}function _C(e){return (e&1)===1}function Nl(e){return e|1}function IC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=tr$1(s),c=qr(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Mr(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=tr$1(e[a+1]);e[r+1]=qs(p,a),p!==0&&(e[p+1]=qu(e[p+1],r)),e[a+1]=EC(e[a+1],r);}else e[r+1]=qs(a,0),a!==0&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=qs(c,0),a===0?a=r:e[c+1]=qu(e[c+1],r),c=r;u&&(e[r+1]=Al(e[r+1])),Yh(e,l,r,true),Yh(e,l,r,false),wC(t,l,e,r,i),s=qs(a,c),i?t.classBindings=s:t.styleBindings=s;}function wC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Mr(i,t)>=0&&(n[r+1]=Nl(n[r+1]));}function Yh(e,t,n,r){let o=e[n+1],i=t===null,s=r?tr$1(o):qr(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];CC(c,t)&&(a=true,e[s+1]=r?Nl(u):Al(u)),s=r?tr$1(u):qr(u);}a&&(e[n+1]=r?Al(o):Nl(o));}function CC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Mr(e,t)>=0:false}var Je$3={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TC(e){return e.substring(Je$3.key,Je$3.keyEnd)}function SC(e){return MC(e),sy(e,ay(e,0,Je$3.textEnd))}function sy(e,t){let n=Je$3.textEnd;return n===t?-1:(t=Je$3.keyEnd=xC(e,Je$3.key=t,n),ay(e,t,n))}function MC(e){Je$3.key=0,Je$3.keyEnd=0,Je$3.value=0,Je$3.valueEnd=0,Je$3.textEnd=e.length;}function ay(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function xC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function cy(e,t,n){return uy(e,t,n,false),cy}function It$7(e,t){return uy(e,t,null,true),It$7}function di$3(e){NC(PC,AC,e,true);}function AC(e,t){for(let n=SC(t);n>=0;n=sy(t,n))Ss(e,TC(t),true);}function uy(e,t,n,r){let o=b(),i=H$1(),s=jo(2);if(i.firstUpdatePass&&dy(i,e,s,r),t!==le$5&&Me$5(o,s,t)){let a=i.data[Ve$3()];fy(i,a,o,o[$$3],e,o[s+1]=BC(t,n),r,s);}}function NC(e,t,n,r){let o=H$1(),i=jo(2);o.firstUpdatePass&&dy(o,null,i,r);let s=b();if(n!==le$5&&Me$5(s,i,n)){let a=o.data[Ve$3()];if(py(a,r)&&!ly(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Ds(c,n||"")),xl(o,a,s,n,r);}else jC(o,a,s,s[$$3],s[i+1],s[i+1]=LC(e,t,n),r,i);}}function ly(e,t){return t>=e.expandoStartIndex}function dy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ve$3()],s=ly(e,n);py(i,r)&&t===null&&!s&&(t=false),t=RC(o,i,t,r),IC(o,i,t,n,s,r);}}function RC(e,t,n,r){let o=Xp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Zu(null,e,t,n,r),n=Jo(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Zu(o,e,t,n,r),i===null){let c=kC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Zu(null,e,t,c[1],r),c=Jo(c,t.attrs,r),OC(e,t,r,c));}else i=FC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function kC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(qr(r)!==0)return e[tr$1(r)]}function OC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[tr$1(o)]=r;}function FC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Jo(r,s,n);}return Jo(r,t.attrs,n)}function Zu(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=Jo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Jo(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]),Ss(e,s,n?true:t[++i]));}return e===void 0?null:e}function LC(e,t,n){if(n==null||n==="")return de$2;let r=[],o=He$5(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function PC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ss(e,r,n);}function jC(e,t,n,r,o,i,s,a){o===le$5&&(o=de$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,m=null,v;l===d?(c+=2,u+=2,p!==f&&(m=d,v=f)):d===null||l!==null&&l<d?(c+=2,m=l):(u+=2,m=d,v=f),m!==null&&fy(e,t,n,r,m,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function fy(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=_C(u)?Kh(c,t,n,o,qr(u),s):void 0;if(!ga(l)){ga(i)||DC(u)&&(i=Kh(c,null,n,o,a,s));let d=yu(Ve$3(),n);Q_(r,s,d,o,i);}}function Kh(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===le$5&&(p=d?de$2:void 0);let f=d?Ms(p,r):l===r?p:void 0;if(u&&!ga(f)&&(f=Ms(c,r)),ga(f)&&(a=f,s))return a;let m=e[o+1];o=s?tr$1(m):qr(m);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ms(c,r));}return a}function ga(e){return e!==void 0}function BC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ao$1(He$5(e)))),e}function py(e,t){return (e.flags&(t?8:16))!==0}function VC(e,t=""){let n=b(),r=H$1(),o=e+z$2,i=r.firstCreatePass?nr$1(r,o,1,t,null):r.data[o],s=UC(r,n,i,t);n[o]=s,Bs()&&Ql(r,n,s,i),zn$2(i,false);}var UC=(e,t,n,r)=>(Vo(true),a_(t[$$3],r));function HC(e,t,n,r=""){return Me$5(e,on$4(),n)?t+Rt$5(n)+r:le$5}function $C(e,t,n,r,o,i=""){let s=Nu(),a=cd(e,s,n,o);return jo(2),a?t+Rt$5(n)+r+Rt$5(o)+i:le$5}function zC(e,t,n,r,o,i,s,a=""){let c=Nu(),u=_g(e,c,n,o,s);return jo(3),u?t+Rt$5(n)+r+Rt$5(o)+i+Rt$5(s)+a:le$5}function hy(e){return Sd("",e),hy}function Sd(e,t,n){let r=b(),o=HC(r,e,t,n);return o!==le$5&&Md(r,Ve$3(),o),Sd}function my(e,t,n,r,o){let i=b(),s=$C(i,e,t,n,r,o);return s!==le$5&&Md(i,Ve$3(),s),my}function gy(e,t,n,r,o,i,s){let a=b(),c=zC(a,e,t,n,r,o,i,s);return c!==le$5&&Md(a,Ve$3(),c),gy}function Md(e,t,n){let r=yu(t,e);c_(e[$$3],r,n);}var yy={};function vy(e){nt$3("NgLet");let t=H$1(),n=b(),r=e+z$2,o=nr$1(t,r,128,null,null);return zn$2(o,false),Lo(t,n,r,yy),vy}function WC(e){let t=H$1(),n=b(),r=Ve$3();return Lo(t,n,r,e),e}function GC(e){let t=xu(),n=Lr(t,z$2+e);if(n===yy)throw new g(314,false);return n}function Qh(e,t,n){let r=H$1();r.firstCreatePass&&by(t,r.data,r.blueprint,Ke$3(e),n);}function by(e,t,n,r,o){if(e=oe$2(e),Array.isArray(e))for(let i=0;i<e.length;i++)by(e[i],t,n,r,o);else {let i=H$1(),s=b(),a=ne$3(),c=On$2(e)?e:oe$2(e.provide),u=du(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(On$2(e)||!e.multi){let f=new Kn$2(u,o,_t$5,null),m=Ku(c,t,l+p,d);m===-1?(Ju(na(a,s),i,c),Yu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[m]=f,s[m]=f);}else {let f=Ku(c,t,l+p,d),m=Ku(c,t,l,l+p),v=f>=0&&n[f],D=m>=0&&n[m];if(!v){Ju(na(a,s),i,c);let R=YC(qC,n.length,o,r,u);D&&(n[m].providerFactory=R),Yu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(R),s.push(R);}else {let R=Dy(n[f],u,r);Yu(i,e,f>-1?f:m,R);}r&&D&&n[m].componentProviders++;}}}function Yu(e,t,n,r){let o=On$2(t),i=Op(t);if(o||i){let c=(i?oe$2(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 Dy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ku(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function qC(e,t,n,r,o){return Rl(this.multi,[])}function Rl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function YC(e,t,n,r,o,i){let s=new Kn$2(e,n,_t$5,null);return s.multi=[],s.index=t,s.componentProviders=0,Dy(s,o,r&&!n),s}function Ey(e,t){return n=>{n.providersResolver=(r,o)=>Qh(r,o?o(e):e,false);}}function KC(e,t){let n=Pr()+e,r=b();return r[n]===le$5?xa(r,n,t()):jI(r,n)}function QC(e,t,n){return _y(b(),Pr(),e,t,n)}function xd(e,t){let n=e[t];return n===le$5?void 0:n}function _y(e,t,n,r,o,i){let s=t+n;return Me$5(e,s,o)?xa(e,s+1,i?r.call(i,o):r(o)):xd(e,s+1)}function XC(e,t,n,r,o,i,s){let a=t+n;return cd(e,a,o,i)?xa(e,a+2,s?r.call(s,o,i):r(o,i)):xd(e,a+2)}function JC(e,t,n,r,o,i,s,a){let c=t+n;return _g(e,c,o,i,s)?xa(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):xd(e,c+3)}function eT(e,t){let n=H$1(),r,o=e+z$2;n.firstCreatePass?(r=tT(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=Xt$6(r.type)),a=ve$4(_t$5);try{let c=ta(!1),u=i();return ta(c),Lo(n,b(),o,u),u}finally{ve$4(a);}}function tT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function nT(e,t,n){let r=e+z$2,o=b(),i=Lr(o,r);return Ad(o,r)?_y(o,Pr(),t,i.transform,n,i):i.transform(n)}function rT(e,t,n,r){let o=e+z$2,i=b(),s=Lr(i,o);return Ad(i,o)?XC(i,Pr(),t,s.transform,n,r,s):s.transform(n,r)}function oT(e,t,n,r,o){let i=e+z$2,s=b(),a=Lr(s,i);return Ad(s,i)?JC(s,Pr(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Ad(e,t){return e[E$1].data[t].pure}function iT(e,t){return Ma(e,t)}var Iy=(()=>{class e{applicationErrorHandler=h(an$3);appRef=h(or$1);taskService=h(Wn$3);ngZone=h(j$1);zonelessEnabled=h(Uo$1);tracing=h(Et$6,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new q$3;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Mo$1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(Vu,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;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=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3: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?ch:Lu;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(Mo$1+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=false,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=F$2({token:e,factory:e.\u0275fac})}return e})();function sT(){return nt$3("NgZoneless"),Pn$2([...Nd(),[]])}function Nd(){return [{provide:pt$4,useExisting:Iy},{provide:j$1,useClass:xo},{provide:Uo$1,useValue:true}]}var aT=(()=>{class e{compileModuleSync(n){return new fa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function cT(){return typeof $localize<"u"&&$localize.locale||li$3}var fi$2=new y("",{factory:()=>h(fi$2,{optional:true,skipSelf:true})||cT()});var Na=class{destroyed=false;listeners=null;errorHandler=h(fe$1,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=h(Ue$3);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new g(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(At$7(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=_$2(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&uT(this.listeners)),_$2(n),this.isEmitting=false;}}};function uT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function lT(e,t){return Io$1(e,t?.equal)}function pi$2(e){return gp(e)}var dT=e=>e;function fT(e,t){if(typeof e=="function"){let n=Vc(e,dT,t?.equal);return wy(n)}else {let n=Vc(e.source,e.computation,e.equal);return wy(n,e.debugName)}}function wy(e,t){let n=e[J$1],r=e;return r.set=o=>hp(n,o),r.update=o=>mp(n,o),r.asReadonly=Vs.bind(e),r}var Ry=Symbol("InputSignalNode#UNSET"),CT=P(I$2({},wo$1),{transformFn:void 0,applyValueToInputSignal(e,t){Nn$2(e,t);}});function ky(e,t){let n=Object.create(CT);n.value=e,n.transformFn=t?.transform;function r(){if(Yt$6(n),n.value===Ry){let o=null;throw new g(-950,o)}return n.value}return r[J$1]=n,r}var ka=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Ol(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}},fU=(()=>{let e=new y("");return e.__NG_ELEMENT_ID__=t=>{let n=ne$3();if(n===null)throw new g(-204,false);if(n.type&2)return n.value;if(t&8)return null;throw new g(-204,false)},e})();function pU(e){return TT(e)?e.default:e}function TT(e){return e&&typeof e=="object"&&"default"in e}function hU(e){return new Na}function Cy(e,t){return ky(e,t)}function ST(e){return ky(Ry,e)}var Oy=(Cy.required=ST,Cy);function Ty(e,t){return hd()}function MT(e,t){return md()}var mU=(Ty.required=MT,Ty);function Sy(e,t){return hd()}function xT(e,t){return md()}var gU=(Sy.required=xT,Sy);var kd=class{supports(t){return ad(t)}create(t){return new Od(t)}},NT=(e,t)=>t,Od=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||NT;}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n);}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<My(r,o,i)?n:r,a=My(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else {i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let f=p<i.length?i[p]:i[p]=0,m=f+p;l<=m&&m<u&&(i[p]=f+1);}let d=s.previousIndex;i[d]=l-u;}}a!==c&&t(s,a,c);}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n);}diff(t){if(t==null&&(t=[]),!ad(t))throw new g(900,false);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=false,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=true):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,Dg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=true):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++;}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Fd(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n;}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null);}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Oa),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Oa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Fd=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n;}},Ld=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t);}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Oa=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ld,this.map.set(n,r)),r.add(t);}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear();}};function My(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function xy(){return new Fy([new kd])}var Fy=(()=>{class e{factories;static \u0275prov=M({token:e,providedIn:"root",factory:xy});constructor(n){this.factories=n;}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=h(e,{optional:true,skipSelf:true});return e.create(n,r||xy())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,false)}}return e})();var Ly=(()=>{class e{static __NG_ELEMENT_ID__=RT}return e})();function RT(e){return kT(ne$3(),b(),(e&16)===16)}function kT(e,t,n){if(vt$6(e)&&!n){let r=Be$2(e.index,t);return new ln$4(r,r)}else if(e.type&175){let r=t[be$3];return new ln$4(r,t)}return null}var Pd=new y(""),OT=new y("");function hi$3(e){return !e.moduleRef}function FT(e){let t=hi$3(e)?e.r3Injector:e.moduleRef.injector,n=t.get(j$1);return n.run(()=>{hi$3(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(an$3),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),hi$3(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Pd);s.add(i),e.moduleRef.onDestroy(()=>{Go(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return PT(r,n,()=>{let i=t.get(Wn$3),s=i.add(),a=t.get(bd);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(fi$2,li$3);if(Jg(c||li$3),!t.get(OT,!0))return hi$3(e)?t.get(or$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(hi$3(e)){let l=t.get(or$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return LT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var LT;function PT(e,t,n){try{let r=n();return Aa(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Ra=null;function jT(e=[],t){return K$4.create({name:t,providers:[{provide:Oo$1,useValue:"platform"},{provide:Pd,useValue:new Set([()=>Ra=null])},...e]})}function BT(e=[]){if(Ra)return Ra;let t=jT(e);return Ra=t,Gg(),VT(t),t}function VT(e){let t=e.get(Us,null);Nr(e,()=>{t?.forEach(n=>n());});}function Py(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V$2(L$1.BootstrapApplicationStart);try{let i=o?.injector??BT(r),s=[Nd(),lh,...n||[]],a=new Xo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return FT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V$2(L$1.BootstrapApplicationEnd);}}function wt$6(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Bd(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Rd=Symbol("NOT_SET"),jy=new Set,UT=P(I$2({},wo$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Rd,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==Rd&&!Ir(this))return this.signal;try{for(let o of this.cleanup??jy)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=St$5(this),r;try{r=this.userFn.apply(null,t);}finally{Kt$3(this,n);}return (this.value===Rd||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),jd=class extends Yo{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(Ue$3),s),this.scheduler=o;for(let a of Gl){let c=n[a];if(c===void 0)continue;let u=Object.create(UT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Yt$6(u),u.value),u.signal[J$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??jy)n();}finally{Qt$3(t);}}};function vU(e,t){let n=h(K$4),r=n.get(pt$4),o=n.get(Ea),i=n.get(Et$6,null,{optional:true});o.impl??=n.get(ql);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Br,null,{optional:true}),c=new jd(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function By(e,t){let n=Nt$7(e),r=t.elementInjector||Ar();return new Jn$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function bU(e){let t=Nt$7(e);if(!t)return null;let n=new Jn$2(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Vy=null;function jt$3(){return Vy}function Vd(e){Vy??=e;}var mi$2=class mi{},Qr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(Uy),providedIn:"platform"})}return e})();var Uy=(()=>{class e extends Qr$1{_location;_history;_doc=h(O$1);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return jt$3().getBaseHref(this._doc)}onPopState(n){let r=jt$3().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=jt$3().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>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=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function zy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Hy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function hn$4(e){return e&&e[0]!=="?"?`?${e}`:e}var Fa=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h($T),providedIn:"root"})}return e})(),HT=new y(""),$T=(()=>{class e extends Fa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(O$1).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 zy(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+hn$4(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+hn$4(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+hn$4(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)(C$1(Qr$1),C$1(HT,8))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Wy=(()=>{class e{_subject=new Z$2;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=GT(Hy($y(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+hn$4(r))}normalize(n){return e.stripTrailingSlash(WT(this._basePath,$y(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+hn$4(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn$4(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=hn$4;static joinWithSlash=zy;static stripTrailingSlash=Hy;static \u0275fac=function(r){return new(r||e)(C$1(Fa))};static \u0275prov=M({token:e,factory:()=>zT(),providedIn:"root"})}return e})();function zT(){return new Wy(C$1(Fa))}function WT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function $y(e){return e.replace(/\/index\.html$/,"")}function GT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var me$4=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(me$4||{}),G$4=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(G$4||{}),_e$3=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(_e$3||{}),Vt$6={MinusSign:5};function qy(e){return Ae$4(e)[X$1.LocaleId]}function Zy(e,t,n){let r=Ae$4(e),o=[r[X$1.DayPeriodsFormat],r[X$1.DayPeriodsStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Yy(e,t,n){let r=Ae$4(e),o=[r[X$1.DaysFormat],r[X$1.DaysStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Ky(e,t,n){let r=Ae$4(e),o=[r[X$1.MonthsFormat],r[X$1.MonthsStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Qy(e,t){let r=Ae$4(e)[X$1.Eras];return $e$4(r,t)}function gi$2(e,t){let n=Ae$4(e);return $e$4(n[X$1.DateFormat],t)}function yi$2(e,t){let n=Ae$4(e);return $e$4(n[X$1.TimeFormat],t)}function vi$2(e,t){let r=Ae$4(e)[X$1.DateTimeFormat];return $e$4(r,t)}function bi$2(e,t){let n=Ae$4(e),r=n[X$1.NumberSymbols][t];return r}function Xy(e){if(!e[X$1.ExtraData])throw new g(2303,false)}function Jy(e){let t=Ae$4(e);return Xy(t),(t[X$1.ExtraData][2]||[]).map(r=>typeof r=="string"?Ud(r):[Ud(r[0]),Ud(r[1])])}function ev(e,t,n){let r=Ae$4(e);Xy(r);let o=[r[X$1.ExtraData][0],r[X$1.ExtraData][1]],i=$e$4(o,t)||[];return $e$4(i,n)||[]}function $e$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new g(2304,false)}function Ud(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var qT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,La=Object.create(null),ZT=/((?:[^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]*)/,YT=256;function tv(e,t,n,r){let o=iS(e);KT(t),t=Bt$6(n,t)||t;let s=[],a;for(;t;)if(a=ZT.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=rv(r,c),o=oS(o,r));let u="";return s.forEach(l=>{let d=nS(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function KT(e){if(e.length>YT)throw new g(2300,false)}function Ua(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Bt$6(e,t){let n=qy(e);if(La[n]??=Object.create(null),La[n][t])return La[n][t];let r="";switch(t){case "shortDate":r=gi$2(e,_e$3.Short);break;case "mediumDate":r=gi$2(e,_e$3.Medium);break;case "longDate":r=gi$2(e,_e$3.Long);break;case "fullDate":r=gi$2(e,_e$3.Full);break;case "shortTime":r=yi$2(e,_e$3.Short);break;case "mediumTime":r=yi$2(e,_e$3.Medium);break;case "longTime":r=yi$2(e,_e$3.Long);break;case "fullTime":r=yi$2(e,_e$3.Full);break;case "short":let o=Bt$6(e,"shortTime"),i=Bt$6(e,"shortDate");r=Pa(vi$2(e,_e$3.Short),[o,i]);break;case "medium":let s=Bt$6(e,"mediumTime"),a=Bt$6(e,"mediumDate");r=Pa(vi$2(e,_e$3.Medium),[s,a]);break;case "long":let c=Bt$6(e,"longTime"),u=Bt$6(e,"longDate");r=Pa(vi$2(e,_e$3.Long),[c,u]);break;case "full":let l=Bt$6(e,"fullTime"),d=Bt$6(e,"fullDate");r=Pa(vi$2(e,_e$3.Full),[l,d]);break}return r&&(La[n][t]=r),r}function Pa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function it$2(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 QT(e,t){return it$2(e,3).substring(0,t)}function re$2(e,t,n=0,r=false,o=false){return function(i,s){let a=XT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return QT(a,t);let c=bi$2(s,Vt$6.MinusSign);return it$2(a,t,c,r,o)}}function XT(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 g(2301,false)}}function Y$2(e,t,n=me$4.Format,r=false){return function(o,i){return JT(o,i,e,t,n,r)}}function JT(e,t,n,r,o,i){switch(n){case 2:return Ky(t,o,r)[e.getMonth()];case 1:return Yy(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Jy(t),l=ev(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,m]=p,v=s>=f.hours&&a>=f.minutes,D=s<m.hours||s===m.hours&&a<m.minutes;if(f.hours<m.hours){if(v&&D)return true}else if(v||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Zy(t,o,r)[s<12?0:1];case 3:return Qy(t,r)[e.getFullYear()<=0?0:1];default:throw new g(2302,false)}}function ja(e){return function(t,n,r){let o=-1*r,i=bi$2(n,Vt$6.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+it$2(s,2,i)+it$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+it$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+it$2(s,2,i)+":"+it$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+it$2(s,2,i)+":"+it$2(Math.abs(o%60),2,i);default:throw new g(2310,false)}}}var eS=0,Va=4;function tS(e){let t=Ua(e,eS,1).getDay();return Ua(e,0,1+(t<=Va?Va:Va+7)-t)}function nv(e){let t=e.getDay(),n=t===0?-3:Va-t;return Ua(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Hd(e,t=false){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=nv(n),s=tS(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return it$2(o,e,bi$2(r,Vt$6.MinusSign))}}function Ba(e,t=false){return function(n,r){let i=nv(n).getFullYear();return it$2(i,e,bi$2(r,Vt$6.MinusSign),t)}}var $d=Object.create(null);function nS(e){if($d[e])return $d[e];let t;switch(e){case "G":case "GG":case "GGG":t=Y$2(3,G$4.Abbreviated);break;case "GGGG":t=Y$2(3,G$4.Wide);break;case "GGGGG":t=Y$2(3,G$4.Narrow);break;case "y":t=re$2(0,1,0,false,true);break;case "yy":t=re$2(0,2,0,true,true);break;case "yyy":t=re$2(0,3,0,false,true);break;case "yyyy":t=re$2(0,4,0,false,true);break;case "Y":t=Ba(1);break;case "YY":t=Ba(2,true);break;case "YYY":t=Ba(3);break;case "YYYY":t=Ba(4);break;case "M":case "L":t=re$2(1,1,1);break;case "MM":case "LL":t=re$2(1,2,1);break;case "MMM":t=Y$2(2,G$4.Abbreviated);break;case "MMMM":t=Y$2(2,G$4.Wide);break;case "MMMMM":t=Y$2(2,G$4.Narrow);break;case "LLL":t=Y$2(2,G$4.Abbreviated,me$4.Standalone);break;case "LLLL":t=Y$2(2,G$4.Wide,me$4.Standalone);break;case "LLLLL":t=Y$2(2,G$4.Narrow,me$4.Standalone);break;case "w":t=Hd(1);break;case "ww":t=Hd(2);break;case "W":t=Hd(1,true);break;case "d":t=re$2(2,1);break;case "dd":t=re$2(2,2);break;case "c":case "cc":t=re$2(7,1);break;case "ccc":t=Y$2(1,G$4.Abbreviated,me$4.Standalone);break;case "cccc":t=Y$2(1,G$4.Wide,me$4.Standalone);break;case "ccccc":t=Y$2(1,G$4.Narrow,me$4.Standalone);break;case "cccccc":t=Y$2(1,G$4.Short,me$4.Standalone);break;case "E":case "EE":case "EEE":t=Y$2(1,G$4.Abbreviated);break;case "EEEE":t=Y$2(1,G$4.Wide);break;case "EEEEE":t=Y$2(1,G$4.Narrow);break;case "EEEEEE":t=Y$2(1,G$4.Short);break;case "a":case "aa":case "aaa":t=Y$2(0,G$4.Abbreviated);break;case "aaaa":t=Y$2(0,G$4.Wide);break;case "aaaaa":t=Y$2(0,G$4.Narrow);break;case "b":case "bb":case "bbb":t=Y$2(0,G$4.Abbreviated,me$4.Standalone,true);break;case "bbbb":t=Y$2(0,G$4.Wide,me$4.Standalone,true);break;case "bbbbb":t=Y$2(0,G$4.Narrow,me$4.Standalone,true);break;case "B":case "BB":case "BBB":t=Y$2(0,G$4.Abbreviated,me$4.Format,true);break;case "BBBB":t=Y$2(0,G$4.Wide,me$4.Format,true);break;case "BBBBB":t=Y$2(0,G$4.Narrow,me$4.Format,true);break;case "h":t=re$2(3,1,-12);break;case "hh":t=re$2(3,2,-12);break;case "H":t=re$2(3,1);break;case "HH":t=re$2(3,2);break;case "m":t=re$2(4,1);break;case "mm":t=re$2(4,2);break;case "s":t=re$2(5,1);break;case "ss":t=re$2(5,2);break;case "S":t=re$2(6,1);break;case "SS":t=re$2(6,2);break;case "SSS":t=re$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=ja(0);break;case "ZZZZZ":t=ja(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=ja(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=ja(2);break;default:return null}return $d[e]=t,t}function rv(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function rS(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function oS(e,t,n){let o=e.getTimezoneOffset(),i=rv(t,o);return rS(e,-1*(i-o))}function iS(e){if(Gy(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 Ua(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(qT))return sS(r)}let t=new Date(e);if(!Gy(t))throw new g(2311,false);return t}function sS(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 Gy(e){return e instanceof Date&&!isNaN(e.valueOf())}var aS=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=h(K$4);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(_t$5(Yr$1))};static \u0275dir=rt$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ya]})}return e})();function cS(e,t){return new g(2100,false)}var uS="mediumDate",ov=new y(""),iv=new y(""),lS=(()=>{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??uS,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return tv(n,s,i||this.locale,a)}catch(s){throw cS(e,s.message)}}static \u0275fac=function(r){return new(r||e)(_t$5(fi$2,16),_t$5(ov,24),_t$5(iv,24))};static \u0275pipe=yd({name:"date",type:e,pure:true})}return e})();function Di$2(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}function WH(e,t,n){return Td(e,t,n)}var zd="browser";function sv(e){return e===zd}var Ei$2=class Ei{_doc;constructor(t){this._doc=t;}manager},Ha=(()=>{class e extends Ei$2{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Wa=new y(""),Zd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Ha));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ha);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new g(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C$1(Wa),C$1(j$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Wd="ng-app-id";function av(e){for(let t of e)t.remove();}function cv(e,t){let n=t.createElement("style");return n.textContent=e,n}function hS(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Wd}="${t}"],link[${Wd}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Wd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return true}function qd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Yd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,hS(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,cv);r?.forEach(o=>this.addUsage(o,this.external,qd));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(av(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])av(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,cv(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,qd(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C$1(O$1),C$1(Ot$3),C$1(qn$2,8),C$1(Gn$2))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Gd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Kd=/%COMP%/g;var lv="%COMP%",mS=`_nghost-${lv}`,gS=`_ngcontent-${lv}`,yS=true,vS=new y("",{factory:()=>yS});function bS(e){return gS.replace(Kd,e)}function DS(e){return mS.replace(Kd,e)}function dv(e,t){return t.map(n=>n.replace(Kd,e))}var Qd=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new _i$2(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof za?o.applyToHost(n):o instanceof Ii$2&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case et$2.Emulated:i=new za(c,u,r,this.appId,l,s,a,d);break;case et$2.ShadowDom:return new $a(c,n,r,s,a,this.nonce,d,u);case et$2.ExperimentalIsolatedShadowDom:return new $a(c,n,r,s,a,this.nonce,d);default:i=new Ii$2(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(C$1(Zd),C$1(rr$1),C$1(Ot$3),C$1(vS),C$1(O$1),C$1(j$1),C$1(qn$2),C$1(Et$6,8))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),_i$2=class _i{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Gd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(uv(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(uv(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,false);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Gd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Gd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`);}else t.removeAttribute(n);}addClass(t,n){t.classList.add(n);}removeClass(t,n){t.classList.remove(n);}setStyle(t,n,r,o){o&(Dt$3.DashCase|Dt$3.Important)?t.style.setProperty(n,r,o&Dt$3.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Dt$3.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=jt$3().getGlobalEventTarget(this.doc,t),!t))throw new g(-5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function uv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var $a=class extends _i$2{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=dv(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=qd(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ii$2=class Ii extends _i$2{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?dv(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&un$4.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},za=class extends Ii$2{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=bS(u),this.hostAttr=DS(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ga=class e extends mi$2{supportsDOMEvents=true;static makeCurrent(){Vd(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=ES();return n==null?null:_S(n)}resetBaseElement(){wi$2=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Di$2(document.cookie,t)}},wi$2=null;function ES(){return wi$2=wi$2||document.head.querySelector("base"),wi$2?wi$2.getAttribute("href"):null}function _S(e){return new URL(e,document.baseURI).pathname}var fv=["alt","control","meta","shift"],IS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},pv=(()=>{class e extends Ei$2{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jt$3().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),fv.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=IS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),fv.forEach(s=>{if(s!==o){let a=wS[s];a(n)&&(i+=s+".");}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i));}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();async function CS(e,t,n){let r=I$2({rootComponent:e},TS(t,n));return Py(r)}function TS(e,t){return {platformRef:t?.platformRef,appProviders:[...NS,...e?.providers??[]],platformProviders:AS}}function SS(){Ga.makeCurrent();}function MS(){return new fe$1}function xS(){return Ll(document),document}var AS=[{provide:Gn$2,useValue:zd},{provide:Us,useValue:SS,multi:true},{provide:O$1,useFactory:xS}];var NS=[{provide:Oo$1,useValue:"root"},{provide:fe$1,useFactory:MS},{provide:Wa,useClass:Ha,multi:true},{provide:Wa,useClass:pv,multi:true},Qd,{provide:rr$1,useClass:Yd},{provide:Yd,useExisting:rr$1},Zd,{provide:tt$1,useExisting:Qd},[]];var ge$3=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
-
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var Za=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ya=class{encodeKey(t){return hv(t)}encodeValue(t){return hv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function RS(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c);}),n}var kS=/%(\d[a-f0-9])/gi,OS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hv(e){return encodeURIComponent(e).replace(kS,(t,n)=>OS[n]??t)}function qa(e){return `${e}`}var Ie$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ya,t.fromString){if(t.fromObject)throw new g(2805,false);this.map=RS(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(qa):[qa(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"});}):n.push({param:r,value:o,op:"a"});}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(qa(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(qa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function FS(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function mv(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function gv(e){return typeof Blob<"u"&&e instanceof Blob}function yv(e){return typeof FormData<"u"&&e instanceof FormData}function LS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Xd="Content-Type",vv="Accept",Dv="text/plain",Ev="application/json",PS=`${Ev}, ${Dv}, */*`,Xr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(FS(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new g(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new ge$3,this.context??=new Za,!this.params)this.params=new Ie$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||mv(this.body)||gv(this.body)||yv(this.body)||LS(this.body)?this.body:this.body instanceof Ie$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||yv(this.body)?null:gv(this.body)?this.body.type||null:mv(this.body)?null:typeof this.body=="string"?Dv:this.body instanceof Ie$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ev:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,m=t.transferCache??this.transferCache,v=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,R=t.withCredentials??this.withCredentials,te=t.reportProgress??this.reportProgress,Re=t.reportUploadProgress??this.reportUploadProgress,dr=t.reportDownloadProgress??this.reportDownloadProgress,uo=t.headers||this.headers,yn=t.params||this.params,Oi=t.context??this.context;return t.setHeaders!==void 0&&(uo=Object.keys(t.setHeaders).reduce((fr,vn)=>fr.set(vn,t.setHeaders[vn]),uo)),t.setParams&&(yn=Object.keys(t.setParams).reduce((fr,vn)=>fr.set(vn,t.setParams[vn]),yn)),new e(n,r,D,{params:yn,headers:uo,context:Oi,reportProgress:te,reportUploadProgress:Re,reportDownloadProgress:dr,responseType:o,withCredentials:R,transferCache:m,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Jr$1=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Jr$1||{}),eo$1=class eo{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new ge$3,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},Ka=class e extends eo$1{constructor(t={}){super(t);}type=Jr$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ci$2=class e extends eo$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Jr$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Ut$2=class Ut extends eo$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},jS=200;var BS=/^\)\]\}',?\n/,_v=new y("",{factory:()=>null}),Qa=(()=>{class e{fetchImpl=h(ef,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=h(j$1);destroyRef=h(Ue$3);maxResponseSize=h(_v);handle(n){return new k$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(tf,s=>r.error(new Ut$2({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,I$2({signal:r},i)));VS(D),o.next({type:Jr$1.Sent}),s=await D;}catch(D){o.error(new Ut$2({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new ge$3(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new Ka({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),R=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(R)&&R>this.maxResponseSize&&bv(this.maxResponseSize);let te=[],Re=s.body.getReader(),dr=0,uo,yn,Oi=typeof Zone<"u"&&Zone.current,fr=false;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await Re.cancel(),fr=true;break}let{done:lo,value:dc}=await Re.read();if(lo)break;if(te.push(dc),dr+=dc.length,this.maxResponseSize!==null&&dr>this.maxResponseSize&&(await Re.cancel(),bv(this.maxResponseSize)),p){yn=n.responseType==="text"?(yn??"")+(uo??=new TextDecoder).decode(dc,{stream:true}):void 0;let wf=()=>o.next({type:Jr$1.DownloadProgress,total:Number.isFinite(R)?R:void 0,loaded:dr,partialText:yn});Oi?Oi.run(wf):wf();}}}),fr){o.complete();return}let vn=this.concatChunks(te,dr);try{let lo=s.headers.get(Xd)??"";d=this.parseBody(n,vn,lo,l);}catch(lo){o.error(new Ut$2({error:lo,headers:new ge$3(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?jS:0);let f=l>=200&&l<300,m=s.redirected,v=s.type;f?(o.next(new Ci$2({body:d,headers:a,status:l,statusText:c,url:u,redirected:m,responseType:v})),o.complete()):o.error(new Ut$2({error:d,headers:a,status:l,statusText:c,url:u,redirected:m,responseType:v}));}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(BS,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new g(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(vv)||(r[vv]=PS),!n.headers.has(Xd)){let i=n.detectContentTypeHeader();i!==null&&(r[Xd]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),ef=class{};function tf(){}function VS(e){e.then(tf,tf);}function bv(e){throw new g(-2825,false)}function US(e,t){return t(e)}function HS(e,t,n){return (r,o)=>Nr(n,()=>t(r,i=>e(i,o)))}var Iv=new y("",{factory:()=>[]}),wv=new y(""),Cv=new y("",{factory:()=>true});var nf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(Qa),o},providedIn:"root"})}return e})();var Xa=(()=>{class e{backend;injector;chain=null;pendingTasks=h(Ho);contributeToStability=h(Cv);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Iv),...this.injector.get(wv,[])]));this.chain=o.reduceRight((i,s)=>HS(i,s,this.injector),US);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return pi$2(()=>r(n,i=>this.backend.handle(i))).pipe(yr(o))}else return pi$2(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(C$1(nf),C$1(ae$3))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(Xa),o},providedIn:"root"})}return e})();function Jd(e,t){return I$2({body:t},e)}var to$1=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Xr$1)i=n;else {let c;o.headers instanceof ge$3?c=o.headers:c=new ge$3(o.headers);let u;o.params&&(o.params instanceof Ie$3?u=o.params:u=new Ie$3({fromObject:o.params})),i=new Xr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=qe$3(i).pipe(Tc(c=>this.handler.handle(c)));if(n instanceof Xr$1||o.observe==="events")return s;let a=s.pipe(Tt$6(c=>c instanceof Ci$2));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(A$1(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new g(2806,false);return c.body}));case "blob":return a.pipe(A$1(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new g(2807,false);return c.body}));case "text":return a.pipe(A$1(c=>{if(c.body!==null&&typeof c.body!="string")throw new g(2808,false);return c.body}));default:return a.pipe(A$1(c=>c.body))}case "response":return a;default:throw new g(2809,false)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ie$3().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Jd(o,r))}post(n,r,o={}){return this.request("POST",n,Jd(o,r))}put(n,r,o={}){return this.request("PUT",n,Jd(o,r))}static \u0275fac=function(r){return new(r||e)(C$1(rf))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $S=new y("",{factory:()=>true}),zS="XSRF-TOKEN",WS=new y("",{factory:()=>zS}),GS="X-XSRF-TOKEN",qS=new y("",{factory:()=>GS}),ZS=(()=>{class e{cookieName=h(WS);doc=h(O$1);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Di$2(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),Tv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(ZS),o},providedIn:"root"})}return e})();function YS(e,t){if(!h($S)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=h(Qr$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=h(Tv).getToken(),r=h(qS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function KS(...e){let t=[to$1,Qa,Xa,{provide:rf,useExisting:Xa},{provide:nf,useFactory:()=>h(Qa)},{provide:Iv,useValue:YS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return Pn$2(t)}var g8=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ti$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(XS),o},providedIn:"root"})}return e})(),XS=(()=>{class e extends Ti$1{_doc=h(O$1);sanitize(n,r){if(r==null)return null;switch(n){case se$3.NONE:return r;case se$3.HTML:return Lt$5(r,"HTML")?He$5(r):$l(this._doc,String(r)).toString();case se$3.STYLE:return Lt$5(r,"Style")?He$5(r):r;case se$3.SCRIPT:if(Lt$5(r,"Script"))return He$5(r);throw new g(5200,false);case se$3.URL:return Lt$5(r,"URL")?He$5(r):ti$3(String(r));case se$3.RESOURCE_URL:if(Lt$5(r,"ResourceURL"))return He$5(r);throw new g(-5201,false);default:throw new g(5202,false)}}bypassSecurityTrustHtml(n){return jl(n)}bypassSecurityTrustStyle(n){return Bl(n)}bypassSecurityTrustScript(n){return Vl(n)}bypassSecurityTrustUrl(n){return Ul(n)}bypassSecurityTrustResourceUrl(n){return Hl(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Ja=new WeakMap,Ht$4=(()=>{class e{_appRef;_injector=h(K$4);_environmentInjector=h(ae$3);load(n){let r=this._appRef=this._appRef||this._injector.get(or$1),o=Ja.get(r);o||(o={loaders:new Set,refs:[]},Ja.set(r,o),r.onDestroy(()=>{Ja.get(r)?.refs.forEach(i=>i.destroy()),Ja.delete(r);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(By(n,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var tc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe$1({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-visually-hidden {
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function bn$4(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var q$3=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;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(x$2(r))try{r();}catch(i){t=i instanceof Fi$2?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sf(i);}catch(s){t=t??[],s instanceof Fi$2?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Fi$2(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sf(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)&&bn$4(n,t);}remove(t){let{_finalizers:n}=this;n&&bn$4(n,t),t instanceof e&&t._removeParent(this);}};q$3.EMPTY=(()=>{let e=new q$3;return e.closed=true,e})();var pc=q$3.EMPTY;function Li$2(e){return e instanceof q$3||e&&"closed"in e&&x$2(e.remove)&&x$2(e.add)&&x$2(e.unsubscribe)}function Sf(e){x$2(e)?e():e.unsubscribe();}var We$2={Promise:void 0};var hr$1={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Pi$2(e){hr$1.setTimeout(()=>{throw e});}function Dn$2(){}function mr(e){e();}var _n$4=class _n extends q$3{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Li$2(t)&&t.add(this)):this.destination=Tb;}static create(t,n,r){return new Ct$6(t,n,r)}next(t){this.isStopped?gc():this._next(t);}error(t){this.isStopped?gc():(this.isStopped=true,this._error(t));}complete(){this.isStopped?gc():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var yc=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){ji$2(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){ji$2(r);}else ji$2(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){ji$2(n);}}},Ct$6=class Ct extends _n$4{constructor(t,n,r){super();let o;if(x$2(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new yc(o);}};function ji$2(e){Pi$2(e);}function Cb(e){throw e}function gc(e,t){}var Tb={closed:true,next:Dn$2,error:Cb,complete:Dn$2};function T(e,t,n,r,o){return new vc(e,t,n,r,o)}var vc=class extends _n$4{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function A$1(e,t){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>{r.next(e.call(t,i,o++));}));})}var gr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function we$3(e){return e}function Sb(...e){return bc(e)}function bc(e){return e.length===0?we$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k$1=(()=>{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=xb(n)?n:new Ct$6(n,r,o);return mr(()=>{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=Rf(r),new r((o,i)=>{let s=new Ct$6({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)}[gr](){return this}pipe(...n){return bc(n)(this)}toPromise(n){return n=Rf(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 Rf(e){var t;return (t=e??We$2.Promise)!==null&&t!==void 0?t:Promise}function Mb(e){return e&&x$2(e.next)&&x$2(e.error)&&x$2(e.complete)}function xb(e){return e&&e instanceof _n$4||Mb(e)&&Li$2(e)}var{isArray:Ab}=Array,{getPrototypeOf:Nb,prototype:Rb,keys:kb}=Object;function Bi$3(e){if(e.length===1){let t=e[0];if(Ab(t))return {args:t,keys:null};if(Ob(t)){let n=kb(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Ob(e){return e&&typeof e=="object"&&Nb(e)===Rb}function Of(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,[])).next());})}function kf(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 In$1(e){return this instanceof In$1?(this.v=e,this):new In$1(e)}function Ff(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(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(v){return new Promise(function(D,R){i.push([f,v,D,R])>1||c(f,v);})},m&&(o[f]=m(o[f])));}function c(f,m){try{u(r[f](m));}catch(v){p(i[0][3],v);}}function u(f){f.value instanceof In$1?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,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Lf(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 kf=="function"?kf(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 Vi$2=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ui$1(e){return x$2(e?.then)}function Hi$2(e){return x$2(e[gr])}function $i$1(e){return Symbol.asyncIterator&&x$2(e?.[Symbol.asyncIterator])}function zi$2(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 Fb(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wi$3=Fb();function Gi$2(e){return x$2(e?.[Wi$3])}function qi$2(e){return Ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield In$1(n.read());if(o)return yield In$1(void 0);yield yield In$1(r);}}finally{n.releaseLock();}})}function Zi$1(e){return x$2(e?.getReader)}function U$3(e){if(e instanceof k$1)return e;if(e!=null){if(Hi$2(e))return Lb(e);if(Vi$2(e))return Pb(e);if(Ui$1(e))return jb(e);if($i$1(e))return Pf(e);if(Gi$2(e))return Bb(e);if(Zi$1(e))return Vb(e)}throw zi$2(e)}function Lb(e){return new k$1(t=>{let n=e[gr]();if(x$2(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Pb(e){return new k$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function jb(e){return new k$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Pi$2);})}function Bb(e){return new k$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function Pf(e){return new k$1(t=>{Ub(e,t).catch(n=>t.error(n));})}function Vb(e){return Pf(qi$2(e))}function Ub(e,t){var n,r,o,i;return Of(this,void 0,void 0,function*(){try{for(n=Lf(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 Ee$4(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Yi$1(e,t=0){return w$2((n,r)=>{n.subscribe(T(r,o=>Ee$4(r,e,()=>r.next(o),t),()=>Ee$4(r,e,()=>r.complete(),t),o=>Ee$4(r,e,()=>r.error(o),t)));})}function Ki$1(e,t=0){return w$2((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function jf(e,t){return U$3(e).pipe(Ki$1(t),Yi$1(t))}function Bf(e,t){return U$3(e).pipe(Ki$1(t),Yi$1(t))}function Vf(e,t){return new k$1(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function Uf(e,t){return new k$1(n=>{let r;return Ee$4(n,t,()=>{r=e[Wi$3](),Ee$4(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,true);}),()=>x$2(r?.return)&&r.return()})}function Qi$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new k$1(n=>{Ee$4(n,t,()=>{let r=e[Symbol.asyncIterator]();Ee$4(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Hf(e,t){return Qi$1(qi$2(e),t)}function $f(e,t){if(e!=null){if(Hi$2(e))return jf(e,t);if(Vi$2(e))return Vf(e,t);if(Ui$1(e))return Bf(e,t);if($i$1(e))return Qi$1(e,t);if(Gi$2(e))return Uf(e,t);if(Zi$1(e))return Hf(e,t)}throw zi$2(e)}function at$3(e,t){return t?$f(e,t):U$3(e)}var{isArray:Hb}=Array;function $b(e,t){return Hb(t)?e(...t):e(t)}function Xi$1(e){return A$1(t=>$b(e,t))}function Ji$1(e){return e&&x$2(e.schedule)}function Dc(e){return e[e.length-1]}function es$1(e){return x$2(Dc(e))?e.pop():void 0}function ct$3(e){return Ji$1(Dc(e))?e.pop():void 0}function zf(e,t){return typeof Dc(e)=="number"?e.pop():t}function ts$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ec(...e){let t=ct$3(e),n=es$1(e),{args:r,keys:o}=Bi$3(e);if(r.length===0)return at$3([],t);let i=new k$1(zb(r,t,o?s=>ts$1(o,s):we$3));return n?i.pipe(Xi$1(n)):i}function zb(e,t,n=we$3){return r=>{Wf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Wf(t,()=>{let u=at$3(e[c],t),l=false;u.subscribe(T(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Wf(e,t,n){e?Ee$4(n,e,t):t();}var wn$1=new k$1(e=>e.complete());function Ge$3(e){return e<=0?()=>wn$1:w$2((t,n)=>{let r=0;t.subscribe(T(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function ns$1(e,t=we$3){return e=e??Wb,w$2((n,r)=>{let o,i=!0;n.subscribe(T(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Wb(e,t){return e===t}function yr(e){return w$2((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Tt$6(e,t){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>e.call(t,i,o++)&&r.next(i)));})}function vr(e){return Tt$6((t,n)=>e<=n)}function zt$6(e,t,n){let r=x$2(e)||t||n?{next:e,error:t,complete:n}:e;return r?w$2((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T(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$3}function Gf(){return w$2((e,t)=>{let n=null;e._refCount++;let r=T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe();});e.subscribe(r),r.closed||(n=e.connect());})}var _c=class extends k$1{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,fc(t)&&(this.lift=t.lift);}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return (!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe();}connect(){let t=this._connection;if(!t){t=this._connection=new q$3;let n=this.getSubject();t.add(this.source.subscribe(T(n,void 0,()=>{this._teardown(),n.complete();},r=>{this._teardown(),n.error(r);},()=>this._teardown()))),t.closed&&(this._connection=null,t=q$3.EMPTY);}return t}refCount(){return Gf()(this)}};var br={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new q$3(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=br;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var qf=pr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var Z$2=(()=>{class e extends k$1{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new rs$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new qf}next(n){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,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?pc:(this.currentObservers=null,i.push(n),new q$3(()=>{this.currentObservers=null,bn$4(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new k$1;return n.source=this,n}}return e.create=(t,n)=>new rs$1(t,n),e})(),rs$1=class rs extends Z$2{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:pc}};var Cn$3=class Cn extends Z$2{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 fo$1={now(){return (fo$1.delegate||Date).now()},delegate:void 0};var po$1=class po extends Z$2{constructor(t=1/0,n=1/0,r=fo$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var os$1=class os extends q$3{constructor(t,n){super();}schedule(t,n=0){return this}};var ho$1={setInterval(e,t,...n){let{delegate:r}=ho$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Wt$4=class Wt extends os$1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return ho$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&ho$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,bn$4(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Gb=1,Ic,wc={};function Zf(e){return e in wc?(delete wc[e],true):false}var Yf={setImmediate(e){let t=Gb++;return wc[t]=true,Ic||(Ic=Promise.resolve()),Ic.then(()=>Zf(t)&&e()),t},clearImmediate(e){Zf(e);}};var{setImmediate:qb,clearImmediate:Zb}=Yf,mo$1={setImmediate(...e){let{delegate:t}=mo$1;return (t?.setImmediate||qb)(...e)},clearImmediate(e){return (Zb)(e)},delegate:void 0};var is$1=class is extends Wt$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=mo$1.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(mo$1.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0));}};var Dr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Dr.now=fo$1.now;var Gt$3=class Gt extends Dr{constructor(t,n=Dr.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ss$1=class ss extends Gt$3{flush(t){this._active=true;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Yb=new ss$1(is$1);var Tn$3=new Gt$3(Wt$4),Kf=Tn$3;var as$1=class as extends Wt$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=br.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(br.cancelAnimationFrame(n),t._scheduled=void 0);}};var cs$1=class cs extends Gt$3{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Kb=new cs$1(as$1);function qe$3(...e){let t=ct$3(e);return at$3(e,t)}function ut$4(e,t){let n=x$2(e)?e:()=>e,r=o=>o.error(n());return new k$1(r)}function Qb(e){return !!e&&(e instanceof k$1||x$2(e.lift)&&x$2(e.subscribe))}var go$1=pr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Qf(e){return e instanceof Date&&!isNaN(e)}function Xf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=v=>u<r?m(v):c.push(v),m=v=>{u++;let D=false;U$3(n(v,l++)).subscribe(T(t,R=>{t.next(R);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let R=c.shift();s?Ee$4(t,s,()=>m(R)):m(R);}p();}catch(R){t.error(R);}}));};return e.subscribe(T(t,f,()=>{d=true,p();})),()=>{}}function lt$3(e,t,n=1/0){return x$2(t)?lt$3((r,o)=>A$1((i,s)=>t(r,i,o,s))(U$3(e(r,o))),n):(typeof t=="number"&&(n=t),w$2((r,o)=>Xf(r,o,e,n)))}function yo$1(e=1/0){return lt$3(we$3,e)}function Jf(){return yo$1(1)}function qt$3(...e){return Jf()(at$3(e,ct$3(e)))}function Xb(e){return new k$1(t=>{U$3(e()).subscribe(t);})}function Cc(...e){let t=es$1(e),{args:n,keys:r}=Bi$3(e),o=new k$1(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=false;U$3(n[l]).subscribe(T(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ts$1(r,a):a),i.complete());}));}});return t?o.pipe(Xi$1(t)):o}function vo$1(e=0,t,n=Kf){let r=-1;return t!=null&&(Ji$1(t)?n=t:r=t),new k$1(o=>{let i=Qf(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Jb(...e){let t=ct$3(e),n=zf(e,1/0),r=e;return r.length?r.length===1?U$3(r[0]):yo$1(n)(at$3(r,t)):wn$1}function ep(e){return w$2((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(T(n,u=>{r=!0,o=u,i||U$3(e(u)).subscribe(i=T(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function eD(e,t=Tn$3){return ep(()=>vo$1(e,t))}function ke$4(e){return w$2((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T(n,void 0,void 0,s=>{i=U$3(e(s,ke$4(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function tp(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l);},(()=>{a&&s.next(c),s.complete();})));}}function np(e,t){return w$2(tp(e,t,arguments.length>=2,!1,!0))}var tD=(e,t)=>(e.push(t),e);function nD(){return w$2((e,t)=>{np(tD,[])(e).subscribe(t);})}function Tc(e,t){return x$2(t)?lt$3(e,t,1):lt$3(e,1)}function bo$1(e,t=Tn$3){return w$2((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(T(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function rp(e){return w$2((t,n)=>{let r=!1;t.subscribe(T(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function op(){return w$2((e,t)=>{e.subscribe(T(t,Dn$2));})}function Sc(e){return A$1(()=>e)}function Mc(e,t){return t?n=>qt$3(t.pipe(Ge$3(1),op()),n.pipe(Mc(e))):lt$3((n,r)=>U$3(e(n,r)).pipe(Ge$3(1),Sc(n)))}function rD(e,t=Tn$3){let n=vo$1(e,t);return Mc(()=>n)}function ip(e=oD){return w$2((t,n)=>{let r=!1;t.subscribe(T(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function oD(){return new go$1}function iD(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Tt$6((o,i)=>e(o,i,r)):we$3,Ge$3(1),n?rp(t):ip(()=>new go$1))}function sD(e){return e<=0?()=>wn$1:w$2((t,n)=>{let r=[];t.subscribe(T(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 aD(){return w$2((e,t)=>{let n,r=!1;e.subscribe(T(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function Do$1(e={}){let{connector:t=()=>new Z$2,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},m=()=>{let v=s;f(),v?.unsubscribe();};return w$2((v,D)=>{u++,!d&&!l&&p();let R=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=xc(m,o));}),R.subscribe(D),!s&&u>0&&(s=new Ct$6({next:te=>R.next(te),error:te=>{d=!0,p(),a=xc(f,n,te),R.error(te);},complete:()=>{l=!0,p(),a=xc(f,r),R.complete();}}),U$3(v).subscribe(s));})(i)}}function xc(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Ct$6({next:()=>{r.unsubscribe(),e();}});return U$3(t(...n)).subscribe(r)}function cD(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,Do$1({connector:()=>new po$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Ac(...e){let t=ct$3(e);return w$2((n,r)=>{(t?qt$3(e,n,t):qt$3(e,n)).subscribe(r);})}function Nc(e,t){return w$2((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T(r,c=>{o?.unsubscribe();let u=0,l=i++;U$3(e(c,l)).subscribe(o=T(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Er(e){return w$2((t,n)=>{U$3(e).subscribe(T(n,()=>n.complete(),Dn$2)),!n.closed&&t.subscribe(n);})}function uD(e,t=false){return w$2((n,r)=>{let o=0;n.subscribe(T(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var ye$3=null,us$1=false,Sn$1=1,J$1=Symbol("SIGNAL");function _$1(e){let t=ye$3;return ye$3=e,t}function ls$1(){return ye$3}var Zt$5={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Yt$5(e){if(us$1)throw new Error("");if(ye$3===null)return;ye$3.consumerOnSignalRead(e);let t=ye$3.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ye$3.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ye$3.producers,n!==void 0&&n.producer===e)){ye$3.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Sn$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ye$3&&(!r||o.knownValidAtEpoch===Sn$1))return;let i=wr(ye$3),s={producer:e,consumer:ye$3,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Sn$1,lastReadVersion:e.version,nextConsumer:void 0};ye$3.producersTail=s,t!==void 0?t.nextProducer=s:ye$3.producers=s,i&&up(e,s);}function sp(){Sn$1++;}function An$1(e){if(!(wr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Sn$1)){if(!e.producerMustRecompute(e)&&!Ir(e)){_r(e);return}e.producerRecomputeValue(e),_r(e);}}function Rc(e){if(e.consumers===void 0)return;let t=us$1;us$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||dD(r);}}finally{us$1=t;}}function kc(){return ye$3?.consumerAllowSignalWrites!==false}function dD(e){e.dirty=true,Rc(e),e.consumerMarkedDirty?.(e);}function _r(e){e.dirty=false,e.lastCleanEpoch=Sn$1;}function St$5(e){return e&&ap(e),_$1(e)}function ap(e){if(e.producersTail?.knownValidAtEpoch===Sn$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Kt$3(e,t){_$1(t),e&&cp(e);}function cp(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(wr(e))do n=Oc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Ir(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(An$1(n),r!==n.version))return true}return false}function Qt$3(e){if(wr(e)){let t=e.producers;for(;t!==void 0;)t=Oc(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function up(e,t){let n=e.consumersTail,r=wr(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)up(o.producer,o);}function Oc(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,!wr(t)){let i=t.producers;for(;i!==void 0;)i=Oc(i);}return n}function wr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function _o$1(e,t){return Object.is(e,t)}function Io$1(e,t){let n=Object.create(fD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(An$1(n),Yt$5(n),n.value===dt$4)throw n.error;return n.value};return r[J$1]=n,r}var Mn$2=Symbol("UNSET"),xn$3=Symbol("COMPUTING"),dt$4=Symbol("ERRORED"),fD=P(I$2({},Zt$5),{value:Mn$2,dirty:true,error:null,equal:_o$1,kind:"computed",producerMustRecompute(e){return e.value===Mn$2||e.value===xn$3},producerRecomputeValue(e){if(e.value===xn$3)throw new Error("");let t=e.value;e.value=xn$3;let n=St$5(e),r,o=false;try{r=e.computation(),_$1(null),o=t!==Mn$2&&t!==dt$4&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function pD(){throw new Error}var lp=pD;function dp(e){lp(e);}function Fc(e){lp=e;}function Lc(e,t){let n=Object.create(wo$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>fp(n);return r[J$1]=n,[r,s=>Nn$2(n,s),s=>ds$1(n,s)]}function fp(e){return Yt$5(e),e.value}function Nn$2(e,t){kc()||dp(e),e.equal(e.value,t)||(e.value=t,mD(e));}function ds$1(e,t){kc()||dp(e),Nn$2(e,t(e.value));}var wo$1=P(I$2({},Zt$5),{equal:_o$1,value:void 0,kind:"signal"});function mD(e){e.version++,sp(),Rc(e);}var Pc=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function jc(e){if(e.dirty=false,e.version>0&&!Ir(e))return;e.version++;let t=St$5(e);try{e.cleanup(),e.fn();}finally{Kt$3(e,t);}}var Bc;function fs$1(){return Bc}function ft$5(e){let t=Bc;return Bc=e,t}var pp=Symbol("NotFound");function Cr(e){return e===pp||e?.name==="\u0275NotFound"}function Vc(e,t,n){let r=Object.create(gD);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(An$1(r),Yt$5(r),r.value===dt$4)throw r.error;return r.value};return i[J$1]=r,i}function hp(e,t){An$1(e),Nn$2(e,t),_r(e);}function mp(e,t){if(An$1(e),e.value===dt$4)throw e.error;ds$1(e,t),_r(e);}var gD=P(I$2({},Zt$5),{value:Mn$2,dirty:true,error:null,equal:_o$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===Mn$2||e.value===xn$3},producerRecomputeValue(e){if(e.value===xn$3)throw new Error("");let t=e.value;e.value=xn$3;let n=St$5(e),r,o=false;try{let i=e.source(),s=t!==Mn$2&&t!==dt$4,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,_$1(null),o=s&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function gp(e){let t=_$1(null);try{return e()}finally{_$1(t);}}var bs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(t,n){super(At$7(t,n)),this.code=t;}};function yD(e){return `NG0${Math.abs(e)}`}function At$7(e,t){return `${yD(e)}${t?": "+t:""}`}function B$3(e){for(let t in e)if(e[t]===B$3)return t;throw Error("")}function Ep(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Ao$1(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Ao$1).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 Ds(e,t){return e?t?`${e} ${t}`:e:t||""}var vD=B$3({__forward_ref__:B$3});function Es(e){return e.__forward_ref__=Es,e}function oe$2(e){return Jc(e)?e():e}function Jc(e){return typeof e=="function"&&e.hasOwnProperty(vD)&&e.__forward_ref__===Es}function M(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce$4(e){return {providers:e.providers||[],imports:e.imports||[]}}function No$1(e){return DD(e,_s)}function bD(e){return No$1(e)!==null}function DD(e,t){return e.hasOwnProperty(t)&&e[t]||null}function ED(e){let t=e?.[_s]??null;return t||null}function Hc(e){return e&&e.hasOwnProperty(hs)?e[hs]:null}var _s=B$3({\u0275prov:B$3}),hs=B$3({\u0275inj:B$3}),y=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=M({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function eu(e){return e&&!!e.\u0275providers}var tu=B$3({\u0275cmp:B$3}),nu=B$3({\u0275dir:B$3}),ru=B$3({\u0275pipe:B$3}),ou=B$3({\u0275mod:B$3}),To$1=B$3({\u0275fac:B$3}),Ln$3=B$3({__NG_ELEMENT_ID__:B$3}),yp=B$3({__NG_ENV_ID__:B$3});function _p(e){return ws(e),e[ou]||null}function Nt$7(e){return ws(e),e[tu]||null}function Is(e){return ws(e),e[nu]||null}function Ip(e){return ws(e),e[ru]||null}function ws(e,t){if(e==null)throw new g(-919,false)}function Rt$5(e){return typeof e=="string"?e:e==null?"":String(e)}var wp=B$3({ngErrorCode:B$3}),_D=B$3({ngErrorMessage:B$3});B$3({ngTokenPath:B$3});function iu(e,t){return Cp("",-200)}function Cs(e,t){throw new g(-201,false)}function Cp(e,t,n){let r=new g(t,e);return r[wp]=t,r[_D]=e,r}function wD(e){return e[wp]}var $c;function Tp(){return $c}function ve$4(e){let t=$c;return $c=e,t}function su(e,t,n){let r=No$1(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;Cs();}var Fe$6=globalThis;var CD={},Rn$2=CD,TD="__NG_DI_FLAG__",zc=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=kn$2(n)||0;try{return this.injector.get(t,r&8?null:Rn$2,r)}catch(o){if(Cr(o))return o;throw o}}};function SD(e,t=0){let n=fs$1();if(n===void 0)throw new g(-203,false);if(n===null)return su(e,void 0,t);{let r=MD(t),o=n.retrieve(e,r);if(Cr(o)){if(r.optional)return null;throw o}return o}}function C$1(e,t=0){return (Tp()||SD)(oe$2(e),t)}function h(e,t){return C$1(e,kn$2(t))}function kn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function MD(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Wc(e){let t=[];for(let n=0;n<e.length;n++){let r=oe$2(e[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=xD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(C$1(o,i));}else t.push(C$1(r));}return t}function xD(e){return e[TD]}function Xt$6(e,t){let n=e.hasOwnProperty(To$1);return n?e[To$1]:null}function Sp(e,t,n){if(e.length!==t.length)return false;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 false}return true}function Mp(e){return e.flat(Number.POSITIVE_INFINITY)}function Ts(e,t){e.forEach(n=>Array.isArray(n)?Ts(n,t):t(n));}function au(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Ro$1(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xp(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ap(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 Ss(e,t,n){let r=Mr(e,t);return r>=0?e[r|1]=n:(r=~r,Ap(e,r,t,n)),r}function Ms(e,t){let n=Mr(e,t);if(n>=0)return e[n|1]}function Mr(e,t){return AD(e,t,1)}function AD(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 en$3={},de$2=[],xr=new y(""),ko=new y("",-1),cu=new y(""),Sr=class{get(t,n=Rn$2){if(n===Rn$2){let o=Cp("",-201);throw o.name="\u0275NotFound",o}return n}};function Pn$2(e){return {\u0275providers:e}}function Np(...e){return {\u0275providers:uu(true,e),\u0275fromNgModule:true}}function uu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Ts(t,s=>{let a=s;ms$1(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Rp(o,i),n}function Rp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];lu(o,i=>{t(i,r);});}}function ms$1(e,t,n,r){if(e=oe$2(e),!e)return false;let o=null,i=Hc(e),s=!i&&Nt$7(e);if(!i&&!s){let c=e.ngModule;if(i=Hc(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ms$1(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Ts(i.imports,l=>{ms$1(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Rp(u,t);}if(!a){let u=Xt$6(o)||(()=>new o);t({provide:o,useFactory:u,deps:de$2},o),t({provide:cu,useValue:o,multi:true},o),t({provide:xr,useValue:()=>C$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;lu(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function lu(e,t){for(let n of e)eu(n)&&(n=n.\u0275providers),Array.isArray(n)?lu(n,t):t(n);}var ND=B$3({provide:String,useValue:B$3});function kp(e){return e!==null&&typeof e=="object"&&ND in e}function RD(e){return !!(e&&e.useExisting)}function kD(e){return !!(e&&e.useFactory)}function On$2(e){return typeof e=="function"}function Op(e){return !!e.useClass}var Oo$1=new y(""),ps$1={},vp={},Uc;function Ar(){return Uc===void 0&&(Uc=new Sr),Uc}var ae$3=class ae{},Fn$2=class Fn extends ae$3{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,qc(t,s=>this.processProvider(s)),this.records.set(ko,Tr(void 0,this)),o.has("environment")&&this.records.set(ae$3,Tr(void 0,this));let i=this.records.get(Oo$1);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cu,de$2,{self:true}));}retrieve(t,n){let r=kn$2(n)||0;try{return this.get(t,Rn$2,r)}catch(o){if(Cr(o))return o;throw o}}destroy(){Co(this),this._destroyed=true;let t=_$1(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(),_$1(t);}}onDestroy(t){return Co(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Co(this);let n=ft$5(this),r=ve$4(void 0);try{return t()}finally{ft$5(n),ve$4(r);}}get(t,n=Rn$2,r){if(Co(this),t.hasOwnProperty(yp))return t[yp](this);let o=kn$2(r),s=ft$5(this),a=ve$4(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=jD(t)&&No$1(t);l&&this.injectableDefInScope(l)?u=Tr(Gc(t),ps$1):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Ar():this.parent;return n=o&8&&n===Rn$2?null:n,c.get(t,n)}catch(c){let u=wD(c);throw u===-200||u===-201?new g(u,null):c}finally{ve$4(a),ft$5(s);}}resolveInjectorInitializers(){let t=_$1(null),n=ft$5(this),r=ve$4(void 0);try{let i=this.get(xr,de$2,{self:!0});for(let s of i)s();}finally{ft$5(n),ve$4(r),_$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=oe$2(t);let n=On$2(t)?t:oe$2(t&&t.provide),r=FD(t);if(!On$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Tr(void 0,ps$1,true),o.factory=()=>Wc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=_$1(null);try{if(n.value===vp)throw iu("");return n.value===ps$1&&(n.value=vp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&PD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=oe$2(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 Gc(e){let t=No$1(e),n=t!==null?t.factory:Xt$6(e);if(n!==null)return n;if(e instanceof y)throw new g(-204,false);if(e instanceof Function)return OD(e);throw new g(-204,false)}function OD(e){if(e.length>0)throw new g(-204,false);let n=ED(e);return n!==null?()=>n.factory(e):()=>new e}function FD(e){if(kp(e))return Tr(void 0,e.useValue);{let t=du(e);return Tr(t,ps$1)}}function du(e,t,n){let r;if(On$2(e)){let o=oe$2(e);return Xt$6(o)||Gc(o)}else if(kp(e))r=()=>oe$2(e.useValue);else if(kD(e))r=()=>e.useFactory(...Wc(e.deps||[]));else if(RD(e))r=(o,i)=>C$1(oe$2(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=oe$2(e&&(e.useClass||e.provide));if(LD(e))r=()=>new o(...Wc(e.deps));else return Xt$6(o)||Gc(o)}return r}function Co(e){if(e.destroyed)throw new g(-205,false)}function Tr(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function LD(e){return !!e.deps}function PD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function jD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function qc(e,t){for(let n of e)Array.isArray(n)?qc(n,t):n&&eu(n)?qc(n.\u0275providers,t):t(n);}function Nr(e,t){let n;e instanceof Fn$2?(Co(e),n=e):n=new zc(e);let o=ft$5(n),i=ve$4(void 0);try{return t()}finally{ft$5(o),ve$4(i);}}function Fp(){return Tp()!==void 0||fs$1()!=null}var Ze$3=0,E$1=1,S$2=2,ie$2=3,Le$3=4,pe$2=5,jn$2=6,Rr=7,ee$1=8,ht$3=9,Ye$3=10,$$2=11,kr=12,fu=13,tn$4=14,be$3=15,nn$4=16,Bn$3=17,mt$5=18,gt$5=19,pu=20,Mt$5=21,xs=22,Jt$4=23,Ce$3=24,Vn$1=25,yt$7=26,z$2=27,Lp=1,hu=6,rn$4=7,Fo=8,Un$3=9,Q$3=10;function kt$3(e){return Array.isArray(e)&&typeof e[Lp]=="object"}function Pe$4(e){return Array.isArray(e)&&e[Lp]===true}function mu(e){return (e.flags&4)!==0}function vt$6(e){return e.componentOffset>-1}function Or(e){return (e.flags&1)===1}function Ke$3(e){return !!e.template}function Fr(e){return (e[S$2]&512)!==0}function Hn$3(e){return (e[S$2]&256)===256}var gu="svg",Pp="math";function je$2(e){for(;Array.isArray(e);)e=e[Ze$3];return e}function yu(e,t){return je$2(t[e])}function Te$6(e,t){return je$2(t[e.index])}function As(e,t){return e.data[t]}function Lr(e,t){return e[t]}function Lo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Be$2(e,t){let n=t[e];return kt$3(n)?n:n[Ze$3]}function jp(e){return (e[S$2]&4)===4}function Ns(e){return (e[S$2]&128)===128}function Bp(e){return Pe$4(e[ie$2])}function Se$3(e,t){return t==null?null:e[t]}function vu(e){e[Bn$3]=0;}function bu(e){e[S$2]&1024||(e[S$2]|=1024,Ns(e)&&$n$2(e));}function Vp(e,t){for(;e>0;)t=t[tn$4],e--;return t}function Po(e){return !!(e[S$2]&9216||e[Ce$3]?.dirty)}function Rs(e){e[Ye$3].changeDetectionScheduler?.notify(8),e[S$2]&64&&(e[S$2]|=1024),Po(e)&&$n$2(e);}function $n$2(e){e[Ye$3].changeDetectionScheduler?.notify(0);let t=xt$4(e);for(;t!==null&&!(t[S$2]&8192||(t[S$2]|=8192,!Ns(t)));)t=xt$4(t);}function ks(e,t){if(Hn$3(e))throw new g(911,false);e[Mt$5]===null&&(e[Mt$5]=[]),e[Mt$5].push(t);}function Up(e,t){if(e[Mt$5]===null)return;let n=e[Mt$5].indexOf(t);n!==-1&&e[Mt$5].splice(n,1);}function xt$4(e){let t=e[ie$2];return Pe$4(t)?t[ie$2]:t}function Du(e){return e[Rr]??=[]}function Eu(e){return e.cleanup??=[]}function Hp(e,t,n,r){let o=Du(t);o.push(n),e.firstCreatePass&&Eu(e).push(r,o.length-1);}var N={lFrame:eh(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Zc=false;function $p(){return N.lFrame.elementDepthCount}function zp(){N.lFrame.elementDepthCount++;}function _u(){N.lFrame.elementDepthCount--;}function Os(){return N.bindingsEnabled}function Iu(){return N.skipHydrationRootTNode!==null}function wu(e){return N.skipHydrationRootTNode===e}function Cu(){N.skipHydrationRootTNode=null;}function b(){return N.lFrame.lView}function H$1(){return N.lFrame.tView}function Wp(e){return N.lFrame.contextLView=e,e[ee$1]}function Gp(e){return N.lFrame.contextLView=null,e}function ne$3(){let e=Tu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Tu(){return N.lFrame.currentTNode}function qp(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function zn$2(e,t){let n=N.lFrame;n.currentTNode=e,n.isParent=t;}function Su(){return N.lFrame.isParent}function Mu(){N.lFrame.isParent=false;}function xu(){return N.lFrame.contextLView}function Au(){return Zc}function So$1(e){let t=Zc;return Zc=e,t}function Pr(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Nu(){return N.lFrame.bindingIndex}function Zp(e){return N.lFrame.bindingIndex=e}function on$4(){return N.lFrame.bindingIndex++}function jo(e){let t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yp(){return N.lFrame.inI18n}function Kp(e,t){let n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Fs(t);}function Qp(){return N.lFrame.currentDirectiveIndex}function Fs(e){N.lFrame.currentDirectiveIndex=e;}function Xp(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ls(){return N.lFrame.currentQueryIndex}function Bo(e){N.lFrame.currentQueryIndex=e;}function BD(e){let t=e[E$1];return t.type===2?t.declTNode:t.type===1?e[pe$2]:null}function Ru(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=BD(i),o===null||(i=i[tn$4],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N.lFrame=Jp();return r.currentTNode=t,r.lView=e,true}function Ps(e){let t=Jp(),n=e[E$1];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Jp(){let e=N.lFrame,t=e===null?null:e.child;return t===null?eh(e):t}function eh(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function th(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ku=th;function js(){let e=th();e.isParent=true,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 nh(e){return (N.lFrame.contextLView=Vp(e,N.lFrame.contextLView))[ee$1]}function Ve$3(){return N.lFrame.selectedIndex}function sn$3(e){N.lFrame.selectedIndex=e;}function jr(){let e=N.lFrame;return As(e.tView,e.selectedIndex)}function rh(){N.lFrame.currentNamespace=gu;}function oh(){VD();}function VD(){N.lFrame.currentNamespace=null;}function Ou(){return N.lFrame.currentNamespace}var ih=true;function Bs(){return ih}function Vo(e){ih=e;}function Yc(e,t=null,n=null,r){let o=Fu(e,t,n);return o.resolveInjectorInitializers(),o}function Fu(e,t=null,n=null,r,o=new Set){let i=[n||de$2,Np(e)];return new Fn$2(i,t||Ar(),null,o)}var K$3=class e{static THROW_IF_NOT_FOUND=Rn$2;static NULL=new Sr;static create(t,n){if(Array.isArray(t))return Yc({name:""},n,t);{let r=t.name??"";return Yc({name:r},t.parent,t.providers)}}static \u0275prov=M({token:e,providedIn:"any",factory:()=>C$1(ko)});static __NG_ELEMENT_ID__=-1},O$1=new y(""),Ue$3=(()=>{class e{static __NG_ELEMENT_ID__=UD;static __NG_ENV_ID__=n=>n}return e})(),gs=class extends Ue$3{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return Hn$3(this._lView)}onDestroy(t){let n=this._lView;return ks(n,t),()=>Up(n,t)}};function UD(){return new gs(b())}var sh=false,ah=new y(""),Wn$3=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Cn$3(false);debugTaskTracker=h(ah,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);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(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kc=class extends Z$2{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Fp()&&(this.destroyRef=h(Ue$3,{optional:true})??void 0,this.pendingTasks=h(Wn$3,{optional:true})??void 0);}emit(t){let n=_$1(null);try{super.next(t);}finally{_$1(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 q$3&&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);}});}}},Oe$4=Kc;function ys(...e){}function Lu(e){let t,n;function r(){e=ys;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 ch(e){return queueMicrotask(()=>e()),()=>{e=ys;}}var Pu="isAngularZone",Mo$1=Pu+"_ID",HD=0,j$1=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Oe$4(false);onMicrotaskEmpty=new Oe$4(false);onStable=new Oe$4(false);onError=new Oe$4(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=sh}=t;if(typeof Zone>"u")throw new g(908,false);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=false,s.scheduleInRootZone=i,WD(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Pu)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new g(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new g(909,false)}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,$D,ys,ys);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)}},$D={};function ju(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=true;}}}function zD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Lu(()=>{e.callbackScheduled=false,Qc(e),e.isCheckStableRunning=true,ju(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Qc(e);}function WD(e){let t=()=>{zD(e);},n=HD++;e._inner=e._inner.fork({name:"angular",properties:{[Pu]:true,[Mo$1]:n,[Mo$1+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(GD(c))return r.invokeTask(i,s,a,c);try{return bp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Dp(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return bp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!qD(c)&&t(),Dp(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Qc(e),ju(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Qc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function bp(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Dp(e){e._nesting--,ju(e);}var xo=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Oe$4;onMicrotaskEmpty=new Oe$4;onStable=new Oe$4;onError=new Oe$4;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 GD(e){return uh(e,"__ignore_ng_zone__")}function qD(e){return uh(e,"__scheduler_tick__")}function uh(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var fe$1=class fe{_console=console;handleError(t){this._console.error("ERROR",t);}},an$3=new y("",{factory:()=>{let e=h(j$1),t=h(ae$3),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(fe$1),n.handleError(r));});}}}),lh={provide:xr,useValue:()=>{h(fe$1,{optional:true});},multi:true};function Qe$3(e,t){let [n,r,o]=Lc(e,t?.equal),i=n;i[J$1];return i.set=r,i.update=o,i.asReadonly=Vs.bind(i),i}function Vs(){let e=this[J$1];if(e.readonlyFn===void 0){let t=()=>this();t[J$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Ot$3=new y("",{factory:()=>ZD}),ZD="ng";var Us=new y(""),Gn$2=new y("",{providedIn:"platform",factory:()=>"unknown"}),Bu=new y(""),qn$2=new y("",{factory:()=>h(O$1).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Br=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=YD}return e})();function YD(){return new Br(b(),ne$3())}var pt$4=class pt{},Uo$1=new y("",{factory:()=>true});var Vu=new y(""),Hs=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>new Xc})}return e})(),Xc=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=false;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=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},vs=class{[J$1];constructor(t){this[J$1]=t;}destroy(){this[J$1].destroy();}};function $s(e,t){let n=t?.injector??h(K$3),r=t?.manualCleanup!==true?n.get(Ue$3):null,o,i=n.get(Br,null,{optional:true}),s=n.get(pt$4);return i!==null?(o=XD(i.view,s,e),r instanceof gs&&r._lView===i.view&&(r=null)):o=JD(e,n.get(Hs),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new vs(o)}var dh=P(I$2({},Pc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=So$1(false);try{jc(this);}finally{So$1(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=_$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],_$1(e);}}}),KD=P(I$2({},dh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Qt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),QD=P(I$2({},dh),{consumerMarkedDirty(){this.view[S$2]|=8192,$n$2(this.view),this.notifier.notify(13);},destroy(){if(Qt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Jt$4]?.delete(this);}});function XD(e,t,n){let r=Object.create(QD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=fh(r,n),e[Jt$4]??=new Set,e[Jt$4].add(r),r.consumerMarkedDirty(r),r}function JD(e,t,n){let r=Object.create(KD);return r.fn=fh(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 fh(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Zn$2(e){return typeof e=="function"&&e[J$1]!==void 0}var Ho=(()=>{class e{internalPendingTasks=h(Wn$3);scheduler=h(pt$4);errorHandler=h(an$3);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();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();function ei$3(e){return {toString:e}.toString()}var L$1=(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})(L$1||{}),Xs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Jh(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var em=null,ya=(()=>{em=ph;let e=()=>ph;return e.ngInherit=true,e})();function dE(){return em}function ph(e){return e.type.prototype.ngOnChanges&&(e.setInput=pE),fE}function fE(){let e=tm(this),t=e?.current;if(t){let n=e.previous;if(n===en$3)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function pE(e,t,n,r,o){let i=this.declaredInputs[r],s=tm(e)||hE(e,{previous:en$3,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xs(u&&u.currentValue,n,c===en$3),Jh(e,t,o,n);}var Qu="__ngSimpleChanges__";function tm(e){return Object.hasOwn(e,Qu)&&e[Qu]||null}function hE(e,t){return e[Qu]=t}var hh=[];var V$3=function(e,t=null,n){for(let r=0;r<hh.length;r++){let o=hh[r];o(e,t,n);}};function mE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dE()(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 nm(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 Zs(e,t,n){rm(e,t,3,n);}function Ys(e,t,n,r){(e[S$2]&3)===n&&rm(e,t,n,r);}function Uu(e,t){let n=e[S$2];(n&3)===t&&(n&=16383,n+=1,e[S$2]=n);}function rm(e,t,n,r){let o=r!==void 0?e[Bn$3]&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[Bn$3]+=65536),(a<i||i==-1)&&(gE(e,n,t,c),e[Bn$3]=(e[Bn$3]&4294901760)+c+2),c++;}function mh(e,t){V$3(L$1.LifecycleHookStart,e,t);let n=_$1(null);try{t.call(e);}finally{_$1(n),V$3(L$1.LifecycleHookEnd,e,t);}}function gE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$2]>>14<e[Bn$3]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,mh(a,i)):mh(a,i);}var Ur=-1,Kn$2=class Kn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function yE(e){return (e.flags&8)!==0}function vE(e){return (e.flags&16)!==0}function bE(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];DE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function om(e){return e===3||e===4||e===6}function DE(e){return e.charCodeAt(0)===64}function Hr$1(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?gh(e,n,o,null,t[++r]):gh(e,n,o,null,null));}}return e}function gh(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 im(e){return e!==Ur}function Js(e){return e&32767}function EE(e){return e>>16}function ea(e,t){let n=EE(e),r=t;for(;n>0;)r=r[tn$4],n--;return r}var Xu=true;function ta(e){let t=Xu;return Xu=e,t}var _E=256,sm=_E-1,am=5,IE=0,bt$4={};function wE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ln$3)&&(r=n[Ln$3]),r==null&&(r=n[Ln$3]=IE++);let o=r&sm,i=1<<o;t.data[e+(o>>am)]|=i;}function na(e,t){let n=cm(e,t);if(n!==-1)return n;let r=t[E$1];r.firstCreatePass&&(e.injectorIndex=t.length,Hu(r.data,e),Hu(t,null),Hu(r.blueprint,null));let o=kl(e,t),i=e.injectorIndex;if(im(o)){let s=Js(o),a=ea(o,t),c=a[E$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Hu(e,t){e.push(0,0,0,0,0,0,0,0,t);}function cm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function kl(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=hm(o),r===null)return Ur;if(n++,o=o[tn$4],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ur}function Ju(e,t,n){wE(e,t,n);}function CE(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(om(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function um(e,t,n){if(n&8||e!==void 0)return e;Cs();}function lm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[ht$3],i=ve$4(void 0);try{return o?o.get(t,r,n&8):su(t,r,n&8)}finally{ve$4(i);}}return um(r,t,n)}function dm(e,t,n,r=0,o){if(e!==null){if(t[S$2]&2048&&!(r&2)){let s=xE(e,t,n,r,bt$4);if(s!==bt$4)return s}let i=fm(e,t,n,r,bt$4);if(i!==bt$4)return i}return lm(t,n,r,o)}function fm(e,t,n,r,o){let i=SE(n);if(typeof i=="function"){if(!Ru(t,e,r))return r&1?um(o,n,r):lm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Cs(n);else return s}finally{ku();}}else if(typeof i=="number"){let s=null,a=cm(e,t),c=Ur,u=r&1?t[be$3][pe$2]:null;for((a===-1||r&4)&&(c=a===-1?kl(e,t):t[a+8],c===Ur||!vh(r,false)?a=-1:(s=t[E$1],a=Js(c),t=ea(c,t)));a!==-1;){let l=t[E$1];if(yh(i,a,l.data)){let d=TE(a,t,n,s,r,u);if(d!==bt$4)return d}c=t[a+8],c!==Ur&&vh(r,t[E$1].data[a+8]===u)&&yh(i,a,t)?(s=l,a=Js(c),t=ea(c,t)):a=-1;}}return o}function TE(e,t,n,r,o,i){let s=t[E$1],a=s.data[e+8],c=r==null?vt$6(a)&&Xu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ks(a,s,n,c,u);return l!==null?Zo(t,s,l,a,o):bt$4}function Ks(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 m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&Ke$3(f)&&f.type===n)return c}return null}function Zo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Kn$2){let a=i;if(a.resolving)throw iu();let c=ta(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?ve$4(a.injectImpl):null;Ru(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&mE(n,s[n],t);}finally{d!==null&&ve$4(d),ta(c),a.resolving=false,ku();}}return i}function SE(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ln$3)?e[Ln$3]:void 0;return typeof t=="number"?t>=0?t&sm:ME:t}function yh(e,t,n){let r=1<<e;return !!(n[t+(e>>am)]&r)}function vh(e,t){return !(e&2)&&!(e&1&&t)}var cn$4=class cn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return dm(this._tNode,this._lView,t,kn$2(r),n)}};function ME(){return new cn$4(ne$3(),b())}function pm(e){return ei$3(()=>{let t=e.prototype.constructor,n=t[To$1]||el(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[To$1]||el(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function el(e){return Jc(e)?()=>{let t=el(oe$2(e));return t&&t()}:Xt$6(e)}function xE(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Fr(s);){let a=fm(i,s,n,r|2,bt$4);if(a!==bt$4)return a;let c=i.parent;if(!c){let u=s[pu];if(u){let l=u.get(n,bt$4,r&-5);if(l!==bt$4)return l}c=hm(s),s=s[tn$4];}i=c;}return o}function hm(e){let t=e[E$1],n=t.type;return n===2?t.declTNode:n===1?e[pe$2]:null}function Ol(e){return CE(ne$3(),e)}function F$2(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function AE(){return Zr$1(ne$3(),b())}function Zr$1(e,t){return new ue$2(Te$6(e,t))}var ue$2=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=AE}return e})();function mm(e){return e instanceof ue$2?e.nativeElement:e}function NE(){return this._results[Symbol.iterator]()}var Qn$2=class Qn{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z$2}constructor(t=false){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=false;let r=Mp(t);(this._changesDetected=!Sp(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=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=NE};function gm(e){return (e.flags&128)===128}var Fl=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Fl||{}),ym=new Map,RE=0;function kE(){return RE++}function OE(e){ym.set(e[gt$5],e);}function tl(e){ym.delete(e[gt$5]);}var bh="__ngContext__";function $r(e,t){kt$3(t)?(e[bh]=t[gt$5],OE(t)):e[bh]=t;}function vm(e){return Dm(e[kr])}function bm(e){return Dm(e[Le$3])}function Dm(e){for(;e!==null&&!Pe$4(e);)e=e[Le$3];return e}var nl;function Ll(e){nl=e;}function Em(){if(nl!==void 0)return nl;if(typeof document<"u")return document;throw new g(210,false)}var _m="r";var Im="di";var wm=false,Cm=new y("",{factory:()=>wm});var Dh=new WeakMap;function FE(e,t){if(e==null||typeof e!="object")return;let n=Dh.get(e);n||(n=new WeakSet,Dh.set(e,n)),n.add(t);}function va(e){return (e.flags&32)===32}var jE=()=>null;function Tm(e,t,n=false){return jE()}function Sm(e,t){let n=e.contentQueries;if(n!==null){let r=_$1(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];Bo(i),a.contentQueries(2,t[s],s);}}}finally{_$1(r);}}}function rl(e,t,n){Bo(0);let r=_$1(null);try{t(e,n);}finally{_$1(r);}}function Pl(e,t,n){if(mu(t)){let r=_$1(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{_$1(r);}}}var et$2=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(et$2||{});var zs;function BE(){if(zs===void 0&&(zs=null,Fe$6.trustedTypes))try{zs=Fe$6.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return zs}function ba(e){return BE()?.createHTML(e)||e}var Ws;function VE(){if(Ws===void 0&&(Ws=null,Fe$6.trustedTypes))try{Ws=Fe$6.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Ws}function Eh(e){return VE()?.createScriptURL(e)||e}var Ft$6=class Ft{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bs})`}},ol=class extends Ft$6{getTypeName(){return "HTML"}},il=class extends Ft$6{getTypeName(){return "Style"}},sl=class extends Ft$6{getTypeName(){return "Script"}},al=class extends Ft$6{getTypeName(){return "URL"}},cl=class extends Ft$6{getTypeName(){return "ResourceURL"}};function He$5(e){return e instanceof Ft$6?e.changingThisBreaksApplicationSecurity:e}function Lt$5(e,t){let n=Mm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${bs})`)}return n===t}function Mm(e){return e instanceof Ft$6&&e.getTypeName()||null}function jl(e){return new ol(e)}function Bl(e){return new il(e)}function Vl(e){return new sl(e)}function Ul(e){return new al(e)}function Hl(e){return new cl(e)}function UE(e){let t=new ll(e);return HE()?new ul(t):t}var ul=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ba(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},ll=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ba(t),n}};function HE(){try{return !!new window.DOMParser().parseFromString(ba(""),"text/html")}catch{return false}}var $E=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ti$3(e){return e=String(e),e.match($E)?e:"unsafe:"+e}function Pt$4(e){let t={};for(let n of e.split(","))t[n]=true;return t}function ni$3(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var xm=Pt$4("area,br,col,hr,img,wbr"),Am=Pt$4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nm=Pt$4("rp,rt"),zE=ni$3(Nm,Am),WE=ni$3(Am,Pt$4("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),GE=ni$3(Nm,Pt$4("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),_h=ni$3(xm,WE,GE,zE),Rm=Pt$4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qE=Pt$4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ZE=Pt$4("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),YE=ni$3(Rm,qE,ZE),KE=Pt$4("script,style,template"),dl=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=JE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=XE(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Ih(t).toLowerCase();if(!_h.hasOwnProperty(n))return this.sanitizedSomething=true,!KE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!YE.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Rm[a]&&(c=ti$3(c)),this.buf.push(" ",s,'="',wh(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Ih(t).toLowerCase();_h.hasOwnProperty(n)&&!xm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(wh(t));}};function QE(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XE(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw km(t);return t}function JE(e){let t=e.firstChild;if(t&&QE(e,t))throw km(t);return t}function Ih(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function km(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var e_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t_=/([^\#-~ |!])/g;function wh(e){return e.replace(/&/g,"&").replace(e_,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(t_,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Gs;function $l(e,t){let n=null;try{Gs=Gs||UE(e);let r=t?String(t):"";n=Gs.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Gs.getInertBodyElement(r);}while(r!==i);let a=new dl().sanitizeChildren(Ch(n)||n);return ba(a)}finally{if(n){let r=Ch(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Ch(e){return "content"in e&&n_(e)?e.content:null}function n_(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var r_=/^>|^->|<!--|-->|--!>|<!-$/g,o_=/(<|>)/g,i_="\u200B$1\u200B";function s_(e){return e.replace(r_,t=>t.replace(o_,i_))}function a_(e,t){return e.createText(t)}function c_(e,t,n){e.setValue(t,n);}function u_(e,t){return e.createComment(s_(t))}function Om(e,t,n){return e.createElement(t,n)}function ra(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Fm(e,t,n){e.appendChild(t,n);}function Th(e,t,n,r,o){r!==null?ra(e,t,n,r,o):Fm(e,t,n);}function Lm(e,t,n,r){e.removeChild(null,t,n,r);}function l_(e,t,n){e.setAttribute(t,"style",n);}function d_(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Pm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&bE(e,t,r),o!==null&&d_(e,t,o),i!==null&&l_(e,t,i);}var se$3=(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[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(se$3||{});function jm(e){let t=Vm();return t?t.sanitize(se$3.URL,e)||"":Lt$5(e,"URL")?He$5(e):ti$3(Rt$5(e))}function Bm(e){let t=Vm();if(t)return Eh(t.sanitize(se$3.RESOURCE_URL,e)||"");if(Lt$5(e,"ResourceURL"))return Eh(He$5(e));throw new g(904,false)}var f_={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function p_(e,t){return f_[e.toLowerCase()]?.[t.toLowerCase()]===true?Bm:jm}function h_(e,t,n){return p_(t,n)(e)}function Vm(){let e=b();return e&&e[Ye$3].sanitizer}function m_(e){return e.ownerDocument.defaultView}function g_(e){return e instanceof Function?e():e}function y_(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 Um="ng-template";function v_(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&y_(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(zl(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function zl(e){return e.type===4&&e.value!==Um}function b_(e,t,n){let r=e.type===4&&!n?Um:e.value;return t===r}function D_(e,t,n){let r=4,o=e.attrs,i=o!==null?I_(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Xe$3(r)&&!Xe$3(c))return false;if(s&&Xe$3(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!b_(e,c,n)||c===""&&t.length===1){if(Xe$3(r))return false;s=true;}}else if(r&8){if(o===null||!v_(e,o,c,n)){if(Xe$3(r))return false;s=true;}}else {let u=t[++a],l=E_(c,o,zl(e),n);if(l===-1){if(Xe$3(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Xe$3(r))return false;s=true;}}}}return Xe$3(r)||s}function Xe$3(e){return (e&1)===0}function E_(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;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 w_(t,e)}function Hm(e,t,n=false){for(let r=0;r<t.length;r++)if(D_(e,t[r],n))return true;return false}function __(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function I_(e){for(let t=0;t<e.length;t++){let n=e[t];if(om(n))return t}return e.length}function w_(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 C_(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Sh(e,t){return e?":not("+t.trim()+")":t}function T_(e){let t=e[0],n=1,r=2,o="",i=false;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!==""&&!Xe$3(s)&&(t+=Sh(i,o),o=""),r=s,i=i||!Xe$3(r);n++;}return o!==""&&(t+=Sh(i,o)),t}function S_(e){return e.map(T_).join(",")}function M_(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(!Xe$3(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var le$5={},Dt$4=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Dt$4||{}),x_;function Wl(e,t){return x_(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var fl=new WeakMap;function $m(e){return e?e[tn$4]??e:null}var zo=new WeakSet;function A_(e,t,n){let r=fl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=$m(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),zo.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function N_(e,t,n){let r=$m(n),o=fl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):fl.set(e,[{el:t,declarationView:r}]);}var un$4=new Set,Da=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Da||{}),Et$6=new y(""),Mh=new Set;function nt$3(e){Mh.has(e)||(Mh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ea=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gl=[0,1,2,3],ql=(()=>{class e{ngZone=h(j$1);scheduler=h(pt$4);errorHandler=h(fe$1,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){h(Et$6,{optional:true});}execute(){let n=this.sequences.size>0;n&&V$3(L$1.AfterRenderHooksStart),this.executing=true;for(let r of Gl)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=true,this.errorHandler?.handleError(i);}this.executing=false;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&&V$3(L$1.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Vn$1]??=[]).push(n),$n$2(r),r[S$2]|=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=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(Da.AFTER_NEXT_RENDER,n):n()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yo=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;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=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Vn$1];t&&(this.view[Vn$1]=t.filter(n=>n!==this));}};function Zl(e,t){let n=t?.injector??h(K$3);return nt$3("NgAfterNextRender"),k_(e,n,t,true)}function R_(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function k_(e,t,n,r){let o=t.get(Ea);o.impl??=t.get(ql);let i=t.get(Et$6,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ue$3):null,a=t.get(Br,null,{optional:true}),c=new Yo(o.impl,R_(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Yl=new y("",{factory:()=>{let e=h(ae$3),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function zm(e,t,n){let r=e.get(Yl);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 O_(e,t){let n=e.get(Yl);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function F_(e,t){let n=e.get(Yl);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function L_(e,t){for(let[n,r]of t)zm(e,r.animateFns);}function xh(e,t,n,r){let o=e?.[yt$7]?.enter;t!==null&&o&&o.has(n.index)&&L_(r,o);}function Ah(e,t,n,r){try{n.get(ko);}catch{return r(false)}let o=e?.[yt$7];o?.enter?.has(t.index)&&O_(n,o.enter.get(t.index).animateFns);let i=P_(e,t,o);if(i.size===0){let s=false;if(e){let a=[];_a(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&un$4.add(e[gt$5]),zm(n,()=>j_(e,t,o||void 0,i,r),o||void 0);}function P_(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function j_(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&_a(e,t,i),i.length>0){let s=n||e?.[yt$7];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),V_(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&un$4.delete(e[gt$5]),o(true);});}else e&&un$4.delete(e[gt$5]),o(false);}function _a(e,t,n){if(t.type&12){let o=e[t.index];if(Pe$4(o))for(let i=Q$3;i<o.length;i++){let s=o[i];s[E$1].type===2&&B_(s,n);}}let r=t.child;for(;r;)_a(e,r,n),r=r.next;}function B_(e,t){let n=e[yt$7];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$1].firstChild;for(;r;)_a(e,r,t),r=r.next;}function V_(e,t,n){t.then(()=>{e[yt$7]?.running===t&&(e[yt$7].running=void 0,un$4.delete(e[gt$5])),n(true);});}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Pe$4(o)?c=o:kt$3(o)&&(u=true,o=o[Ze$3]);let l=je$2(o);e===0&&r!==null?(xh(a,r,i,n),s==null?Fm(t,r,l):ra(t,r,l,s||null,true)):e===1&&r!==null?(xh(a,r,i,n),ra(t,r,l,s||null,true),A_(i,l,a)):e===2?(a?.[yt$7]?.leave?.has(i.index)&&N_(i,l,a),zo.delete(l),Ah(a,i,n,d=>{if(zo.has(l)){zo.delete(l);return}Lm(t,l,u,d);})):e===3&&(zo.delete(l),Ah(a,i,n,()=>{t.destroyNode(l);})),c!=null&&K_(t,e,n,c,i,r,s);}}function U_(e,t){Wm(e,t),t[Ze$3]=null,t[pe$2]=null;}function H_(e,t,n,r,o,i){r[Ze$3]=o,r[pe$2]=t,wa(e,r,n,1,o,i);}function Wm(e,t){t[Ye$3].changeDetectionScheduler?.notify(9),wa(e,t,t[$$2],2,null,null);}function $_(e){let t=e[kr];if(!t)return $u(e[E$1],e);for(;t;){let n=null;if(kt$3(t))n=t[kr];else {let r=t[Q$3];r&&(n=r);}if(!n){for(;t&&!t[Le$3]&&t!==e;)kt$3(t)&&$u(t[E$1],t),t=t[ie$2];t===null&&(t=e),kt$3(t)&&$u(t[E$1],t),n=t&&t[Le$3];}t=n;}}function Kl(e,t){let n=e[Un$3],r=n.indexOf(t);n.splice(r,1);}function Ia(e,t){if(Hn$3(t))return;let n=t[$$2];n.destroyNode&&wa(e,t,n,3,null,null),$_(t);}function $u(e,t){if(Hn$3(t))return;let n=_$1(null);try{t[S$2]&=-129,t[S$2]|=256,t[Ce$3]&&Qt$3(t[Ce$3]),W_(e,t),z_(e,t),t[E$1].type===1&&t[$$2].destroy();let r=t[nn$4];if(r!==null&&Pe$4(t[ie$2])){r!==t[ie$2]&&Kl(r,t);let o=t[mt$5];o!==null&&o.detachView(e);}tl(t);}finally{_$1(n);}}function z_(e,t){let n=e.cleanup,r=t[Rr];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[Rr]=null);let o=t[Mt$5];if(o!==null){t[Mt$5]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Jt$4];if(i!==null){t[Jt$4]=null;for(let s of i)s.destroy();}}function W_(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 Kn$2)){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];V$3(L$1.LifecycleHookStart,a,c);try{c.call(a);}finally{V$3(L$1.LifecycleHookEnd,a,c);}}else {V$3(L$1.LifecycleHookStart,o,i);try{i.call(o);}finally{V$3(L$1.LifecycleHookEnd,o,i);}}}}}function Gm(e,t,n){return G_(e,t.parent,n)}function G_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze$3];if(vt$6(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===et$2.None||o===et$2.Emulated)return null}return Te$6(r,n)}function qm(e,t,n){return Z_(e,t,n)}function q_(e,t,n){return e.type&40?Te$6(e,n):null}var Z_=q_;function Ql(e,t,n,r){let o=Gm(e,r,t),i=t[$$2],s=r.parent||t[pe$2],a=qm(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Th(i,o,n[c],a,false);else Th(i,o,n,a,false);}function Wo(e,t){if(t!==null){let n=t.type;if(n&3)return Te$6(t,e);if(n&4)return pl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Wo(e,r);{let o=e[t.index];return Pe$4(o)?pl(-1,o):je$2(o)}}else {if(n&128)return Wo(e,t.next);if(n&32)return Wl(t,e)()||je$2(e[t.index]);{let r=Zm(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=xt$4(e[be$3]);return Wo(o,r)}else return Wo(e,t.next)}}}return null}function Zm(e,t){if(t!==null){let r=e[be$3][pe$2],o=t.projection;return r.projection[o]}return null}function pl(e,t){let n=Q$3+e+1;if(n<t.length){let r=t[n],o=r[E$1].firstChild;if(o!==null)return Wo(r,o)}return t[rn$4]}function Xl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[ht$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&$r(je$2(c),r),n.flags|=2),!va(n))if(u&8)Xl(e,t,n.child,r,o,i,false),Vr(t,e,a,o,c,n,i,r);else if(u&32){let l=Wl(n,r),d;for(;d=l();)Vr(t,e,a,o,d,n,i,r);Vr(t,e,a,o,c,n,i,r);}else u&16?Ym(e,t,r,n,o,i):Vr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function wa(e,t,n,r,o,i){Xl(n,r,e.firstChild,t,o,i,false);}function Y_(e,t,n){let r=t[$$2],o=Gm(e,n,t),i=n.parent||t[pe$2],s=qm(i,n,t);Ym(r,0,t,n,o,s);}function Ym(e,t,n,r,o,i){let s=n[be$3],c=s[pe$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Vr(t,e,n[ht$3],o,l,r,i,n);}else {let u=c,l=s[ie$2];gm(r)&&(u.flags|=128),Xl(e,t,u,l,o,i,true);}}function K_(e,t,n,r,o,i,s){let a=r[rn$4],c=je$2(r);a!==c&&Vr(t,e,n,i,a,o,s);for(let u=Q$3;u<r.length;u++){let l=r[u];wa(l[E$1],l,e,t,i,a);}}function Q_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Dt$4.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Dt$4.Important),e.setStyle(n,r,o,i));}}function Jl(e,t,n,r,o,i,s,a,c,u,l){let d=z$2+r,p=d+o,f=X_(d,p),m=typeof u=="function"?u():u;return f[E$1]={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:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,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:m,incompleteFirstPass:false,ssrId:l}}function X_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:le$5);return n}function J_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Jl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ed(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ze$3]=o,d[S$2]=r|4|128|8|64|1024,(u!==null||e&&e[S$2]&2048)&&(d[S$2]|=2048),vu(d),d[ie$2]=d[tn$4]=e,d[ee$1]=n,d[Ye$3]=s||e&&e[Ye$3],d[$$2]=a||e&&e[$$2],d[ht$3]=c||e&&e[ht$3]||null,d[pe$2]=i,d[gt$5]=kE(),d[jn$2]=l,d[pu]=u,d[be$3]=t.type==2?e[be$3]:d,d}function eI(e,t,n){let r=Te$6(t,e),o=J_(n),i=e[Ye$3].rendererFactory,s=td(e,ed(e,o,null,Km(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Km(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Qm(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 td(e,t){return e[kr]?e[fu][Le$3]=t:e[kr]=t,e[fu]=t,t}function ri$3(e=1){Xm(H$1(),b(),Ve$3()+e);}function Xm(e,t,n,r){if((t[S$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Zs(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ys(t,i,0,n);}sn$3(n);}var Ca=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ca||{});function Xn$2(e,t,n,r){let o=_$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ca.SignalBased)!==0&&(c=t[i][J$1]),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):Jh(t,c,i,r);}finally{_$1(o);}}function Jm(e,t,n,r,o){let i=Ve$3(),s=r&2;try{sn$3(-1),s&&t.length>z$2&&Xm(e,t,z$2,!1);let a=s?L$1.TemplateUpdateStart:L$1.TemplateCreateStart;V$3(a,o,n),n(r,o);}finally{sn$3(i);let a=s?L$1.TemplateUpdateEnd:L$1.TemplateCreateEnd;V$3(a,o,n);}}function Ta(e,t,n){sI(e,t,n),(n.flags&64)===64&&aI(e,t,n);}function oi$3(e,t,n=Te$6){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 tI(e,t,n,r){let i=r.get(Cm,wm)||n===et$2.ShadowDom||n===et$2.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function oI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function iI(e,t,n,r,o,i){let s=t[E$1];if(Sa(e,s,t,n,r)){vt$6(e)&&tg(t,e.index);return}e.type&3&&(n=oI(n)),eg(e,t,n,r,o,i);}function eg(e,t,n,r,o,i){if(e.type&3){let s=Te$6(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function tg(e,t){let n=Be$2(t,e);n[S$2]&16||(n[S$2]|=64);}function sI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;vt$6(n)&&eI(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||na(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Zo(t,e,s,n);if($r(c,t),i!==null&&lI(t,s-r,c,a,n,i),Ke$3(a)){let u=Be$2(n.index,t);u[ee$1]=Zo(t,e,s,n);}}}function aI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Qp();try{sn$3(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Fs(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&cI(c,u);}}finally{sn$3(-1),Fs(s);}}function cI(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function nd(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Hm(t,i.selectors,false)&&(r??=[],Ke$3(i)?r.unshift(i):r.push(i));}return r}function uI(e,t,n,r,o,i){let s=Te$6(e,t);ng(t[$$2],s,i,e.value,n,r,o);}function ng(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Rt$5(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function lI(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];Xn$2(r,n,c,u);}}function rd(e,t,n,r,o){let i=z$2+n,s=t[E$1],a=o(s,t,e,r,n);t[i]=a,zn$2(e,true);let c=e.type===2;return c?(Pm(t[$$2],a,e),($p()===0||Or(e))&&$r(a,t),zp()):$r(a,t),Bs()&&(!c||!va(e))&&Ql(s,t,a,e),e}function od(e){let t=e;return Su()?Mu():(t=t.parent,zn$2(t,false)),t}function dI(e,t){let n=e[ht$3];if(!n)return;let r;try{r=n.get(an$3,null);}catch{r=null;}r?.(t);}function Sa(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Xn$2(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Xn$2(l,u,r,o),a=true;}return a}function fI(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let m=t.data[f],v=d[p+1];Xn$2(m,n[f],v,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Xn$2(r,n[s],o,i),u=true),u}function pI(e,t){let n=Be$2(t,e),r=n[E$1];hI(r,n);let o=n[Ze$3];o!==null&&n[jn$2]===null&&(n[jn$2]=Tm(o,n[ht$3])),V$3(L$1.ComponentStart);try{id(r,n,n[ee$1]);}finally{V$3(L$1.ComponentEnd,n[ee$1]);}}function hI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function id(e,t,n){Ps(t);try{let r=e.viewQuery;r!==null&&rl(1,r,n);let o=e.template;o!==null&&Jm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mt$5]?.finishViewCreation(e),e.staticContentQueries&&Sm(e,t),e.staticViewQueries&&rl(2,e.viewQuery,n);let i=e.components;i!==null&&mI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,js();}}function mI(e,t){for(let n=0;n<t.length;n++)pI(e,t[n]);}function ii$3(e,t,n,r){let o=_$1(null);try{let i=t.tView,a=e[S$2]&4096?4096:16,c=ed(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[nn$4]=u;let l=e[mt$5];return l!==null&&(c[mt$5]=l.createEmbeddedView(i)),id(i,c,n),c}finally{_$1(o);}}function zr(e,t){return !t||t.firstChild===null||gm(e)}function Ko(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(je$2(i)),Pe$4(i)&&rg(i,r);let s=n.type;if(s&8)Ko(e,t,n.child,r);else if(s&32){let a=Wl(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Zm(t,n);if(Array.isArray(a))r.push(...a);else {let c=xt$4(t[be$3]);Ko(c[E$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function rg(e,t){for(let n=Q$3;n<e.length;n++){let r=e[n],o=r[E$1].firstChild;o!==null&&Ko(r[E$1],r,o,t);}e[rn$4]!==e[Ze$3]&&t.push(e[rn$4]);}function og(e){if(e[Vn$1]!==null){for(let t of e[Vn$1])t.impl.addSequence(t);e[Vn$1].length=0;}}var ig=[];function gI(e){return e[Ce$3]??yI(e)}function yI(e){let t=ig.pop()??Object.create(bI);return t.lView=e,t}function vI(e){e.lView[Ce$3]!==e&&(e.lView=null,ig.push(e));}var bI=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{$n$2(e.lView);},consumerOnSignalRead(){this.lView[Ce$3]=this;}});function DI(e){let t=e[Ce$3]??Object.create(EI);return t.lView=e,t}var EI=P(I$2({},Zt$5),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=xt$4(e.lView);for(;t&&!sg(t[E$1]);)t=xt$4(t);t&&bu(t);},consumerOnSignalRead(){this.lView[Ce$3]=this;}});function sg(e){return e.type!==2}function ag(e){if(e[Jt$4]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Jt$4])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$2]&8192);}}var _I=100;function cg(e,t=0){let r=e[Ye$3].rendererFactory;r.begin?.();try{II(e,t);}finally{r.end?.();}}function II(e,t){let n=Au();try{So$1(!0),hl(e,t);let r=0;for(;Po(e);){if(r===_I)throw new g(103,!1);r++,hl(e,1);}}finally{So$1(n);}}function wI(e,t,n,r){if(Hn$3(t))return;let o=t[S$2],i=false,s=false;Ps(t);let a=true,c=null,u=null;(sg(e)?(u=gI(t),c=St$5(u)):ls$1()===null?(a=false,u=DI(t),c=St$5(u)):t[Ce$3]&&(Qt$3(t[Ce$3]),t[Ce$3]=null));try{vu(t),Zp(e.bindingStartIndex),n!==null&&Jm(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Zs(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Ys(t,f,0,null),Uu(t,0);}if(s||CI(t),ag(t),ug(t,0),e.contentQueries!==null&&Sm(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Zs(t,f);}else {let f=e.contentHooks;f!==null&&Ys(t,f,1),Uu(t,1);}SI(e,t);let d=e.components;d!==null&&dg(t,d,0);let p=e.viewQuery;if(p!==null&&rl(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Zs(t,f);}else {let f=e.viewHooks;f!==null&&Ys(t,f,2),Uu(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xs]){for(let f of t[xs])f();t[xs]=null;}i||(og(t),t[S$2]&=-73);}catch(l){throw $n$2(t),l}finally{u!==null&&(Kt$3(u,c),a&&vI(u)),js();}}function ug(e,t){for(let n=vm(e);n!==null;n=bm(n))for(let r=Q$3;r<n.length;r++){let o=n[r];lg(o,t);}}function CI(e){for(let t=vm(e);t!==null;t=bm(t)){if(!(t[S$2]&2))continue;let n=t[Un$3];for(let r=0;r<n.length;r++){let o=n[r];bu(o);}}}function TI(e,t,n){V$3(L$1.ComponentStart);let r=Be$2(t,e);try{lg(r,n);}finally{V$3(L$1.ComponentEnd,r[ee$1]);}}function lg(e,t){Ns(e)&&hl(e,t);}function hl(e,t){let r=e[E$1],o=e[S$2],i=e[Ce$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Ir(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)wI(r,e,r.template,e[ee$1]);else if(o&8192){let a=_$1(null);try{ag(e),ug(e,1);let c=r.components;c!==null&&dg(e,c,1),og(e);}finally{_$1(a);}}}function dg(e,t,n){for(let r=0;r<t.length;r++)TI(e,t[r],n);}function SI(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)sn$3(~o);else {let i=o,s=n[++r],a=n[++r];Kp(s,i);let c=t[i];V$3(L$1.HostBindingsUpdateStart,c);try{a(2,c);}finally{V$3(L$1.HostBindingsUpdateEnd,c);}}}}finally{sn$3(-1);}}function sd(e,t){let n=Au()?64:1088;for(e[Ye$3].changeDetectionScheduler?.notify(t);e;){e[S$2]|=n;let r=xt$4(e);if(Fr(e)&&!r)return e;e=r;}return null}function fg(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function pg(e,t){let n=Q$3+t;if(n<e.length)return e[n]}function si$3(e,t,n,r=true){let o=t[E$1];if(MI(o,t,e,n),r){let s=pl(n,e),a=t[$$2],c=a.parentNode(e[rn$4]);c!==null&&H_(o,e[pe$2],a,t,c,s);}let i=t[jn$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function hg(e,t){let n=Qo(e,t);return n!==void 0&&Ia(n[E$1],n),n}function Qo(e,t){if(e.length<=Q$3)return;let n=Q$3+t,r=e[n];if(r){let o=r[nn$4];o!==null&&o!==e&&Kl(o,r),t>0&&(e[n-1][Le$3]=r[Le$3]);let i=Ro$1(e,Q$3+t);U_(r[E$1],r);let s=i[mt$5];s!==null&&s.detachView(i[E$1]),r[ie$2]=null,r[Le$3]=null,r[S$2]&=-129;}return r}function MI(e,t,n,r){let o=Q$3+r,i=n.length;r>0&&(n[o-1][Le$3]=t),r<i-Q$3?(t[Le$3]=n[o],au(n,Q$3+r,t)):(n.push(t),t[Le$3]=null),t[ie$2]=n;let s=t[nn$4];s!==null&&n!==s&&mg(s,t);let a=t[mt$5];a!==null&&a.insertView(e),Rs(t),t[S$2]|=128;}function mg(e,t){let n=e[Un$3],r=t[ie$2];if(kt$3(r))e[S$2]|=2;else {let o=r[ie$2][be$3];t[be$3]!==o&&(e[S$2]|=2);}n===null?e[Un$3]=[t]:n.push(t);}var ln$4=class ln{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$1];return Ko(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[ee$1]}set context(t){this._lView[ee$1]=t;}get destroyed(){return Hn$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ie$2];if(Pe$4(t)){let n=t[Fo],r=n?n.indexOf(this):-1;r>-1&&(Qo(t,r),Ro$1(n,r));}this._attachedToViewContainer=false;}Ia(this._lView[E$1],this._lView);}onDestroy(t){ks(this._lView,t);}markForCheck(){sd(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$2]&=-129;}reattach(){Rs(this._lView),this._lView[S$2]|=128;}detectChanges(){this._lView[S$2]|=1024,cg(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Fr(this._lView),n=this._lView[nn$4];n!==null&&!t&&Kl(n,this._lView),Wm(this._lView[E$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new g(902,false);this._appRef=t;let n=Fr(this._lView),r=this._lView[nn$4];r!==null&&!n&&mg(r,this._lView),Rs(this._lView);}};var Wr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=xI;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=ii$3(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ln$4(i)}}return e})();function xI(){return Ma(ne$3(),b())}function Ma(e,t){return e.type&4?new Wr$1(t,e,Zr$1(e,t)):null}function nr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=AI(e,t,n,r,o),Yp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=qp();i.injectorIndex=s===null?-1:s.injectorIndex;}return zn$2(i,true),i}function AI(e,t,n,r,o){let i=Tu(),s=Su(),a=s?i:i&&i.parent,c=e.data[t]=RI(e,a,n,t,r,o);return NI(e,c,i,s),c}function NI(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 RI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Iu()&&(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,namespace:Ou(),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 kI(e){let t=e[hu]??[],r=e[ie$2][$$2],o=[];for(let i of t)i.data[Im]!==void 0?o.push(i):OI(i,r);e[hu]=o;}function OI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[_m];for(;n<o;){let i=r.nextSibling;Lm(t,r,false),r=i,n++;}}}var FI=()=>null,LI=()=>null;function oa(e,t){return FI()}function gg(e,t,n){return LI()}var yg=class{},tt$1=class tt{},ai$4=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>PI()}return e})();function PI(){let e=b(),t=ne$3(),n=Be$2(t.index,e);return (kt$3(n)?n:e)[$$2]}var vg=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();function bg(e){return e.debugInfo?.className||e.type.name||null}var Qs={},ia=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function ad(e){return Eg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:false}function Dg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else {let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value);}}function Eg(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function xa(e,t,n){return e[t]=n}function jI(e,t){return e[t]}function Me$5(e,t,n){if(n===le$5)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function cd(e,t,n,r){let o=Me$5(e,t,n);return Me$5(e,t+1,r)||o}function _g(e,t,n,r,o){let i=cd(e,t,n,r);return Me$5(e,t+2,o)||i}function Yn$2(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&FE(o,i);let s=vt$6(e)?Be$2(e.index,t):t;sd(s,5);let a=t[ee$1],c=Rh(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Rh(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Rh(e,t,n,r){let o=_$1(null);try{return V$3(L$1.OutputStart,t,n),n(r)!==!1}catch(i){return dI(e,i),false}finally{V$3(L$1.OutputEnd,t,n),_$1(o);}}function ud(e,t,n,r,o,i,s,a){let c=Or(e),u=false,l=null;if(!r&&c&&(l=VI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Te$6(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!BI(i)){let m=r?v=>r(je$2(v[e.index])):e.index;Ig(m,t,n,i,a,f,false);}}return u}function BI(e){return e.startsWith("animation")||e.startsWith("transition")}function VI(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[Rr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Ig(e,t,n,r,o,i,s){let a=t.firstCreatePass?Eu(t):null,c=Du(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function kh(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,sa(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,sa(e,t,i,r,r,o)),c}function sa(e,t,n,r,o,i){let s=t[n],a=t[E$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);Ig(e.index,a,t,o,i,d,true);}function UI(){HI();}function HI(){let e=b(),t=H$1(),n=ne$3();if(t.firstCreatePass&&WI(t,n),n.controlDirectiveIndex===-1)return;nt$3("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new aa(e,t,n));}function $I(){zI();}function zI(){let e=b(),t=H$1(),n=jr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new aa(e,t,n));}var aa=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Te$6(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];kh(this.tNode,this.lView,r,t,Yn$2(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];kh(this.tNode,this.lView,r,n,Yn$2(this.tNode,this.lView,t));}listenToDom(t,n){ud(this.tNode,this.tView,this.lView,void 0,this.lView[$$2],t,n,Yn$2(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];Xn$2(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];Xn$2(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";fI(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=Oh(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=Oh(i.directive);s!==null&&r.push(...s);}}}return n}};function Oh(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function WI(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}GI(e,t);}function GI(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Fh(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Fh(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,m]=d;if(c>=f&&c<=m)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Fh(e,t){return qI(e,t)&&ZI(e,t+"Change")}function qI(e,t){return t in e.inputs}function ZI(e,t){return t in e.outputs}var ml=Symbol("BINDING");var rr$2=new y("");function ca(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=Ds(o,a);else if(i==2){let c=a,u=t[++s];r=Ds(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function _t$5(e,t=0){let n=b();if(n===null)return C$1(e,t);let r=ne$3();return dm(r,n,oe$2(e),t)}function YI(){let e="invalid";throw new Error(e)}function wg(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}XI(e,t,n,a,i,c,u);}i!==null&&r!==null&&KI(n,r,i);}function KI(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 g(-301,false);r.push(t[o],i);}}function QI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function XI(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&&Ke$3(f)&&(c=f,QI(e,n,p)),Ju(na(n,t),e,f.type);}ow(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=false,l=false,d=Qm(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Hr$1(n.mergedAttrs,f.hostAttrs),ew(e,n,t,d,f),rw(d,f,o),s!==null&&s.has(f)){let[v,D]=s.get(f);n.directiveToIndex.set(f.type,[d,v+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 m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}JI(e,n,i);}function JI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Lh(0,t,o,r),Lh(1,t,o,r),jh(t,r,false);else {let i=n.get(o);Ph(0,t,i,r),Ph(1,t,i,r),jh(t,r,true);}}}function Lh(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),Cg(t,i);}}function Ph(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),Cg(t,s);}}function Cg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function jh(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||zl(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 ew(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Xt$6(o.type)),s=new Kn$2(i,Ke$3(o),_t$5,null);e.blueprint[r]=s,n[r]=s,tw(e,t,r,Qm(e,n,o.hostVars,le$5),o);}function tw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;nw(s)!=a&&s.push(a),s.push(n,r,i);}}function nw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function rw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ke$3(t)&&(n[""]=e);}}function ow(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ld(e,t,n,r,o,i,s,a){let c=t[E$1],u=c.consts,l=Se$3(u,s),d=nr$1(c,e,n,r,l);return wg(c,t,d,Se$3(u,a),o),d.mergedAttrs=Hr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&ca(d,d.attrs,false),d.mergedAttrs!==null&&ca(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function dd(e,t){nm(e,t),mu(t)&&e.queries.elementEnd(t);}function iw(e,t,n,r,o,i){let s=t.consts,a=Se$3(s,o),c=nr$1(t,e,n,r,a);if(c.mergedAttrs=Hr$1(c.mergedAttrs,c.attrs),i!=null){let u=Se$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&ca(c,c.attrs,false),c.mergedAttrs!==null&&ca(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Tg=typeof ShadowRoot<"u",sw=typeof Document<"u";function aw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ca.SignalBased)!==0};return o&&(i.transform=o),i})}function cw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function uw(e,t,n){let r=t instanceof ae$3?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ia(n,r):n}function lw(e){let t=e.get(tt$1,null);if(t===null)throw new g(407,false);let n=e.get(vg,null),r=e.get(pt$4,null),o=e.get(Et$6,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function dw(e,t){let n=Sg(e);return Om(t,n,n==="svg"?gu:n==="math"?Pp:null)}function fw(e){if(e?.toLowerCase()==="script")throw new g(905,false)}function Sg(e){return (e.selectors[0][0]||"div").toLowerCase()}var Jn$2=class Jn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=aw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=cw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=S_(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V$3(L$1.DynamicComponentStart);let a=_$1(null);try{let c=this.componentDef,u=uw(c,o||this.ngModule,t),l=lw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(bg(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{_$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=pw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?tI(u,o,a.encapsulation,n):dw(a,u);fw(l?.tagName);let d=n.get(rr$2,null),p=hw(l,()=>n.get(O$1,null)??Em());d&&d.addHost(p);let f=s?.some(Bh)||i?.some(D=>typeof D!="function"&&D.bindings.some(Bh)),m=ed(null,c,null,512|Km(a),null,null,t,u,n,null,Tm(l,n,true));d&&Tg&&p instanceof ShadowRoot&&ks(m,()=>{d.removeHost(p);}),m[z$2]=l,Ps(m);let v=null;try{let D=ld(z$2,m,2,"#host",()=>c.directiveRegistry,!0,0);Pm(u,l,D),$r(l,m),Ta(c,m,D),Pl(c,D,m),dd(c,D),r!==void 0&&gw(D,this.ngContentSelectors,r),v=Be$2(D.index,m),m[ee$1]=v[ee$1],id(c,m,null);}catch(D){throw v!==null&&tl(v),tl(m),D}finally{V$3(L$1.DynamicComponentEnd),js();}return new ua(this.componentType,m,!!f)}};function pw(e,t,n,r){let o=e?["ng-version","22.0.8"]:M_(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ml].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[ml].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=Is(d);c.push(p);}return Jl(0,null,mw(i,s),1,a,c,null,null,null,[o],null)}function hw(e,t){let n=e.getRootNode?.();return sw&&n instanceof Document?n.head:n&&Tg&&n instanceof ShadowRoot?n:t().head}function mw(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 Bh(e){let t=e[ml].kind;return t==="input"||t==="twoWay"}var ua=class extends yg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=As(n[E$1],z$2),this.location=Zr$1(this._tNode,n),this.instance=Be$2(this._tNode.index,n)[ee$1],this.hostView=this.changeDetectorRef=new ln$4(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;Sa(r,o[E$1],o,t,n);this.previousInputValues.set(t,n);let s=Be$2(r.index,o);sd(s,1);}get injector(){return new cn$4(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function gw(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 Yr$1=(()=>{class e{static __NG_ELEMENT_ID__=yw}return e})();function yw(){let e=ne$3();return Mg(e,b())}var gl=class e extends Yr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return Zr$1(this._hostTNode,this._hostLView)}get injector(){return new cn$4(this._hostTNode,this._hostLView)}get parentInjector(){let t=kl(this._hostTNode,this._hostLView);if(im(t)){let n=ea(t,this._hostLView),r=Js(t),o=n[E$1].data[r+8];return new cn$4(o,n)}else return new cn$4(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=Vh(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Q$3}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=oa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Jn$2(Nt$7(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let R=this.parentInjector.get(ae$3,null);R&&(i=R);}let p=Nt$7(l.componentType??{}),f=oa(this._lContainer,p?.id??null),m=null,v=l.create(d,o,m,i,s,a);return this.insertImpl(v.hostView,c,zr(this._hostTNode,f)),v}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Bp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ie$2],u=new e(c,c[pe$2],c[ie$2]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return si$3(s,o,i,r),t.attachToViewContainerRef(),au(zu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Vh(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Qo(this._lContainer,n);r&&(Ro$1(zu(this._lContainer),n),Ia(r[E$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=Qo(this._lContainer,n);return r&&Ro$1(zu(this._lContainer),n)!=null?new ln$4(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Vh(e){return e[Fo]}function zu(e){return e[Fo]||(e[Fo]=[])}function Mg(e,t){let n,r=t[e.index];return Pe$4(r)?n=r:(n=fg(r,t,null,e),t[e.index]=n,td(t,n)),bw(n,t,e,r),new gl(n,e,t)}function vw(e,t){let n=e[$$2],r=n.createComment(""),o=Te$6(t,e),i=n.parentNode(o);return ra(n,i,r,n.nextSibling(o),false),r}var bw=_w;function _w(e,t,n,r){if(e[rn$4])return;let o;n.type&8?o=je$2(r):o=vw(t,n),e[rn$4]=o;}var yl=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},vl=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++)pd(t,n).matches!==null&&this.queries[n].setDirty();}},la=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Sw(t):this.predicate=t;}},bl=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);}},Dl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;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=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,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,Iw(n,i)),this.matchTNodeWithReadOption(t,n,Ks(n,t,i,false,false));}else r===Wr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ks(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ue$2||o===Yr$1||o===Wr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Ks(n,t,o,false,false);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 Iw(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 ww(e,t){return e.type&11?Zr$1(e,t):e.type&4?Ma(e,t):null}function Cw(e,t,n,r){return n===-1?ww(t,e):n===-2?Tw(e,t,r):Zo(e,e[E$1],n,t)}function Tw(e,t,n){if(n===ue$2)return Zr$1(t,e);if(n===Wr$1)return Ma(t,e);if(n===Yr$1)return Mg(t,e)}function xg(e,t,n,r){let o=t[mt$5].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(Cw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function El(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=xg(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=Q$3;d<l.length;d++){let p=l[d];p[nn$4]===p[ie$2]&&El(p[E$1],p,u,r);}if(l[Un$3]!==null){let d=l[Un$3];for(let p=0;p<d.length;p++){let f=d[p];El(f[E$1],f,u,r);}}}}}return r}function fd(e,t){return e[mt$5].queries[t].queryList}function Ag(e,t,n){let r=new Qn$2((n&4)===4);return Hp(e,t,r,r.destroy),(t[mt$5]??=new vl).queries.push(new yl(r))-1}function Ng(e,t,n){let r=H$1();return r.firstCreatePass&&(kg(r,new la(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Ag(r,b(),t)}function Rg(e,t,n,r){let o=H$1();if(o.firstCreatePass){let i=ne$3();kg(o,new la(t,n,r),i.index),Mw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Ag(o,b(),n)}function Sw(e){return e.split(",").map(t=>t.trim())}function kg(e,t,n){e.queries===null&&(e.queries=new bl),e.queries.track(new Dl(t,n));}function Mw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function pd(e,t){return e.queries.getByIndex(t)}function Og(e,t){let n=e[E$1],r=pd(n,t);return r.crossesNgTemplate?El(n,e,t,[]):xg(n,e,r,t)}function Fg(e,t,n){let r,o=Io$1(()=>{r._dirtyCounter();let i=xw(r,e);if(t&&i===void 0)throw new g(-951,false);return i});return r=o[J$1],r._dirtyCounter=Qe$3(0),r._flatValue=void 0,o}function hd(e){return Fg(true,false)}function md(e){return Fg(true,true)}function Lg(e,t){let n=e[J$1];n._lView=b(),n._queryIndex=t,n._queryList=fd(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function xw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$2]&4)return t?void 0:de$2;let o=fd(n,r),i=Og(n,r);return o.reset(i,mm),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Aa(e){return !!e&&typeof e.then=="function"}function gd(e){return !!e&&typeof e.subscribe=="function"}var er$1=class er{},Pg=class{};var da=class extends er$1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=_p(t);this._bootstrapComponents=g_(i.bootstrap),this._r3Injector=Fu(t,n,[{provide:er$1,useValue:this},...r],Ao$1(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);}},fa=class extends Pg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new da(this.moduleType,t,[])}};var Xo=class extends er$1{injector;instance=null;constructor(t){super();let n=new Fn$2([...t.providers,{provide:er$1,useValue:this}],t.parent||Ar(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function jg(e,t,n=null){return new Xo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var Aw=(()=>{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=uu(false,n.type),o=r.length>0?jg([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=M({token:e,providedIn:"environment",factory:()=>new e(C$1(ae$3))})}return e})();function xe$1(e){return ei$3(()=>{let t=Bg(e),n=P(I$2({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Fl.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Aw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||et$2.Emulated,styles:e.styles||de$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nt$3("NgStandalone"),Vg(n);let r=e.dependencies;return n.directiveDefs=Uh(r,Nw),n.pipeDefs=Uh(r,Ip),n.id=Ow(n),n})}function Nw(e){return Nt$7(e)||Is(e)}function he$2(e){return ei$3(()=>({type:e.type,bootstrap:e.bootstrap||de$2,declarations:e.declarations||de$2,imports:e.imports||de$2,exports:e.exports||de$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Rw(e,t){if(e==null)return en$3;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=Ca.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function kw(e){if(e==null)return en$3;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function rt$2(e){return ei$3(()=>{let t=Bg(e);return Vg(t),t})}function yd(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function Bg(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||en$3,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||de$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Rw(e.inputs,t),outputs:kw(e.outputs),debugInfo:null}}function Vg(e){e.features?.forEach(t=>t(e));}function Uh(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 Ow(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}var vd=new y("");function Fw(e){return Pn$2([{provide:vd,multi:true,useValue:e}])}var bd=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=h(vd,{optional:true})??[];injector=h(K$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nr(this.injector,o);if(Aa(i))n.push(i);else if(gd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function Lw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Pw(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=jw,n.hostDirectives=r?e.map(_l):[e]):r?n.hostDirectives.unshift(...e.map(_l)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function jw(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,Ug(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&Ke$3(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{Bw(s.declaredInputs,i.inputs);}),[t,r,o]}function Ug(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Hh(_l(s),t,n,r);}else Hh(o,t,n,r);}function Hh(e,t,n,r){let o=Is(e.directive);if(Ug(o,t,n,r),n.has(o)){let i=n.get(o);$h(i,e.inputs,"input"),$h(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function $h(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function _l(e){return typeof e=="function"?{directive:oe$2(e),inputs:{},outputs:{}}:{directive:oe$2(e.directive),inputs:zh(e.inputs),outputs:zh(e.outputs)}}function zh(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function Bw(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function Vw(e){return Object.getPrototypeOf(e.prototype).constructor}function Kr$1(e){let t=Vw(e.type),n=true,r=[e];for(;t;){let o;if(Ke$3(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new g(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Wu(e.inputs),s.declaredInputs=Wu(e.declaredInputs),s.outputs=Wu(e.outputs);let a=o.hostBindings;a&&Ww(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&$w(e,c),u&&zw(e,u),Uw(e,o),Ep(e.outputs,o.outputs),Ke$3(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===Kr$1&&(n=false);}}t=Object.getPrototypeOf(t);}Hw(r);}function Uw(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 Hw(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=Hr$1(o.hostAttrs,n=Hr$1(n,o.hostAttrs));}}function Wu(e){return e===en$3?{}:e===de$2?[]:e}function $w(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function zw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Ww(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Hg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Hr$1(e.mergedAttrs,e.attrs);let l=e.tView=Jl(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),zn$2(e,false);let c=qw(n,t);Bs()&&Ql(n,t,c,e),$r(c,t);let u=fg(c,t,c,e);t[r+z$2]=u,td(t,u);}function Gw(e,t,n,r,o,i,s,a,c,u,l){let d=n+z$2,p;return t.firstCreatePass?(p=nr$1(t,d,4,s||null,a||null),wg(t,e,p,Se$3(t.consts,u),nd),nm(t,p)):p=t.data[d],Hg(p,e,t,n,r,o,i,c),Or(p)&&Ta(t,e,p),u!=null&&oi$3(e,p,l),p}function Gr(e,t,n,r,o,i,s,a,c,u,l){let d=n+z$2,p;if(t.firstCreatePass){if(p=nr$1(t,d,4,s||null,a||null),u!=null){let f=Se$3(t.consts,u);p.localNames=[];for(let m=0;m<f.length;m+=2)p.localNames.push(f[m],-1);}}else p=t.data[d];return Hg(p,e,t,n,r,o,i,c),u!=null&&oi$3(e,p,l),p}function $g(e,t,n,r,o,i,s,a){let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gw(c,u,e,t,n,r,o,l,void 0,s,a),$g}function zg(e,t,n,r,o,i,s,a){let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,void 0,s,a),zg}var qw=Zw;function Zw(e,t,n,r){return Vo(true),t[$$2].createComment("")}var Wg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Dd=new y("");var Ed=new y("");function Gg(){Fc(()=>{let e="";throw new g(600,e)});}var Yw=10;var or$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=h(an$3);afterRenderManager=h(Ea);zonelessEnabled=h(Uo$1);rootEffectScheduler=h(Hs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new Z$2;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=h(Wn$3);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(A$1(n=>!n))}constructor(){h(Et$6,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=h(ae$3);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=K$3.NULL){return this._injector.get(j$1).run(()=>{if(V$3(L$1.BootstrapComponentStart),!this._injector.get(bd).done){let R="";throw new g(405,R)}let a=Nt$7(n),c=this._injector.get(er$1),u=new Jn$2(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Kw(r),f=l||u.selector,m=u.create(o,[],f,c.injector,d,p),v=m.location.nativeElement,D=m.injector.get(Dd,null);return D?.registerApplication(v),m.onDestroy(()=>{this.detachView(m.hostView),Go(this.components,m),D?.unregisterApplication(v);}),this._loadComponent(m),V$3(L$1.BootstrapComponentEnd,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V$3(L$1.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Da.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V$3(L$1.ChangeDetectionEnd),new g(101,false);let n=_$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,_$1(n),this.afterTick.next(),V$3(L$1.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tt$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Yw;){V$3(L$1.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V$3(L$1.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Po(o))continue;let i=r&&!this.zonelessEnabled?0:1;cg(o,i),n=true;}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})=>Po(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;Go(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(Ed,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>Go(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,false);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=F$2({token:e,factory:e.\u0275fac})}return e})();function Kw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Go(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function qg(e,t){let n=b(),r=on$4();if(Me$5(n,r,t)){let o=H$1(),i=jr();if(Sa(i,o,n,e,t))vt$6(i)&&tg(n,i.index);else {let a=Te$6(i,n);ng(n[$$2],a,null,i.value,e,t,null);}}return qg}function ir$1(e,t,n,r){let o=b(),i=on$4();if(Me$5(o,i,t)){H$1();let a=jr();uI(a,o,e,t,n,r);}return ir$1}var Il=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 Gu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Qw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){_$1(r);let u=t.length-1;for(_$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Gu(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),m=t[u],v=Gu(a,f,u,m,n);if(v!==0){v<0&&e.updateValue(a,m),a--,u--;continue}let D=n(s,l),R=n(a,f),te=n(s,d);if(Object.is(te,R)){let Re=n(u,m);Object.is(Re,D)?(e.swap(s,a),e.updateValue(a,m),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new pa,i??=Gh(e,s,a,n),wl(e,o,s,te))e.updateValue(s,d),s++,a++;else if(i.has(te))o.set(D,e.detach(s)),a--;else {let Re=e.create(s,t[s]);e.attach(s,Re),s++,a++;}}for(;s<=u;)Wh(e,o,n,s,t[s]),s++;}else if(t!=null){_$1(r);let u=t[Symbol.iterator]();_$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Gu(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new pa,i??=Gh(e,s,a,n);let m=n(s,p);if(wl(e,o,s,m))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(m))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let v=n(s,d);o.set(v,e.detach(s)),a--;}}}for(;!l.done;)Wh(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 wl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Wh(e,t,n,r,o){if(wl(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Gh(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 pa=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;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),true}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 ci$3(e,t,n,r,o,i,s,a){nt$3("NgControlFlow");let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,256,s,a),_d}function _d(e,t,n,r,o,i,s,a){nt$3("NgControlFlow");let c=b(),u=H$1(),l=Se$3(u.consts,i);return Gr(c,u,e,t,n,r,o,l,512,s,a),_d}function ui$2(e,t){nt$3("NgControlFlow");let n=b(),r=on$4(),o=n[r]!==le$5?n[r]:-1,i=o!==-1?ha(n,z$2+o):void 0,s=0;if(Me$5(n,r,e)){let a=_$1(null);try{if(i!==void 0&&hg(i,s),e!==-1){let c=z$2+e,u=ha(n,c),l=Ml(n[E$1],c),d=gg(u,l,n),p=ii$3(n,l,t,{dehydratedView:d});si$3(u,p,s,zr(l,d));}}finally{_$1(a);}}else if(i!==void 0){let a=pg(i,s);a!==void 0&&(a[ee$1]=t);}}var Cl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-Q$3}};function Xw(e){return e}function Jw(e,t){return t}var Tl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function eC(e,t,n,r,o,i,s,a,c,u,l,d,p){nt$3("NgControlFlow");let f=b(),m=H$1(),v=c!==void 0,D=b(),R=a?s.bind(D[be$3][ee$1]):s,te=new Tl(v,R);D[z$2+e]=te,Gr(f,m,e+1,t,n,r,o,Se$3(m.consts,i),256),v&&Gr(f,m,e+2,c,u,l,d,Se$3(m.consts,p),512);}var Sl=class extends Il{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-Q$3}at(t){return this.getLView(t)[ee$1].$implicit}attach(t,n){let r=n[jn$2];this.needsIndexUpdate||=t!==this.length,si$3(this.lContainer,n,t,zr(this.templateTNode,r)),nC(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,rC(this.lContainer,t),oC(this.lContainer,t)}create(t,n){let r=oa(this.lContainer,this.templateTNode.tView.ssrId);return ii$3(this.hostLView,this.templateTNode,new Cl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ia(t[E$1],t);}updateValue(t,n){this.getLView(t)[ee$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ee$1].$index=t;}getLView(t){return iC(this.lContainer,t)}};function tC(e){let t=_$1(null),n=Ve$3();try{let r=b(),o=r[E$1],i=r[n],s=n+1,a=ha(r,s);if(i.liveCollection===void 0){let u=Ml(o,s);i.liveCollection=new Sl(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Qw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=on$4(),l=c.length===0;if(Me$5(r,u,l)){let d=n+2,p=ha(r,d);if(l){let f=Ml(o,d),m=gg(p,f,r),v=ii$3(r,f,void 0,{dehydratedView:m});si$3(p,v,0,zr(f,m));}else o.firstUpdatePass&&kI(p),hg(p,0);}}}finally{_$1(t);}}function ha(e,t){return e[t]}function nC(e,t){if(e.length<=Q$3)return;let n=Q$3+t,r=e[n],o=r?r[yt$7]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[ht$3];F_(i,o),un$4.delete(r[gt$5]),o.detachedLeaveAnimationFns=void 0;}}function rC(e,t){if(e.length<=Q$3)return;let n=Q$3+t,r=e[n],o=r?r[yt$7]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function oC(e,t){return Qo(e,t)}function iC(e,t){return pg(e,t)}function Ml(e,t){return As(e,t)}function Zg(e,t,n){let r=b(),o=on$4();if(Me$5(r,o,t)){H$1();let s=jr();iI(s,r,e,t,r[$$2],n);}return Zg}function xl(e,t,n,r,o){Sa(t,e,n,o?"class":"style",r);}function ma(e,t,n,r){let o=b(),i=o[E$1],s=e+z$2,a=i.firstCreatePass?ld(s,o,2,t,nd,Os(),n,r):i.data[s];if(vt$6(a)){let c=o[Ye$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(bg(u),()=>(qh(e,t,o,a,r),ma))}}return qh(e,t,o,a,r),ma}function qh(e,t,n,r,o){if(rd(r,n,e,t,Kg),Or(r)){let i=n[E$1];Ta(i,n,r),Pl(i,r,n);}o!=null&&oi$3(n,r);}function Id(){let e=H$1(),t=ne$3(),n=od(t);return e.firstCreatePass&&dd(e,n),wu(n)&&Cu(),_u(),n.classesWithoutHost!=null&&yE(n)&&xl(e,n,b(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&vE(n)&&xl(e,n,b(),n.stylesWithoutHost,false),Id}function Yg(e,t,n,r){return ma(e,t,n,r),Id(),Yg}function dn$3(e,t,n,r){let o=b(),i=o[E$1],s=e+z$2,a=i.firstCreatePass?iw(s,i,2,t,n,r):i.data[s];return rd(a,o,e,t,Kg),r!=null&&oi$3(o,a),dn$3}function fn$5(){let e=ne$3(),t=od(e);return wu(t)&&Cu(),_u(),fn$5}function pn$4(e,t,n,r){return dn$3(e,t,n,r),fn$5(),pn$4}var Kg=(e,t,n,r,o)=>(Vo(true),Om(t[$$2],r,Ou()));function wd(e,t,n){let r=b(),o=r[E$1],i=e+z$2,s=o.firstCreatePass?ld(i,r,8,"ng-container",nd,Os(),t,n):o.data[i];if(rd(s,r,e,"ng-container",sC),Or(s)){let a=r[E$1];Ta(a,r,s),Pl(a,s,r);}return n!=null&&oi$3(r,s),wd}function Cd(){let e=H$1(),t=ne$3(),n=od(t);return e.firstCreatePass&&dd(e,n),Cd}function Qg(e,t,n){return wd(e,t,n),Cd(),Qg}var sC=(e,t,n,r,o)=>(Vo(true),u_(t[$$2],""));function aC(){return b()}function Xg(e,t,n){let r=b(),o=on$4();if(Me$5(r,o,t)){H$1();let s=jr();eg(s,r,e,t,r[$$2],n);}return Xg}var $o=void 0;function cC(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var uC=["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"]],$o,[["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"]],$o,[["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}",$o,$o,$o],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",cC],qo=Object.create(null);function Td(e,t,n){typeof t!="string"&&(n=t,t=e[X$1.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),qo[t]=e,n&&(qo[t][X$1.ExtraData]=n);}function Ae$4(e){let t=lC(e),n=Zh(t);if(n)return n;let r=t.split("-")[0];if(n=Zh(r),n)return n;if(r==="en")return uC;throw new g(701,false)}function Zh(e){if(!(e in qo)){let t=Fe$6.ng&&Fe$6.ng.common&&Fe$6.ng.common.locales&&Fe$6.ng.common.locales[e];return t!==void 0&&(qo[e]=t),t}return qo[e]}var X$1={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,ExtraData:21};function lC(e){return e.toLowerCase().replace(/_/g,"-")}var li$3="en-US";function Jg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function ey(e,t,n){let r=b(),o=H$1(),i=ne$3();return fC(o,r,r[$$2],i,e,t,n),ey}function ty(e,t,n){let r=b(),o=H$1(),i=ne$3();return (i.type&3||n)&&ud(i,o,r,n,r[$$2],e,t,Yn$2(i,r,t)),ty}function fC(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Yn$2(r,t,i),ud(r,e,t,s,n,o,i,c)&&(a=false)),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??=Yn$2(r,t,i),sa(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Yn$2(r,t,i),sa(r,t,d,o,o,c);}}function pC(e=1){return nh(e)}function hC(e,t){let n=null,r=__(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Hm(e,i,true):C_(r,i))return o}return n}function sr$1(e){let t=b()[be$3][pe$2];if(!t.projection){let n=e?e.length:1,r=t.projection=xp(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?hC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function ot$3(e,t=0,n,r,o,i){let s=b(),a=H$1(),c=r?e+1:null;c!==null&&Gr(s,a,c,r,o,i,null,n);let u=nr$1(a,z$2+e,16,null,n||null);u.projection===null&&(u.projection=t),Mu();let d=!s[jn$2]||Iu();s[be$3][pe$2].projection[u.projection]===null&&c!==null?mC(s,a,c):d&&!va(u)&&Y_(a,s,u);}function mC(e,t,n){let r=z$2+n,o=t.data[r],i=e[r],s=oa(i,o.tView.ssrId),a=ii$3(e,o,void 0,{dehydratedView:s});si$3(i,a,0,zr(o,s));}function ny(e,t,n,r){return Rg(e,t,n,r),ny}function ry(e,t,n){return Ng(e,t,n),ry}function gC(e){let t=b(),n=H$1(),r=Ls();Bo(r+1);let o=pd(n,r);if(e.dirty&&jp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Og(t,r);e.reset(i,mm),e.notifyOnChanges();}return true}return false}function yC(){return fd(b(),Ls())}function oy(e,t,n,r,o){return Lg(t,Rg(e,n,r,o)),oy}function iy(e,t,n,r){return Lg(e,Ng(t,n,r)),iy}function vC(e=1){Bo(Ls()+e);}function bC(e){let t=xu();return Lr(t,z$2+e)}function qs(e,t){return e<<17|t<<2}function tr$1(e){return e>>17&32767}function DC(e){return (e&2)==2}function EC(e,t){return e&131071|t<<17}function Al(e){return e|2}function qr(e){return (e&131068)>>2}function qu(e,t){return e&-131069|t<<2}function _C(e){return (e&1)===1}function Nl(e){return e|1}function IC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=tr$1(s),c=qr(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Mr(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=tr$1(e[a+1]);e[r+1]=qs(p,a),p!==0&&(e[p+1]=qu(e[p+1],r)),e[a+1]=EC(e[a+1],r);}else e[r+1]=qs(a,0),a!==0&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=qs(c,0),a===0?a=r:e[c+1]=qu(e[c+1],r),c=r;u&&(e[r+1]=Al(e[r+1])),Yh(e,l,r,true),Yh(e,l,r,false),wC(t,l,e,r,i),s=qs(a,c),i?t.classBindings=s:t.styleBindings=s;}function wC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Mr(i,t)>=0&&(n[r+1]=Nl(n[r+1]));}function Yh(e,t,n,r){let o=e[n+1],i=t===null,s=r?tr$1(o):qr(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];CC(c,t)&&(a=true,e[s+1]=r?Nl(u):Al(u)),s=r?tr$1(u):qr(u);}a&&(e[n+1]=r?Al(o):Nl(o));}function CC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Mr(e,t)>=0:false}var Je$3={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TC(e){return e.substring(Je$3.key,Je$3.keyEnd)}function SC(e){return MC(e),sy(e,ay(e,0,Je$3.textEnd))}function sy(e,t){let n=Je$3.textEnd;return n===t?-1:(t=Je$3.keyEnd=xC(e,Je$3.key=t,n),ay(e,t,n))}function MC(e){Je$3.key=0,Je$3.keyEnd=0,Je$3.value=0,Je$3.valueEnd=0,Je$3.textEnd=e.length;}function ay(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function xC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function cy(e,t,n){return uy(e,t,n,false),cy}function It$7(e,t){return uy(e,t,null,true),It$7}function di$3(e){NC(PC,AC,e,true);}function AC(e,t){for(let n=SC(t);n>=0;n=sy(t,n))Ss(e,TC(t),true);}function uy(e,t,n,r){let o=b(),i=H$1(),s=jo(2);if(i.firstUpdatePass&&dy(i,e,s,r),t!==le$5&&Me$5(o,s,t)){let a=i.data[Ve$3()];fy(i,a,o,o[$$2],e,o[s+1]=BC(t,n),r,s);}}function NC(e,t,n,r){let o=H$1(),i=jo(2);o.firstUpdatePass&&dy(o,null,i,r);let s=b();if(n!==le$5&&Me$5(s,i,n)){let a=o.data[Ve$3()];if(py(a,r)&&!ly(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Ds(c,n||"")),xl(o,a,s,n,r);}else jC(o,a,s,s[$$2],s[i+1],s[i+1]=LC(e,t,n),r,i);}}function ly(e,t){return t>=e.expandoStartIndex}function dy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ve$3()],s=ly(e,n);py(i,r)&&t===null&&!s&&(t=false),t=RC(o,i,t,r),IC(o,i,t,n,s,r);}}function RC(e,t,n,r){let o=Xp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Zu(null,e,t,n,r),n=Jo(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Zu(o,e,t,n,r),i===null){let c=kC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Zu(null,e,t,c[1],r),c=Jo(c,t.attrs,r),OC(e,t,r,c));}else i=FC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function kC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(qr(r)!==0)return e[tr$1(r)]}function OC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[tr$1(o)]=r;}function FC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Jo(r,s,n);}return Jo(r,t.attrs,n)}function Zu(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=Jo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Jo(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]),Ss(e,s,n?true:t[++i]));}return e===void 0?null:e}function LC(e,t,n){if(n==null||n==="")return de$2;let r=[],o=He$5(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function PC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ss(e,r,n);}function jC(e,t,n,r,o,i,s,a){o===le$5&&(o=de$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,m=null,v;l===d?(c+=2,u+=2,p!==f&&(m=d,v=f)):d===null||l!==null&&l<d?(c+=2,m=l):(u+=2,m=d,v=f),m!==null&&fy(e,t,n,r,m,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function fy(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=_C(u)?Kh(c,t,n,o,qr(u),s):void 0;if(!ga(l)){ga(i)||DC(u)&&(i=Kh(c,null,n,o,a,s));let d=yu(Ve$3(),n);Q_(r,s,d,o,i);}}function Kh(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===le$5&&(p=d?de$2:void 0);let f=d?Ms(p,r):l===r?p:void 0;if(u&&!ga(f)&&(f=Ms(c,r)),ga(f)&&(a=f,s))return a;let m=e[o+1];o=s?tr$1(m):qr(m);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ms(c,r));}return a}function ga(e){return e!==void 0}function BC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ao$1(He$5(e)))),e}function py(e,t){return (e.flags&(t?8:16))!==0}function VC(e,t=""){let n=b(),r=H$1(),o=e+z$2,i=r.firstCreatePass?nr$1(r,o,1,t,null):r.data[o],s=UC(r,n,i,t);n[o]=s,Bs()&&Ql(r,n,s,i),zn$2(i,false);}var UC=(e,t,n,r)=>(Vo(true),a_(t[$$2],r));function HC(e,t,n,r=""){return Me$5(e,on$4(),n)?t+Rt$5(n)+r:le$5}function $C(e,t,n,r,o,i=""){let s=Nu(),a=cd(e,s,n,o);return jo(2),a?t+Rt$5(n)+r+Rt$5(o)+i:le$5}function zC(e,t,n,r,o,i,s,a=""){let c=Nu(),u=_g(e,c,n,o,s);return jo(3),u?t+Rt$5(n)+r+Rt$5(o)+i+Rt$5(s)+a:le$5}function hy(e){return Sd("",e),hy}function Sd(e,t,n){let r=b(),o=HC(r,e,t,n);return o!==le$5&&Md(r,Ve$3(),o),Sd}function my(e,t,n,r,o){let i=b(),s=$C(i,e,t,n,r,o);return s!==le$5&&Md(i,Ve$3(),s),my}function gy(e,t,n,r,o,i,s){let a=b(),c=zC(a,e,t,n,r,o,i,s);return c!==le$5&&Md(a,Ve$3(),c),gy}function Md(e,t,n){let r=yu(t,e);c_(e[$$2],r,n);}var yy={};function vy(e){nt$3("NgLet");let t=H$1(),n=b(),r=e+z$2,o=nr$1(t,r,128,null,null);return zn$2(o,false),Lo(t,n,r,yy),vy}function WC(e){let t=H$1(),n=b(),r=Ve$3();return Lo(t,n,r,e),e}function GC(e){let t=xu(),n=Lr(t,z$2+e);if(n===yy)throw new g(314,false);return n}function Qh(e,t,n){let r=H$1();r.firstCreatePass&&by(t,r.data,r.blueprint,Ke$3(e),n);}function by(e,t,n,r,o){if(e=oe$2(e),Array.isArray(e))for(let i=0;i<e.length;i++)by(e[i],t,n,r,o);else {let i=H$1(),s=b(),a=ne$3(),c=On$2(e)?e:oe$2(e.provide),u=du(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(On$2(e)||!e.multi){let f=new Kn$2(u,o,_t$5,null),m=Ku(c,t,l+p,d);m===-1?(Ju(na(a,s),i,c),Yu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[m]=f,s[m]=f);}else {let f=Ku(c,t,l+p,d),m=Ku(c,t,l,l+p),v=f>=0&&n[f],D=m>=0&&n[m];if(!v){Ju(na(a,s),i,c);let R=YC(qC,n.length,o,r,u);D&&(n[m].providerFactory=R),Yu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(R),s.push(R);}else {let R=Dy(n[f],u,r);Yu(i,e,f>-1?f:m,R);}r&&D&&n[m].componentProviders++;}}}function Yu(e,t,n,r){let o=On$2(t),i=Op(t);if(o||i){let c=(i?oe$2(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 Dy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ku(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function qC(e,t,n,r,o){return Rl(this.multi,[])}function Rl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function YC(e,t,n,r,o,i){let s=new Kn$2(e,n,_t$5,null);return s.multi=[],s.index=t,s.componentProviders=0,Dy(s,o,r&&!n),s}function Ey(e,t){return n=>{n.providersResolver=(r,o)=>Qh(r,o?o(e):e,false);}}function KC(e,t){let n=Pr()+e,r=b();return r[n]===le$5?xa(r,n,t()):jI(r,n)}function QC(e,t,n){return _y(b(),Pr(),e,t,n)}function xd(e,t){let n=e[t];return n===le$5?void 0:n}function _y(e,t,n,r,o,i){let s=t+n;return Me$5(e,s,o)?xa(e,s+1,i?r.call(i,o):r(o)):xd(e,s+1)}function XC(e,t,n,r,o,i,s){let a=t+n;return cd(e,a,o,i)?xa(e,a+2,s?r.call(s,o,i):r(o,i)):xd(e,a+2)}function JC(e,t,n,r,o,i,s,a){let c=t+n;return _g(e,c,o,i,s)?xa(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):xd(e,c+3)}function eT(e,t){let n=H$1(),r,o=e+z$2;n.firstCreatePass?(r=tT(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=Xt$6(r.type)),a=ve$4(_t$5);try{let c=ta(!1),u=i();return ta(c),Lo(n,b(),o,u),u}finally{ve$4(a);}}function tT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function nT(e,t,n){let r=e+z$2,o=b(),i=Lr(o,r);return Ad(o,r)?_y(o,Pr(),t,i.transform,n,i):i.transform(n)}function rT(e,t,n,r){let o=e+z$2,i=b(),s=Lr(i,o);return Ad(i,o)?XC(i,Pr(),t,s.transform,n,r,s):s.transform(n,r)}function oT(e,t,n,r,o){let i=e+z$2,s=b(),a=Lr(s,i);return Ad(s,i)?JC(s,Pr(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Ad(e,t){return e[E$1].data[t].pure}function iT(e,t){return Ma(e,t)}var Iy=(()=>{class e{applicationErrorHandler=h(an$3);appRef=h(or$1);taskService=h(Wn$3);ngZone=h(j$1);zonelessEnabled=h(Uo$1);tracing=h(Et$6,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new q$3;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Mo$1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(Vu,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;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=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3: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?ch:Lu;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(Mo$1+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=false,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=F$2({token:e,factory:e.\u0275fac})}return e})();function sT(){return nt$3("NgZoneless"),Pn$2([...Nd(),[]])}function Nd(){return [{provide:pt$4,useExisting:Iy},{provide:j$1,useClass:xo},{provide:Uo$1,useValue:true}]}var aT=(()=>{class e{compileModuleSync(n){return new fa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function cT(){return typeof $localize<"u"&&$localize.locale||li$3}var fi$2=new y("",{factory:()=>h(fi$2,{optional:true,skipSelf:true})||cT()});var Na=class{destroyed=false;listeners=null;errorHandler=h(fe$1,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=h(Ue$3);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new g(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(At$7(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=_$1(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&uT(this.listeners)),_$1(n),this.isEmitting=false;}}};function uT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function lT(e,t){return Io$1(e,t?.equal)}function pi$2(e){return gp(e)}var dT=e=>e;function fT(e,t){if(typeof e=="function"){let n=Vc(e,dT,t?.equal);return wy(n)}else {let n=Vc(e.source,e.computation,e.equal);return wy(n,e.debugName)}}function wy(e,t){let n=e[J$1],r=e;return r.set=o=>hp(n,o),r.update=o=>mp(n,o),r.asReadonly=Vs.bind(e),r}var Ry=Symbol("InputSignalNode#UNSET"),CT=P(I$2({},wo$1),{transformFn:void 0,applyValueToInputSignal(e,t){Nn$2(e,t);}});function ky(e,t){let n=Object.create(CT);n.value=e,n.transformFn=t?.transform;function r(){if(Yt$5(n),n.value===Ry){let o=null;throw new g(-950,o)}return n.value}return r[J$1]=n,r}var ka=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Ol(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}},fU=(()=>{let e=new y("");return e.__NG_ELEMENT_ID__=t=>{let n=ne$3();if(n===null)throw new g(-204,false);if(n.type&2)return n.value;if(t&8)return null;throw new g(-204,false)},e})();function pU(e){return TT(e)?e.default:e}function TT(e){return e&&typeof e=="object"&&"default"in e}function hU(e){return new Na}function Cy(e,t){return ky(e,t)}function ST(e){return ky(Ry,e)}var Oy=(Cy.required=ST,Cy);function Ty(e,t){return hd()}function MT(e,t){return md()}var mU=(Ty.required=MT,Ty);function Sy(e,t){return hd()}function xT(e,t){return md()}var gU=(Sy.required=xT,Sy);var kd=class{supports(t){return ad(t)}create(t){return new Od(t)}},NT=(e,t)=>t,Od=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||NT;}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n);}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<My(r,o,i)?n:r,a=My(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else {i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let f=p<i.length?i[p]:i[p]=0,m=f+p;l<=m&&m<u&&(i[p]=f+1);}let d=s.previousIndex;i[d]=l-u;}}a!==c&&t(s,a,c);}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n);}diff(t){if(t==null&&(t=[]),!ad(t))throw new g(900,false);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=false,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=true):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,Dg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=true):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++;}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Fd(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n;}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null);}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Oa),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Oa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Fd=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n;}},Ld=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t);}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Oa=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ld,this.map.set(n,r)),r.add(t);}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear();}};function My(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function xy(){return new Fy([new kd])}var Fy=(()=>{class e{factories;static \u0275prov=M({token:e,providedIn:"root",factory:xy});constructor(n){this.factories=n;}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=h(e,{optional:true,skipSelf:true});return e.create(n,r||xy())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,false)}}return e})();var Ly=(()=>{class e{static __NG_ELEMENT_ID__=RT}return e})();function RT(e){return kT(ne$3(),b(),(e&16)===16)}function kT(e,t,n){if(vt$6(e)&&!n){let r=Be$2(e.index,t);return new ln$4(r,r)}else if(e.type&175){let r=t[be$3];return new ln$4(r,t)}return null}var Pd=new y(""),OT=new y("");function hi$3(e){return !e.moduleRef}function FT(e){let t=hi$3(e)?e.r3Injector:e.moduleRef.injector,n=t.get(j$1);return n.run(()=>{hi$3(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(an$3),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),hi$3(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Pd);s.add(i),e.moduleRef.onDestroy(()=>{Go(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return PT(r,n,()=>{let i=t.get(Wn$3),s=i.add(),a=t.get(bd);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(fi$2,li$3);if(Jg(c||li$3),!t.get(OT,!0))return hi$3(e)?t.get(or$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(hi$3(e)){let l=t.get(or$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return LT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var LT;function PT(e,t,n){try{let r=n();return Aa(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Ra=null;function jT(e=[],t){return K$3.create({name:t,providers:[{provide:Oo$1,useValue:"platform"},{provide:Pd,useValue:new Set([()=>Ra=null])},...e]})}function BT(e=[]){if(Ra)return Ra;let t=jT(e);return Ra=t,Gg(),VT(t),t}function VT(e){let t=e.get(Us,null);Nr(e,()=>{t?.forEach(n=>n());});}function Py(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V$3(L$1.BootstrapApplicationStart);try{let i=o?.injector??BT(r),s=[Nd(),lh,...n||[]],a=new Xo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return FT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V$3(L$1.BootstrapApplicationEnd);}}function wt$6(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Bd(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Rd=Symbol("NOT_SET"),jy=new Set,UT=P(I$2({},wo$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Rd,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==Rd&&!Ir(this))return this.signal;try{for(let o of this.cleanup??jy)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=St$5(this),r;try{r=this.userFn.apply(null,t);}finally{Kt$3(this,n);}return (this.value===Rd||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),jd=class extends Yo{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(Ue$3),s),this.scheduler=o;for(let a of Gl){let c=n[a];if(c===void 0)continue;let u=Object.create(UT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Yt$5(u),u.value),u.signal[J$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??jy)n();}finally{Qt$3(t);}}};function vU(e,t){let n=h(K$3),r=n.get(pt$4),o=n.get(Ea),i=n.get(Et$6,null,{optional:true});o.impl??=n.get(ql);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Br,null,{optional:true}),c=new jd(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function By(e,t){let n=Nt$7(e),r=t.elementInjector||Ar();return new Jn$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function bU(e){let t=Nt$7(e);if(!t)return null;let n=new Jn$2(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Vy=null;function jt$3(){return Vy}function Vd(e){Vy??=e;}var mi$2=class mi{},Qr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(Uy),providedIn:"platform"})}return e})();var Uy=(()=>{class e extends Qr$1{_location;_history;_doc=h(O$1);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return jt$3().getBaseHref(this._doc)}onPopState(n){let r=jt$3().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=jt$3().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>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=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function zy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Hy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function hn$4(e){return e&&e[0]!=="?"?`?${e}`:e}var Fa=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h($T),providedIn:"root"})}return e})(),HT=new y(""),$T=(()=>{class e extends Fa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(O$1).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 zy(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+hn$4(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+hn$4(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+hn$4(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)(C$1(Qr$1),C$1(HT,8))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Wy=(()=>{class e{_subject=new Z$2;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=GT(Hy($y(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+hn$4(r))}normalize(n){return e.stripTrailingSlash(WT(this._basePath,$y(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+hn$4(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn$4(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=hn$4;static joinWithSlash=zy;static stripTrailingSlash=Hy;static \u0275fac=function(r){return new(r||e)(C$1(Fa))};static \u0275prov=M({token:e,factory:()=>zT(),providedIn:"root"})}return e})();function zT(){return new Wy(C$1(Fa))}function WT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function $y(e){return e.replace(/\/index\.html$/,"")}function GT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var me$4=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(me$4||{}),G$4=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(G$4||{}),_e$3=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(_e$3||{}),Vt$6={MinusSign:5};function qy(e){return Ae$4(e)[X$1.LocaleId]}function Zy(e,t,n){let r=Ae$4(e),o=[r[X$1.DayPeriodsFormat],r[X$1.DayPeriodsStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Yy(e,t,n){let r=Ae$4(e),o=[r[X$1.DaysFormat],r[X$1.DaysStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Ky(e,t,n){let r=Ae$4(e),o=[r[X$1.MonthsFormat],r[X$1.MonthsStandalone]],i=$e$4(o,t);return $e$4(i,n)}function Qy(e,t){let r=Ae$4(e)[X$1.Eras];return $e$4(r,t)}function gi$2(e,t){let n=Ae$4(e);return $e$4(n[X$1.DateFormat],t)}function yi$2(e,t){let n=Ae$4(e);return $e$4(n[X$1.TimeFormat],t)}function vi$2(e,t){let r=Ae$4(e)[X$1.DateTimeFormat];return $e$4(r,t)}function bi$2(e,t){let n=Ae$4(e),r=n[X$1.NumberSymbols][t];return r}function Xy(e){if(!e[X$1.ExtraData])throw new g(2303,false)}function Jy(e){let t=Ae$4(e);return Xy(t),(t[X$1.ExtraData][2]||[]).map(r=>typeof r=="string"?Ud(r):[Ud(r[0]),Ud(r[1])])}function ev(e,t,n){let r=Ae$4(e);Xy(r);let o=[r[X$1.ExtraData][0],r[X$1.ExtraData][1]],i=$e$4(o,t)||[];return $e$4(i,n)||[]}function $e$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new g(2304,false)}function Ud(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var qT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,La=Object.create(null),ZT=/((?:[^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]*)/,YT=256;function tv(e,t,n,r){let o=iS(e);KT(t),t=Bt$6(n,t)||t;let s=[],a;for(;t;)if(a=ZT.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=rv(r,c),o=oS(o,r));let u="";return s.forEach(l=>{let d=nS(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function KT(e){if(e.length>YT)throw new g(2300,false)}function Ua(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Bt$6(e,t){let n=qy(e);if(La[n]??=Object.create(null),La[n][t])return La[n][t];let r="";switch(t){case "shortDate":r=gi$2(e,_e$3.Short);break;case "mediumDate":r=gi$2(e,_e$3.Medium);break;case "longDate":r=gi$2(e,_e$3.Long);break;case "fullDate":r=gi$2(e,_e$3.Full);break;case "shortTime":r=yi$2(e,_e$3.Short);break;case "mediumTime":r=yi$2(e,_e$3.Medium);break;case "longTime":r=yi$2(e,_e$3.Long);break;case "fullTime":r=yi$2(e,_e$3.Full);break;case "short":let o=Bt$6(e,"shortTime"),i=Bt$6(e,"shortDate");r=Pa(vi$2(e,_e$3.Short),[o,i]);break;case "medium":let s=Bt$6(e,"mediumTime"),a=Bt$6(e,"mediumDate");r=Pa(vi$2(e,_e$3.Medium),[s,a]);break;case "long":let c=Bt$6(e,"longTime"),u=Bt$6(e,"longDate");r=Pa(vi$2(e,_e$3.Long),[c,u]);break;case "full":let l=Bt$6(e,"fullTime"),d=Bt$6(e,"fullDate");r=Pa(vi$2(e,_e$3.Full),[l,d]);break}return r&&(La[n][t]=r),r}function Pa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function it$2(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 QT(e,t){return it$2(e,3).substring(0,t)}function re$2(e,t,n=0,r=false,o=false){return function(i,s){let a=XT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return QT(a,t);let c=bi$2(s,Vt$6.MinusSign);return it$2(a,t,c,r,o)}}function XT(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 g(2301,false)}}function Y$2(e,t,n=me$4.Format,r=false){return function(o,i){return JT(o,i,e,t,n,r)}}function JT(e,t,n,r,o,i){switch(n){case 2:return Ky(t,o,r)[e.getMonth()];case 1:return Yy(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Jy(t),l=ev(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,m]=p,v=s>=f.hours&&a>=f.minutes,D=s<m.hours||s===m.hours&&a<m.minutes;if(f.hours<m.hours){if(v&&D)return true}else if(v||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Zy(t,o,r)[s<12?0:1];case 3:return Qy(t,r)[e.getFullYear()<=0?0:1];default:throw new g(2302,false)}}function ja(e){return function(t,n,r){let o=-1*r,i=bi$2(n,Vt$6.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+it$2(s,2,i)+it$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+it$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+it$2(s,2,i)+":"+it$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+it$2(s,2,i)+":"+it$2(Math.abs(o%60),2,i);default:throw new g(2310,false)}}}var eS=0,Va=4;function tS(e){let t=Ua(e,eS,1).getDay();return Ua(e,0,1+(t<=Va?Va:Va+7)-t)}function nv(e){let t=e.getDay(),n=t===0?-3:Va-t;return Ua(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Hd(e,t=false){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=nv(n),s=tS(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return it$2(o,e,bi$2(r,Vt$6.MinusSign))}}function Ba(e,t=false){return function(n,r){let i=nv(n).getFullYear();return it$2(i,e,bi$2(r,Vt$6.MinusSign),t)}}var $d=Object.create(null);function nS(e){if($d[e])return $d[e];let t;switch(e){case "G":case "GG":case "GGG":t=Y$2(3,G$4.Abbreviated);break;case "GGGG":t=Y$2(3,G$4.Wide);break;case "GGGGG":t=Y$2(3,G$4.Narrow);break;case "y":t=re$2(0,1,0,false,true);break;case "yy":t=re$2(0,2,0,true,true);break;case "yyy":t=re$2(0,3,0,false,true);break;case "yyyy":t=re$2(0,4,0,false,true);break;case "Y":t=Ba(1);break;case "YY":t=Ba(2,true);break;case "YYY":t=Ba(3);break;case "YYYY":t=Ba(4);break;case "M":case "L":t=re$2(1,1,1);break;case "MM":case "LL":t=re$2(1,2,1);break;case "MMM":t=Y$2(2,G$4.Abbreviated);break;case "MMMM":t=Y$2(2,G$4.Wide);break;case "MMMMM":t=Y$2(2,G$4.Narrow);break;case "LLL":t=Y$2(2,G$4.Abbreviated,me$4.Standalone);break;case "LLLL":t=Y$2(2,G$4.Wide,me$4.Standalone);break;case "LLLLL":t=Y$2(2,G$4.Narrow,me$4.Standalone);break;case "w":t=Hd(1);break;case "ww":t=Hd(2);break;case "W":t=Hd(1,true);break;case "d":t=re$2(2,1);break;case "dd":t=re$2(2,2);break;case "c":case "cc":t=re$2(7,1);break;case "ccc":t=Y$2(1,G$4.Abbreviated,me$4.Standalone);break;case "cccc":t=Y$2(1,G$4.Wide,me$4.Standalone);break;case "ccccc":t=Y$2(1,G$4.Narrow,me$4.Standalone);break;case "cccccc":t=Y$2(1,G$4.Short,me$4.Standalone);break;case "E":case "EE":case "EEE":t=Y$2(1,G$4.Abbreviated);break;case "EEEE":t=Y$2(1,G$4.Wide);break;case "EEEEE":t=Y$2(1,G$4.Narrow);break;case "EEEEEE":t=Y$2(1,G$4.Short);break;case "a":case "aa":case "aaa":t=Y$2(0,G$4.Abbreviated);break;case "aaaa":t=Y$2(0,G$4.Wide);break;case "aaaaa":t=Y$2(0,G$4.Narrow);break;case "b":case "bb":case "bbb":t=Y$2(0,G$4.Abbreviated,me$4.Standalone,true);break;case "bbbb":t=Y$2(0,G$4.Wide,me$4.Standalone,true);break;case "bbbbb":t=Y$2(0,G$4.Narrow,me$4.Standalone,true);break;case "B":case "BB":case "BBB":t=Y$2(0,G$4.Abbreviated,me$4.Format,true);break;case "BBBB":t=Y$2(0,G$4.Wide,me$4.Format,true);break;case "BBBBB":t=Y$2(0,G$4.Narrow,me$4.Format,true);break;case "h":t=re$2(3,1,-12);break;case "hh":t=re$2(3,2,-12);break;case "H":t=re$2(3,1);break;case "HH":t=re$2(3,2);break;case "m":t=re$2(4,1);break;case "mm":t=re$2(4,2);break;case "s":t=re$2(5,1);break;case "ss":t=re$2(5,2);break;case "S":t=re$2(6,1);break;case "SS":t=re$2(6,2);break;case "SSS":t=re$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=ja(0);break;case "ZZZZZ":t=ja(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=ja(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=ja(2);break;default:return null}return $d[e]=t,t}function rv(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function rS(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function oS(e,t,n){let o=e.getTimezoneOffset(),i=rv(t,o);return rS(e,-1*(i-o))}function iS(e){if(Gy(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 Ua(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(qT))return sS(r)}let t=new Date(e);if(!Gy(t))throw new g(2311,false);return t}function sS(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 Gy(e){return e instanceof Date&&!isNaN(e.valueOf())}var aS=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=h(K$3);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(_t$5(Yr$1))};static \u0275dir=rt$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ya]})}return e})();function cS(e,t){return new g(2100,false)}var uS="mediumDate",ov=new y(""),iv=new y(""),lS=(()=>{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??uS,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return tv(n,s,i||this.locale,a)}catch(s){throw cS(e,s.message)}}static \u0275fac=function(r){return new(r||e)(_t$5(fi$2,16),_t$5(ov,24),_t$5(iv,24))};static \u0275pipe=yd({name:"date",type:e,pure:true})}return e})();function Di$2(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}function WH(e,t,n){return Td(e,t,n)}var zd="browser";function sv(e){return e===zd}var Ei$2=class Ei{_doc;constructor(t){this._doc=t;}manager},Ha=(()=>{class e extends Ei$2{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Wa=new y(""),Zd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Ha));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ha);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new g(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C$1(Wa),C$1(j$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Wd="ng-app-id";function av(e){for(let t of e)t.remove();}function cv(e,t){let n=t.createElement("style");return n.textContent=e,n}function hS(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Wd}="${t}"],link[${Wd}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Wd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return true}function qd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Yd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,hS(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,cv);r?.forEach(o=>this.addUsage(o,this.external,qd));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(av(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])av(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,cv(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,qd(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C$1(O$1),C$1(Ot$3),C$1(qn$2,8),C$1(Gn$2))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Gd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Kd=/%COMP%/g;var lv="%COMP%",mS=`_nghost-${lv}`,gS=`_ngcontent-${lv}`,yS=true,vS=new y("",{factory:()=>yS});function bS(e){return gS.replace(Kd,e)}function DS(e){return mS.replace(Kd,e)}function dv(e,t){return t.map(n=>n.replace(Kd,e))}var Qd=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new _i$2(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof za?o.applyToHost(n):o instanceof Ii$2&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case et$2.Emulated:i=new za(c,u,r,this.appId,l,s,a,d);break;case et$2.ShadowDom:return new $a(c,n,r,s,a,this.nonce,d,u);case et$2.ExperimentalIsolatedShadowDom:return new $a(c,n,r,s,a,this.nonce,d);default:i=new Ii$2(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(C$1(Zd),C$1(rr$2),C$1(Ot$3),C$1(vS),C$1(O$1),C$1(j$1),C$1(qn$2),C$1(Et$6,8))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),_i$2=class _i{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Gd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(uv(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(uv(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,false);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Gd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Gd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`);}else t.removeAttribute(n);}addClass(t,n){t.classList.add(n);}removeClass(t,n){t.classList.remove(n);}setStyle(t,n,r,o){o&(Dt$4.DashCase|Dt$4.Important)?t.style.setProperty(n,r,o&Dt$4.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Dt$4.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=jt$3().getGlobalEventTarget(this.doc,t),!t))throw new g(-5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function uv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var $a=class extends _i$2{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=dv(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=qd(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ii$2=class Ii extends _i$2{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?dv(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&un$4.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},za=class extends Ii$2{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=bS(u),this.hostAttr=DS(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ga=class e extends mi$2{supportsDOMEvents=true;static makeCurrent(){Vd(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=ES();return n==null?null:_S(n)}resetBaseElement(){wi$2=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Di$2(document.cookie,t)}},wi$2=null;function ES(){return wi$2=wi$2||document.head.querySelector("base"),wi$2?wi$2.getAttribute("href"):null}function _S(e){return new URL(e,document.baseURI).pathname}var fv=["alt","control","meta","shift"],IS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},pv=(()=>{class e extends Ei$2{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jt$3().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),fv.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=IS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),fv.forEach(s=>{if(s!==o){let a=wS[s];a(n)&&(i+=s+".");}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i));}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();async function CS(e,t,n){let r=I$2({rootComponent:e},TS(t,n));return Py(r)}function TS(e,t){return {platformRef:t?.platformRef,appProviders:[...NS,...e?.providers??[]],platformProviders:AS}}function SS(){Ga.makeCurrent();}function MS(){return new fe$1}function xS(){return Ll(document),document}var AS=[{provide:Gn$2,useValue:zd},{provide:Us,useValue:SS,multi:true},{provide:O$1,useFactory:xS}];var NS=[{provide:Oo$1,useValue:"root"},{provide:fe$1,useFactory:MS},{provide:Wa,useClass:Ha,multi:true},{provide:Wa,useClass:pv,multi:true},Qd,{provide:rr$2,useClass:Yd},{provide:Yd,useExisting:rr$2},Zd,{provide:tt$1,useExisting:Qd},[]];var ge$3=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var Za=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ya=class{encodeKey(t){return hv(t)}encodeValue(t){return hv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function RS(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c);}),n}var kS=/%(\d[a-f0-9])/gi,OS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hv(e){return encodeURIComponent(e).replace(kS,(t,n)=>OS[n]??t)}function qa(e){return `${e}`}var Ie$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ya,t.fromString){if(t.fromObject)throw new g(2805,false);this.map=RS(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(qa):[qa(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"});}):n.push({param:r,value:o,op:"a"});}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(qa(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(qa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function FS(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function mv(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function gv(e){return typeof Blob<"u"&&e instanceof Blob}function yv(e){return typeof FormData<"u"&&e instanceof FormData}function LS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Xd="Content-Type",vv="Accept",Dv="text/plain",Ev="application/json",PS=`${Ev}, ${Dv}, */*`,Xr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(FS(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new g(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new ge$3,this.context??=new Za,!this.params)this.params=new Ie$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||mv(this.body)||gv(this.body)||yv(this.body)||LS(this.body)?this.body:this.body instanceof Ie$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||yv(this.body)?null:gv(this.body)?this.body.type||null:mv(this.body)?null:typeof this.body=="string"?Dv:this.body instanceof Ie$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ev:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,m=t.transferCache??this.transferCache,v=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,R=t.withCredentials??this.withCredentials,te=t.reportProgress??this.reportProgress,Re=t.reportUploadProgress??this.reportUploadProgress,dr=t.reportDownloadProgress??this.reportDownloadProgress,uo=t.headers||this.headers,yn=t.params||this.params,Oi=t.context??this.context;return t.setHeaders!==void 0&&(uo=Object.keys(t.setHeaders).reduce((fr,vn)=>fr.set(vn,t.setHeaders[vn]),uo)),t.setParams&&(yn=Object.keys(t.setParams).reduce((fr,vn)=>fr.set(vn,t.setParams[vn]),yn)),new e(n,r,D,{params:yn,headers:uo,context:Oi,reportProgress:te,reportUploadProgress:Re,reportDownloadProgress:dr,responseType:o,withCredentials:R,transferCache:m,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Jr$1=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Jr$1||{}),eo$1=class eo{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new ge$3,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},Ka=class e extends eo$1{constructor(t={}){super(t);}type=Jr$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ci$2=class e extends eo$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Jr$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Ut$2=class Ut extends eo$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},jS=200;var BS=/^\)\]\}',?\n/,_v=new y("",{factory:()=>null}),Qa=(()=>{class e{fetchImpl=h(ef,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=h(j$1);destroyRef=h(Ue$3);maxResponseSize=h(_v);handle(n){return new k$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(tf,s=>r.error(new Ut$2({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,I$2({signal:r},i)));VS(D),o.next({type:Jr$1.Sent}),s=await D;}catch(D){o.error(new Ut$2({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new ge$3(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new Ka({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),R=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(R)&&R>this.maxResponseSize&&bv(this.maxResponseSize);let te=[],Re=s.body.getReader(),dr=0,uo,yn,Oi=typeof Zone<"u"&&Zone.current,fr=false;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await Re.cancel(),fr=true;break}let{done:lo,value:dc}=await Re.read();if(lo)break;if(te.push(dc),dr+=dc.length,this.maxResponseSize!==null&&dr>this.maxResponseSize&&(await Re.cancel(),bv(this.maxResponseSize)),p){yn=n.responseType==="text"?(yn??"")+(uo??=new TextDecoder).decode(dc,{stream:true}):void 0;let wf=()=>o.next({type:Jr$1.DownloadProgress,total:Number.isFinite(R)?R:void 0,loaded:dr,partialText:yn});Oi?Oi.run(wf):wf();}}}),fr){o.complete();return}let vn=this.concatChunks(te,dr);try{let lo=s.headers.get(Xd)??"";d=this.parseBody(n,vn,lo,l);}catch(lo){o.error(new Ut$2({error:lo,headers:new ge$3(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?jS:0);let f=l>=200&&l<300,m=s.redirected,v=s.type;f?(o.next(new Ci$2({body:d,headers:a,status:l,statusText:c,url:u,redirected:m,responseType:v})),o.complete()):o.error(new Ut$2({error:d,headers:a,status:l,statusText:c,url:u,redirected:m,responseType:v}));}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(BS,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new g(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(vv)||(r[vv]=PS),!n.headers.has(Xd)){let i=n.detectContentTypeHeader();i!==null&&(r[Xd]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),ef=class{};function tf(){}function VS(e){e.then(tf,tf);}function bv(e){throw new g(-2825,false)}function US(e,t){return t(e)}function HS(e,t,n){return (r,o)=>Nr(n,()=>t(r,i=>e(i,o)))}var Iv=new y("",{factory:()=>[]}),wv=new y(""),Cv=new y("",{factory:()=>true});var nf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(Qa),o},providedIn:"root"})}return e})();var Xa=(()=>{class e{backend;injector;chain=null;pendingTasks=h(Ho);contributeToStability=h(Cv);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Iv),...this.injector.get(wv,[])]));this.chain=o.reduceRight((i,s)=>HS(i,s,this.injector),US);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return pi$2(()=>r(n,i=>this.backend.handle(i))).pipe(yr(o))}else return pi$2(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(C$1(nf),C$1(ae$3))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(Xa),o},providedIn:"root"})}return e})();function Jd(e,t){return I$2({body:t},e)}var to$1=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Xr$1)i=n;else {let c;o.headers instanceof ge$3?c=o.headers:c=new ge$3(o.headers);let u;o.params&&(o.params instanceof Ie$3?u=o.params:u=new Ie$3({fromObject:o.params})),i=new Xr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=qe$3(i).pipe(Tc(c=>this.handler.handle(c)));if(n instanceof Xr$1||o.observe==="events")return s;let a=s.pipe(Tt$6(c=>c instanceof Ci$2));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(A$1(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new g(2806,false);return c.body}));case "blob":return a.pipe(A$1(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new g(2807,false);return c.body}));case "text":return a.pipe(A$1(c=>{if(c.body!==null&&typeof c.body!="string")throw new g(2808,false);return c.body}));default:return a.pipe(A$1(c=>c.body))}case "response":return a;default:throw new g(2809,false)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ie$3().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Jd(o,r))}post(n,r,o={}){return this.request("POST",n,Jd(o,r))}put(n,r,o={}){return this.request("PUT",n,Jd(o,r))}static \u0275fac=function(r){return new(r||e)(C$1(rf))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $S=new y("",{factory:()=>true}),zS="XSRF-TOKEN",WS=new y("",{factory:()=>zS}),GS="X-XSRF-TOKEN",qS=new y("",{factory:()=>GS}),ZS=(()=>{class e{cookieName=h(WS);doc=h(O$1);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Di$2(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),Tv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(ZS),o},providedIn:"root"})}return e})();function YS(e,t){if(!h($S)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=h(Qr$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=h(Tv).getToken(),r=h(qS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function KS(...e){let t=[to$1,Qa,Xa,{provide:rf,useExisting:Xa},{provide:nf,useFactory:()=>h(Qa)},{provide:Iv,useValue:YS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return Pn$2(t)}var g8=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(C$1(O$1))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ti$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(XS),o},providedIn:"root"})}return e})(),XS=(()=>{class e extends Ti$1{_doc=h(O$1);sanitize(n,r){if(r==null)return null;switch(n){case se$3.NONE:return r;case se$3.HTML:return Lt$5(r,"HTML")?He$5(r):$l(this._doc,String(r)).toString();case se$3.STYLE:return Lt$5(r,"Style")?He$5(r):r;case se$3.SCRIPT:if(Lt$5(r,"Script"))return He$5(r);throw new g(5200,false);case se$3.URL:return Lt$5(r,"URL")?He$5(r):ti$3(String(r));case se$3.RESOURCE_URL:if(Lt$5(r,"ResourceURL"))return He$5(r);throw new g(-5201,false);default:throw new g(5202,false)}}bypassSecurityTrustHtml(n){return jl(n)}bypassSecurityTrustStyle(n){return Bl(n)}bypassSecurityTrustScript(n){return Vl(n)}bypassSecurityTrustUrl(n){return Ul(n)}bypassSecurityTrustResourceUrl(n){return Hl(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Ja=new WeakMap,Ht$4=(()=>{class e{_appRef;_injector=h(K$3);_environmentInjector=h(ae$3);load(n){let r=this._appRef=this._appRef||this._injector.get(or$1),o=Ja.get(r);o||(o={loaders:new Set,refs:[]},Ja.set(r,o),r.onDestroy(()=>{Ja.get(r)?.refs.forEach(i=>i.destroy()),Ja.delete(r);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(By(n,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var tc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe$1({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-visually-hidden {
|
|
6
6
|
border: 0;
|
|
7
7
|
clip: rect(0 0 0 0);
|
|
8
8
|
height: 1px;
|
|
@@ -57,7 +57,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
57
57
|
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon {
|
|
58
58
|
margin: auto;
|
|
59
59
|
}
|
|
60
|
-
`],encapsulation:2})}return e})(),Y8=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[no$1]})}return e})();function Si$2(e){return e.buttons===0||e.detail===0}function Mi$2(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return !!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var of;function Fv(){if(of==null){let e=typeof document<"u"?document.head:null;of=!!(e&&(e.createShadowRoot||e.attachShadow));}return of}function sf(e){if(Fv()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function dM(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t;}return e}function st$3(e){if(e.composedPath)try{return e.composedPath()[0]}catch{}return e.target}var af;try{af=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{af=false;}var De$5=(()=>{class e{_platformId=h(Gn$2);isBrowser=this._platformId?sv(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||af)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var xi$2;function Lv(){if(xi$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xi$2=!0}));}finally{xi$2=xi$2||false;}return xi$2}function ro$1(e){return Lv()?e:!!e.capture}function fM(e,t=0){return Pv(e)?Number(e):arguments.length===2?t:0}function Pv(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function mn$4(e){return e instanceof ue$2?e.nativeElement:e}var jv=new y("cdk-input-modality-detector-options"),Bv={ignoreKeys:[18,17,224,91,16]},Vv=650,cf={passive:true,capture:true},Uv=(()=>{class e{_platform=h(De$5);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Cn$3(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=st$3(n));};_onMousedown=n=>{Date.now()-this._lastTouchMs<Vv||(this._modality.next(Si$2(n)?"keyboard":"mouse"),this._mostRecentTarget=st$3(n));};_onTouchstart=n=>{if(Mi$2(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=st$3(n);};constructor(){let n=h(j$1),r=h(O$1),o=h(jv,{optional:true});if(this._options=I$2(I$2({},Bv),o),this.modalityDetected=this._modality.pipe(vr(1)),this.modalityChanged=this.modalityDetected.pipe(ns$1()),this._platform.isBrowser){let i=h(tt$1).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[i.listen(r,"keydown",this._onKeydown,cf),i.listen(r,"mousedown",this._onMousedown,cf),i.listen(r,"touchstart",this._onTouchstart,cf)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n());}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),Ai$2=(function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e})(Ai$2||{}),Hv=new y("cdk-focus-monitor-default-options"),rc=ro$1({passive:true,capture:true}),uf=(()=>{class e{_ngZone=h(j$1);_platform=h(De$5);_inputModalityDetector=h(Uv);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=h(O$1);_stopInputModalityDetector=new Z$2;constructor(){let n=h(Hv,{optional:true});this._detectionMode=n?.detectionMode||Ai$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=n=>{let r=st$3(n);for(let o=r;o;o=o.parentElement)n.type==="focus"?this._onFocus(n,o):this._onBlur(n,o);};monitor(n,r=false){let o=mn$4(n);if(!this._platform.isBrowser||o.nodeType!==1)return qe$3();let i=sf(o)||this._document,s=this._elementInfo.get(o);if(s)return r&&(s.checkChildren=true),s.subject;let a={checkChildren:r,subject:new Z$2,rootNode:i};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=mn$4(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o));}focusVia(n,r,o){let i=mn$4(n),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),typeof i.focus=="function"&&i.focus(o));}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Ai$2.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program");}_setOrigin(n,r=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===Ai$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Vv:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(n,r){let o=this._elementInfo.get(r),i=st$3(n);!o||!o.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),o);}_onBlur(n,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null));}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r));}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,rc),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,rc);}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Er(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,true);}));}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rc),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rc),this._rootNodeFocusListenerCount.delete(r));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r;}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((o,i)=>{(i===n||o.checkChildren&&i.contains(n))&&r.push([i,o]);}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return false;let i=n.labels;if(i){for(let s=0;s<i.length;s++)if(i[s].contains(r))return true}return false}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function lf(e){return Array.isArray(e)?e:[e]}var $v=new Set,cr$1,oc=(()=>{class e{_platform=h(De$5);_nonce=h(qn$2,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hM;}matchMedia(n){return (this._platform.WEBKIT||this._platform.BLINK)&&pM(n,this._nonce),this._matchMedia(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function pM(e,t){if(!$v.has(e))try{cr$1||(cr$1=document.createElement("style"),t&&cr$1.setAttribute("nonce",t),cr$1.setAttribute("type","text/css"),document.head.appendChild(cr$1)),cr$1.sheet&&(cr$1.sheet.insertRule(`@media ${e.replace(/[{}]/g,"")} {body{ }}`,0),$v.add(e));}catch(n){console.error(n);}}function hM(e){return {matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var df=(()=>{class e{_mediaMatcher=h(oc);_zone=h(j$1);_queries=new Map;_destroySubject=new Z$2;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(n){return zv(lf(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=zv(lf(n)).map(s=>this._registerQuery(s).observable),i=Ec(o);return i=qt$3(i.pipe(Ge$3(1)),i.pipe(vr(1),bo$1(0))),i.pipe(A$1(s=>{let a={matches:false,breakpoints:{}};return s.forEach(({matches:c,query:u})=>{a.matches=a.matches||c,a.breakpoints[u]=c;}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),i={observable:new k$1(s=>{let a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a);}}).pipe(Ac(r),A$1(({matches:s})=>({query:n,matches:s})),Er(this._destroySubject)),mql:r};return this._queries.set(n,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function zv(e){return e.map(t=>t.split(",")).reduce((t,n)=>t.concat(n)).map(t=>t.trim())}var mM=(()=>{class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Wv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({providers:[mM]})}return e})();var Yv=(()=>{class e{_platform=h(De$5);isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return yM(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return false;let r=gM(CM(n));if(r&&(Gv(r)===-1||!this.isVisible(r)))return false;let o=n.nodeName.toLowerCase(),i=Gv(n);return n.hasAttribute("contenteditable")?i!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IM(n)?false:o==="audio"?n.hasAttribute("controls")?i!==-1:false:o==="video"?i===-1?false:i!==null?true:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return wM(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function gM(e){try{return e.frameElement}catch{return null}}function yM(e){return !!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function vM(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function bM(e){return EM(e)&&e.type=="hidden"}function DM(e){return _M(e)&&e.hasAttribute("href")}function EM(e){return e.nodeName.toLowerCase()=="input"}function _M(e){return e.nodeName.toLowerCase()=="a"}function Kv(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return false;let t=e.getAttribute("tabindex");return !!(t&&!isNaN(parseInt(t,10)))}function Gv(e){if(!Kv(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function IM(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function wM(e){return bM(e)?false:vM(e)||DM(e)||e.hasAttribute("contenteditable")||Kv(e)}function CM(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var ic=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor));}_enabled=true;constructor(t,n,r,o,i=false,s){this._element=t,this._checker=n,this._ngZone=r,this._document=o,this._injector=s,i||this.attachAnchors();}destroy(){let t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(t)));})}focusFirstTabbableElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(t)));})}focusLastTabbableElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(t)));})}_getRegionBoundary(t){let n=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let r=this._getFirstTabbableElement(n);return r?.focus(t),!!r}return n.focus(t),true}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}focusLastTabbableElement(t){let n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children;for(let r=0;r<n.length;r++){let o=n[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[r]):null;if(o)return o}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children;for(let r=n.length-1;r>=0;r--){let o=n[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[r]):null;if(o)return o}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex");}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor));}_executeOnStable(t){Zl(t,{injector:this._injector});}},TM=(()=>{class e{_checker=h(Yv);_ngZone=h(j$1);_document=h(O$1);_injector=h(K$4);constructor(){h(Ht$4).load(tc);}create(n,r=false){return new ic(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Qv=new y("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Xv=new y("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),SM=0,MM=(()=>{class e{_ngZone=h(j$1);_defaultOptions=h(Xv,{optional:true});_liveElement;_document=h(O$1);_sanitizer=h(Ti$1);_previousTimeout;_currentPromise;_currentResolve;constructor(){let n=h(Qv,{optional:true});this._liveElement=n||this._createLiveElement();}announce(n,...r){let o=this._defaultOptions,i,s;return r.length===1&&typeof r[0]=="number"?s=r[0]:[i,s]=r,this.clear(),clearTimeout(this._previousTimeout),i||(i=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!n||typeof n=="string"?this._liveElement.textContent=n:Sv(this._liveElement,n,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let i=0;i<r.length;i++)r[i].remove();return o.classList.add(n),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${SM++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(n){let r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<r.length;o++){let i=r[o],s=i.getAttribute("aria-owns");s?s.indexOf(n)===-1&&i.setAttribute("aria-owns",s+" "+n):i.setAttribute("aria-owns",n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var gn$4=(function(e){return e[e.NONE=0]="NONE",e[e.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",e[e.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",e})(gn$4||{}),qv="cdk-high-contrast-black-on-white",Zv="cdk-high-contrast-white-on-black",ff="cdk-high-contrast-active",Jv=(()=>{class e{_platform=h(De$5);_hasCheckedHighContrastMode=false;_document=h(O$1);_breakpointSubscription;constructor(){this._breakpointSubscription=h(df).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return gn$4.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,i=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),i){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return gn$4.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return gn$4.BLACK_ON_WHITE}return gn$4.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(ff,qv,Zv),this._hasCheckedHighContrastMode=true;let r=this.getHighContrastMode();r===gn$4.BLACK_ON_WHITE?n.add(ff,qv):r===gn$4.WHITE_ON_BLACK&&n.add(ff,Zv);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),xM=(()=>{class e{constructor(){h(Jv)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[Wv]})}return e})();var AM=200,sc=class{_letterKeyStream=new Z$2;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z$2;selectedItem=this._selectedItem;constructor(t,n){let r=typeof n?.debounceInterval=="number"?n.debounceInterval:AM;n?.skipPredicate&&(this._skipPredicateFn=n.skipPredicate),this.setItems(t),this._setupKeyHandler(r);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t;}setItems(t){this._items=t;}handleKey(t){let n=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(t){this._letterKeyStream.pipe(zt$6(n=>this._pressedLetters.push(n)),bo$1(t),Tt$6(()=>this._pressedLetters.length>0),A$1(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(n=>{for(let r=1;r<this._items.length+1;r++){let o=(this._selectedItemIndex+r)%this._items.length,i=this._items[o];if(!this._skipPredicateFn?.(i)&&i.getLabel?.().toLocaleUpperCase().trim().indexOf(n)===0){this._selectedItem.next(i);break}}this._pressedLetters=[];});}};function eb(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var oo$1=class oo{_items;_activeItemIndex=Qe$3(-1);_activeItem=Qe$3(null);_wrap=false;_typeaheadSubscription=q$3.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=t=>t.disabled;constructor(t,n){this._items=t,t instanceof Qn$2?this._itemChangesSubscription=t.changes.subscribe(r=>this._itemsChanged(r.toArray())):Zn$2(t)&&(this._effectRef=$s(()=>this._itemsChanged(t()),{injector:n}));}tabOut=new Z$2;change=new Z$2;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=true){return this._wrap=t,this}withVerticalOrientation(t=true){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let n=this._getItemsArray();return this._typeahead=new sc(n,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:r=>this._skipPredicateFn(r)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(r=>{this.setActiveItem(r);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=true){return this._homeAndEnd=t,this}withPageUpDown(t=true,n=10){return this._pageUpAndDown={enabled:t,delta:n},this}setActiveItem(t){let n=this._activeItem();this.updateActiveItem(t),this._activeItem()!==n&&this.change.next(this._activeItemIndex());}onKeydown(t){let n=t.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!t[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(n){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i<s?i:s-1,-1);break}else return;default:(o||eb(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(t){let n=this._getItemsArray(),r=typeof t=="number"?t:n.indexOf(t),o=n[r];this._activeItem.set(o??null),this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t);}_setActiveInWrapMode(t){let n=this._getItemsArray();for(let r=1;r<=n.length;r++){let o=(this._activeItemIndex()+t*r+n.length)%n.length,i=n[o];if(!this._skipPredicateFn(i)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex()+t,t);}_setActiveItemByIndex(t,n){let r=this._getItemsArray();if(r[t]){for(;this._skipPredicateFn(r[t]);)if(t+=n,!r[t])return;this.setActiveItem(t);}}_getItemsArray(){return Zn$2(this._items)?this._items():this._items instanceof Qn$2?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let n=this._activeItem();if(n){let r=t.indexOf(n);r>-1&&r!==this._activeItemIndex()&&(this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r));}}};var pf=class extends oo$1{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles();}};var hf=class extends oo$1{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin);}};var tb=new Map,mf=class e{_appId=h(Ot$3);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(t,n=false){this._appId!=="ng"&&(t+=this._appId);let r=tb.get(t);return r===void 0?r=0:r++,tb.set(t,r),`${t}${n?e._infix+"-":""}${r}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})};var rb=" ";function NM(e,t,n){let r=cc(e,t);n=n.trim(),!r.some(o=>o.trim()===n)&&(r.push(n),e.setAttribute(t,r.join(rb)));}function RM(e,t,n){let r=cc(e,t);n=n.trim();let o=r.filter(i=>i!==n);o.length?e.setAttribute(t,o.join(rb)):e.removeAttribute(t);}function cc(e,t){return e.getAttribute(t)?.match(/\S+/g)??[]}var ob="cdk-describedby-message",ac="cdk-describedby-host",yf=0,N3=(()=>{class e{_platform=h(De$5);_document=h(O$1);_messageRegistry=new Map;_messagesContainer=null;_id=`${yf++}`;constructor(){h(Ht$4).load(tc),this._id=h(Ot$3)+"-"+yf++;}describe(n,r,o){if(!this._canBeDescribed(n,r))return;let i=gf(r,o);typeof r!="string"?(nb(r,this._id),this._messageRegistry.set(i,{messageElement:r,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,i)||this._addMessageReference(n,i);}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;let i=gf(r,o);if(this._isElementDescribedByMessage(n,i)&&this._removeMessageReference(n,i),typeof r=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ac}="${this._id}"]`);for(let r=0;r<n.length;r++)this._removeCdkDescribedByReferenceIds(n[r]),n[r].removeAttribute(ac);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(n,r){let o=this._document.createElement("div");nb(o,this._id),o.textContent=n,r&&o.setAttribute("role",r),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(gf(n,r),{messageElement:o,referenceCount:0});}_deleteMessageElement(n){this._messageRegistry.get(n)?.messageElement?.remove(),this._messageRegistry.delete(n);}_createMessagesContainer(){if(this._messagesContainer)return;let n="cdk-describedby-message-container",r=this._document.querySelectorAll(`.${n}[platform="server"]`);for(let i=0;i<r.length;i++)r[i].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(n),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(n){let r=cc(n,"aria-describedby").filter(o=>o.indexOf(ob)!=0);n.setAttribute("aria-describedby",r.join(" "));}_addMessageReference(n,r){let o=this._messageRegistry.get(r);NM(n,"aria-describedby",o.messageElement.id),n.setAttribute(ac,this._id),o.referenceCount++;}_removeMessageReference(n,r){let o=this._messageRegistry.get(r);o.referenceCount--,RM(n,"aria-describedby",o.messageElement.id),n.removeAttribute(ac);}_isElementDescribedByMessage(n,r){let o=cc(n,"aria-describedby"),i=this._messageRegistry.get(r),s=i&&i.messageElement.id;return !!s&&o.indexOf(s)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return false;if(r&&typeof r=="object")return true;let o=r==null?"":`${r}`.trim(),i=n.getAttribute("aria-label");return o?!i||i.trim()!==o:false}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function gf(e,t){return typeof e=="string"?`${t||""}/${e}`:e}function nb(e,t){e.id||(e.id=`${ob}-${t}-${yf++}`);}var Ni$2=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(Ni$2||{}),uc,ur$1;function B3(){if(ur$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ur$1=false,ur$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)ur$1=true;else {let e=Element.prototype.scrollTo;e?ur$1=!/\{\s*\[native code\]\s*\}/.test(e.toString()):ur$1=false;}}return ur$1}function V3(){if(typeof document!="object"||!document)return Ni$2.NORMAL;if(uc==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),uc=Ni$2.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,uc=e.scrollLeft===0?Ni$2.NEGATED:Ni$2.INVERTED),e.remove();}return uc}function H3(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var io$1,ib=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function z3(){if(io$1)return io$1;if(typeof document!="object"||!document)return io$1=new Set(ib),io$1;let e=document.createElement("input");return io$1=new Set(ib.filter(t=>(e.setAttribute("type",t),e.type===t))),io$1}var kM=new y("MATERIAL_ANIMATIONS"),sb=null;function OM(){return h(kM,{optional:true})?.animationsDisabled||h(Bu,{optional:true})==="NoopAnimations"?"di-disabled":(sb??=h(oc).matchMedia("(prefers-reduced-motion)").matches,sb?"reduced-motion":"enabled")}function so$1(){return OM()!=="enabled"}function eW(e){return e==null?"":typeof e=="string"?e:`${e}px`}function nW(e){return e!=null&&`${e}`!="false"}var ze$5=(function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e})(ze$5||{}),vf=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ze$5.HIDDEN;constructor(t,n,r,o=false){this._renderer=t,this.element=n,this.config=r,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},ab=ro$1({passive:true,capture:true}),bf=class{_events=new Map;addHandler(t,n,r,o){let i=this._events.get(n);if(i){let s=i.get(r);s?s.add(o):i.set(r,new Set([o]));}else this._events.set(n,new Map([[r,new Set([o])]])),t.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,ab);});}removeHandler(t,n,r){let o=this._events.get(t);if(!o)return;let i=o.get(n);i&&(i.delete(r),i.size===0&&o.delete(n),o.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,ab)));}_delegateEventHandler=t=>{let n=st$3(t);n&&this._events.get(t.type)?.forEach((r,o)=>{(o===n||o.contains(n))&&r.forEach(i=>i.handleEvent(t));});}},Ri$1={enterDuration:225,exitDuration:150},FM=800,cb=ro$1({passive:true,capture:true}),ub=["mousedown","touchstart"],lb=["mouseup","mouseleave","touchend","touchcancel"],LM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe$1({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.mat-ripple {
|
|
60
|
+
`],encapsulation:2})}return e})(),Y8=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[no$1]})}return e})();function Si$2(e){return e.buttons===0||e.detail===0}function Mi$2(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return !!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var of;function Fv(){if(of==null){let e=typeof document<"u"?document.head:null;of=!!(e&&(e.createShadowRoot||e.attachShadow));}return of}function sf(e){if(Fv()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function dM(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t;}return e}function st$3(e){if(e.composedPath)try{return e.composedPath()[0]}catch{}return e.target}var af;try{af=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{af=false;}var De$5=(()=>{class e{_platformId=h(Gn$2);isBrowser=this._platformId?sv(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||af)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var xi$2;function Lv(){if(xi$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xi$2=!0}));}finally{xi$2=xi$2||false;}return xi$2}function ro$1(e){return Lv()?e:!!e.capture}function fM(e,t=0){return Pv(e)?Number(e):arguments.length===2?t:0}function Pv(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function mn$4(e){return e instanceof ue$2?e.nativeElement:e}var jv=new y("cdk-input-modality-detector-options"),Bv={ignoreKeys:[18,17,224,91,16]},Vv=650,cf={passive:true,capture:true},Uv=(()=>{class e{_platform=h(De$5);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Cn$3(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=st$3(n));};_onMousedown=n=>{Date.now()-this._lastTouchMs<Vv||(this._modality.next(Si$2(n)?"keyboard":"mouse"),this._mostRecentTarget=st$3(n));};_onTouchstart=n=>{if(Mi$2(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=st$3(n);};constructor(){let n=h(j$1),r=h(O$1),o=h(jv,{optional:true});if(this._options=I$2(I$2({},Bv),o),this.modalityDetected=this._modality.pipe(vr(1)),this.modalityChanged=this.modalityDetected.pipe(ns$1()),this._platform.isBrowser){let i=h(tt$1).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[i.listen(r,"keydown",this._onKeydown,cf),i.listen(r,"mousedown",this._onMousedown,cf),i.listen(r,"touchstart",this._onTouchstart,cf)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n());}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),Ai$2=(function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e})(Ai$2||{}),Hv=new y("cdk-focus-monitor-default-options"),rc=ro$1({passive:true,capture:true}),uf=(()=>{class e{_ngZone=h(j$1);_platform=h(De$5);_inputModalityDetector=h(Uv);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=h(O$1);_stopInputModalityDetector=new Z$2;constructor(){let n=h(Hv,{optional:true});this._detectionMode=n?.detectionMode||Ai$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=n=>{let r=st$3(n);for(let o=r;o;o=o.parentElement)n.type==="focus"?this._onFocus(n,o):this._onBlur(n,o);};monitor(n,r=false){let o=mn$4(n);if(!this._platform.isBrowser||o.nodeType!==1)return qe$3();let i=sf(o)||this._document,s=this._elementInfo.get(o);if(s)return r&&(s.checkChildren=true),s.subject;let a={checkChildren:r,subject:new Z$2,rootNode:i};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=mn$4(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o));}focusVia(n,r,o){let i=mn$4(n),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),typeof i.focus=="function"&&i.focus(o));}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Ai$2.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program");}_setOrigin(n,r=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===Ai$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Vv:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(n,r){let o=this._elementInfo.get(r),i=st$3(n);!o||!o.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),o);}_onBlur(n,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null));}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r));}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,rc),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,rc);}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Er(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,true);}));}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rc),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rc),this._rootNodeFocusListenerCount.delete(r));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r;}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((o,i)=>{(i===n||o.checkChildren&&i.contains(n))&&r.push([i,o]);}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return false;let i=n.labels;if(i){for(let s=0;s<i.length;s++)if(i[s].contains(r))return true}return false}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function lf(e){return Array.isArray(e)?e:[e]}var $v=new Set,cr$1,oc=(()=>{class e{_platform=h(De$5);_nonce=h(qn$2,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hM;}matchMedia(n){return (this._platform.WEBKIT||this._platform.BLINK)&&pM(n,this._nonce),this._matchMedia(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function pM(e,t){if(!$v.has(e))try{cr$1||(cr$1=document.createElement("style"),t&&cr$1.setAttribute("nonce",t),cr$1.setAttribute("type","text/css"),document.head.appendChild(cr$1)),cr$1.sheet&&(cr$1.sheet.insertRule(`@media ${e.replace(/[{}]/g,"")} {body{ }}`,0),$v.add(e));}catch(n){console.error(n);}}function hM(e){return {matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var df=(()=>{class e{_mediaMatcher=h(oc);_zone=h(j$1);_queries=new Map;_destroySubject=new Z$2;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(n){return zv(lf(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=zv(lf(n)).map(s=>this._registerQuery(s).observable),i=Ec(o);return i=qt$3(i.pipe(Ge$3(1)),i.pipe(vr(1),bo$1(0))),i.pipe(A$1(s=>{let a={matches:false,breakpoints:{}};return s.forEach(({matches:c,query:u})=>{a.matches=a.matches||c,a.breakpoints[u]=c;}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),i={observable:new k$1(s=>{let a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a);}}).pipe(Ac(r),A$1(({matches:s})=>({query:n,matches:s})),Er(this._destroySubject)),mql:r};return this._queries.set(n,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function zv(e){return e.map(t=>t.split(",")).reduce((t,n)=>t.concat(n)).map(t=>t.trim())}var mM=(()=>{class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Wv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({providers:[mM]})}return e})();var Yv=(()=>{class e{_platform=h(De$5);isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return yM(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return false;let r=gM(CM(n));if(r&&(Gv(r)===-1||!this.isVisible(r)))return false;let o=n.nodeName.toLowerCase(),i=Gv(n);return n.hasAttribute("contenteditable")?i!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IM(n)?false:o==="audio"?n.hasAttribute("controls")?i!==-1:false:o==="video"?i===-1?false:i!==null?true:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return wM(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function gM(e){try{return e.frameElement}catch{return null}}function yM(e){return !!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function vM(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function bM(e){return EM(e)&&e.type=="hidden"}function DM(e){return _M(e)&&e.hasAttribute("href")}function EM(e){return e.nodeName.toLowerCase()=="input"}function _M(e){return e.nodeName.toLowerCase()=="a"}function Kv(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return false;let t=e.getAttribute("tabindex");return !!(t&&!isNaN(parseInt(t,10)))}function Gv(e){if(!Kv(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function IM(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function wM(e){return bM(e)?false:vM(e)||DM(e)||e.hasAttribute("contenteditable")||Kv(e)}function CM(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var ic=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor));}_enabled=true;constructor(t,n,r,o,i=false,s){this._element=t,this._checker=n,this._ngZone=r,this._document=o,this._injector=s,i||this.attachAnchors();}destroy(){let t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(t)));})}focusFirstTabbableElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(t)));})}focusLastTabbableElementWhenReady(t){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(t)));})}_getRegionBoundary(t){let n=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let r=this._getFirstTabbableElement(n);return r?.focus(t),!!r}return n.focus(t),true}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}focusLastTabbableElement(t){let n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children;for(let r=0;r<n.length;r++){let o=n[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[r]):null;if(o)return o}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children;for(let r=n.length-1;r>=0;r--){let o=n[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[r]):null;if(o)return o}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex");}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor));}_executeOnStable(t){Zl(t,{injector:this._injector});}},TM=(()=>{class e{_checker=h(Yv);_ngZone=h(j$1);_document=h(O$1);_injector=h(K$3);constructor(){h(Ht$4).load(tc);}create(n,r=false){return new ic(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var Qv=new y("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Xv=new y("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),SM=0,MM=(()=>{class e{_ngZone=h(j$1);_defaultOptions=h(Xv,{optional:true});_liveElement;_document=h(O$1);_sanitizer=h(Ti$1);_previousTimeout;_currentPromise;_currentResolve;constructor(){let n=h(Qv,{optional:true});this._liveElement=n||this._createLiveElement();}announce(n,...r){let o=this._defaultOptions,i,s;return r.length===1&&typeof r[0]=="number"?s=r[0]:[i,s]=r,this.clear(),clearTimeout(this._previousTimeout),i||(i=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!n||typeof n=="string"?this._liveElement.textContent=n:Sv(this._liveElement,n,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let i=0;i<r.length;i++)r[i].remove();return o.classList.add(n),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${SM++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(n){let r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<r.length;o++){let i=r[o],s=i.getAttribute("aria-owns");s?s.indexOf(n)===-1&&i.setAttribute("aria-owns",s+" "+n):i.setAttribute("aria-owns",n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var gn$4=(function(e){return e[e.NONE=0]="NONE",e[e.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",e[e.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",e})(gn$4||{}),qv="cdk-high-contrast-black-on-white",Zv="cdk-high-contrast-white-on-black",ff="cdk-high-contrast-active",Jv=(()=>{class e{_platform=h(De$5);_hasCheckedHighContrastMode=false;_document=h(O$1);_breakpointSubscription;constructor(){this._breakpointSubscription=h(df).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return gn$4.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,i=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),i){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return gn$4.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return gn$4.BLACK_ON_WHITE}return gn$4.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(ff,qv,Zv),this._hasCheckedHighContrastMode=true;let r=this.getHighContrastMode();r===gn$4.BLACK_ON_WHITE?n.add(ff,qv):r===gn$4.WHITE_ON_BLACK&&n.add(ff,Zv);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})(),xM=(()=>{class e{constructor(){h(Jv)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[Wv]})}return e})();var AM=200,sc=class{_letterKeyStream=new Z$2;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z$2;selectedItem=this._selectedItem;constructor(t,n){let r=typeof n?.debounceInterval=="number"?n.debounceInterval:AM;n?.skipPredicate&&(this._skipPredicateFn=n.skipPredicate),this.setItems(t),this._setupKeyHandler(r);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t;}setItems(t){this._items=t;}handleKey(t){let n=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(t){this._letterKeyStream.pipe(zt$6(n=>this._pressedLetters.push(n)),bo$1(t),Tt$6(()=>this._pressedLetters.length>0),A$1(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(n=>{for(let r=1;r<this._items.length+1;r++){let o=(this._selectedItemIndex+r)%this._items.length,i=this._items[o];if(!this._skipPredicateFn?.(i)&&i.getLabel?.().toLocaleUpperCase().trim().indexOf(n)===0){this._selectedItem.next(i);break}}this._pressedLetters=[];});}};function eb(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var oo$1=class oo{_items;_activeItemIndex=Qe$3(-1);_activeItem=Qe$3(null);_wrap=false;_typeaheadSubscription=q$3.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=t=>t.disabled;constructor(t,n){this._items=t,t instanceof Qn$2?this._itemChangesSubscription=t.changes.subscribe(r=>this._itemsChanged(r.toArray())):Zn$2(t)&&(this._effectRef=$s(()=>this._itemsChanged(t()),{injector:n}));}tabOut=new Z$2;change=new Z$2;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=true){return this._wrap=t,this}withVerticalOrientation(t=true){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let n=this._getItemsArray();return this._typeahead=new sc(n,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:r=>this._skipPredicateFn(r)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(r=>{this.setActiveItem(r);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=true){return this._homeAndEnd=t,this}withPageUpDown(t=true,n=10){return this._pageUpAndDown={enabled:t,delta:n},this}setActiveItem(t){let n=this._activeItem();this.updateActiveItem(t),this._activeItem()!==n&&this.change.next(this._activeItemIndex());}onKeydown(t){let n=t.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!t[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(n){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i<s?i:s-1,-1);break}else return;default:(o||eb(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(t){let n=this._getItemsArray(),r=typeof t=="number"?t:n.indexOf(t),o=n[r];this._activeItem.set(o??null),this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t);}_setActiveInWrapMode(t){let n=this._getItemsArray();for(let r=1;r<=n.length;r++){let o=(this._activeItemIndex()+t*r+n.length)%n.length,i=n[o];if(!this._skipPredicateFn(i)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex()+t,t);}_setActiveItemByIndex(t,n){let r=this._getItemsArray();if(r[t]){for(;this._skipPredicateFn(r[t]);)if(t+=n,!r[t])return;this.setActiveItem(t);}}_getItemsArray(){return Zn$2(this._items)?this._items():this._items instanceof Qn$2?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let n=this._activeItem();if(n){let r=t.indexOf(n);r>-1&&r!==this._activeItemIndex()&&(this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r));}}};var pf=class extends oo$1{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles();}};var hf=class extends oo$1{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin);}};var tb=new Map,mf=class e{_appId=h(Ot$3);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(t,n=false){this._appId!=="ng"&&(t+=this._appId);let r=tb.get(t);return r===void 0?r=0:r++,tb.set(t,r),`${t}${n?e._infix+"-":""}${r}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})};var rb=" ";function NM(e,t,n){let r=cc(e,t);n=n.trim(),!r.some(o=>o.trim()===n)&&(r.push(n),e.setAttribute(t,r.join(rb)));}function RM(e,t,n){let r=cc(e,t);n=n.trim();let o=r.filter(i=>i!==n);o.length?e.setAttribute(t,o.join(rb)):e.removeAttribute(t);}function cc(e,t){return e.getAttribute(t)?.match(/\S+/g)??[]}var ob="cdk-describedby-message",ac="cdk-describedby-host",yf=0,N3=(()=>{class e{_platform=h(De$5);_document=h(O$1);_messageRegistry=new Map;_messagesContainer=null;_id=`${yf++}`;constructor(){h(Ht$4).load(tc),this._id=h(Ot$3)+"-"+yf++;}describe(n,r,o){if(!this._canBeDescribed(n,r))return;let i=gf(r,o);typeof r!="string"?(nb(r,this._id),this._messageRegistry.set(i,{messageElement:r,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,i)||this._addMessageReference(n,i);}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;let i=gf(r,o);if(this._isElementDescribedByMessage(n,i)&&this._removeMessageReference(n,i),typeof r=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ac}="${this._id}"]`);for(let r=0;r<n.length;r++)this._removeCdkDescribedByReferenceIds(n[r]),n[r].removeAttribute(ac);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(n,r){let o=this._document.createElement("div");nb(o,this._id),o.textContent=n,r&&o.setAttribute("role",r),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(gf(n,r),{messageElement:o,referenceCount:0});}_deleteMessageElement(n){this._messageRegistry.get(n)?.messageElement?.remove(),this._messageRegistry.delete(n);}_createMessagesContainer(){if(this._messagesContainer)return;let n="cdk-describedby-message-container",r=this._document.querySelectorAll(`.${n}[platform="server"]`);for(let i=0;i<r.length;i++)r[i].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(n),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(n){let r=cc(n,"aria-describedby").filter(o=>o.indexOf(ob)!=0);n.setAttribute("aria-describedby",r.join(" "));}_addMessageReference(n,r){let o=this._messageRegistry.get(r);NM(n,"aria-describedby",o.messageElement.id),n.setAttribute(ac,this._id),o.referenceCount++;}_removeMessageReference(n,r){let o=this._messageRegistry.get(r);o.referenceCount--,RM(n,"aria-describedby",o.messageElement.id),n.removeAttribute(ac);}_isElementDescribedByMessage(n,r){let o=cc(n,"aria-describedby"),i=this._messageRegistry.get(r),s=i&&i.messageElement.id;return !!s&&o.indexOf(s)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return false;if(r&&typeof r=="object")return true;let o=r==null?"":`${r}`.trim(),i=n.getAttribute("aria-label");return o?!i||i.trim()!==o:false}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();function gf(e,t){return typeof e=="string"?`${t||""}/${e}`:e}function nb(e,t){e.id||(e.id=`${ob}-${t}-${yf++}`);}var Ni$2=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(Ni$2||{}),uc,ur$1;function B3(){if(ur$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ur$1=false,ur$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)ur$1=true;else {let e=Element.prototype.scrollTo;e?ur$1=!/\{\s*\[native code\]\s*\}/.test(e.toString()):ur$1=false;}}return ur$1}function V3(){if(typeof document!="object"||!document)return Ni$2.NORMAL;if(uc==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),uc=Ni$2.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,uc=e.scrollLeft===0?Ni$2.NEGATED:Ni$2.INVERTED),e.remove();}return uc}function H3(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var io$1,ib=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function z3(){if(io$1)return io$1;if(typeof document!="object"||!document)return io$1=new Set(ib),io$1;let e=document.createElement("input");return io$1=new Set(ib.filter(t=>(e.setAttribute("type",t),e.type===t))),io$1}var kM=new y("MATERIAL_ANIMATIONS"),sb=null;function OM(){return h(kM,{optional:true})?.animationsDisabled||h(Bu,{optional:true})==="NoopAnimations"?"di-disabled":(sb??=h(oc).matchMedia("(prefers-reduced-motion)").matches,sb?"reduced-motion":"enabled")}function so$1(){return OM()!=="enabled"}function eW(e){return e==null?"":typeof e=="string"?e:`${e}px`}function nW(e){return e!=null&&`${e}`!="false"}var ze$5=(function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e})(ze$5||{}),vf=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ze$5.HIDDEN;constructor(t,n,r,o=false){this._renderer=t,this.element=n,this.config=r,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},ab=ro$1({passive:true,capture:true}),bf=class{_events=new Map;addHandler(t,n,r,o){let i=this._events.get(n);if(i){let s=i.get(r);s?s.add(o):i.set(r,new Set([o]));}else this._events.set(n,new Map([[r,new Set([o])]])),t.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,ab);});}removeHandler(t,n,r){let o=this._events.get(t);if(!o)return;let i=o.get(n);i&&(i.delete(r),i.size===0&&o.delete(n),o.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,ab)));}_delegateEventHandler=t=>{let n=st$3(t);n&&this._events.get(t.type)?.forEach((r,o)=>{(o===n||o.contains(n))&&r.forEach(i=>i.handleEvent(t));});}},Ri$1={enterDuration:225,exitDuration:150},FM=800,cb=ro$1({passive:true,capture:true}),ub=["mousedown","touchstart"],lb=["mouseup","mouseleave","touchend","touchcancel"],LM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe$1({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.mat-ripple {
|
|
61
61
|
overflow: hidden;
|
|
62
62
|
position: relative;
|
|
63
63
|
}
|
|
@@ -85,7 +85,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
85
85
|
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
|
|
86
86
|
display: none;
|
|
87
87
|
}
|
|
88
|
-
`],encapsulation:2})}return e})(),ki$1=class e{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new bf;constructor(t,n,r,o,i){this._target=t,this._ngZone=n,this._platform=o,o.isBrowser&&(this._containerElement=mn$4(r)),i&&i.get(Ht$4).load(LM);}fadeInRipple(t,n,r={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=I$2(I$2({},Ri$1),r.animation);r.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);let s=r.radius||PM(t,n,o),a=t-o.left,c=n-o.top,u=i.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,r.color!=null&&(l.style.backgroundColor=r.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),p=d.transitionProperty,f=d.transitionDuration,m=p==="none"||f==="0s"||f==="0s, 0s"||o.width===0&&o.height===0,v=new vf(this,l,r,m);l.style.transform="scale3d(1, 1, 1)",v.state=ze$5.FADING_IN,r.persistent||(this._mostRecentTransientRipple=v);let D=null;return !m&&(u||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{D&&(D.fallbackTimer=null),clearTimeout(Re),this._finishRippleTransition(v);},te=()=>this._destroyRipple(v),Re=setTimeout(te,u+100);l.addEventListener("transitionend",R),l.addEventListener("transitioncancel",te),D={onTransitionEnd:R,onTransitionCancel:te,fallbackTimer:Re};}),this._activeRipples.set(v,D),(m||!u)&&this._finishRippleTransition(v),v}fadeOutRipple(t){if(t.state===ze$5.FADING_OUT||t.state===ze$5.HIDDEN)return;let n=t.element,r=I$2(I$2({},Ri$1),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=ze$5.FADING_OUT,(t._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(t);}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut();});}setupTriggerEvents(t){let n=mn$4(t);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,ub.forEach(r=>{e._eventManager.addHandler(this._ngZone,r,n,this);}));}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{lb.forEach(n=>{this._triggerElement.addEventListener(n,this,cb);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(t){t.state===ze$5.FADING_IN?this._startFadeOutTransition(t):t.state===ze$5.FADING_OUT&&this._destroyRipple(t);}_startFadeOutTransition(t){let n=t===this._mostRecentTransientRipple,{persistent:r}=t.config;t.state=ze$5.VISIBLE,!r&&(!n||!this._isPointerDown)&&t.fadeOut();}_destroyRipple(t){let n=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=ze$5.HIDDEN,n!==null&&(t.element.removeEventListener("transitionend",n.onTransitionEnd),t.element.removeEventListener("transitioncancel",n.onTransitionCancel),n.fallbackTimer!==null&&clearTimeout(n.fallbackTimer)),t.element.remove();}_onMousedown(t){let n=Si$2(t),r=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+FM;!this._target.rippleDisabled&&!n&&!r&&(this._isPointerDown=true,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig));}_onTouchStart(t){if(!this._target.rippleDisabled&&!Mi$2(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let n=t.changedTouches;if(n)for(let r=0;r<n.length;r++)this.fadeInRipple(n[r].clientX,n[r].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(t=>{let n=t.state===ze$5.VISIBLE||t.config.terminateOnPointerUp&&t.state===ze$5.FADING_IN;!t.config.persistent&&n&&t.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(ub.forEach(n=>e._eventManager.removeHandler(n,t,this)),this._pointerUpEventsRegistered&&(lb.forEach(n=>t.removeEventListener(n,this,cb)),this._pointerUpEventsRegistered=false));}};function PM(e,t,n){let r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),o=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+o*o)}var Df=new y("mat-ripple-global-options"),mW=(()=>{class e{_elementRef=h(ue$2);_animationsDisabled=so$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let n=h(j$1),r=h(De$5),o=h(Df,{optional:true}),i=h(K$
|
|
88
|
+
`],encapsulation:2})}return e})(),ki$1=class e{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new bf;constructor(t,n,r,o,i){this._target=t,this._ngZone=n,this._platform=o,o.isBrowser&&(this._containerElement=mn$4(r)),i&&i.get(Ht$4).load(LM);}fadeInRipple(t,n,r={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=I$2(I$2({},Ri$1),r.animation);r.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);let s=r.radius||PM(t,n,o),a=t-o.left,c=n-o.top,u=i.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,r.color!=null&&(l.style.backgroundColor=r.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),p=d.transitionProperty,f=d.transitionDuration,m=p==="none"||f==="0s"||f==="0s, 0s"||o.width===0&&o.height===0,v=new vf(this,l,r,m);l.style.transform="scale3d(1, 1, 1)",v.state=ze$5.FADING_IN,r.persistent||(this._mostRecentTransientRipple=v);let D=null;return !m&&(u||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{D&&(D.fallbackTimer=null),clearTimeout(Re),this._finishRippleTransition(v);},te=()=>this._destroyRipple(v),Re=setTimeout(te,u+100);l.addEventListener("transitionend",R),l.addEventListener("transitioncancel",te),D={onTransitionEnd:R,onTransitionCancel:te,fallbackTimer:Re};}),this._activeRipples.set(v,D),(m||!u)&&this._finishRippleTransition(v),v}fadeOutRipple(t){if(t.state===ze$5.FADING_OUT||t.state===ze$5.HIDDEN)return;let n=t.element,r=I$2(I$2({},Ri$1),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=ze$5.FADING_OUT,(t._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(t);}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut();});}setupTriggerEvents(t){let n=mn$4(t);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,ub.forEach(r=>{e._eventManager.addHandler(this._ngZone,r,n,this);}));}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{lb.forEach(n=>{this._triggerElement.addEventListener(n,this,cb);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(t){t.state===ze$5.FADING_IN?this._startFadeOutTransition(t):t.state===ze$5.FADING_OUT&&this._destroyRipple(t);}_startFadeOutTransition(t){let n=t===this._mostRecentTransientRipple,{persistent:r}=t.config;t.state=ze$5.VISIBLE,!r&&(!n||!this._isPointerDown)&&t.fadeOut();}_destroyRipple(t){let n=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=ze$5.HIDDEN,n!==null&&(t.element.removeEventListener("transitionend",n.onTransitionEnd),t.element.removeEventListener("transitioncancel",n.onTransitionCancel),n.fallbackTimer!==null&&clearTimeout(n.fallbackTimer)),t.element.remove();}_onMousedown(t){let n=Si$2(t),r=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+FM;!this._target.rippleDisabled&&!n&&!r&&(this._isPointerDown=true,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig));}_onTouchStart(t){if(!this._target.rippleDisabled&&!Mi$2(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let n=t.changedTouches;if(n)for(let r=0;r<n.length;r++)this.fadeInRipple(n[r].clientX,n[r].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(t=>{let n=t.state===ze$5.VISIBLE||t.config.terminateOnPointerUp&&t.state===ze$5.FADING_IN;!t.config.persistent&&n&&t.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(ub.forEach(n=>e._eventManager.removeHandler(n,t,this)),this._pointerUpEventsRegistered&&(lb.forEach(n=>t.removeEventListener(n,this,cb)),this._pointerUpEventsRegistered=false));}};function PM(e,t,n){let r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),o=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+o*o)}var Df=new y("mat-ripple-global-options"),mW=(()=>{class e{_elementRef=h(ue$2);_animationsDisabled=so$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let n=h(j$1),r=h(De$5),o=h(Df,{optional:true}),i=h(K$3);this._globalOptions=o||{},this._rippleRenderer=new ki$1(this,n,this._elementRef,r,i);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:I$2(I$2(I$2({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(n,r=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,I$2(I$2({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,I$2(I$2({},this.rippleConfig),n))}static \u0275fac=function(r){return new(r||e)};static \u0275dir=rt$2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&It$7("mat-ripple-unbounded",o.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})();var jM={capture:true},BM=["focus","mousedown","mouseenter","touchstart"],Ef="mat-ripple-loader-uninitialized",_f="mat-ripple-loader-class-name",db="mat-ripple-loader-centered",lc="mat-ripple-loader-disabled",fb=(()=>{class e{_document=h(O$1);_animationsDisabled=so$1();_globalRippleOptions=h(Df,{optional:true});_platform=h(De$5);_ngZone=h(j$1);_injector=h(K$3);_eventCleanups;_hosts=new Map;constructor(){let n=h(tt$1).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>BM.map(r=>n.listen(this._document,r,this._onInteraction,jM)));}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);this._eventCleanups.forEach(r=>r());}configureRipple(n,r){n.setAttribute(Ef,this._globalRippleOptions?.namespace??""),(r.className||!n.hasAttribute(_f))&&n.setAttribute(_f,r.className||""),r.centered&&n.setAttribute(db,""),r.disabled&&n.setAttribute(lc,"");}setDisabled(n,r){let o=this._hosts.get(n);o?(o.target.rippleDisabled=r,!r&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(n))):r?n.setAttribute(lc,""):n.removeAttribute(lc);}_onInteraction=n=>{let r=st$3(n);if(r instanceof HTMLElement){let o=r.closest(`[${Ef}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(n){if(!this._document||this._hosts.has(n))return;n.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",n.getAttribute(_f)),n.append(r);let o=this._globalRippleOptions,i=this._animationsDisabled?0:o?.animation?.enterDuration??Ri$1.enterDuration,s=this._animationsDisabled?0:o?.animation?.exitDuration??Ri$1.exitDuration,a={rippleDisabled:this._animationsDisabled||o?.disabled||n.hasAttribute(lc),rippleConfig:{centered:n.hasAttribute(db),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:i,exitDuration:s}}},c=new ki$1(a,this._ngZone,r,this._platform,this._injector),u=!a.rippleDisabled;u&&c.setupTriggerEvents(n),this._hosts.set(n,{target:a,renderer:c,hasSetUpEvents:u}),n.removeAttribute(Ef);}destroyRipple(n){let r=this._hosts.get(n);r&&(r.renderer._removeTriggerEvents(),this._hosts.delete(n));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F$2({token:e,factory:e.\u0275fac})}return e})();var pb=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe$1({type:e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(r,o){},styles:[`.mat-focus-indicator {
|
|
89
89
|
position: relative;
|
|
90
90
|
}
|
|
91
91
|
.mat-focus-indicator::before {
|
|
@@ -825,7 +825,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
825
825
|
outline: solid 1px;
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
`],encapsulation:2})}return e})();function ZM(e){return e.hasAttribute("mat-raised-button")?"elevated":e.hasAttribute("mat-stroked-button")?"outlined":e.hasAttribute("mat-flat-button")?"filled":e.hasAttribute("mat-button")?"text":null}var HW=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[mb,no$1]})}return e})();var yb=class e{crumbs=Qe$3([]);static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function XW(e){let t=Array.isArray(e)?e:[],n=new Map;for(let r of t){if(typeof r=="string"){let c=r.trim();c&&n.set(c,{id:c,name:c});continue}let o=r,i=o?.namespaceId??o?.id;if(typeof i!="string"||!i.trim())continue;let s=i.trim(),a=typeof o?.name=="string"&&o.name.trim()?o.name.trim():s;n.set(s,{id:s,name:a});}return Array.from(n.values()).sort((r,o)=>r.name.localeCompare(o.name))}var JW=200;var vb=class e{http=h(to$1);getWorkflows(t,n){return this.request("/api/factory/workflows",{state:t},Ne$6(n)).pipe(A$1(r=>{if(Array.isArray(r))return r;let o=r?.items;return Array.isArray(o)?o:[]}))}getWorkflow(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}`,{},Ne$6(n))}getParentRuns(t){return this.request("/api/factory/runs",{},Ne$6(t)).pipe(A$1(n=>{if(Array.isArray(n))return n;let r=n?.items;return Array.isArray(r)?r:[]}))}getParentRun(t,n){return this.request(`/api/factory/runs/${encodeURIComponent(t)}`,{},Ne$6(n))}replyParentRunEscalation(t,n,r,o){let i=Ne$6(o);return this.post(`/api/factory/runs/${encodeURIComponent(t)}/escalations/${encodeURIComponent(n)}/reply`,P(I$2({},r),{namespaceId:i}),i)}getTiming(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/timing`,{},n)}getEvidence(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/evidence`,{},n)}getMetrics(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/metrics`,{},n)}getCumulativeUsage(t){return this.request("/api/agentos/api/usage-records/aggregate/case-trees",{caseIds:t.join(",")})}getInteractions(t,n,r="all"){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/interactions`,{state:r},n).pipe(A$1(o=>{if(Array.isArray(o))return o;let i=o,s=i?.items;if(Array.isArray(s))return s;let a=i?.data;return Array.isArray(a)?a:[]}))}getAttempts(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/attempts`,{},n).pipe(A$1(r=>{if(Array.isArray(r))return r;let o=r,i=o?.items;if(Array.isArray(i))return i;let s=o?.data;return Array.isArray(s)?s:[]}))}getActions(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/actions`,{},n).pipe(A$1(r=>{let o=typeof r=="object"&&r!==null?r:{};return {allowedActions:Array.isArray(o.allowedActions)?o.allowedActions:[],blockers:Array.isArray(o.blockers)?o.blockers:[]}}))}createWorkflowRun(t,n){let r=Ne$6(t.namespaceId);return this.post("/api/factory/workflows",P(I$2({},t),{namespaceId:r}),r,void 0,n)}replyInteraction(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/interactions/${encodeURIComponent(n)}/reply`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}answerAgentQuestion(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/agent-questions/${encodeURIComponent(n)}/answer`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}answerAgentStepQuestion(t,n,r,o){let i=Ne$6(o);return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/agent-step-questions/${encodeURIComponent(n)}/answer`,P(I$2({},r),{namespaceId:i}),i)}getAgentQuestions(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/agent-questions`,{},n).pipe(A$1(r=>Array.isArray(r)?r:[]))}resumeResearch(t,n,r,o){let i=Ne$6(r.namespaceId);return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/steps/${encodeURIComponent(n)}/research-resumptions`,P(I$2({},r),{namespaceId:i}),i,void 0,o)}openRetry(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/retries`,P(I$2({},n),{namespaceId:Ne$6(r??"")}),r)}cancelAttempt(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/attempts/${encodeURIComponent(n)}/cancel`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}continueCost(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/cost/continue`,n??{},r)}stopCost(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/cost/stop`,{},n)}removeWorkflow(t,n){return this.delete(`/api/factory/workflows/${encodeURIComponent(t)}`,n)}restoreWorkflow(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/restore`,{},n)}purgeWorkflow(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/purge`,{},n)}runGarbageCollection(t,n){return this.post("/api/factory/admin/artifacts/gc",t??{},n)}purgeArtifact(t,n,r){let o=`/api/factory/admin/artifacts/${encodeURIComponent(t)}/purge`;return this.post(o,n??{},r)}setLegalHold(t,n,r){let o=`/api/factory/admin/artifacts/${encodeURIComponent(t)}/legal-hold`;return this.post(o,n,r)}getRunConcurrency(){return this.request("/api/factory/admin/settings/run-concurrency",{})}updateRunConcurrency(t){return this.put("/api/factory/admin/settings/run-concurrency",{maxParallelRuns:t})}getAgents(t){return this.request(`/api/agentos/api/agent-configs/by-parentId/${encodeURIComponent(Ne$6(t))}`,{}).pipe(A$1(n=>(Array.isArray(n)?n:[]).filter(r=>typeof r?.name=="string"&&!!r.name.trim()&&r.enabled!==false)))}getWorkflowDefinitions(t){return this.request("/api/factory/workflow-definitions",{},t)}getWorkflowDefinition(t,n,r){let o=`/api/factory/workflow-definitions/${encodeURIComponent(t)}/${encodeURIComponent(n)}`;return this.request(o,{},r).pipe(A$1(i=>YM(i)))}getNamespaces(){return this.request("/api/agentos/api/namespaces",{}).pipe(A$1(t=>{if(Array.isArray(t))return t;let n=t?.items;return Array.isArray(n)?n:[]}))}startWorkflow(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/start`,n,r)}runWorkflow(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/run`,n,r)}uploadWorkflowDefinition(t,n){let r=new FormData;return r.append("file",t,t.name||"definition.json"),this.postFormData("/api/factory/workflow-definitions/upload",r,n)}createWorkflowDefinition(t){return this.http.post("/api/factory/workflow-definitions",t,{headers:new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1()).set("If-None-Match","*")}).pipe(A$1(n=>lr$1(n)?n.data:n),ke$4(n=>ut$4(()=>co$1(n))))}deleteWorkflowDefinition(t,n,r){let o=`/api/factory/workflow-definitions/${encodeURIComponent(t)}/${encodeURIComponent(n)}`;return this.delete(o,r)}post(t,n,r,o,i){let s=new Ie$3,a=new ge$3().set("X-Correlation-Id",o??ao$1()).set("Content-Type","application/json");i&&(a=a.set("Idempotency-Key",i));let c=r?.trim();return c&&(a=a.set("X-Namespace-Id",c),s=s.set("namespaceId",c)),this.http.post(t,n,{params:s,headers:a}).pipe(A$1(u=>lr$1(u)?u.data:u),ke$4(u=>ut$4(()=>co$1(u))))}put(t,n){let r=new ge$3().set("X-Correlation-Id",ao$1()).set("Content-Type","application/json");return this.http.put(t,n,{headers:r}).pipe(A$1(o=>lr$1(o)?o.data:o),ke$4(o=>ut$4(()=>co$1(o))))}postFormData(t,n,r){let o=new Ie$3,i=new ge$3().set("X-Correlation-Id",ao$1()),s=r?.trim();return s&&(i=i.set("X-Namespace-Id",s),o=o.set("namespaceId",s)),this.http.post(t,n,{params:o,headers:i}).pipe(A$1(a=>lr$1(a)?a.data:a),ke$4(a=>ut$4(()=>co$1(a))))}delete(t,n){let r=new Ie$3,o=new ge$3().set("X-Correlation-Id",ao$1()),i=n?.trim();return i&&(o=o.set("X-Namespace-Id",i),r=r.set("namespaceId",i)),this.http.delete(t,{params:r,headers:o}).pipe(A$1(s=>lr$1(s)?s.data:s),ke$4(s=>ut$4(()=>co$1(s))))}request(t,n,r,o){let i=new Ie$3;for(let[c,u]of Object.entries(n))typeof u=="string"&&u.length>0&&(i=i.set(c,u));let s=new ge$3().set("X-Correlation-Id",o??ao$1()),a=r?.trim();return a&&(s=s.set("X-Namespace-Id",a),i=i.set("namespaceId",a)),this.http.get(t,{params:i,headers:s}).pipe(A$1(c=>lr$1(c)?c.data:c),ke$4(c=>ut$4(()=>co$1(c))))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ne$6(e){let t=e.trim();if(!t)throw new Error("Factory workflow request requires namespaceId");return t}function ao$1(){let e=globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID():`factory-cockpit-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}function lr$1(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"data")}function YM(e){let t=e;for(;lr$1(t);)t=t.data;if(typeof t=="object"&&t!==null&&"definition"in t){let n=t,r=n.definition;return typeof r!="object"||r===null||Array.isArray(r)?{}:P(I$2({},r),{steps:Array.isArray(r.steps)?r.steps.map(o=>{let i=n.legacyContracts?.[o.id];return i?P(I$2({},o),{legacyContract:i}):o}):void 0})}return typeof t=="object"&&t!==null?t:{}}function co$1(e){if(e instanceof Ut$2){let t=e.error,n=t?.error,r=typeof n?.code=="string"?n.code:typeof t?.code=="string"?t.code:`HTTP_${e.status}`,o=typeof n?.message=="string"?n.message:typeof t?.message=="string"?t.message:e.message||"Factory API request failed",i=n?.details??t?.details,s=typeof i=="object"&&i!==null&&!Array.isArray(i)?i:void 0;return P(I$2({code:r,message:o,status:e.status},s?{details:s}:{}),{raw:e})}return e instanceof Error?{code:"UNKNOWN_ERROR",message:e.message,status:0,raw:e}:{code:"UNKNOWN_ERROR",message:"Factory API request failed",status:0,raw:e}}var dt$3=class dt{};function Re$4(o){return o&&typeof o.connect=="function"&&!(o instanceof _c)}var ft$4=class ft extends dt$3{_data;constructor(e){super(),this._data=e;}connect(){return Qb(this._data)?this._data:qe$3(this._data)}disconnect(){}},Z$1=(function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o})(Z$1||{}),ut$3=class ut{viewCacheSize=20;_viewCache=[];applyChanges(e,t,i,n,s){e.forEachOperation((r,a,l)=>{let c,d;if(r.previousIndex==null){let f=()=>i(r,a,l);c=this._insertView(f,l,t,n(r)),d=c?Z$1.INSERTED:Z$1.REPLACED;}else l==null?(this._detachAndCacheView(a,t),d=Z$1.REMOVED):(c=this._moveView(a,l,t,n(r)),d=Z$1.MOVED);s&&s({context:c?.context,operation:d,record:r});});}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[];}_insertView(e,t,i,n){let s=this._insertViewFromCache(t,i);if(s){s.context.$implicit=n;return}let r=e();return i.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(e,t){let i=t.detach(e);this._maybeCacheView(i,t);}_moveView(e,t,i,n){let s=i.get(e);return i.move(s,t),s.context.$implicit=n,s}_maybeCacheView(e,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else {let i=t.indexOf(e);i===-1?e.destroy():t.remove(i);}}_insertViewFromCache(e,t){let i=this._viewCache.pop();return i&&t.insert(i,e),i||null}};var $e$3=["contentWrapper"],Ke$2=["*"],Ee$3=new y("VIRTUAL_SCROLL_STRATEGY"),Mt$4=class Mt{_scrolledIndexChange=new Z$2;scrolledIndexChange=this._scrolledIndexChange.pipe(ns$1());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(e,t,i){this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=i;}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange();}detach(){this._scrolledIndexChange.complete(),this._viewport=null;}updateItemAndBufferSize(e,t,i){this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange();}onContentScrolled(){this._updateRenderedRange();}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange();}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,t){this._viewport&&this._viewport.scrollToOffset(e*this._itemSize,t);}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize);}_updateRenderedRange(){if(!this._viewport)return;let e=this._viewport.getRenderedRange(),t={start:e.start,end:e.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),s=this._viewport.measureScrollOffset(),r=this._itemSize>0?s/this._itemSize:0;if(t.end>n){let l=Math.ceil(i/this._itemSize),c=Math.max(0,Math.min(r,n-l));r!=c&&(r=c,s=c*this._itemSize,t.start=Math.floor(r)),t.end=Math.max(0,Math.min(n,t.start+l));}let a=s-t.start*this._itemSize;if(a<this._minBufferPx&&t.start!=0){let l=Math.ceil((this._maxBufferPx-a)/this._itemSize);t.start=Math.max(0,t.start-l),t.end=Math.min(n,Math.ceil(r+(i+this._minBufferPx)/this._itemSize));}else {let l=t.end*this._itemSize-(s+i);if(l<this._minBufferPx&&t.end!=n){let c=Math.ceil((this._maxBufferPx-l)/this._itemSize);c>0&&(t.end=Math.min(n,t.end+c),t.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)));}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*t.start)),this._scrolledIndexChange.next(Math.floor(r));}};function qe$2(o){return o._scrollStrategy}var Qe$2=(()=>{class o{get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=fM(t);}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=fM(t);}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=fM(t);}_maxBufferPx=200;_scrollStrategy=new Mt$4(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx);}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Ey([{provide:Ee$3,useFactory:qe$2,deps:[Es(()=>o)]}]),ya]})}return o})(),Je$2=20,U$2=(()=>{class o{_ngZone=h(j$1);_platform=h(De$5);_renderer=h(tt$1).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new Z$2;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Je$2){return this._platform.isBrowser?new k$1(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=t>0?this._scrolled.pipe(eD(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):qe$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(t,i){let n=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Tt$6(s=>!s||n.indexOf(s)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((n,s)=>{this._targetContainsElement(s,t)&&i.push(s);}),i}_targetContainsElement(t,i){let n=mn$4(i),s=t.getElementRef().nativeElement;do if(n==s)return true;while(n=n.parentElement);return false}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),At$6=(()=>{class o{elementRef=h(ue$2);scrollDispatcher=h(U$2);ngZone=h(j$1);dir=h(iM,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z$2;_renderer=h(ai$4);_cleanupScroll;_elementScrolled=new Z$2;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=n?t.end:t.start),t.right==null&&(t.right=n?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),n&&V3()!=Ni$2.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),V3()==Ni$2.INVERTED?t.left=t.right:V3()==Ni$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;B3()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left));}measureScrollOffset(t){let i="left",n="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?n:i:t=="end"&&(t=r?i:n),r&&V3()==Ni$2.INVERTED?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&V3()==Ni$2.NEGATED?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return o})(),ti$2=20,A=(()=>{class o{_platform=h(De$5);_listeners;_viewportSize=null;_change=new Z$2;_document=h(O$1);constructor(){let t=h(j$1),i=h(tt$1).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=s=>this._change.next(s);this._listeners=[i.listen("window","resize",n),i.listen("window","orientationchange",n)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,i=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||i.scrollY||n.scrollTop||0,a=-s.left||t.body?.scrollLeft||i.scrollX||n.scrollLeft||0;return {top:r,left:a}}change(t=ti$2){return t>0?this._change.pipe(eD(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),ke$3=new y("VIRTUAL_SCROLLABLE"),ei$2=(()=>{class o extends At$6{measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}static \u0275fac=(()=>{let t;return function(n){return (t||(t=pm(o)))(n||o)}})();static \u0275dir=rt$2({type:o,features:[Kr$1]})}return o})();function ii$2(o,e){return o.start==e.start&&o.end==e.end}var ni$2=typeof requestAnimationFrame<"u"?Kb:Yb,Pe$3=new y("CDK_VIRTUAL_SCROLL_VIEWPORT"),oi$2=(()=>{class o extends ei$2{elementRef=h(ue$2);_changeDetectorRef=h(Ly);_scrollStrategy=h(Ee$3,{optional:true});scrollable=h(ke$3,{optional:true});_platform=h(De$5);_detachedSubject=new Z$2;_renderedRangeSubject=new Z$2;_renderedContentOffsetSubject=new Z$2;get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize());}_orientation="vertical";appendOnly=false;scrolledIndexChange=new k$1(t=>this._scrollStrategy.scrolledIndexChange.subscribe(i=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(i)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;renderedContentOffset=this._renderedContentOffsetSubject.pipe(Tt$6(t=>t!==null),ns$1());_totalContentSize=0;_totalContentWidth=Qe$3("");_totalContentHeight=Qe$3("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf=null;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=false;_changeDetectionNeeded=Qe$3(false);_runAfterChangeDetection=[];_viewportChanges=q$3.EMPTY;_injector=h(K$4);_isDestroyed=false;constructor(){super();let t=h(A);this._scrollStrategy,this._viewportChanges=t.change().subscribe(()=>{this.checkViewportSize();}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let i=$s(()=>{this._changeDetectionNeeded()&&this._doChangeDetection();},{injector:h(or$1).injector});h(Ue$3).onDestroy(()=>{i.destroy();});}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Ac(null),eD(0,ni$2),Er(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded();})));}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=true,super.ngOnDestroy();}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Er(this._detachedSubject)).subscribe(i=>{let n=i.length;n!==this._dataLength&&(this._dataLength=n,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection();});});}detach(){this._forOf=null,this._detachedSubject.next();}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded());}setRenderedRange(t){ii$2(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()));}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let n=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",r=s?"X":"Y",l=`translate${r}(${Number((s&&n?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(l+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=true),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=false,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged();}));}scrollToOffset(t,i="auto"){let n={behavior:i};this.orientation==="horizontal"?n.start=t:n.top=t,this.scrollable.scrollTo(n);}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i);}measureScrollOffset(t){let i;return this.scrollable==this?i=n=>super.measureScrollOffset(n):i=n=>this.scrollable.measureScrollOffset(n),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){let i,n="left",s="right",r=this.dir?.value=="rtl";t=="start"?i=r?s:n:t=="end"?i=r?n:s:t?i=t:i=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-a}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged();}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation);}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),!pi$2(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(true);});});});}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this._renderedContentOffsetSubject.next(this.getOffsetToRenderedContentStart()),Zl(()=>{this._changeDetectionNeeded.set(false);let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i();},{injector:this._injector});});}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"");}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=xe$1({type:o,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,n){if(i&1&&ry($e$3,7),i&2){let s;gC(s=yC())&&(n._contentWrapper=s.first);}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,n){i&2&&It$7("cdk-virtual-scroll-orientation-horizontal",n.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",n.orientation!=="horizontal");},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",wt$6]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Ey([{provide:At$6,useFactory:()=>h(ke$3,{optional:true})||h(o)},{provide:Pe$3,useExisting:o}]),Kr$1],ngContentSelectors:Ke$2,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,n){i&1&&(sr$1(),dn$3(0,"div",1,0),ot$3(2),fn$5(),pn$4(3,"div",2)),i&2&&(ri$3(3),cy("width",n._totalContentWidth())("height",n._totalContentHeight()));},styles:[`cdk-virtual-scroll-viewport {
|
|
828
|
+
`],encapsulation:2})}return e})();function ZM(e){return e.hasAttribute("mat-raised-button")?"elevated":e.hasAttribute("mat-stroked-button")?"outlined":e.hasAttribute("mat-flat-button")?"filled":e.hasAttribute("mat-button")?"text":null}var HW=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he$2({type:e});static \u0275inj=ce$4({imports:[mb,no$1]})}return e})();var yb=class e{crumbs=Qe$3([]);static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function XW(e){let t=Array.isArray(e)?e:[],n=new Map;for(let r of t){if(typeof r=="string"){let c=r.trim();c&&n.set(c,{id:c,name:c});continue}let o=r,i=o?.namespaceId??o?.id;if(typeof i!="string"||!i.trim())continue;let s=i.trim(),a=typeof o?.name=="string"&&o.name.trim()?o.name.trim():s;n.set(s,{id:s,name:a});}return Array.from(n.values()).sort((r,o)=>r.name.localeCompare(o.name))}var JW=200;var vb=class e{http=h(to$1);getWorkflows(t,n){return this.request("/api/factory/workflows",{state:t},Ne$6(n)).pipe(A$1(r=>{if(Array.isArray(r))return r;let o=r?.items;return Array.isArray(o)?o:[]}))}getWorkflow(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}`,{},Ne$6(n))}getParentRuns(t){return this.request("/api/factory/runs",{},Ne$6(t)).pipe(A$1(n=>{if(Array.isArray(n))return n;let r=n?.items;return Array.isArray(r)?r:[]}))}getParentRun(t,n){return this.request(`/api/factory/runs/${encodeURIComponent(t)}`,{},Ne$6(n))}replyParentRunEscalation(t,n,r,o){let i=Ne$6(o);return this.post(`/api/factory/runs/${encodeURIComponent(t)}/escalations/${encodeURIComponent(n)}/reply`,P(I$2({},r),{namespaceId:i}),i)}getTiming(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/timing`,{},n)}getEvidence(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/evidence`,{},n)}getMetrics(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/metrics`,{},n)}getCumulativeUsage(t){return this.request("/api/agentos/api/usage-records/aggregate/case-trees",{caseIds:t.join(",")})}getInteractions(t,n,r="all"){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/interactions`,{state:r},n).pipe(A$1(o=>{if(Array.isArray(o))return o;let i=o,s=i?.items;if(Array.isArray(s))return s;let a=i?.data;return Array.isArray(a)?a:[]}))}getAttempts(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/attempts`,{},n).pipe(A$1(r=>{if(Array.isArray(r))return r;let o=r,i=o?.items;if(Array.isArray(i))return i;let s=o?.data;return Array.isArray(s)?s:[]}))}getActions(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/actions`,{},n).pipe(A$1(r=>{let o=typeof r=="object"&&r!==null?r:{};return {allowedActions:Array.isArray(o.allowedActions)?o.allowedActions:[],blockers:Array.isArray(o.blockers)?o.blockers:[]}}))}createWorkflowRun(t,n){let r=Ne$6(t.namespaceId);return this.post("/api/factory/workflows",P(I$2({},t),{namespaceId:r}),r,void 0,n)}replyInteraction(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/interactions/${encodeURIComponent(n)}/reply`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}answerAgentQuestion(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/agent-questions/${encodeURIComponent(n)}/answer`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}answerAgentStepQuestion(t,n,r,o){let i=Ne$6(o);return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/agent-step-questions/${encodeURIComponent(n)}/answer`,P(I$2({},r),{namespaceId:i}),i)}getAgentQuestions(t,n){return this.request(`/api/factory/workflows/${encodeURIComponent(t)}/agent-questions`,{},n).pipe(A$1(r=>Array.isArray(r)?r:[]))}resumeResearch(t,n,r,o){let i=Ne$6(r.namespaceId);return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/steps/${encodeURIComponent(n)}/research-resumptions`,P(I$2({},r),{namespaceId:i}),i,void 0,o)}retryFailedStep(t,n,r,o){let i=Ne$6(r.namespaceId);return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/steps/${encodeURIComponent(n)}/failed-step-retries`,P(I$2({},r),{namespaceId:i}),i,void 0,o)}cancelAttempt(t,n,r,o){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/attempts/${encodeURIComponent(n)}/cancel`,P(I$2({},r),{namespaceId:Ne$6(o??"")}),o)}continueCost(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/cost/continue`,n??{},r)}stopCost(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/cost/stop`,{},n)}removeWorkflow(t,n){return this.delete(`/api/factory/workflows/${encodeURIComponent(t)}`,n)}restoreWorkflow(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/restore`,{},n)}purgeWorkflow(t,n){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/purge`,{},n)}runGarbageCollection(t,n){return this.post("/api/factory/admin/artifacts/gc",t??{},n)}purgeArtifact(t,n,r){let o=`/api/factory/admin/artifacts/${encodeURIComponent(t)}/purge`;return this.post(o,n??{},r)}setLegalHold(t,n,r){let o=`/api/factory/admin/artifacts/${encodeURIComponent(t)}/legal-hold`;return this.post(o,n,r)}getRunConcurrency(){return this.request("/api/factory/admin/settings/run-concurrency",{})}updateRunConcurrency(t){return this.put("/api/factory/admin/settings/run-concurrency",{maxParallelRuns:t})}getAgents(t){return this.request(`/api/agentos/api/agent-configs/by-parentId/${encodeURIComponent(Ne$6(t))}`,{}).pipe(A$1(n=>(Array.isArray(n)?n:[]).filter(r=>typeof r?.name=="string"&&!!r.name.trim()&&r.enabled!==false)))}getWorkflowDefinitions(t){return this.request("/api/factory/workflow-definitions",{},t)}getWorkflowDefinition(t,n,r){let o=`/api/factory/workflow-definitions/${encodeURIComponent(t)}/${encodeURIComponent(n)}`;return this.request(o,{},r).pipe(A$1(i=>YM(i)))}getNamespaces(){return this.request("/api/agentos/api/namespaces",{}).pipe(A$1(t=>{if(Array.isArray(t))return t;let n=t?.items;return Array.isArray(n)?n:[]}))}startWorkflow(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/start`,n,r)}runWorkflow(t,n,r){return this.post(`/api/factory/workflows/${encodeURIComponent(t)}/run`,n,r)}uploadWorkflowDefinition(t,n){let r=new FormData;return r.append("file",t,t.name||"definition.json"),this.postFormData("/api/factory/workflow-definitions/upload",r,n)}createWorkflowDefinition(t){return this.http.post("/api/factory/workflow-definitions",t,{headers:new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1()).set("If-None-Match","*")}).pipe(A$1(n=>lr$1(n)?n.data:n),ke$4(n=>ut$4(()=>co$1(n))))}deleteWorkflowDefinition(t,n,r){let o=`/api/factory/workflow-definitions/${encodeURIComponent(t)}/${encodeURIComponent(n)}`;return this.delete(o,r)}post(t,n,r,o,i){let s=new Ie$3,a=new ge$3().set("X-Correlation-Id",o??ao$1()).set("Content-Type","application/json");i&&(a=a.set("Idempotency-Key",i));let c=r?.trim();return c&&(a=a.set("X-Namespace-Id",c),s=s.set("namespaceId",c)),this.http.post(t,n,{params:s,headers:a}).pipe(A$1(u=>lr$1(u)?u.data:u),ke$4(u=>ut$4(()=>co$1(u))))}put(t,n){let r=new ge$3().set("X-Correlation-Id",ao$1()).set("Content-Type","application/json");return this.http.put(t,n,{headers:r}).pipe(A$1(o=>lr$1(o)?o.data:o),ke$4(o=>ut$4(()=>co$1(o))))}postFormData(t,n,r){let o=new Ie$3,i=new ge$3().set("X-Correlation-Id",ao$1()),s=r?.trim();return s&&(i=i.set("X-Namespace-Id",s),o=o.set("namespaceId",s)),this.http.post(t,n,{params:o,headers:i}).pipe(A$1(a=>lr$1(a)?a.data:a),ke$4(a=>ut$4(()=>co$1(a))))}delete(t,n){let r=new Ie$3,o=new ge$3().set("X-Correlation-Id",ao$1()),i=n?.trim();return i&&(o=o.set("X-Namespace-Id",i),r=r.set("namespaceId",i)),this.http.delete(t,{params:r,headers:o}).pipe(A$1(s=>lr$1(s)?s.data:s),ke$4(s=>ut$4(()=>co$1(s))))}request(t,n,r,o){let i=new Ie$3;for(let[c,u]of Object.entries(n))typeof u=="string"&&u.length>0&&(i=i.set(c,u));let s=new ge$3().set("X-Correlation-Id",o??ao$1()),a=r?.trim();return a&&(s=s.set("X-Namespace-Id",a),i=i.set("namespaceId",a)),this.http.get(t,{params:i,headers:s}).pipe(A$1(c=>lr$1(c)?c.data:c),ke$4(c=>ut$4(()=>co$1(c))))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ne$6(e){let t=e.trim();if(!t)throw new Error("Factory workflow request requires namespaceId");return t}function ao$1(){let e=globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID():`factory-cockpit-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}function lr$1(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"data")}function YM(e){let t=e;for(;lr$1(t);)t=t.data;if(typeof t=="object"&&t!==null&&"definition"in t){let n=t,r=n.definition;return typeof r!="object"||r===null||Array.isArray(r)?{}:P(I$2({},r),{steps:Array.isArray(r.steps)?r.steps.map(o=>{let i=n.legacyContracts?.[o.id];return i?P(I$2({},o),{legacyContract:i}):o}):void 0})}return typeof t=="object"&&t!==null?t:{}}function co$1(e){if(e instanceof Ut$2){let t=e.error,n=t?.error,r=typeof n?.code=="string"?n.code:typeof t?.code=="string"?t.code:`HTTP_${e.status}`,o=typeof n?.message=="string"?n.message:typeof t?.message=="string"?t.message:e.message||"Factory API request failed",i=n?.details??t?.details,s=typeof i=="object"&&i!==null&&!Array.isArray(i)?i:void 0;return P(I$2({code:r,message:o,status:e.status},s?{details:s}:{}),{raw:e})}return e instanceof Error?{code:"UNKNOWN_ERROR",message:e.message,status:0,raw:e}:{code:"UNKNOWN_ERROR",message:"Factory API request failed",status:0,raw:e}}var dt$3=class dt{};function Re$4(o){return o&&typeof o.connect=="function"&&!(o instanceof _c)}var ft$4=class ft extends dt$3{_data;constructor(e){super(),this._data=e;}connect(){return Qb(this._data)?this._data:qe$3(this._data)}disconnect(){}},Z$1=(function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o})(Z$1||{}),ut$3=class ut{viewCacheSize=20;_viewCache=[];applyChanges(e,t,i,n,s){e.forEachOperation((r,a,l)=>{let c,d;if(r.previousIndex==null){let f=()=>i(r,a,l);c=this._insertView(f,l,t,n(r)),d=c?Z$1.INSERTED:Z$1.REPLACED;}else l==null?(this._detachAndCacheView(a,t),d=Z$1.REMOVED):(c=this._moveView(a,l,t,n(r)),d=Z$1.MOVED);s&&s({context:c?.context,operation:d,record:r});});}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[];}_insertView(e,t,i,n){let s=this._insertViewFromCache(t,i);if(s){s.context.$implicit=n;return}let r=e();return i.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(e,t){let i=t.detach(e);this._maybeCacheView(i,t);}_moveView(e,t,i,n){let s=i.get(e);return i.move(s,t),s.context.$implicit=n,s}_maybeCacheView(e,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else {let i=t.indexOf(e);i===-1?e.destroy():t.remove(i);}}_insertViewFromCache(e,t){let i=this._viewCache.pop();return i&&t.insert(i,e),i||null}};var $e$3=["contentWrapper"],Ke$2=["*"],Ee$3=new y("VIRTUAL_SCROLL_STRATEGY"),Mt$4=class Mt{_scrolledIndexChange=new Z$2;scrolledIndexChange=this._scrolledIndexChange.pipe(ns$1());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(e,t,i){this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=i;}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange();}detach(){this._scrolledIndexChange.complete(),this._viewport=null;}updateItemAndBufferSize(e,t,i){this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange();}onContentScrolled(){this._updateRenderedRange();}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange();}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,t){this._viewport&&this._viewport.scrollToOffset(e*this._itemSize,t);}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize);}_updateRenderedRange(){if(!this._viewport)return;let e=this._viewport.getRenderedRange(),t={start:e.start,end:e.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),s=this._viewport.measureScrollOffset(),r=this._itemSize>0?s/this._itemSize:0;if(t.end>n){let l=Math.ceil(i/this._itemSize),c=Math.max(0,Math.min(r,n-l));r!=c&&(r=c,s=c*this._itemSize,t.start=Math.floor(r)),t.end=Math.max(0,Math.min(n,t.start+l));}let a=s-t.start*this._itemSize;if(a<this._minBufferPx&&t.start!=0){let l=Math.ceil((this._maxBufferPx-a)/this._itemSize);t.start=Math.max(0,t.start-l),t.end=Math.min(n,Math.ceil(r+(i+this._minBufferPx)/this._itemSize));}else {let l=t.end*this._itemSize-(s+i);if(l<this._minBufferPx&&t.end!=n){let c=Math.ceil((this._maxBufferPx-l)/this._itemSize);c>0&&(t.end=Math.min(n,t.end+c),t.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)));}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*t.start)),this._scrolledIndexChange.next(Math.floor(r));}};function qe$2(o){return o._scrollStrategy}var Qe$2=(()=>{class o{get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=fM(t);}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=fM(t);}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=fM(t);}_maxBufferPx=200;_scrollStrategy=new Mt$4(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx);}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Ey([{provide:Ee$3,useFactory:qe$2,deps:[Es(()=>o)]}]),ya]})}return o})(),Je$2=20,U$2=(()=>{class o{_ngZone=h(j$1);_platform=h(De$5);_renderer=h(tt$1).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new Z$2;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Je$2){return this._platform.isBrowser?new k$1(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=t>0?this._scrolled.pipe(eD(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):qe$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(t,i){let n=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Tt$6(s=>!s||n.indexOf(s)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((n,s)=>{this._targetContainsElement(s,t)&&i.push(s);}),i}_targetContainsElement(t,i){let n=mn$4(i),s=t.getElementRef().nativeElement;do if(n==s)return true;while(n=n.parentElement);return false}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),At$6=(()=>{class o{elementRef=h(ue$2);scrollDispatcher=h(U$2);ngZone=h(j$1);dir=h(iM,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z$2;_renderer=h(ai$4);_cleanupScroll;_elementScrolled=new Z$2;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=n?t.end:t.start),t.right==null&&(t.right=n?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),n&&V3()!=Ni$2.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),V3()==Ni$2.INVERTED?t.left=t.right:V3()==Ni$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;B3()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left));}measureScrollOffset(t){let i="left",n="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?n:i:t=="end"&&(t=r?i:n),r&&V3()==Ni$2.INVERTED?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&V3()==Ni$2.NEGATED?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return o})(),ti$2=20,A=(()=>{class o{_platform=h(De$5);_listeners;_viewportSize=null;_change=new Z$2;_document=h(O$1);constructor(){let t=h(j$1),i=h(tt$1).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=s=>this._change.next(s);this._listeners=[i.listen("window","resize",n),i.listen("window","orientationchange",n)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,i=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||i.scrollY||n.scrollTop||0,a=-s.left||t.body?.scrollLeft||i.scrollX||n.scrollLeft||0;return {top:r,left:a}}change(t=ti$2){return t>0?this._change.pipe(eD(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),ke$3=new y("VIRTUAL_SCROLLABLE"),ei$2=(()=>{class o extends At$6{measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}static \u0275fac=(()=>{let t;return function(n){return (t||(t=pm(o)))(n||o)}})();static \u0275dir=rt$2({type:o,features:[Kr$1]})}return o})();function ii$2(o,e){return o.start==e.start&&o.end==e.end}var ni$2=typeof requestAnimationFrame<"u"?Kb:Yb,Pe$3=new y("CDK_VIRTUAL_SCROLL_VIEWPORT"),oi$2=(()=>{class o extends ei$2{elementRef=h(ue$2);_changeDetectorRef=h(Ly);_scrollStrategy=h(Ee$3,{optional:true});scrollable=h(ke$3,{optional:true});_platform=h(De$5);_detachedSubject=new Z$2;_renderedRangeSubject=new Z$2;_renderedContentOffsetSubject=new Z$2;get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize());}_orientation="vertical";appendOnly=false;scrolledIndexChange=new k$1(t=>this._scrollStrategy.scrolledIndexChange.subscribe(i=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(i)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;renderedContentOffset=this._renderedContentOffsetSubject.pipe(Tt$6(t=>t!==null),ns$1());_totalContentSize=0;_totalContentWidth=Qe$3("");_totalContentHeight=Qe$3("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf=null;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=false;_changeDetectionNeeded=Qe$3(false);_runAfterChangeDetection=[];_viewportChanges=q$3.EMPTY;_injector=h(K$3);_isDestroyed=false;constructor(){super();let t=h(A);this._scrollStrategy,this._viewportChanges=t.change().subscribe(()=>{this.checkViewportSize();}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let i=$s(()=>{this._changeDetectionNeeded()&&this._doChangeDetection();},{injector:h(or$1).injector});h(Ue$3).onDestroy(()=>{i.destroy();});}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Ac(null),eD(0,ni$2),Er(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded();})));}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=true,super.ngOnDestroy();}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Er(this._detachedSubject)).subscribe(i=>{let n=i.length;n!==this._dataLength&&(this._dataLength=n,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection();});});}detach(){this._forOf=null,this._detachedSubject.next();}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded());}setRenderedRange(t){ii$2(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()));}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let n=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",r=s?"X":"Y",l=`translate${r}(${Number((s&&n?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(l+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=true),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=false,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged();}));}scrollToOffset(t,i="auto"){let n={behavior:i};this.orientation==="horizontal"?n.start=t:n.top=t,this.scrollable.scrollTo(n);}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i);}measureScrollOffset(t){let i;return this.scrollable==this?i=n=>super.measureScrollOffset(n):i=n=>this.scrollable.measureScrollOffset(n),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){let i,n="left",s="right",r=this.dir?.value=="rtl";t=="start"?i=r?s:n:t=="end"?i=r?n:s:t?i=t:i=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-a}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged();}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation);}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),!pi$2(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(true);});});});}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this._renderedContentOffsetSubject.next(this.getOffsetToRenderedContentStart()),Zl(()=>{this._changeDetectionNeeded.set(false);let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i();},{injector:this._injector});});}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"");}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=xe$1({type:o,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,n){if(i&1&&ry($e$3,7),i&2){let s;gC(s=yC())&&(n._contentWrapper=s.first);}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,n){i&2&&It$7("cdk-virtual-scroll-orientation-horizontal",n.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",n.orientation!=="horizontal");},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",wt$6]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Ey([{provide:At$6,useFactory:()=>h(ke$3,{optional:true})||h(o)},{provide:Pe$3,useExisting:o}]),Kr$1],ngContentSelectors:Ke$2,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,n){i&1&&(sr$1(),dn$3(0,"div",1,0),ot$3(2),fn$5(),pn$4(3,"div",2)),i&2&&(ri$3(3),cy("width",n._totalContentWidth())("height",n._totalContentHeight()));},styles:[`cdk-virtual-scroll-viewport {
|
|
829
829
|
display: block;
|
|
830
830
|
position: relative;
|
|
831
831
|
transform: translateZ(0);
|
|
@@ -884,7 +884,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
884
884
|
[dir=rtl] .cdk-virtual-scroll-spacer {
|
|
885
885
|
transform-origin: 100% 0;
|
|
886
886
|
}
|
|
887
|
-
`],encapsulation:2})}return o})();function Oe$3(o,e,t){let i=t;if(!i.getBoundingClientRect)return 0;let n=i.getBoundingClientRect();return o==="horizontal"?e==="start"?n.left:n.right:e==="start"?n.top:n.bottom}var si$2=(()=>{class o{_viewContainerRef=h(Yr$1);_template=h(Wr$1);_differs=h(Fy);_viewRepeater=new ut$3;_viewport=h(Pe$3,{skipSelf:true});viewChange=new Z$2;_dataSourceChanges=new Z$2;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Re$4(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new ft$4(Qb(t)?t:Array.from(t||[])));}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=true,this._cdkVirtualForTrackBy=t?(i,n)=>t(i+(this._renderedRange?this._renderedRange.start:0),n):void 0;}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(t){t&&(this._needsUpdate=true,this._template=t);}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=fM(t);}dataStream=this._dataSourceChanges.pipe(Ac(null),aD(),Nc(([t,i])=>this._changeDataSource(t,i)),cD(1));_differ=null;_data=[];_renderedItems=[];_renderedRange={start:0,end:0};_needsUpdate=false;_destroyed=new Z$2;constructor(){let t=h(j$1);this.dataStream.subscribe(i=>{this._data=i,this._onRenderedDataChange();}),this._viewport.renderedRangeStream.pipe(Er(this._destroyed)).subscribe(i=>{this._renderedRange=i,this.viewChange.observers.length&&t.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange();}),this._viewport.attach(this);}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||t.end>this._renderedRange.end;let n=t.start-this._renderedRange.start,s=t.end-t.start,r,a;for(let l=0;l<s;l++){let c=this._viewContainerRef.get(l+n);if(c&&c.rootNodes.length){r=a=c.rootNodes[0];break}}for(let l=s-1;l>-1;l--){let c=this._viewContainerRef.get(l+n);if(c&&c.rootNodes.length){a=c.rootNodes[c.rootNodes.length-1];break}}return r&&a?Oe$3(i,"end",a)-Oe$3(i,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=false;}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach();}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=true);}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=true,i?i.connect(this):qe$3()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let n=this._viewContainerRef.get(i);n.context.index=this._renderedRange.start+i,n.context.count=t,this._updateComputedContextProperties(n.context),n.detectChanges();}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,r,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),t.forEachIdentityChange(s=>{let r=this._viewContainerRef.get(s.currentIndex);r.context.$implicit=s.item;});let i=this._data.length,n=this._viewContainerRef.length;for(;n--;){let s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=i,this._updateComputedContextProperties(s.context);}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even;}_getEmbeddedViewArgs(t,i){return {templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:false,last:false,odd:false,even:false},index:i}}static ngTemplateContextGuard(t,i){return true}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"}})}return o})();var Vt$5=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({})}return o})(),Bt$5=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({imports:[no$1,Vt$5,no$1,Vt$5]})}return o})();var G$3=class G{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},Ft$5=class Ft extends G$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,i,n,s,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=n,this.bindings=s||null,this.directives=r||null;}},$$2=class $ extends G$3{templateRef;viewContainerRef;context;injector;constructor(e,t,i,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=n;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Tt$5=class Tt extends G$3{element;constructor(e){super(),this.element=e instanceof ue$2?e.nativeElement:e;}},pt$3=class pt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Ft$5)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof $$2)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Tt$5)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},_t$4=class _t extends pt$3{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,n=i.get(er$1,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:n,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,n=e.injector||this._defaultInjector||K$4.NULL,s=n.get(ae$3,i.injector);t=By(e.component,{elementInjector:n,environmentInjector:s,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(i);n!==-1&&t.remove(n);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Wi$2=(()=>{class o extends pt$3{_moduleRef=h(er$1,{optional:true});_document=h(O$1);_viewContainerRef=h(Yr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new Oe$4;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,n=i.createComponent(t.component,{index:i.length,injector:t.injector||i.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=t=>{let i=t.element;i.parentNode;let n=this._document.createComment("dom-portal");t.setAttachedHost(this),i.parentNode.insertBefore(n,i),this._getRootNode().appendChild(i),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(i,n);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(n){return (t||(t=pm(o)))(n||o)}})();static \u0275dir=rt$2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Kr$1]})}return o})(),De$4=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({})}return o})();var Me$4=B3();function Ne$5(o){return new gt$4(o.get(A),o.get(O$1))}var gt$4=class gt{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=eW(-this._previousScrollPosition.left),e.style.top=eW(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,n=t.style,s=i.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Me$4&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Me$4&&(i.scrollBehavior=s,n.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};function ze$4(o,e){return new mt$4(o.get(U$2),o.get(j$1),o.get(A),e)}var mt$4=class mt{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=n;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Tt$6(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var K$3=class K{enable(){}disable(){}attach(){}};function Lt$4(o,e){return e.some(t=>{let i=o.bottom<t.top,n=o.top>t.bottom,s=o.right<t.left,r=o.left>t.right;return i||n||s||r})}function Ve$2(o,e){return e.some(t=>{let i=o.top<t.top,n=o.bottom>t.bottom,s=o.left<t.left,r=o.right>t.right;return i||n||s||r})}function It$6(o,e){return new vt$5(o.get(U$2),o.get(A),o.get(j$1),e)}var vt$5=class vt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=n;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Lt$4(t,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},Ie$2=(()=>{class o{_injector=h(K$4);noop=()=>new K$3;close=t=>ze$4(this._injector,t);block=()=>Ne$5(this._injector);reposition=t=>It$6(this._injector,t);static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),q$2=class q{positionStrategy;scrollStrategy=new K$3;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var yt$6=class yt{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var We$1=(()=>{class o{_attachedOverlays=[];_document=h(O$1);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,n){return n.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Ye$2=(()=>{class o extends We$1{_ngZone=h(j$1);_renderer=h(tt$1).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let i=this._attachedOverlays;for(let n=i.length-1;n>-1;n--){let s=i[n];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),He$4=(()=>{class o extends We$1{_platform=h(De$5);_ngZone=h(j$1);_renderer=h(tt$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,n={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,"pointerdown",this._pointerDownListener,n),s.listen(i,"click",this._clickListener,n),s.listen(i,"auxclick",this._clickListener,n),s.listen(i,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=st$3(t);};_clickListener=t=>{let i=st$3(t),n=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],l=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,l))){if(Ae$3(a.overlayElement,i)||Ae$3(a.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t);}}};static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})();function Ae$3(o,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===o)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var Xe$2=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=xe$1({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
887
|
+
`],encapsulation:2})}return o})();function Oe$3(o,e,t){let i=t;if(!i.getBoundingClientRect)return 0;let n=i.getBoundingClientRect();return o==="horizontal"?e==="start"?n.left:n.right:e==="start"?n.top:n.bottom}var si$2=(()=>{class o{_viewContainerRef=h(Yr$1);_template=h(Wr$1);_differs=h(Fy);_viewRepeater=new ut$3;_viewport=h(Pe$3,{skipSelf:true});viewChange=new Z$2;_dataSourceChanges=new Z$2;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Re$4(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new ft$4(Qb(t)?t:Array.from(t||[])));}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=true,this._cdkVirtualForTrackBy=t?(i,n)=>t(i+(this._renderedRange?this._renderedRange.start:0),n):void 0;}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(t){t&&(this._needsUpdate=true,this._template=t);}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=fM(t);}dataStream=this._dataSourceChanges.pipe(Ac(null),aD(),Nc(([t,i])=>this._changeDataSource(t,i)),cD(1));_differ=null;_data=[];_renderedItems=[];_renderedRange={start:0,end:0};_needsUpdate=false;_destroyed=new Z$2;constructor(){let t=h(j$1);this.dataStream.subscribe(i=>{this._data=i,this._onRenderedDataChange();}),this._viewport.renderedRangeStream.pipe(Er(this._destroyed)).subscribe(i=>{this._renderedRange=i,this.viewChange.observers.length&&t.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange();}),this._viewport.attach(this);}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||t.end>this._renderedRange.end;let n=t.start-this._renderedRange.start,s=t.end-t.start,r,a;for(let l=0;l<s;l++){let c=this._viewContainerRef.get(l+n);if(c&&c.rootNodes.length){r=a=c.rootNodes[0];break}}for(let l=s-1;l>-1;l--){let c=this._viewContainerRef.get(l+n);if(c&&c.rootNodes.length){a=c.rootNodes[c.rootNodes.length-1];break}}return r&&a?Oe$3(i,"end",a)-Oe$3(i,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=false;}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach();}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=true);}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=true,i?i.connect(this):qe$3()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let n=this._viewContainerRef.get(i);n.context.index=this._renderedRange.start+i,n.context.count=t,this._updateComputedContextProperties(n.context),n.detectChanges();}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,r,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),t.forEachIdentityChange(s=>{let r=this._viewContainerRef.get(s.currentIndex);r.context.$implicit=s.item;});let i=this._data.length,n=this._viewContainerRef.length;for(;n--;){let s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=i,this._updateComputedContextProperties(s.context);}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even;}_getEmbeddedViewArgs(t,i){return {templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:false,last:false,odd:false,even:false},index:i}}static ngTemplateContextGuard(t,i){return true}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"}})}return o})();var Vt$5=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({})}return o})(),Bt$5=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({imports:[no$1,Vt$5,no$1,Vt$5]})}return o})();var G$3=class G{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},Ft$5=class Ft extends G$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,i,n,s,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=n,this.bindings=s||null,this.directives=r||null;}},$$1=class $ extends G$3{templateRef;viewContainerRef;context;injector;constructor(e,t,i,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=n;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Tt$5=class Tt extends G$3{element;constructor(e){super(),this.element=e instanceof ue$2?e.nativeElement:e;}},pt$3=class pt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Ft$5)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof $$1)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Tt$5)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},_t$4=class _t extends pt$3{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,n=i.get(er$1,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:n,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,n=e.injector||this._defaultInjector||K$3.NULL,s=n.get(ae$3,i.injector);t=By(e.component,{elementInjector:n,environmentInjector:s,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(i);n!==-1&&t.remove(n);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Wi$2=(()=>{class o extends pt$3{_moduleRef=h(er$1,{optional:true});_document=h(O$1);_viewContainerRef=h(Yr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new Oe$4;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,n=i.createComponent(t.component,{index:i.length,injector:t.injector||i.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=t=>{let i=t.element;i.parentNode;let n=this._document.createComment("dom-portal");t.setAttachedHost(this),i.parentNode.insertBefore(n,i),this._getRootNode().appendChild(i),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(i,n);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(n){return (t||(t=pm(o)))(n||o)}})();static \u0275dir=rt$2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Kr$1]})}return o})(),De$4=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({})}return o})();var Me$4=B3();function Ne$5(o){return new gt$4(o.get(A),o.get(O$1))}var gt$4=class gt{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=eW(-this._previousScrollPosition.left),e.style.top=eW(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,n=t.style,s=i.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Me$4&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Me$4&&(i.scrollBehavior=s,n.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};function ze$4(o,e){return new mt$4(o.get(U$2),o.get(j$1),o.get(A),e)}var mt$4=class mt{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=n;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Tt$6(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var K$2=class K{enable(){}disable(){}attach(){}};function Lt$4(o,e){return e.some(t=>{let i=o.bottom<t.top,n=o.top>t.bottom,s=o.right<t.left,r=o.left>t.right;return i||n||s||r})}function Ve$2(o,e){return e.some(t=>{let i=o.top<t.top,n=o.bottom>t.bottom,s=o.left<t.left,r=o.right>t.right;return i||n||s||r})}function It$6(o,e){return new vt$5(o.get(U$2),o.get(A),o.get(j$1),e)}var vt$5=class vt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=n;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Lt$4(t,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},Ie$2=(()=>{class o{_injector=h(K$3);noop=()=>new K$2;close=t=>ze$4(this._injector,t);block=()=>Ne$5(this._injector);reposition=t=>It$6(this._injector,t);static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),q$2=class q{positionStrategy;scrollStrategy=new K$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var yt$6=class yt{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var We$1=(()=>{class o{_attachedOverlays=[];_document=h(O$1);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,n){return n.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Ye$2=(()=>{class o extends We$1{_ngZone=h(j$1);_renderer=h(tt$1).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let i=this._attachedOverlays;for(let n=i.length-1;n>-1;n--){let s=i[n];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),He$4=(()=>{class o extends We$1{_platform=h(De$5);_ngZone=h(j$1);_renderer=h(tt$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,n={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,"pointerdown",this._pointerDownListener,n),s.listen(i,"click",this._clickListener,n),s.listen(i,"auxclick",this._clickListener,n),s.listen(i,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=st$3(t);};_clickListener=t=>{let i=st$3(t),n=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],l=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,l))){if(Ae$3(a.overlayElement,i)||Ae$3(a.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t);}}};static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})();function Ae$3(o,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===o)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var Xe$2=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=xe$1({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
888
888
|
pointer-events: none;
|
|
889
889
|
top: 0;
|
|
890
890
|
left: 0;
|
|
@@ -1023,10 +1023,10 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
1023
1023
|
position: fixed;
|
|
1024
1024
|
z-index: auto;
|
|
1025
1025
|
}
|
|
1026
|
-
`],encapsulation:2})}return o})(),Wt$3=(()=>{class o{_platform=h(De$5);_containerElement;_document=h(O$1);_styleLoader=h(Ht$4);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||H3()){let n=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<n.length;s++)n[s].remove();}let i=this._document.createElement("div");i.classList.add(t),H3()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(Xe$2);}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Nt$6=class Nt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,n){this._renderer=t,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",n);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function Yt$5(o){return o&&o.nodeType===1}var wt$5=class wt{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z$2;_attachments=new Z$2;_detachments=new Z$2;_positionStrategy;_scrollStrategy;_locationChanges=q$3.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new Z$2;_outsidePointerEvents=new Z$2;_afterNextRenderRef;constructor(e,t,i,n,s,r,a,l,c,d=false,f,_){this._portalOutlet=e,this._host=t,this._pane=i,this._config=n,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=f,this._renderer=_,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Zl(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=I$2(I$2({},this._config),e),this._updateElementSize();}setDirection(e){this._config=P(I$2({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=eW(this._config.width),e.height=eW(this._config.height),e.minWidth=eW(this._config.minWidth),e.minHeight=eW(this._config.minHeight),e.maxWidth=eW(this._config.maxWidth),e.maxHeight=eW(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Yt$5(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Nt$6(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,i){let n=lf(t||[]).filter(s=>!!s);n.length&&(i?e.classList.add(...n):e.classList.remove(...n));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Zl(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},Be$1="cdk-overlay-connected-position-bounding-box",ri$2=/([A-Za-z%]+)$/;function Ht$3(o,e){return new bt$3(e,o.get(A),o.get(O$1),o.get(De$5),o.get(Wt$3))}var bt$3=class bt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z$2;_resizeSubscription=q$3.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,n,s){this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=s,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Be$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,n=this._containerRect,s=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,n,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<d.visibleArea)&&(r={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:t});}if(s.length){let a=null,l=-1;for(let c of s){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&B$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof ue$2?this._origin.nativeElement:Yt$5(this._origin)?this._origin:null}_getOriginPoint(e,t,i){let n;if(i.originX=="center")n=e.left+e.width/2;else {let r=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?r:a;}t.left<0&&(n-=t.left);let s;return i.originY=="center"?s=e.top+e.height/2:s=i.originY=="top"?e.top:e.bottom,t.top<0&&(s-=t.top),{x:n,y:s}}_getOverlayPoint(e,t,i){let n;i.overlayX=="center"?n=-t.width/2:i.overlayX==="start"?n=this._isRtl()?-t.width:0:n=this._isRtl()?0:-t.width;let s;return i.overlayY=="center"?s=-t.height/2:s=i.overlayY=="top"?0:-t.height,{x:e.x+n,y:e.y+s}}_getOverlayFit(e,t,i,n){let s=Te$5(t),{x:r,y:a}=e,l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(r+=l),c&&(a+=c);let d=0-r,f=r+s.width-i.width,_=0-a,m=a+s.height-i.height,g=this._subtractOverflows(s.width,d,f),w=this._subtractOverflows(s.height,_,m),Zt=g*w;return {visibleArea:Zt,isCompletelyWithinViewport:s.width*s.height===Zt,fitsInViewportVertically:w===s.height,fitsInViewportHorizontally:g==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let n=i.bottom-t.y,s=i.right-t.x,r=Fe$5(this._overlayRef.getConfig().minHeight),a=Fe$5(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||r!=null&&r<=n,c=e.fitsInViewportHorizontally||a!=null&&a<=s;return l&&c}return false}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=Te$5(t),s=this._viewportRect,r=Math.max(e.x+n.width-s.width,0),a=Math.max(e.y+n.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0),d=0,f=0;return n.width<=s.width?d=c||-r:d=e.x<this._getViewportMarginStart()?s.left-i.left-e.x:0,n.height<=s.height?f=l||-a:f=e.y<this._getViewportMarginTop()?s.top-i.top-e.y:0,this._previousPushAmount={x:d,y:f},{x:e.x+d,y:e.y+f}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!ai$3(this._lastScrollVisibility,i)){let n=new yt$6(e,i);this._positionChanges.next(n);}this._lastScrollVisibility=i;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,n=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${n}`;}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,n=this._isRtl(),s,r,a;if(t.overlayY==="top")r=e.y,s=i.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=i.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-a+this._getViewportMarginTop();else {let m=Math.min(i.bottom-e.y+i.top,e.y),g=this._lastBoundingBoxSize.height;s=m*2,r=e.y-m,s>g&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-g/2);}let l=t.overlayX==="start"&&!n||t.overlayX==="end"&&n,c=t.overlayX==="end"&&!n||t.overlayX==="start"&&n,d,f,_;if(c)_=i.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=e.x-this._getViewportMarginStart();else if(l)f=e.x,d=i.right-e.x-this._getViewportMarginEnd();else {let m=Math.min(i.right-e.x+i.left,e.x),g=this._lastBoundingBoxSize.width;d=m*2,f=e.x-m,d>g&&!this._isInitialRender&&!this._growAfterOpen&&(f=e.x-g/2);}return {top:r,left:f,bottom:a,right:_,width:d,height:s}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="auto",n.maxHeight=n.maxWidth="",n.width=n.height="100%";else {let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.width=eW(i.width),n.height=eW(i.height),n.top=eW(i.top)||"auto",n.bottom=eW(i.bottom)||"auto",n.left=eW(i.left)||"auto",n.right=eW(i.right)||"auto",t.overlayX==="center"?n.alignItems="center":n.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?n.justifyContent="center":n.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",s&&(n.maxHeight=eW(s)),r&&(n.maxWidth=eW(r));}this._lastBoundingBoxSize=i,B$2(this._boundingBox.style,n);}_resetBoundingBoxStyles(){B$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){B$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){let d=this._viewportRuler.getViewportScrollPosition();B$2(i,this._getExactOverlayY(t,e,d)),B$2(i,this._getExactOverlayX(t,e,d));}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=eW(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=eW(r.maxWidth):s&&(i.maxWidth="")),B$2(this._pane.style,i);}_getExactOverlayY(e,t,i){let n={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),e.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;n.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else n.top=eW(s.y);return n}_getExactOverlayX(e,t,i){let n={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r;if(this._isRtl()?r=e.overlayX==="end"?"left":"right":r=e.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(s.x+this._overlayRect.width)}px`;}else n.left=eW(s.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Ve$2(e,i),isOriginOutsideView:Lt$4(e,i),isOverlayClipped:Ve$2(t,i),isOverlayOutsideView:Lt$4(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+e-this._getViewportMarginEnd(),bottom:i.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&lf(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof ue$2)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return {top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let i=t.getBoundingClientRect();return e&&(t.style.display=""),i}};function B$2(o,e){for(let t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);return o}function Fe$5(o){if(typeof o!="number"&&o!=null){let[e,t]=o.split(ri$2);return !t||t==="px"?parseFloat(e):null}return o||null}function Te$5(o){return {top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function ai$3(o,e){return o===e?true:o.isOriginClipped===e.isOriginClipped&&o.isOriginOutsideView===e.isOriginOutsideView&&o.isOverlayClipped===e.isOverlayClipped&&o.isOverlayOutsideView===e.isOverlayOutsideView}var Le$2="cdk-global-overlay-wrapper";function je$1(o){return new Ct$5}var Ct$5=class Ct{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Le$2),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:a}=i,l=(n==="100%"||n==="100vw")&&(!r||r==="100%"||r==="100vw"),c=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,f=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",m="",g="",w="";l?w="flex-start":d==="center"?(w="center",_?g=f:m=f):_?d==="left"||d==="end"?(w="flex-end",m=f):(d==="right"||d==="start")&&(w="flex-start",g=f):d==="left"||d==="start"?(w="flex-start",m=f):(d==="right"||d==="end")&&(w="flex-end",g=f),e.position=this._cssPosition,e.marginLeft=l?"0":m,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":g,t.justifyContent=w,t.alignItems=c?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Le$2),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},Ze$2=(()=>{class o{_injector=h(K$4);global(){return je$1()}flexibleConnectedTo(t){return Ht$3(this._injector,t)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Xt$5=new y("OVERLAY_DEFAULT_CONFIG");function jt$2(o,e){o.get(Ht$4).load(Xe$2);let t=o.get(Wt$3),i=o.get(O$1),n=o.get(mf),s=o.get(or$1),r=o.get(iM),a=o.get(ai$4,null,{optional:true})||o.get(tt$1).createRenderer(null,null),l=new q$2(e),c=o.get(Xt$5,null,{optional:true})?.usePopover??true;l.direction=l.direction||r.value,!i.body||!("showPopover"in i.body)?l.usePopover=false:l.usePopover=e?.usePopover??c;let d=i.createElement("div"),f=i.createElement("div");d.id=n.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),f.appendChild(d),l.usePopover&&(f.setAttribute("popover","manual"),f.classList.add("cdk-overlay-popover"));let _=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return Yt$5(_)?_.after(f):_?.type==="parent"?_.element.appendChild(f):t.getContainerElement().appendChild(f),new wt$5(new _t$4(d,s,o),f,d,l,o.get(j$1),o.get(Ye$2),i,o.get(Wy),o.get(He$4),e?.disableAnimations??o.get(Bu,null,{optional:true})==="NoopAnimations",o.get(ae$3),a)}var Ue$2=(()=>{class o{scrollStrategies=h(Ie$2);_positionBuilder=h(Ze$2);_injector=h(K$4);create(t){return jt$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),li$2=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],hi$2=new y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=h(K$4);return ()=>It$6(o)}}),zt$5=(()=>{class o{elementRef=h(ue$2);static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),Ge$2=new y("cdk-connected-overlay-default-config"),ci$2=(()=>{class o{_dir=h(iM,{optional:true});_injector=h(K$4);_overlayRef;_templatePortal;_backdropSubscription=q$3.EMPTY;_attachSubscription=q$3.EMPTY;_detachSubscription=q$3.EMPTY;_positionSubscription=q$3.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=h(hi$2);_ngZone=h(j$1);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new Oe$4;positionChange=new Oe$4;attach=new Oe$4;detach=new Oe$4;overlayKeydown=new Oe$4;overlayOutsideClick=new Oe$4;constructor(){let t=h(Wr$1),i=h(Yr$1),n=h(Ge$2,{optional:true}),s=h(Xt$5,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new $$2(t,i),this.scrollStrategy=this._scrollStrategyFactory(),n&&this._assignConfig(n);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=li$2);let t=this._overlayRef=jt$2(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!eb(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),s=st$3(i);(!n||n!==s&&!n.contains(s))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new q$2({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=Ht$3(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof zt$5?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof zt$5?this.origin.elementRef.nativeElement:this.origin instanceof ue$2?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(uD(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",wt$6],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",wt$6],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",wt$6],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",wt$6],push:[2,"cdkConnectedOverlayPush","push",wt$6],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",wt$6],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",wt$6],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ya]})}return o})(),di$2=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({providers:[Ue$2],imports:[no$1,De$4,Bt$5,Bt$5]})}return o})();var Ve$1=class i{http=h(to$1);createCase(e){let t=new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1());return this.http.post("/api/cases",e,{headers:t}).pipe(ke$4(n=>ut$4(()=>Yt$4(n))))}addMessage(e,t){let n=new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1());return this.http.post(`/api/cases/${encodeURIComponent(e)}/messages`,{content:t},{headers:n}).pipe(ke$4(s=>ut$4(()=>Yt$4(s))))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac,providedIn:"root"})};function Yt$4(i){if(i instanceof Ut$2){let e=i.error,t=e?.error,n=typeof t?.code=="string"?t.code:typeof e?.code=="string"?e.code:`HTTP_${i.status}`,s=typeof t?.message=="string"?t.message:typeof e?.message=="string"?e.message:i.message||"AgentOS API request failed";return {code:n,message:s,status:i.status,raw:i}}return i instanceof Error?{code:"UNKNOWN_ERROR",message:i.message,status:0,raw:i}:{code:"UNKNOWN_ERROR",message:"AgentOS API request failed",status:0,raw:i}}var $e$2=class i{static STORAGE_KEY="factory-cockpit.supervisor-cases";save(e,t){try{let n=this.readMap();n[this.storageKey(e)]=t,localStorage.setItem(i.STORAGE_KEY,JSON.stringify(n));}catch{}}load(e){try{let n=this.readMap()[this.storageKey(e)];return An$1(n)?n:void 0}catch{return}}remove(e){try{let t=this.readMap();delete t[this.storageKey(e)],localStorage.setItem(i.STORAGE_KEY,JSON.stringify(t));}catch{}}storageKey(e){return `${e.namespaceId}::${e.workflowId}`}readMap(){try{let e=localStorage.getItem(i.STORAGE_KEY);if(!e)return {};let t=JSON.parse(e);return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:{}}catch{return {}}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac,providedIn:"root"})};function An$1(i){if(typeof i!="object"||i===null||Array.isArray(i))return false;let e=i;return typeof e.caseId=="string"&&e.caseId.length>0&&typeof e.namespaceId=="string"&&e.namespaceId.length>0&&typeof e.createdAt=="string"&&e.createdAt.length>0}var Qe$1=class i{agentOs=h(Ve$1);store=h($e$2);restore(e){let t=e.namespaceId,n=e.id;if(!t||!n)return;let s=this.store.load({workflowId:n,namespaceId:t});if(s)return {caseId:s.caseId,namespaceId:s.namespaceId,agentOsUrl:mt$3(s.caseId,s.namespaceId)}}open(e){let t=e.namespaceId,n=e.id,s=`Supervisor assistance \u2014 ${e.title}`,o=xn$2(e.title,n,e.ticket,e.workflowType);return this.agentOs.createCase({namespaceId:t,title:s}).pipe(zt$6(a=>{this.store.save({workflowId:n,namespaceId:t},{caseId:a.id,namespaceId:t,createdAt:new Date().toISOString()});}),Nc(a=>this.agentOs.addMessage(a.id,o).pipe(ke$4(()=>qe$3(void 0)),Nc(()=>qe$3({caseId:a.id,namespaceId:t,agentOsUrl:mt$3(a.id,t)})))))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac,providedIn:"root"})};function xn$2(i,e,t,n){return [`@Heimdall Hello. I am opening this case from the Factory Cockpit for sandbox **${i}**.`,"","Available identifiers:",`- Workflow ID: \`${e}\``,...t?[`- Ticket: \`${t}\``]:[],...n?[`- Workflow type: \`${n}\``]:[],"","Could you check the state of this workflow and let me know what is happening?"].join(`
|
|
1027
|
-
`)}function f$1(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)?i:void 0}function $$1(i){return Array.isArray(i)?i:[]}function r(i,e){let t=i?.[e];return typeof t=="string"&&t.length>0?t:void 0}function E(i,e){let t=i?.[e];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function ft$3(i,e){let t=i?.[e];return typeof t=="boolean"?t:void 0}function q$1(i){if(typeof i=="number"&&Number.isFinite(i))return i;if(typeof i=="string"){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Ke$1(i){if(!i)return "--:--:--";let e=new Date(i);return Number.isNaN(e.getTime())?"--:--:--":e.toISOString().slice(11,19)}function gt$3(i,e){if(Array.isArray(i))return i;let t=f$1(i);if(!t)return [];let n=t[e];return Array.isArray(n)?n:Array.isArray(t.items)?t.items:Array.isArray(t.data)?t.data:[]}var Rn$1=/(oracle|build|test|lint|scan|typecheck|type-check|compile|deterministic|verify|code)/i,En$1=/(human|humain|approv|validat|decision|manual|confirm|review|gate|revue)/i;function X(i){let e=f$1(i),t=r(e,"lane");if(t==="human"||t==="agent"||t==="code")return t;let n=f$1(e?.responsibility),s=r(n,"kind");if(s==="human"||s==="agent"||s==="code")return s;let o=`${r(e,"id")??""} ${r(e,"name")??""}`;return Rn$1.test(o)?"code":En$1.test(o)?"human":"agent"}function ht$2(i){let e=f$1(i),t=f$1(e?.responsibility),n=f$1(e?.facts);return r(t,"name")??r(e,"agentName")??r(n,"agentName")}function ge$2(i){return ht$2(i)??"agent"}function bt$2(i){let e=X(i);if(e==="human")return {id:"engineer",kind:"human",label:"engineer"};if(e==="code")return {id:"code",kind:"code",label:"code"};let t=ge$2(i);return {id:`agent:${t}`,kind:"agent",label:t}}function F$1(i){let e=r(f$1(i),"status")??"pending";return e==="needs_research"?"waiting_human":["pending","ready","running","waiting_human","completed","failed","indeterminate","cancelled","skipped"].includes(e)?e:"pending"}function z$1(i){let e=f$1(i),t=q$1(e?.startedAt),n=q$1(e?.finishedAt??e?.completedAt??e?.endedAt);if(t!==null&&n!==null&&n>=t)return (n-t)/1e3;let s=e?.durationMs,o=typeof s=="number"&&Number.isFinite(s)&&s>=0?s:void 0;return o!==void 0?o/1e3:null}function he$1(i){return i==="human"?"amber":i==="code"?"cyan":"violet"}function Ce$2(i){let e=f$1(i);if(!e)return;let t=f$1(e.realCost),n=t??e,s=w=>n[w]===null?null:E(n,w),o=s("cost"),a=s("unknownCostCount"),c=s("liveTokens"),d=s("totalTokens"),u=s("inputTokens"),m=s("outputTokens"),h=s("cacheReadTokens"),p=s("cacheWriteTokens");if(o===void 0&&a===void 0&&c===void 0&&d===void 0&&u===void 0&&m===void 0&&h===void 0&&p===void 0)return t?{cost:null,unknownCostCount:null}:void 0;let v=n.runCostThreshold===null?null:E(n,"runCostThreshold")??null;return {cost:o,unknownCostCount:a,liveTokens:c,totalTokens:d,inputTokens:u,outputTokens:m,cacheReadTokens:h,cacheWriteTokens:p,paused:ft$3(n,"paused"),active:ft$3(n,"active"),runCostThreshold:v}}function Cn$2(i){if(Array.isArray(i))return i;let e=f$1(i);return e?Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:[]:[]}function Nn$1(i){if(!Array.isArray(i))return;let e=[];return i.forEach((t,n)=>{if(typeof t=="string"&&t.length>0){e.push({id:t,label:t});return}let s=f$1(t);if(!s)return;let o=r(s,"id")??r(s,"actionId")??String(n+1),a=r(s,"label")??r(s,"name")??r(s,"title")??o;e.push({id:o,label:a});}),e.length>0?e:void 0}function vt$4(i){return Cn$2(i).map((e,t)=>{let n=f$1(e)??{},s=f$1(n.payload)??{},o={interactionId:r(n,"interactionId")??r(n,"id")??`interaction-${t+1}`,stepId:r(n,"stepId")??r(s,"stepId")??"",interactionType:r(n,"interactionType")??r(n,"type")??"unknown",status:r(n,"status")??"unknown"},a=r(n,"workflowId");a&&(o.workflowId=a);let c=E(n,"revision");c!==void 0&&(o.revision=c);let d=r(s,"prompt")??r(s,"question")??r(n,"prompt");d&&(o.prompt=d);let u=r(n,"questionType")??r(s,"questionType")??r(s,"type");u&&(o.questionType=u);let m=s.options??n.options;Array.isArray(m)&&(o.options=m.filter(A=>typeof A=="string"));let h=Nn$1(s.actions??n.actions);h&&(o.actions=h);let p=r(s,"recipient")??r(n,"recipient");p&&(o.recipient=p);let b=r(n,"recipientRole")??r(s,"recipientRole");b&&(o.recipientRole=b);let v=r(n,"namespaceId")??r(s,"namespaceId");v&&(o.namespaceId=v);let w=r(n,"executionId")??r(s,"executionId");w&&(o.executionId=w);let R=r(n,"createdAt")??r(s,"createdAt");return R&&(o.createdAt=R),o})}function Tn$2(i){if(Array.isArray(i))return i;let e=f$1(i);return e?Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:[]:[]}function ne$2(i){return Tn$2(i).map((e,t)=>{let n=f$1(e)??{},s={attemptId:r(n,"attemptId")??r(n,"id")??`attempt-${t+1}`,stepId:r(n,"stepId")??"",attemptNumber:E(n,"attemptNumber")??0,agentName:r(n,"agentName")??"",status:r(n,"status")??"unknown",caseId:r(n,"caseId")??""},o=r(n,"effectiveMandate");o&&(s.effectiveMandate=o);let a=f$1(n.resolvedModel),c=r(a,"provider"),d=r(a,"model");c&&d&&(s.resolvedModel={provider:c,model:d});let u=r(n,"failureCode");u&&(s.failureCode=u);let m=r(n,"resultEvidenceId");m&&(s.resultEvidenceId=m);let h=E(n,"revision");h!==void 0&&(s.revision=h);let p=r(n,"createdAt");p&&(s.createdAt=p);let b=r(n,"startedAt");b&&(s.startedAt=b);let v=r(n,"completedAt");v&&(s.completedAt=v);let w=E(n,"activeDurationMs");w!==void 0&&(s.activeDurationMs=w);let R=r(n,"activeSince");R&&(s.activeSince=R);let A=E(n,"waitingDurationMs");A!==void 0&&(s.waitingDurationMs=A);let g=r(n,"waitingSince");g&&(s.waitingSince=g);let l=r(n,"correctionCycleId");l&&(s.correctionCycleId=l);let I=E(n,"correctionCycleNumber");I!==void 0&&(s.correctionCycleNumber=I);let k=r(n,"triggeringExecutionId");return k&&(s.triggeringExecutionId=k),s})}function St$4(i){let e=[];for(let t of gt$3(i,"allowedActions")){let n=f$1(t);if(!n)continue;let s=r(n,"type");if(!s)continue;let o={type:s},a=r(n,"label");a&&(o.label=a);let c=r(n,"interactionId");c&&(o.interactionId=c);let d=r(n,"stepId");d&&(o.stepId=d);let u=r(n,"attemptId");u&&(o.attemptId=u);let m=r(n,"caseId");m&&(o.caseId=m);let h=r(n,"questionEventId");h&&(o.questionEventId=h);let p=E(n,"expectedRevision");p!==void 0&&(o.expectedRevision=p),e.push(o);}return e}function kt$2(i){let e=[];for(let t of gt$3(i,"blockers")){let n=f$1(t);if(!n)continue;let s=r(n,"code")??"UNKNOWN_RUNTIME",o=r(n,"message"),a=r(n,"label")??o??r(n,"details")??s,c={code:s,label:a},d=r(n,"stepId");d&&(c.stepId=d),o&&(c.message=o);let u=r(n,"details");u&&(c.details=u),e.push(c);}return e}var It$5=2,Jt$3=new Set(["succeeded","completed","failed","indeterminate","interrupted","superseded","cancelled"]);function Xt$4(i){if(i.length===0)return "queued";let e=i.map(t=>F$1(t));return e.some(t=>t==="failed"||t==="indeterminate"||t==="cancelled")?"failed":e.some(t=>t==="running"||t==="waiting_human")?"running":e.every(t=>t==="completed"||t==="skipped")?"succeeded":"queued"}function ae$2(i,e){switch((i??"").toLowerCase()){case "running":case "waiting_human":case "needs_research":return "running";case "ready":return "queued";case "active":case "existing":return Xt$4($$1(e));case "completed":case "succeeded":return "succeeded";case "failed":case "indeterminate":case "cancelled":return "failed";case "pending":case "queued":return "queued";default:return Xt$4($$1(e))}}function be$2(i,e){let t=f$1(i.instance),n=i.controllerRequest??e.controllerRequest??t?.controllerRequest;if(typeof n=="string"&&n.length>0)return {text:n};let s=f$1(n);if(!s)return;let o={},a=r(s,"text");a&&(o.text=a);let c=r(s,"prompt");c&&(o.prompt=c);let d=r(s,"namespaceId");d&&(o.namespaceId=d);let u=r(s,"observedAt");u&&(o.observedAt=u);let m=r(s,"actorId");m&&(o.actorId=m);let h=r(s,"source");return h&&(o.source=h),o.text!==void 0||o.prompt!==void 0||o.actorId!==void 0||o.observedAt!==void 0?o:void 0}function Zt$4(i,e){let t=i.attemptNumber-e.attemptNumber;if(t!==0)return t;let n=q$1(i.startedAt??i.createdAt??i.completedAt)??Number.POSITIVE_INFINITY,s=q$1(e.startedAt??e.createdAt??e.completedAt)??Number.POSITIVE_INFINITY;return n-s||i.attemptId.localeCompare(e.attemptId)}function wt$4(i){let e=i.status.toLowerCase();return i.failureCode?.toUpperCase()==="AGENT_NEEDS_RESEARCH"?"waiting_human":e==="succeeded"||e==="completed"||e==="superseded"?"completed":e==="starting"||e==="running"?"running":e==="interrupted"||e==="cancelled"?"cancelled":e==="failed"||e==="indeterminate"||e==="waiting_human"?e:"pending"}function yt$5(i,e,t=[]){let n=new Map;for(let u of e){if(!u.stepId)continue;let m=n.get(u.stepId)??[];m.push(u),n.set(u.stepId,m);}let s=new Set,o=new Set(t.map(u=>u.stepId)),a=i.flatMap(u=>{let m=f$1(u)??{},h=r(m,"id");h&&s.add(h);let p=h?n.get(h):void 0;if(o.has(h??""))return [];if(X(m)!=="agent"||!p?.length)return [u];let b=[...p].sort(Zt$4);return b.map(v=>{let w=Jt$3.has(v.status.toLowerCase());return P(I$2({},m),{id:`${h}:attempt:${v.attemptId}`,sourceStepId:h,name:b.length>1?`${r(m,"name")??h} \xB7 attempt ${v.attemptNumber||"?"}`:r(m,"name")??h,agentName:v.agentName||r(m,"agentName"),attemptId:v.attemptId,attemptNumber:v.attemptNumber,caseId:v.caseId||void 0,failureCode:v.failureCode||void 0,responsibility:P(I$2({},f$1(m.responsibility)??{}),{kind:"agent",name:v.agentName||ge$2(m)}),status:wt$4(v),startedAt:v.startedAt??v.activeSince??v.createdAt,completedAt:w?v.completedAt:void 0,activeDurationMs:v.activeDurationMs,activeSince:v.activeSince,waitingDurationMs:v.waitingDurationMs,waitingSince:v.waitingSince,durationMs:void 0})})}),c=[];for(let[u,m]of n.entries()){if(s.has(u)||!m.length)continue;let h=[...m].sort(Zt$4);for(let p of h){let b=Jt$3.has(p.status.toLowerCase()),v=p.agentName||u;c.push({id:`${u}:attempt:${p.attemptId}`,sourceStepId:u,name:h.length>1?`${v} \xB7 attempt ${p.attemptNumber||"?"}`:v,agentName:p.agentName||void 0,attemptId:p.attemptId,attemptNumber:p.attemptNumber,caseId:p.caseId||void 0,failureCode:p.failureCode||void 0,responsibility:{kind:"agent",name:p.agentName||"Searcher"},status:wt$4(p),startedAt:p.startedAt??p.activeSince??p.createdAt,completedAt:b?p.completedAt:void 0,activeDurationMs:p.activeDurationMs,activeSince:p.activeSince,waitingDurationMs:p.waitingDurationMs,waitingSince:p.waitingSince});}}let d=t.map(u=>{let m=i.find(b=>r(f$1(b),"id")===u.stepId),h=f$1(m)??{},p=u.attemptId?e.find(b=>b.attemptId===u.attemptId):void 0;return P(I$2({},h),{id:`${u.stepId}:execution:${u.executionId}`,sourceStepId:u.stepId,name:`${r(h,"name")??u.stepId} \xB7 execution ${u.executionNumber}`,status:p?wt$4(p):u.status,attemptId:u.attemptId,attemptNumber:p?.attemptNumber,agentName:p?.agentName,caseId:p?.caseId,failureCode:p?.failureCode,startedAt:u.startedAt??p?.startedAt??p?.activeSince??p?.createdAt,completedAt:u.completedAt??p?.completedAt,executionId:u.executionId,executionNumber:u.executionNumber,cycleNumber:u.cycleNumber,triggeringExecutionId:u.triggeringExecutionId,resultEvidenceId:u.resultEvidenceId})});return [...a,...c,...d]}function Mn$1(i){let e=F$1(i);return e==="skipped"?"skipped":e==="waiting_human"?"waiting_human":e==="running"?"running":e==="pending"||e==="ready"?"pending":e==="failed"?"failed":e==="cancelled"?"cancelled":e==="indeterminate"?"indeterminate":"done"}function _n$3(i){return ["failed","indeterminate"].includes(F$1(i))?"red":he$1(X(i))}function nn$3(i,e=0){let t=Array.isArray(i)?i:[];if(t.length===0)return [];let n=t.map(a=>z$1(a)??0),s=n.reduce((a,c)=>a+c,0),o=e>0?e:s;return t.map((a,c)=>{let d=f$1(a),u=r(d,"id")??r(d,"name")??`step-${c+1}`,m=r(d,"name"),h=n[c]??0,p={key:u,ratio:o>0?h/o:1/t.length,tone:_n$3(a),status:Mn$1(a)};return m&&m!==u&&(p.label=m),p})}function en$2(i){let e=f$1(i);return ht$2(i)??r(e,"name")??r(e,"id")}function Dn$1(i){let e=i.find(n=>["running","waiting_human","ready"].includes(F$1(n)));if(e)return en$2(e);let t=i[i.length-1];return t?en$2(t):void 0}function At$5(i,e,t,n=[]){let s=f$1(i)??{},o=f$1(s.projection)??s,a=$$1(o.steps),c=yt$5(a,ne$2(t),n),d=be$2(s,o),u=[...a,...c].map(p=>q$1(f$1(p)?.startedAt)).filter(p=>p!==null),m=q$1(d?.observedAt);m!==null&&u.push(m);let h=sn$2(s,o);return h!==null&&u.push(h),u.length>0?Math.min(...u):q$1(f$1(e)?.startedAt)??Date.now()}function sn$2(i,e){let t=f$1(i.instance);return q$1(i.createdAt??e.createdAt??t?.createdAt)}function On$1(i){return q$1(i.finishedAt??i.completedAt??i.endedAt)}function tn$3(i,e,t,n){let s=[];for(let o of $$1(i)){let a=null;if(typeof o=="number"&&Number.isFinite(o))a=o;else if(typeof o=="string"){let c=q$1(o);c!==null&&(a=(c-e)/1e3);}a!==null&&a>=t&&a<=n&&s.push(a);}return s.length>0?s:void 0}function xt$3(i,e,t,n=[]){let s=f$1(i)??{},o=f$1(s.projection)??s,a=yt$5($$1(o.steps),ne$2(t),n),c=be$2(s,o),d=sn$2(s,o);if(a.length===0&&!c&&d===null)return [];let u=a.map(l=>q$1(f$1(l)?.startedAt)).filter(l=>l!==null),m=q$1(c?.observedAt),h=At$5(i,e,t,n),p=new Map,b=l=>$$1(l.dependsOn).reduce((k,C)=>typeof C!="string"?k:Math.max(k,p.get(C)??0),0),v=a.map((l,I)=>{let k=f$1(l)??{};return {obj:k,index:I,start:q$1(k.startedAt),terminalEnd:On$1(k),duration:z$1(l)}}).sort((l,I)=>{let k=l.start??Number.POSITIVE_INFINITY,C=I.start??Number.POSITIVE_INFINITY;return k-C||l.index-I.index}),w=new Map,R=(l,I)=>{let k=w.get(l.id);return k||(k={id:l.id,label:l.label,subtitle:l.kind==="agent"?l.label:"workspace",kind:l.kind==="human"?"human":l.kind==="code"?"workspace":"agent",tone:he$1(l.kind),blocks:[]},w.set(l.id,k)),l.kind==="agent"&&I!==void 0&&(k.contextPct=I),k},A=0;for(let l of v){let I=bt$2(l.obj),k=E(l.obj,"contextPct"),C=R(I,k),x=F$1(l.obj),U=r(l.obj,"attemptId")!==void 0,B=r(l.obj,"executionId")!==void 0;if(!(x==="running"||x==="completed"||x==="failed"||x==="indeterminate"||x==="cancelled"||x==="waiting_human"&&l.start!==null||x==="pending"&&(U||B)||x==="ready"&&B))continue;let V=r(l.obj,"sourceStepId")??r(l.obj,"id"),ue=Math.max(b(l.obj),A),j=l.start!==null?Math.max((l.start-h)/1e3,0):ue,de=l.start!==null&&l.terminalEnd!==null&&l.terminalEnd>=l.start?Math.max((l.terminalEnd-h)/1e3,j):null,se=E(l.obj,"activeDurationMs"),_e=E(l.obj,"waitingDurationMs"),ie=q$1(l.obj.activeSince),oe=q$1(l.obj.waitingSince),Se=se!==void 0||_e!==void 0,De=x==="running"&&ie!==null||x==="waiting_human"&&oe!==null?Date.now():l.terminalEnd,Oe=Se&&De!==null?Math.max((De-h)/1e3,j):null,tt=x==="pending"&&l.start===null?j:j+Math.max(l.duration??0,It$5),nt=x==="running"&&l.start!==null?Math.max((Date.now()-h)/1e3,j):null,Y=Math.max(Oe??de??nt??tt,j);A=Math.max(A,Y),V&&p.set(V,Y);let M=P(I$2({label:r(l.obj,"name")??r(l.obj,"id")??"step"},r(l.obj,"sourceStepId")??r(l.obj,"id")?{stepId:r(l.obj,"sourceStepId")??r(l.obj,"id")}:{}),{startSec:j,endSec:Y,status:x}),H=r(l.obj,"description");H&&(M.description=H);let re=tn$3(l.obj.ticks,h,j,Y);re&&(M.ticksSec=re);let qe=tn$3(l.obj.errorTicks,h,j,Y);qe&&(M.errorTicksSec=qe);let ke=r(l.obj,"agentName");ke&&(M.agentName=ke);let Ie=r(l.obj,"attemptId");Ie&&(M.attemptId=Ie);let we=E(l.obj,"attemptNumber");we!==void 0&&(M.attemptNumber=we);let ye=r(l.obj,"caseId");ye&&(M.caseId=ye);let Ae=r(l.obj,"failureCode");Ae&&(M.failureCode=Ae);let st=r(l.obj,"executionId");st&&(M.executionId=st);let je=E(l.obj,"executionNumber");je!==void 0&&(M.executionNumber=je);let Fe=E(l.obj,"cycleNumber");Fe!==void 0&&(M.cycleNumber=Fe);let Pe=r(l.obj,"triggeringExecutionId");if(Pe&&(M.triggeringExecutionId=Pe),Se){let ot=x==="running"&&ie!==null?Math.max(Date.now()-ie,0):0,rt=x==="waiting_human"&&oe!==null?Math.max(Date.now()-oe,0):0;M.activeDurationSec=Math.max((se??0)+ot,0)/1e3,M.waitingDurationSec=Math.max((_e??0)+rt,0)/1e3;}let it=r(l.obj,"id")==="request"||M.label==="request";I.kind==="human"&&it&&!C.request?C.request=M:C.blocks.push(M);}if(c||d!==null){let l=w.get("engineer");if(l||(l={id:"engineer",label:"engineer",subtitle:c?.actorId??"human",kind:"human",tone:"amber",blocks:[]},w.set("engineer",l)),!l.request){let I=m??d,k=u.length>0?Math.min(...u):null,x={label:"launch request",kind:"launch_request",startSec:0,endSec:I!==null&&k!==null&&k>I?Math.max((k-h)/1e3,It$5):It$5,status:"completed"},U=c?.text??c?.prompt;U&&(x.description=U),l.request=x;}c?.actorId&&(!l.subtitle||l.subtitle==="workspace"||l.subtitle==="human")&&(l.subtitle=c.actorId);}let g=l=>l.kind==="human"?0:l.kind==="workspace"?1:2;return [...w.values()].sort((l,I)=>g(l)-g(I))}function He$3(i,e,t,n=new Set){let s=f$1(i)??{},o=f$1(s.projection)??s,a=f$1(s.relations),c=$$1(o.steps),d=Ce$2(e),u=c.map(k=>z$1(k)).filter(k=>k!==null),m=Math.round(u.reduce((k,C)=>k+C,0)),h=r(s,"workflowId")??r(o,"workflowId")??"unknown",p=r(o,"goal")??r(o,"title")??r(a,"ticket")??r(s,"workflowId")??"",v=c.map(F$1).some(k=>k==="waiting_human"),w=nn$3(c,m).map(k=>n.has(k.key)&&k.status==="pending"?P(I$2({},k),{status:"blocked"}):k),R=be$2(s,o),A=w.some(k=>k.key==="request"||k.label==="request");if(R&&!A){let k=c.some(B=>r(f$1(B),"startedAt")!==void 0),C={key:"user-request",label:"User request",ratio:w.length>0?Math.min(1/(w.length+1),.15):1,tone:"amber",status:k?"done":"pending"},x=1-C.ratio,U=w.map(B=>P(I$2({},B),{ratio:B.ratio*x}));w.splice(0,w.length,C,...U);}let g=ae$2(r(o,"status"),c),l=v?"waiting_human":g==="failed"?"failed":n.size>0?"blocked":g==="running"?"running":g==="succeeded"?"succeeded":"pending",I={id:h,workflow:r(o,"title")??h,status:g,cardState:l,currentPhase:Dn$1(c),goal:p,costUsd:d?.cost??null,unknownCostCount:d?.unknownCostCount??null,durationSec:m,tokens:d?.totalTokens??null,phases:w};return v&&(I.waitingHuman=true),I}function qn$1(i){if(i.length!==0)return i.reduce((e,t)=>t.attemptNumber>=e.attemptNumber?t:e)}function jn$1(i){return i.map(e=>{let t={title:e.interactionType,status:e.status};return e.prompt&&(t.subtitle=e.prompt),e.actions&&(t.actions=e.actions),t})}function Fn$1(i){return i.map((e,t)=>{let n=f$1(e)??{},s=f$1(n.facts)??{},a={title:r(n,"kind")??r(n,"evidenceId")??`output-${t+1}`},c=r(n,"outcome");c&&(a.status=c);let d=r(s,"message")??r(s,"text")??r(s,"summary")??c;return d&&(a.subtitle=d),a})}function Pn$1(i){let e=f$1(i.decision),t=f$1(i.routeDecision),n=r(i,"activation"),s=r(i,"join");if(!e&&!t&&!n&&!s)return null;let o=[];if(e){let a=r(e,"mode");o.push({title:"Selection mode",subtitle:a==="single"?"One route":"One or more routes"});let c=Array.isArray(e.routes)?e.routes:[],d=t?.selectedRoutes,u=Array.isArray(d)?d:[];for(let m of c){let h=f$1(m),p=r(h,"name")??"?",b="undecided";t&&(b=u.includes(p)?"selected":"not_selected"),o.push({title:p,subtitle:r(h,"target"),status:b});}}return n&&(o.push({title:"Activation",subtitle:n==="selected"?"Selected":"Not selected",status:r(i,"status")}),o.push({title:"Executed",subtitle:i.executed===true?"Yes":"No"})),s&&o.push({title:"Convergence decision",subtitle:s}),t&&(o.push({title:"Selected attempt",subtitle:r(t,"attemptId")}),o.push({title:"Selected result",subtitle:r(t,"resultId")})),{label:"Conditional routing",items:o}}function Un$2(i){let e=r(i,"mission");if(!e)return [{label:"Preparation / Mission / Deliverables",body:"No configured step contract is recorded. Consult the attempt mandate for instructions actually dispatched."}];let t=n=>Array.isArray(n)?n.filter(s=>typeof s=="string").map(s=>`\u2022 ${s}`).join(`
|
|
1028
|
-
`)||"No configured requirements.":"Not recorded";return [{label:"Preparation (configured)",body:t(
|
|
1029
|
-
`),t=new Set,n=[/Running target \S+ for project ([A-Za-z0-9._-]+) failed/gi,/Failed tasks?:\s*([^\n]+)/gi];for(let s of n)for(let o of e.matchAll(s))if(K$2(o[1],256)?.split(/[,\s]+/).filter(Boolean).forEach(a=>t.add(a)),t.size>=on$3)break;return [...t].slice(0,on$3)}function $n$1(i,e){let t=r(i,"kind"),n=K$2(e.verification,256);if(!(t==="code-verification"||t==="session-step"&&(n||e.executed!==void 0)))return;let o=e.timedOut===true,a=e.executed,c=typeof e.exitCode=="number"&&Number.isFinite(e.exitCode)?e.exitCode:void 0,d=r(i,"outcome"),m=K$2(e.status,64)==="running"||d==="running"?"running":a===false?"refused":o?"timed_out":c===0&&d!=="fail"&&d!=="failed"?"passed":"failed",h=rn$3(e.stdout),p=rn$3(e.stderr),b={};for(let v of ["cwd","observedHead","rootIdentity","timeoutMs"]){let w=e[v];typeof w=="string"?b[v]=K$2(w,512)??"":typeof w=="number"&&Number.isFinite(w)&&(b[v]=w);}return h?.sha256&&(b.stdoutSha256=h.sha256),p?.sha256&&(b.stderrSha256=p.sha256),{verification:n,state:m,command:K$2(e.command,Ln$2),code:K$2(e.code,256),message:K$2(e.message,cn$3),exitCode:c,stdout:h,stderr:p,failedTasks:Vn(h,p),technical:b}}function Ne$4(i,e){let t=[],n=new Map;for(let o of i){let a=f$1(o);if(r(a,"kind")!=="code-verification")continue;let c=r(a,"evidenceId")??r(a,"id");c&&n.set(c,a??{});}let s=new Set;for(let o of i){let a=f$1(o)??{},c=f$1(a.facts)??{},d=r(a,"kind")??"log",u=d==="session-step"?r(c,"evidenceId"):void 0,m=u?n.get(u):void 0,h=f$1(m?.facts);if(m&&h&&s.add(u),d==="code-verification"){let g=r(a,"evidenceId")??r(a,"id");if(g&&s.has(g)||i.some(I=>{let k=f$1(I),C=f$1(k?.facts);return r(k,"kind")==="session-step"&&r(C,"evidenceId")===g}))continue}let p=h?I$2(I$2({},h),c):c,b=m?P(I$2(I$2({},m),a),{kind:"code-verification"}):a,v=$n$1(b,p),w={time:Ke$1(r(a,"createdAt")??r(p,"startedAt")),type:Wn$2(d),text:K$2(v?.message??p.message??p.text??a.outcome??d,cn$3)??d};v&&(w.codeDiagnostic=v);let R=r(p,"tool");R&&(w.tool=R);let A=typeof p.durationMs=="number"&&Number.isFinite(p.durationMs)?p.durationMs:void 0;A!==void 0&&(w.durationSec=A/1e3),t.push(w);}if(t.length===0)for(let o of e){let a=f$1(o)??{},c=r(a,"startedAt");c&&t.push({time:Ke$1(c),type:"phase_start",text:r(a,"name")??r(a,"id")??"step"});}return t}function Te$4(i){return i.map(e=>({time:Ke$1(e.createdAt),type:"agent_message",text:`[Human validation - ${e.interactionType}] ${e.prompt??e.status}`}))}function ze$3(i,e,t,n,s,o){if(!s)return i;let a=new Set;for(let h of e){let p=f$1(h)??{},b=r(p,"stepId"),v=r(p,"evidenceId")??r(p,"id");if(v)if(o){let R=n.find(g=>g.attemptId===o)?.resultEvidenceId===v,A=r(p,"attemptId")===o;(R||b===s&&A)&&a.add(v);}else b===s&&a.add(v);}let c=e.filter(h=>{let p=f$1(h)??{},b=r(p,"evidenceId")??r(p,"id");return b!==void 0&&a.has(b)}),d=Ne$4(c,[]),u=t.filter(h=>h.stepId===s),m=Te$4(u);return [...d,...m]}var Qn$1=new Set(["running","active","waiting_human","needs_research"]),Kn$1=new Set(["idle","ready","pending","queued"]);function dn$2(i,e){let t=(i??"").toLowerCase();return Qn$1.has(t)?"working":Kn$1.has(t)?"idle":e==="running"?"working":"idle"}function Hn$2(i){return i?Number.isFinite(Date.parse(i)):false}function _$1(i){let e=f$1(i),t=f$1(e?.projection);return r(e,"workflowId")??r(t,"workflowId")}function ce$3(i){let e=f$1(i),t=f$1(e?.instance);return r(e,"namespaceId")??r(t,"namespaceId")}function Ct$4(i){let e=f$1(i),t=f$1(e?.controllerExecution);return r(t,"caseId")}function Gn$1(i){return ["failed","indeterminate"].includes(F$1(i))?"red":he$1(X(i))}function zn$1(i,e=new Set){return i.map((t,n)=>{let s=f$1(t)??{},o=F$1(s),a={key:r(s,"id")??r(s,"name")??`step-${n+1}`,tone:Gn$1(s),status:e.has(r(s,"id")??r(s,"name")??`step-${n+1}`)?"blocked":o==="skipped"?"skipped":o==="waiting_human"?"waiting_human":o==="running"?"running":o==="failed"?"failed":o==="pending"||o==="ready"?"pending":"done"},c=z$1(s);return c!==null&&(a.durationSec=Math.round(c)),a})}function Me$3(i,e,t,n,s,o,a,c,d){let u=f$1(i)??{},m=f$1(u.projection)??u,h=$$1(m.steps),p=$$1(f$1(t)?.items),b=Xn$1(h,p),v=f$1(u.controllerExecution),w=f$1(e),R=f$1(n),A=Ce$2(R),g=vt$4(s),l=ne$2(o),I=Yn$1(m.stepExecutions),k=Jn$1(m.correction),C=St$4(a),x=kt$2(a),U=new Set(x.map(S=>S.stepId).filter(S=>!!S)),B=C.find(S=>S.type==="cancel_attempt"&&S.attemptId!==void 0),P$1=l.find(S=>S.status==="running"||S.status==="starting"),V=B?.attemptId??P$1?.attemptId,ue=B?.expectedRevision??P$1?.revision,j=r(u,"workflowId")??r(m,"workflowId")??"unknown",de=Ct$4(u),se=ae$2(r(m,"status"),b),_e=ae$2(void 0,b),ie=new Map;for(let S of l){let T=ie.get(S.stepId);(!T||S.attemptNumber>=T.attemptNumber)&&ie.set(S.stepId,S);}let oe=[...ie.values()],Se=oe.some(S=>S.status.toLowerCase()==="running"||S.status.toLowerCase()==="starting"),De=!Se&&oe.some(S=>S.status.toLowerCase()==="indeterminate"&&S.failureCode?.toUpperCase()==="AGENT_NEEDS_RESEARCH"),Oe=b.map(F$1),tt=I.length>0,nt=_e==="failed"&&(!tt||se==="failed"),Y=Oe.includes("running")||Se,M=!Y&&(k?.status==="waiting_human"||Oe.includes("waiting_human")||De||oe.some(S=>S.status==="waiting_human")||(c??[]).some(S=>!S.answered)),H=Y||M?"running":nt?"failed":se,re=Y,qe=M?"waiting_human":re?"running":H==="succeeded"?"completed":H==="failed"?"failed":"pending",ke=P(I$2({},u),{projection:P(I$2({},m),{steps:b})}),Ie=At$5(ke,e,l,I),we=new Date(Ie).toISOString(),ye=xt$3(ke,e,l,I),Ae=ye.reduce((S,T)=>{let W=T.request?.endSec??0,le=T.blocks.reduce((Re,Z)=>Math.max(Re,Z.endSec),0);return Math.max(S,W,le)},0),je=b.map(S=>z$1(S)).filter(S=>S!==null).reduce((S,T)=>S+T,0),Fe=l.some(S=>S.activeDurationMs!==void 0||S.activeSince!==void 0),Pe=l.reduce((S,T)=>{let W=Math.max(T.activeDurationMs??0,0),le=Date.parse(T.activeSince??""),Re=T.status==="running"&&Number.isFinite(le)?Math.max(Date.now()-le,0):0;return S+(W+Re)/1e3},0),Dt=re?b.reduce((S,T)=>{if(F$1(T)!=="running")return S;let W=Date.parse(r(f$1(T),"startedAt")??"");return Number.isFinite(W)?S+Math.max((Date.now()-W)/1e3,0):S},0):0,it=Math.round(Fe?Pe:je+Dt),ot=A?.totalTokens??null,rt=A?.inputTokens??null,bn=A?.outputTokens??null,vn=Rt$4(b,H,g,l,p,d),xe=be$2(u,m),Sn=f$1(u.instance),kn=r(u,"createdAt")??r(m,"createdAt")??r(Sn,"createdAt")??xe?.observedAt??we,In=an$2({title:r(m,"title")??j,createdAt:kn,namespaceId:xe?.namespaceId??ce$3(u),workflowId:j,workflowType:r(m,"workflowType"),author:xe?.actorId,text:xe?.text??xe?.prompt}),wn=Et$5(b,H,g,l,p,d),Ot=new Map;for(let S of I){let T=un$3(p,S),W=g.filter(Z=>Z.executionId===S.executionId),le=S.attemptId?l.filter(Z=>Z.attemptId===S.attemptId):[],Re=b.map(Z=>{let Pt=f$1(Z);return r(Pt,"id")===S.stepId?P(I$2({},Pt),{status:S.status,startedAt:S.startedAt,completedAt:S.completedAt}):Z});Ot.set(S.executionId,ve$3(Re,H,W,le,T,S.stepId,S.attemptId));}let qt=new Map,jt=new Map,Ft=new Map;for(let S of b){let T=f$1(S),W=r(T,"id")??r(T,"key");W&&qt.set(W,ze$3([],p,g,l,W,void 0));}for(let S of l)jt.set(S.attemptId,ze$3([],p,g,l,S.stepId,S.attemptId));for(let S of I){let T=g.filter(W=>W.executionId===S.executionId);Ft.set(S.executionId,[...Ne$4(un$3(p,S),[]),...Te$4(T)]);}let yn=f$1(u.relations)??f$1(f$1(u.instance)?.relations)??void 0;return P(I$2(I$2(I$2(P(I$2(I$2(P(I$2(P(I$2({},b.some(S=>f$1(S)?.decision||f$1(S)?.outcomeTransitions)?{routingSteps:b}:{}),{id:j,sandbox:r(yn,"ticket")??r(v,"caseId")??r(u,"namespaceId")??j,goal:r(m,"goal")??r(m,"title")??"",status:H,executionState:qe,activelyRunning:re,startedAt:r(w,"startedAt")??r(m,"startedAt")??Zn$1(b)??new Date().toISOString(),timelineOriginAt:we,workflow:r(m,"title")??j,costUsd:A?.cost??null,unknownCostCount:A?.unknownCostCount??null,durationSec:it,tokens:ot,tokensRead:rt,tokensWritten:bn,steps:zn$1(b,U),lanes:ye,nowSec:Math.round(re?Math.max(Ae,Math.max((Date.now()-Ie)/1e3,0)):Ae),events:[...Ne$4(p,b),...Te$4(g)],phase:ve$3(b,H,g,l,p,void 0,void 0,d),launchRequest:In,phaseByStepId:vn,phaseByAttemptId:wn,phaseByExecutionId:Ot,interactions:g,attempts:l}),d?{attemptsLoadError:d}:{}),{cacheReadTokens:A?.cacheReadTokens,cacheWriteTokens:A?.cacheWriteTokens}),I.length?{stepExecutions:I}:{}),k?{correction:k}:{}),{allowedActions:C,blockers:x,agentQuestions:c??[]}),V!==void 0?{activeAttemptId:V}:{}),ue!==void 0?{activeAttemptRevision:ue}:{}),de!==void 0?{controllerCaseId:de}:{}),{eventsByStepId:qt,eventsByAttemptId:jt,eventsByExecutionId:Ft})}function un$3(i,e){return i.filter(t=>{let n=f$1(t),s=f$1(n?.facts),o=r(n,"evidenceId")??r(n,"id");return r(n,"executionId")===e.executionId||r(s,"executionId")===e.executionId||e.resultEvidenceId!==void 0&&o===e.resultEvidenceId||e.attemptId!==void 0&&(r(n,"attemptId")===e.attemptId||r(s,"attemptId")===e.attemptId)})}function Yn$1(i){return $$1(i).flatMap(e=>{let t=f$1(e),n=r(t,"executionId"),s=r(t,"stepId"),o=E(t,"executionNumber"),a=r(t,"status");if(!n||!s||o===void 0||!a)return [];let c=E(t,"cycleNumber"),d=r(t,"startedAt"),u=r(t,"completedAt"),m=r(t,"attemptId"),h=r(t,"resultEvidenceId"),p=r(t,"triggeringExecutionId");return [I$2(I$2(I$2(I$2(I$2(I$2({executionId:n,stepId:s,executionNumber:o,status:a},c!==void 0?{cycleNumber:c}:{}),d?{startedAt:d}:{}),u?{completedAt:u}:{}),m?{attemptId:m}:{}),h?{resultEvidenceId:h}:{}),p?{triggeringExecutionId:p}:{})]})}function Jn$1(i){let e=f$1(i),t=r(e,"cycleId"),n=E(e,"cycleNumber"),s=E(e,"maxCycles"),o=r(e,"status"),a=r(e,"triggeringStepId"),c=r(e,"returnTargetStepId");if(!e||!t||n===void 0||s===void 0||!o||!a||!c)return;let d=r(e,"triggeringAttemptId"),u=r(e,"triggeringExecutionId");return I$2(I$2({cycleId:t,cycleNumber:n,maxCycles:s,status:o,triggeringStepId:a,returnTargetStepId:c},d?{triggeringAttemptId:d}:{}),u?{triggeringExecutionId:u}:{})}function Xn$1(i,e){let t=new Map;for(let s of i){let o=f$1(s),a=r(o,"id"),c=r(o,"executionId");a&&c&&t.set(a,c);}let n=new Map;for(let s of e){let o=f$1(s),a=r(o,"kind");if(a!=="code-verification"&&a!=="session-step")continue;let c=r(o,"stepId")??r(f$1(o?.facts),"stepId");if(!c)continue;let d=f$1(o?.facts);if(!d)continue;let u=r(d,"executionId")??r(o,"executionId"),m=t.get(c);if(u&&m&&u!==m)continue;let h=r(d,"status")??r(o,"outcome");!(E(d,"durationMs")!==void 0||r(d,"startedAt")!==void 0)&&h!=="running"||n.set(c,P(I$2({},d),{evidenceStatus:h}));}return i.map(s=>{let o=f$1(s),a=r(o,"id");if(!o||!a)return s;let c=n.get(a);if(!c)return s;let d=E(o,"durationMs")??E(c,"durationMs"),u=r(o,"startedAt")??r(c,"startedAt"),m=r(o,"completedAt")??r(c,"completedAt"),h=F$1(o),p=r(c,"evidenceStatus"),b=p==="running"?"running":p==="needs_research"?"waiting_human":E(c,"exitCode")===0&&c.timedOut!==true?"completed":"failed";return P(I$2(I$2(I$2(I$2({},o),d!==void 0?{durationMs:d}:{}),u?{startedAt:u}:{}),m?{completedAt:m}:{}),{status:h==="pending"||h==="ready"?b:h})})}function Zn$1(i){for(let e of i){let t=r(f$1(e),"startedAt");if(t)return t}}function Ye$1(i,e){let t=He$3(i),n=f$1(i)??{},s=f$1(n.projection)??n,o=f$1(n.relations)??f$1(f$1(n.instance)?.relations),a=ce$3(i),c=r(o,"ticket"),d=r(o,"branch")??c,u=r(s,"workflowType"),m=r(s,"title"),h=r(s,"goal"),p=r(s,"status"),b=m??(t.id!=="unknown"?t.id:c??h??"workflow"),v={id:t.id,title:b,project:a??c??"coday",status:e??(t.status==="failed"?"failed":dn$2(p,t.status)),costUsd:t.costUsd,durationSec:t.durationSec,tokens:t.tokens,phases:t.phases,run:t};a&&(v.namespaceId=a),u&&(v.workflowType=u),c&&(v.ticket=c),d&&(v.branch=d);let w=Ct$4(i);w&&(v.controllerCaseId=w);let R=r(n,"createdAt");return R&&Hn$2(R)&&(v.createdAt=R),v}function Je$1(i,e){let t=new Set((e.blockers??[]).map(s=>s.stepId).filter(s=>!!s)),n=He$3(i,{realCost:{cost:e.costUsd,unknownCostCount:e.unknownCostCount,totalTokens:e.tokens??void 0}},void 0,t);return n.status=e.status,n.durationSec=e.durationSec,n.tokens=e.tokens,n.costUsd=e.costUsd,n.unknownCostCount=e.unknownCostCount,n.waitingHuman=e.executionState==="waiting_human",n.cardState=e.executionState==="waiting_human"?"waiting_human":e.status==="failed"?"failed":t.size>0?"blocked":e.activelyRunning?"running":e.status==="succeeded"?"succeeded":"pending",n.phases=e.steps.map(s=>({key:s.key,ratio:e.durationSec>0?(s.durationSec??0)/e.durationSec:1/Math.max(e.steps.length,1),tone:s.tone,status:s.status})),n}var Nt$5="unassigned";var Tt$4={id:"872641a8",sandbox:"coday-agentos-execution-adapter-03b2",goal:"@Archay Goal: Implement explicit AgentOS Execution Adapter boundary & robust SSE Client in factory-service",status:"running",executionState:"running",activelyRunning:true,startedAt:"2026-09-30T18:08:22+02:00",workflow:"adw_simple_sdlc",costUsd:1.07,durationSec:856,tokens:606500,tokensRead:73500,tokensWritten:17900,nowSec:856,steps:[{key:"request",tone:"amber",status:"done",durationSec:0},{key:"plan",tone:"violet",status:"done",durationSec:236},{key:"workspace",tone:"green",status:"done"},{key:"build",tone:"cyan",status:"running",durationSec:619}],lanes:[{id:"human",label:"benjamin.valdes",subtitle:"engineer",kind:"human",tone:"amber",blocks:[],request:{label:"request",description:"Capture the incoming ask",startSec:0,endSec:0,status:"completed"}},{id:"code",label:"code",subtitle:"workspace",kind:"workspace",tone:"cyan",blocks:[{label:"workspace",startSec:229,endSec:237,status:"completed"}]},{id:"planner",label:"planner",subtitle:"claude-opus-4-8",kind:"agent",tone:"violet",contextPct:7,blocks:[{label:"plan",description:"Turn the request into an implementable plan",startSec:0,endSec:236,status:"completed",ticksSec:[6,12,18,24,30,90,180,230],errorTicksSec:[48,52]}]},{id:"builder",label:"builder",subtitle:"kimi-k3",kind:"agent",tone:"cyan",blocks:[{label:"build",description:"Implement the plan exactly",startSec:237,endSec:856,status:"running",ticksSec:[252,260,268,276,284,292,780,840]}]}],phase:{name:"build",status:"running",stepStatus:"running",durationSec:619,owner:"builder",kind:"agent",attempt:"No attempt recorded",sections:[{label:"Agent configuration"},{label:"Description"},{label:"Compiled prompts",count:2},{label:"Validations",count:0},{label:"Outputs",count:0}]},events:[{time:"18:12:19",type:"phase_start",text:"build"},{time:"18:12:19",type:"agent_start",text:"builder"},{time:"18:12:27",type:"thinking",text:"Let me start by reading the plan and spec files, and exploring the factory-service\u2026"},{time:"18:12:27",type:"tool_call",tool:"read",text:"/work/data/sessions/872641a8/context_handoff/plan.md",durationSec:.01},{time:"18:12:27",type:"tool_call",tool:"read",text:"/work/app/specs/872641a8_agentos_execution_adapter_sse.md",durationSec:.01},{time:"18:12:36",type:"tool_call",tool:"bash",text:"find /work/app -type d -name factory-service | head",durationSec:.47},{time:"18:12:43",type:"tool_call",tool:"ls",text:"/work/app/factory-service/src/main/kotlin/io/whozoss/factory",durationSec:0},{time:"18:13:02",type:"thinking",text:"Now let me read the app_docs (SSE contract), and check the build setup\u2026"},{time:"18:13:02",type:"tool_call",tool:"read",text:"/work/app/factory-service/build.gradle.kts",durationSec:.01},{time:"18:13:13",type:"tool_call",tool:"read",text:"/work/app/app_docs/agentos-sse-contract.md",durationSec:0},{time:"18:21:18",type:"agent_message",text:"I have full context now. Let me check the Nx/Gradle wiring for running factory-service\u2026"},{time:"18:22:14",type:"agent_message",text:"Now I'll implement the new package. Starting with the main source files."},{time:"18:22:14",type:"tool_call",tool:"write",text:"/work/app/factory-service/src/main/kotlin/io/whozoss/factory/adapter/\u2026",durationSec:0}]};var es=["workflow-projection-updated","workflow-projection-removed","workflow-projection-restored","workflow-projection-purged"],ts=new y("FACTORY_COCKPIT_EVENT_SOURCE_FACTORY",{providedIn:"root",factory:()=>i=>{if(typeof EventSource>"u")throw new Error("EventSource is not available in this environment");return new EventSource(i)}}),ns="/api/factory/workflows/stream",ss=3e4,Xe$1=class i{eventSourceFactory=h(ts);source=null;reconnectTimer=null;reconnectAttempts=0;hasConnected=false;namespaceId;disposed=false;invalidationsSubject=new Z$2;reconnectedSubject=new Z$2;connectionSubject=new Z$2;invalidations$=this.invalidationsSubject.asObservable();reconnected$=this.reconnectedSubject.asObservable();connectionState$=this.connectionSubject.asObservable();connect(e){let t=e.trim();if(!t){this.close();return}this.namespaceId=t,this.open();}close(){this.clearReconnect(),this.closeSource(),this.hasConnected=false,this.reconnectAttempts=0,this.connectionSubject.next(false);}ngOnDestroy(){this.disposed=true,this.close(),this.invalidationsSubject.complete(),this.reconnectedSubject.complete(),this.connectionSubject.complete();}open(){if(this.disposed)return;this.clearReconnect(),this.closeSource();let e;try{e=this.eventSourceFactory(this.buildUrl());}catch{this.scheduleReconnect();return}this.source=e,e.onopen=()=>this.handleOpen(),e.onerror=()=>this.handleError();for(let t of es)e.addEventListener(t,n=>this.handleEvent(t,n));}buildUrl(){let e=this.namespaceId?.trim();if(!e)throw new Error("Factory workflow SSE requires namespaceId");return `${ns}?namespaceId=${encodeURIComponent(e)}`}handleOpen(){this.reconnectAttempts=0,this.hasConnected&&this.reconnectedSubject.next(),this.hasConnected=true,this.connectionSubject.next(true);}handleEvent(e,t){let n=this.parse(t.data),s=typeof n=="object"&&n!==null?n:void 0,o={type:e,data:n,receivedAt:Date.now()};typeof s?.workflowId=="string"&&(o.workflowId=s.workflowId),typeof s?.namespaceId=="string"&&(o.namespaceId=s.namespaceId),typeof s?.revision=="number"&&(o.revision=s.revision),this.invalidationsSubject.next(o);}parse(e){if(typeof e!="string"||e.length===0)return e;try{return JSON.parse(e)}catch{return e}}handleError(){this.connectionSubject.next(false),this.closeSource(),this.scheduleReconnect();}scheduleReconnect(){if(this.disposed||this.reconnectTimer!==null)return;let e=Math.min(2e3*2**this.reconnectAttempts,ss);this.reconnectAttempts+=1,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open();},e);}clearReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);}closeSource(){this.source&&(this.source.onopen=null,this.source.onerror=null,this.source.close(),this.source=null);}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac,providedIn:"root"})};function mt$3(i,e){let t=new URLSearchParams;return e&&t.set("ns",e),t.set("case",i),`/agentos/home?${t.toString()}`}var ln$3=class i{api=h(vb);sse=h(Xe$1);supervisorCases=h(Qe$1);namespaces=Qe$3(new Map);namespaceOptions=Qe$3([]);selectedNamespaceId=Qe$3(null);namespaceOptionsLoading=Qe$3(true);namespaceOptionsError=Qe$3(null);workstreamMappingMissing=Qe$3(false);overviewError=Qe$3(null);namespaceSelectionRequired=lT(()=>false);runs=Qe$3([]);parentRuns=Qe$3(new Map);recentTasks=Qe$3([]);showDestroyed=Qe$3(false);answeringQuestionId=Qe$3(null);questionFeedback=Qe$3(null);resumingResearchStepId=Qe$3(null);researchResumptionFeedback=Qe$3(null);researchResumptionKeys=new Map;sandboxes=lT(()=>this.runs());activeRuns=lT(()=>this.runs().filter(e=>e.status!=="destroyed"),{equal:Ze$1});destroyedRuns=lT(()=>this.runs().filter(e=>e.status==="destroyed"),{equal:Ze$1});visibleRuns=lT(()=>{let e=this.showDestroyed()?this.runs():this.activeRuns();return ds([...e])},{equal:Ze$1});workstreamViews=[];workstreams=lT(()=>{let e=this.namespaces(),t=new Map;for(let o of this.visibleRuns()){let a=o.namespaceId?.trim()||Nt$5,c=t.get(a)??[];c.push(o),t.set(a,c);}let n=new Map(this.workstreamViews.map(o=>[o.namespaceId,o])),s=[...t.entries()].map(([o,a])=>{let c=n.get(o),d=o===Nt$5?"No namespace":e.get(o)??o,u=Mt$3(c?.runs??[],a);return c&&c.title===d&&c.runs===u?c:{namespaceId:o,title:d,runs:u}}).sort((o,a)=>o.title.localeCompare(a.title));return this.workstreamViews=Mt$3(this.workstreamViews,s),this.workstreamViews});costs=lT(()=>{let e=this.activeRuns(),t=c=>c.run?c.run.costUsd:c.costUsd,n=e.some(c=>t(c)===null),s=e.some(c=>c.run?.unknownCostCount==null),o=n?null:e.reduce((c,d)=>c+(t(d)??0),0),a=s?null:e.reduce((c,d)=>c+(d.run?.unknownCostCount??0),0);return {active:e.length,workflowsUsd:o,totalUsd:o,unknownCostCount:a}},{equal:et$1});workflows=Qe$3([]);sessions=Qe$3(new Map);enrichment=new Map;subscriptions=new q$3;overviewRequest=null;overviewRefreshPending=false;detailRequest=null;detailRefreshPending=false;selectedWorkflowId=null;detailNamespaceId=null;namespaceGeneration=0;overviewEnrichmentRequests=new Map;overviewEnrichmentPending=new Set;usageRefreshRequest=null;removedUsage=new Map;removedUsageAttempted=new Set;removedUsageRequest=null;destroyed=false;constructor(){this.loadNamespaceOptions(),this.subscriptions.add(vo$1(4e3,4e3).subscribe(()=>{if(this.selectedWorkflowId){let e=this.sessions().get(this.selectedWorkflowId);e&&(e.status==="running"||e.status==="queued")&&this.refreshSelectedSession();}})),this.subscriptions.add(vo$1(15e3,15e3).subscribe(()=>{this.selectedNamespaceId()===null?this.refresh():this.refreshActiveUsage();})),this.subscriptions.add(this.sse.invalidations$.subscribe(e=>{let t=this.selectedNamespaceId();!t||e.namespaceId&&e.namespaceId!==t||(this.load(),e.workflowId?this.queueOverviewEnrichment(e.workflowId):this.queueAllOverviewEnrichment(),(!e.workflowId||e.workflowId===this.selectedWorkflowId)&&this.refreshSelectedSession());})),this.subscriptions.add(this.sse.reconnected$.subscribe(()=>{this.selectedNamespaceId()&&(this.load(),this.queueAllOverviewEnrichment(),this.refreshSelectedSession());}));}ngOnDestroy(){this.destroyed=true,this.subscriptions.unsubscribe(),this.cancelNamespaceRequests(),this.sse.close();}selectNamespace(e){let t=e?.trim()||null;if(t!==this.selectedNamespaceId()){if(this.namespaceGeneration+=1,this.cancelNamespaceRequests(),this.selectedNamespaceId.set(t),this.workstreamMappingMissing.set(false),this.overviewError.set(null),this.clearScopedState(),!t){this.sse.close(),this.load();return}this.sse.connect(t),this.load();}}loadNamespaceOptions(){this.namespaceOptionsLoading.set(true),this.namespaceOptionsError.set(null),this.api.getNamespaces().pipe(yr(()=>this.namespaceOptionsLoading.set(false))).subscribe({next:e=>{this.namespaceOptions.set(e),this.applyNamespaces(e),this.namespaceOptionsLoading.set(false),this.load();},error:e=>this.namespaceOptionsError.set(e)});}session(e){let t=this.sessions().get(e);return t||(e===Tt$4.id?Tt$4:void 0)}parentRunFor(e){if(!e)return;let t=this.parentRuns().get(e);if(t)return t;let n=e.indexOf("__f");if(n>0){let s=e.slice(0,n);return this.parentRuns().get(s)}}loadParentRun(e,t){let n=e.indexOf("__f"),s=n>0?e.slice(0,n):e,o=t??this.namespaceFor(e);!s||!o||this.api.getParentRun(s,o).subscribe({next:a=>{a&&a.runId&&this.parentRuns.update(c=>new Map(c).set(a.runId,a));},error:()=>{}});}replyParentRunEscalation(e,t,n,s,o){let a=o??this.namespaceFor(e);a&&this.api.replyParentRunEscalation(e,t,{selectedOption:n,text:s},a).subscribe({next:c=>{c&&c.runId&&this.parentRuns.update(d=>new Map(d).set(c.runId,c)),this.refreshAfterAction(this.selectedWorkflowId??e);},error:()=>{}});}selectSession(e,t){let n=e.trim(),s=t?.trim()||null;if(s&&this.selectedNamespaceId()!==null&&s!==this.selectedNamespaceId()&&this.selectNamespace(s),!n){this.clearSessionSelection();return}if(n===this.selectedWorkflowId){if(s&&s!==this.detailNamespaceId){this.detailNamespaceId=s,this.cancelDetailRequest(),this.startDetailRequest(n);return}this.queueDetailRefresh(n);return}this.selectedWorkflowId=n,this.detailNamespaceId=s,this.cancelDetailRequest(),this.startDetailRequest(n);}clearSessionSelection(e){e&&e!==this.selectedWorkflowId||(this.selectedWorkflowId=null,this.detailNamespaceId=null,this.cancelDetailRequest());}refresh(){this.load(),this.queueAllOverviewEnrichment(),this.refreshSelectedSession();}refreshActiveUsage(){let e=this.selectedNamespaceId();if(!e||this.usageRefreshRequest&&!this.usageRefreshRequest.closed)return;let t=this.namespaceGeneration,n=this.activeRuns().filter(s=>s.namespaceId===e&&s.run?.status==="running"&&s.id!==this.selectedWorkflowId&&this.enrichment.has(s.id)&&!this.overviewEnrichmentRequests.has(s.id));n.length!==0&&(this.usageRefreshRequest=at$3(n).pipe(lt$3(s=>this.api.getMetrics(s.id,e).pipe(zt$6(o=>{o!=null&&this.applyEnrichment(s.id,e,t,void 0,{metrics:o});}),ke$4(()=>wn$1)),is)).subscribe());}enrichRemovedRunsUsage(){if(this.destroyed||this.removedUsageRequest&&!this.removedUsageRequest.closed)return;let e=this.namespaceGeneration,t=this.destroyedRuns().filter(n=>!!n.namespaceId&&!this.removedUsageAttempted.has(n.id)).slice(0,os);if(t.length!==0){for(let n of t)this.removedUsageAttempted.add(n.id);this.removedUsageRequest=at$3(t).pipe(lt$3(n=>this.loadRemovedRunUsage(n,e),rs),yr(()=>{this.removedUsageRequest=null,e===this.namespaceGeneration&&this.enrichRemovedRunsUsage();})).subscribe();}}loadRemovedRunUsage(e,t){let n=e.namespaceId;return this.api.getAttempts(e.id,n).pipe(Nc(s=>{let o=new Set;for(let a of ne$2(s))a.caseId&&o.add(a.caseId);return o.size===0||o.size>JW?wn$1:this.api.getCumulativeUsage([...o])}),zt$6(s=>{t!==this.namespaceGeneration||!as(s)||(this.removedUsage.set(e.id,s),this.setRuns(this.runs().map(o=>o.id===e.id&&o.status==="destroyed"?mn$3(o,s):o)));}),A$1(()=>{}),ke$4(()=>qe$3(void 0)))}load(){if(!(this.namespaceOptionsLoading()&&this.namespaceOptions().length===0)){if(this.overviewRequest){this.overviewRefreshPending=true;return}this.overviewRequest=this.loadOverview().pipe(yr(()=>{this.overviewRequest=null,this.overviewRefreshPending&&(this.overviewRefreshPending=false,this.load());})).subscribe();}}loadOverview(){let e=this.selectedNamespaceId();if(!e)return this.loadAllNamespaces();let t=this.namespaceGeneration;return Cc({active:this.api.getWorkflows("active",e),removed:this.api.getWorkflows("removed",e)}).pipe(zt$6(({active:n,removed:s})=>{t!==this.namespaceGeneration||e!==this.selectedNamespaceId()||(this.workstreamMappingMissing.set(false),this.overviewError.set(null),this.applyWorkflows(n,s));}),ke$4(n=>{if(t!==this.namespaceGeneration||e!==this.selectedNamespaceId())return qe$3(void 0);let s=fn$4(n);return this.workstreamMappingMissing.set(s),this.overviewError.set(s?null:n),this.clearScopedState(),s&&this.sse.close(),qe$3(void 0)}),Nc(()=>qe$3(void 0)))}loadAllNamespaces(){let e=this.namespaceGeneration,t=XW(this.namespaceOptions());return at$3(t).pipe(lt$3(({id:n},s)=>Cc({active:this.api.getWorkflows("active",n),removed:this.api.getWorkflows("removed",n)}).pipe(A$1(o=>P(I$2({},o),{index:s,error:null})),ke$4(o=>qe$3({index:s,active:[],removed:[],error:fn$4(o)?null:o}))),4),nD(),A$1(n=>n.sort((s,o)=>s.index-o.index)),zt$6(n=>{e!==this.namespaceGeneration||this.selectedNamespaceId()!==null||(this.overviewError.set(n.find(s=>s.error)?.error??null),this.workstreamMappingMissing.set(false),this.applyWorkflows(n.flatMap(s=>s.active),n.flatMap(s=>s.removed)));}),Nc(()=>qe$3(void 0)))}applyNamespaces(e){let t=new Map;for(let n of XW(e))t.set(n.id,n.name);this.namespaces.set(t);}applyWorkflows(e,t){let n=Array.isArray(e)?e:[],s=Array.isArray(t)?t:[],o=[...n,...s],a=this.selectedWorkflowId,c=a?this.workflowSnapshot(a):void 0,d=a?o.find(g=>_$1(g)===a):void 0,u=c&&gn$3(c)>gn$3(d)?c:void 0,m=u?o.some(g=>_$1(g)===a)?o.map(g=>_$1(g)===a?u:g):[...o,u]:o,h=u?n.some(g=>_$1(g)===a)?n.map(g=>_$1(g)===a?u:g):s.some(g=>_$1(g)===a)?n:[...n,u]:n,p=u?s.map(g=>_$1(g)===a?u:g):s;this.workflows.set(m);let b=new Set(m.map(g=>_$1(g)).filter(g=>!!g));for(let g of [...this.enrichment.keys()])b.has(g)||this.enrichment.delete(g);for(let g of [...this.removedUsage.keys()])b.has(g)||this.removedUsage.delete(g);for(let[g,l]of [...this.overviewEnrichmentRequests])b.has(g)||(this.overviewEnrichmentRequests.delete(g),this.overviewEnrichmentPending.delete(g),this.detailRequest===l&&(this.detailRequest=null),l.unsubscribe());let v=new Map;for(let g of m){let l=_$1(g),I=l?this.enrichment.get(l):void 0,k=Me$3(g,I?.timing,I?.evidence,I?.metrics,I?.interactions,I?.attempts,I?.actions,I?.agentQuestions,I?.attemptsLoadError);I?.agentQuestionsError&&(k.agentQuestionsError=I.agentQuestionsError),v.set(k.id,k);}this.sessions.set(v);let w=(g,l)=>{let I=Ye$1(g,l),k=_$1(g),C=k&&this.enrichment.has(k)?v.get(k):void 0,x=C?pn$3(I,Je$1(g,C)):I,U=l&&k?this.removedUsage.get(k):void 0;return U?mn$3(x,U):x},R=h.map(g=>w(g)),A=p.map(g=>w(g,"destroyed"));this.setRuns([...R,...A]);for(let g of h){let l=_$1(g);!l||l===this.selectedWorkflowId||this.enrichment.has(l)||this.overviewEnrichmentRequests.has(l)||this.queueOverviewEnrichment(l);}this.selectedWorkflowId&&h.some(g=>_$1(g)===this.selectedWorkflowId)&&!this.enrichment.has(this.selectedWorkflowId)&&this.refreshSelectedSession();}workflowSnapshot(e){return this.workflows().find(t=>_$1(t)===e)}refreshSelectedSession(){this.selectedWorkflowId&&this.queueDetailRefresh(this.selectedWorkflowId);}queueDetailRefresh(e){if(e===this.selectedWorkflowId){if(this.detailRequest){this.detailRefreshPending=true;return}this.startDetailRequest(e);}}startDetailRequest(e){if(e!==this.selectedWorkflowId)return;let t=this.overviewEnrichmentRequests.get(e);if(t){this.detailRequest=t;return}let n=this.workflowSnapshot(e),s=n?ce$3(n):this.detailNamespaceId;if(!n&&!s)return;let o=null;o=(n?this.enrichSession(n):this.loadSelectedWorkflow(e,s)).pipe(yr(()=>{if(this.detailRequest===o&&(this.detailRequest=null,this.detailRefreshPending)){this.detailRefreshPending=false;let c=this.selectedWorkflowId;c===e&&this.startDetailRequest(c);}})).subscribe(),this.detailRequest=o;}cancelDetailRequest(){this.detailRefreshPending=false,this.detailRequest?.unsubscribe(),this.detailRequest=null;}refreshAfterAction(e){this.load(),e===this.selectedWorkflowId?this.queueDetailRefresh(e):this.queueOverviewEnrichment(e);}loadSelectedWorkflow(e,t){let n=this.namespaceGeneration;return this.api.getWorkflow(e,t).pipe(Nc(s=>{if(n!==this.namespaceGeneration||this.selectedNamespaceId()!==null&&t!==this.selectedNamespaceId())return qe$3(void 0);if(_$1(s)!==e)return qe$3(void 0);let o=this.workflows();if(!o.some(a=>_$1(a)===e)){this.workflows.set([...o,s]),this.runs.update(c=>[...c,Ye$1(s)]);let a=Me$3(s);this.sessions.update(c=>new Map(c).set(a.id,a));}return this.enrichSession(s)}),ke$4(()=>qe$3(void 0)))}enrichSession(e){let t=_$1(e);if(!t)return qe$3(void 0);let n=ce$3(e),s=this.selectedNamespaceId();if(!n||s!==null&&n!==s)return qe$3(void 0);let o=this.namespaceGeneration,a=d=>this.applyEnrichment(t,n,o,e,d),c=d=>d.pipe(ke$4(()=>qe$3(void 0)));return Cc({timing:c(this.api.getTiming(t,n)),evidence:c(this.api.getEvidence(t,n)),metrics:c(this.api.getMetrics(t,n)),interactions:c(this.api.getInteractions(t,n)),attempts:this.api.getAttempts(t,n).pipe(A$1(d=>({attempts:d})),ke$4(d=>qe$3({attempts:void 0,attemptsLoadError:d.message}))),actions:c(this.api.getActions(t,n)),agentQuestions:this.api.getAgentQuestions(t,n).pipe(ke$4(d=>(d.code==="AGENT_QUESTIONS_UNAVAILABLE"&&a({agentQuestions:[],agentQuestionsError:us(d,t,n)}),qe$3(void 0))))}).pipe(zt$6(d=>{let u=d.attempts,m=Object.fromEntries(Object.entries(d).filter(([h,p])=>h!=="attempts"&&p!==void 0));u?.attempts!==void 0&&(m.attempts=u.attempts,m.attemptsLoadError=void 0),u?.attemptsLoadError&&(m.attemptsLoadError=u.attemptsLoadError),a(m);}),Nc(()=>qe$3(void 0)))}applyEnrichment(e,t,n,s,o){if(n!==this.namespaceGeneration||this.selectedNamespaceId()!==null&&t!==this.selectedNamespaceId())return;let a=this.workflowSnapshot(e)??s;if(a===void 0)return;let c=I$2(I$2({},this.enrichment.get(e)??{}),o);this.enrichment.set(e,c);let d=Me$3(a,c.timing,c.evidence,c.metrics,c.interactions,c.attempts,c.actions,c.agentQuestions,c.attemptsLoadError);c.agentQuestionsError&&(d.agentQuestionsError=c.agentQuestionsError),this.sessions.update(u=>{let m=new Map(u);return m.set(d.id,d),m}),this.updateRun(Je$1(a,d));}queueAllOverviewEnrichment(){for(let e of this.workflows()){let t=_$1(e);t&&this.queueOverviewEnrichment(t);}}queueOverviewEnrichment(e){if(e===this.selectedWorkflowId)return;if(this.overviewEnrichmentRequests.has(e)){this.overviewEnrichmentPending.add(e);return}let t=this.workflowSnapshot(e);if(!t||this.runs().find(s=>s.id===e)?.status==="destroyed")return;let n=null;n=this.enrichSession(t).pipe(yr(()=>{if(this.overviewEnrichmentRequests.get(e)!==n)return;this.overviewEnrichmentRequests.delete(e);let s=this.detailRequest===n;s&&(this.detailRequest=null);let o=this.overviewEnrichmentPending.delete(e);e===this.selectedWorkflowId?s&&(o||this.detailRefreshPending)&&(this.detailRefreshPending=false,this.startDetailRequest(e)):o&&this.queueOverviewEnrichment(e);})).subscribe(),this.overviewEnrichmentRequests.set(e,n);}cancelNamespaceRequests(){this.overviewRefreshPending=false,this.overviewRequest?.unsubscribe(),this.overviewRequest=null,this.usageRefreshRequest?.unsubscribe(),this.usageRefreshRequest=null;let e=this.removedUsageRequest;this.removedUsageRequest=null,e?.unsubscribe(),this.cancelDetailRequest();for(let t of this.overviewEnrichmentRequests.values())t.unsubscribe();this.overviewEnrichmentRequests.clear(),this.overviewEnrichmentPending.clear();}clearScopedState(){this.workflows.set([]),this.workstreamViews=[],this.runs.set([]),this.sessions.set(new Map),this.enrichment.clear(),this.removedUsage.clear(),this.removedUsageAttempted.clear(),this.detailNamespaceId!==this.selectedNamespaceId()&&(this.selectedWorkflowId=null,this.detailNamespaceId=null);}namespaceFor(e){let t=this.workflows().find(s=>_$1(s)===e),n=t?ce$3(t):this.detailNamespaceId??this.selectedNamespaceId()??void 0;return n&&(this.selectedNamespaceId()===null||n===this.selectedNamespaceId())?n:void 0}replyInteraction(e,t,n,s){let o=s??this.namespaceFor(e);o&&this.api.replyInteraction(e,t,n,o).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}answerAgentQuestion(e,t,n){if(this.answeringQuestionId())return;this.answeringQuestionId.set(t.questionEventId),this.questionFeedback.set(null);let s=this.namespaceFor(e);if(!s){this.answeringQuestionId.set(null);return}this.api.answerAgentQuestion(e,t.questionEventId,{stepId:t.stepId,answer:n},s).subscribe({next:()=>{this.answeringQuestionId.set(null),this.refreshAfterAction(e);},error:o=>{this.answeringQuestionId.set(null);let a=o.status===409;this.questionFeedback.set({interactionId:t.questionEventId,kind:a?"conflict":"error",message:a?"The question has changed. The allowed state has been updated; please review your answer.":o.message}),a&&this.refreshAfterAction(e);}});}retry(e,t,n){let s=n??this.namespaceFor(e);s&&this.api.openRetry(e,t,s).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}resumeResearch(e,t,n){if(this.resumingResearchStepId())return;let s=n??this.namespaceFor(e),o=t.additionalContext.trim();if(!s||!o||o.length>4e3)return;let a=JSON.stringify({namespaceId:s,expectedRevision:t.expectedRevision,additionalContext:o}),c=`${e}:${t.stepId}`,d=this.researchResumptionKeys.get(c),u=d?.payload===a?d.key:cs();this.researchResumptionKeys.set(c,{payload:a,key:u}),this.resumingResearchStepId.set(t.stepId),this.researchResumptionFeedback.set(null),this.api.resumeResearch(e,t.stepId,{namespaceId:s,expectedRevision:t.expectedRevision,additionalContext:o},u).subscribe({next:()=>{this.resumingResearchStepId.set(null),this.researchResumptionKeys.delete(c),this.refreshAfterAction(e);},error:m=>{this.resumingResearchStepId.set(null);let h=m.status===409,p=h&&/idempot/i.test(`${m.code} ${m.message}`);this.researchResumptionFeedback.set({stepId:t.stepId,kind:p?"collision":h?"conflict":"error",message:p?"The submission key already exists with different content. The resumption was not resent.":h?"The workflow has changed. Allowed actions have been refreshed; review the new state.":m.message}),h&&this.refreshAfterAction(e);}});}cancelAttempt(e,t,n,s){let o=s??this.namespaceFor(e);o&&this.api.cancelAttempt(e,t,n,o).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}continueCost(e,t,n){let s=n??this.namespaceFor(e);s&&this.api.continueCost(e,t,s).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}stopCost(e,t){let n=t??this.namespaceFor(e);n&&this.api.stopCost(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}stop(e,t){let n=this.sessions().get(e),s=n?.activeAttemptId;if(!s)return;let o=n?.activeAttemptRevision,a={reason:"stop"};o!==void 0&&(a.expectedRevision=o),this.cancelAttempt(e,s,a,t);}remove(e,t){let n=t??this.namespaceFor(e);n&&this.api.removeWorkflow(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}restore(e,t){let n=t??this.namespaceFor(e);n&&this.api.restoreWorkflow(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}restoreSupervisorCase(e){return this.supervisorCases.restore(e)}openSupervisorCase(e){return this.supervisorCases.open(e)}setRuns(e){let t=this.runs(),n=a=>JSON.stringify([a.namespaceId,a.id]),s=new Map(t.map(a=>[n(a),a])),o=e.map(a=>{let c=s.get(n(a));return c&&et$1(c,a)?c:a});this.runs.set(Mt$3(t,o));}updateRun(e){this.setRuns(this.runs().map(t=>t.id===e.id?pn$3(t,e):t));}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac,providedIn:"root"})};function pn$3(i,e){return P(I$2({},i),{status:i.status==="destroyed"?"destroyed":e.cardState==="failed"?"failed":e.cardState==="blocked"?"blocked":e.cardState==="waiting_human"?"waiting_human":e.cardState==="running"?"working":"idle",run:e,costUsd:e.costUsd,durationSec:e.durationSec,tokens:e.tokens,phases:e.phases})}var is=4,os=8,rs=2;function as(i){return !!i&&Number.isFinite(i.cost)&&Number.isFinite(i.unknownCostCount)&&i.unknownCostCount>=0}function mn$3(i,e){let t=Number.isFinite(e.totalTokens)?e.totalTokens:null;return I$2(P(I$2({},i),{costUsd:e.cost,finalCostUsd:e.cost,tokens:t}),i.run?{run:P(I$2({},i.run),{costUsd:e.cost,unknownCostCount:e.unknownCostCount,tokens:t})}:{})}function Ze$1(i,e){return i.length===e.length&&i.every((t,n)=>t===e[n])}function Mt$3(i,e){return Ze$1(i,e)?i:e}function et$1(i,e){if(Object.is(i,e))return true;if(Array.isArray(i)&&Array.isArray(e))return i.length===e.length&&i.every((o,a)=>et$1(o,e[a]));if(!i||!e||typeof i!="object"||typeof e!="object"||Array.isArray(i)||Array.isArray(e))return false;let t=i,n=e,s=Object.keys(t);return s.length===Object.keys(n).length&&s.every(o=>Object.hasOwn(n,o)&&et$1(t[o],n[o]))}function cs(){let i=globalThis.crypto;return typeof i?.randomUUID=="function"?i.randomUUID():`research-resumption-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function fn$4(i){return i.code==="WORKFLOW_NOT_FOUND"&&i.message==="No workstream is mapped to the requested namespace."}function gn$3(i){if(typeof i!="object"||i===null)return -1;let e=i.revision;return typeof e=="number"&&Number.isFinite(e)?e:-1}function us(i,e,t){let n=i.details,s=o=>{let a=n?.[o];return typeof a=="string"&&a.length>0?a:void 0};return {code:i.code,message:i.message,caseId:s("caseId"),namespaceId:s("namespaceId")??t,workflowId:s("workflowId")??e,stepId:s("stepId")}}function ds(i){return i.sort((e,t)=>{let n=e.createdAt?Date.parse(e.createdAt):null,s=t.createdAt?Date.parse(t.createdAt):null;return n===null&&s===null?0:n===null?1:s===null?-1:s-n})}var _t$3=class _t{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z$2;bulk={select:e=>this._select(e),deselect:e=>this._deselect(e),setSelection:e=>this._setSelection(e)};constructor(e=false,t,n=true,s){this._multiple=e,this._emitChanges=n,this.compareWith=s,t&&t.length&&(e?t.forEach(o=>this._markSelected(o)):this._markSelected(t[0]),this._selectedToEmit.length=0);}select(...e){return this._select(e)}deselect(...e){return this._deselect(e)}setSelection(...e){return this._setSelection(e)}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=true){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return !this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e);}isMultipleSelection(){return this._multiple}_select(e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}_deselect(e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}_setSelection(e){this._verifyValueAssignment(e);let t=this.selected,n=new Set(e.map(o=>this._getConcreteValue(o)));e.forEach(o=>this._markSelected(o)),t.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]);}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e));}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e));}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e));}_verifyValueAssignment(e){e.length>1&&this._multiple;}_hasQueuedChanges(){return !!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let n of t)if(this.compareWith(e,n))return n;return e}else return e}};var ls=(()=>{class i{_listeners=[];notify(t,n){for(let s of this._listeners)s(t,n);}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(n=>t!==n);}}ngOnDestroy(){this._listeners=[];}static \u0275fac=function(n){return new(n||i)};static \u0275prov=F$2({token:i,factory:i.\u0275fac})}return i})();var hn$3=class hn{applyChanges(e,t,n,s,o){e.forEachOperation((a,c,d)=>{let u,m;if(a.previousIndex==null){let h=n(a,c,d);u=t.createEmbeddedView(h.templateRef,h.context,h.index),m=Z$1.INSERTED;}else d==null?(t.remove(c),m=Z$1.REMOVED):(u=t.get(c),t.move(u,d),m=Z$1.MOVED);o&&o({context:u?.context,operation:m,record:a});});}detach(){}};var Zi$1=(()=>{class i{_animationsDisabled=so$1();state="unchecked";disabled=false;appearance="full";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=xe$1({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,s){n&2&&It$7("mat-pseudo-checkbox-indeterminate",s.state==="indeterminate")("mat-pseudo-checkbox-checked",s.state==="checked")("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal",s.appearance==="minimal")("mat-pseudo-checkbox-full",s.appearance==="full")("_mat-animation-noopable",s._animationsDisabled);},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,s){},styles:[`.mat-pseudo-checkbox {
|
|
1026
|
+
`],encapsulation:2})}return o})(),Wt$3=(()=>{class o{_platform=h(De$5);_containerElement;_document=h(O$1);_styleLoader=h(Ht$4);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||H3()){let n=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<n.length;s++)n[s].remove();}let i=this._document.createElement("div");i.classList.add(t),H3()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(Xe$2);}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Nt$6=class Nt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,n){this._renderer=t,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",n);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function Yt$4(o){return o&&o.nodeType===1}var wt$5=class wt{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z$2;_attachments=new Z$2;_detachments=new Z$2;_positionStrategy;_scrollStrategy;_locationChanges=q$3.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new Z$2;_outsidePointerEvents=new Z$2;_afterNextRenderRef;constructor(e,t,i,n,s,r,a,l,c,d=false,f,_){this._portalOutlet=e,this._host=t,this._pane=i,this._config=n,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=f,this._renderer=_,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Zl(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=I$2(I$2({},this._config),e),this._updateElementSize();}setDirection(e){this._config=P(I$2({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=eW(this._config.width),e.height=eW(this._config.height),e.minWidth=eW(this._config.minWidth),e.minHeight=eW(this._config.minHeight),e.maxWidth=eW(this._config.maxWidth),e.maxHeight=eW(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Yt$4(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Nt$6(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,i){let n=lf(t||[]).filter(s=>!!s);n.length&&(i?e.classList.add(...n):e.classList.remove(...n));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Zl(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},Be$1="cdk-overlay-connected-position-bounding-box",ri$2=/([A-Za-z%]+)$/;function Ht$3(o,e){return new bt$3(e,o.get(A),o.get(O$1),o.get(De$5),o.get(Wt$3))}var bt$3=class bt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z$2;_resizeSubscription=q$3.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,n,s){this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=s,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Be$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,n=this._containerRect,s=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,n,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<d.visibleArea)&&(r={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:t});}if(s.length){let a=null,l=-1;for(let c of s){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&B$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof ue$2?this._origin.nativeElement:Yt$4(this._origin)?this._origin:null}_getOriginPoint(e,t,i){let n;if(i.originX=="center")n=e.left+e.width/2;else {let r=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?r:a;}t.left<0&&(n-=t.left);let s;return i.originY=="center"?s=e.top+e.height/2:s=i.originY=="top"?e.top:e.bottom,t.top<0&&(s-=t.top),{x:n,y:s}}_getOverlayPoint(e,t,i){let n;i.overlayX=="center"?n=-t.width/2:i.overlayX==="start"?n=this._isRtl()?-t.width:0:n=this._isRtl()?0:-t.width;let s;return i.overlayY=="center"?s=-t.height/2:s=i.overlayY=="top"?0:-t.height,{x:e.x+n,y:e.y+s}}_getOverlayFit(e,t,i,n){let s=Te$5(t),{x:r,y:a}=e,l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(r+=l),c&&(a+=c);let d=0-r,f=r+s.width-i.width,_=0-a,m=a+s.height-i.height,g=this._subtractOverflows(s.width,d,f),w=this._subtractOverflows(s.height,_,m),Zt=g*w;return {visibleArea:Zt,isCompletelyWithinViewport:s.width*s.height===Zt,fitsInViewportVertically:w===s.height,fitsInViewportHorizontally:g==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let n=i.bottom-t.y,s=i.right-t.x,r=Fe$5(this._overlayRef.getConfig().minHeight),a=Fe$5(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||r!=null&&r<=n,c=e.fitsInViewportHorizontally||a!=null&&a<=s;return l&&c}return false}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=Te$5(t),s=this._viewportRect,r=Math.max(e.x+n.width-s.width,0),a=Math.max(e.y+n.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0),d=0,f=0;return n.width<=s.width?d=c||-r:d=e.x<this._getViewportMarginStart()?s.left-i.left-e.x:0,n.height<=s.height?f=l||-a:f=e.y<this._getViewportMarginTop()?s.top-i.top-e.y:0,this._previousPushAmount={x:d,y:f},{x:e.x+d,y:e.y+f}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!ai$3(this._lastScrollVisibility,i)){let n=new yt$6(e,i);this._positionChanges.next(n);}this._lastScrollVisibility=i;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,n=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${n}`;}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,n=this._isRtl(),s,r,a;if(t.overlayY==="top")r=e.y,s=i.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=i.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-a+this._getViewportMarginTop();else {let m=Math.min(i.bottom-e.y+i.top,e.y),g=this._lastBoundingBoxSize.height;s=m*2,r=e.y-m,s>g&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-g/2);}let l=t.overlayX==="start"&&!n||t.overlayX==="end"&&n,c=t.overlayX==="end"&&!n||t.overlayX==="start"&&n,d,f,_;if(c)_=i.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=e.x-this._getViewportMarginStart();else if(l)f=e.x,d=i.right-e.x-this._getViewportMarginEnd();else {let m=Math.min(i.right-e.x+i.left,e.x),g=this._lastBoundingBoxSize.width;d=m*2,f=e.x-m,d>g&&!this._isInitialRender&&!this._growAfterOpen&&(f=e.x-g/2);}return {top:r,left:f,bottom:a,right:_,width:d,height:s}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="auto",n.maxHeight=n.maxWidth="",n.width=n.height="100%";else {let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.width=eW(i.width),n.height=eW(i.height),n.top=eW(i.top)||"auto",n.bottom=eW(i.bottom)||"auto",n.left=eW(i.left)||"auto",n.right=eW(i.right)||"auto",t.overlayX==="center"?n.alignItems="center":n.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?n.justifyContent="center":n.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",s&&(n.maxHeight=eW(s)),r&&(n.maxWidth=eW(r));}this._lastBoundingBoxSize=i,B$2(this._boundingBox.style,n);}_resetBoundingBoxStyles(){B$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){B$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){let d=this._viewportRuler.getViewportScrollPosition();B$2(i,this._getExactOverlayY(t,e,d)),B$2(i,this._getExactOverlayX(t,e,d));}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=eW(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=eW(r.maxWidth):s&&(i.maxWidth="")),B$2(this._pane.style,i);}_getExactOverlayY(e,t,i){let n={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),e.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;n.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else n.top=eW(s.y);return n}_getExactOverlayX(e,t,i){let n={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r;if(this._isRtl()?r=e.overlayX==="end"?"left":"right":r=e.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(s.x+this._overlayRect.width)}px`;}else n.left=eW(s.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Ve$2(e,i),isOriginOutsideView:Lt$4(e,i),isOverlayClipped:Ve$2(t,i),isOverlayOutsideView:Lt$4(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+e-this._getViewportMarginEnd(),bottom:i.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&lf(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof ue$2)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return {top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let i=t.getBoundingClientRect();return e&&(t.style.display=""),i}};function B$2(o,e){for(let t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);return o}function Fe$5(o){if(typeof o!="number"&&o!=null){let[e,t]=o.split(ri$2);return !t||t==="px"?parseFloat(e):null}return o||null}function Te$5(o){return {top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function ai$3(o,e){return o===e?true:o.isOriginClipped===e.isOriginClipped&&o.isOriginOutsideView===e.isOriginOutsideView&&o.isOverlayClipped===e.isOverlayClipped&&o.isOverlayOutsideView===e.isOverlayOutsideView}var Le$2="cdk-global-overlay-wrapper";function je$1(o){return new Ct$5}var Ct$5=class Ct{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Le$2),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:a}=i,l=(n==="100%"||n==="100vw")&&(!r||r==="100%"||r==="100vw"),c=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,f=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",m="",g="",w="";l?w="flex-start":d==="center"?(w="center",_?g=f:m=f):_?d==="left"||d==="end"?(w="flex-end",m=f):(d==="right"||d==="start")&&(w="flex-start",g=f):d==="left"||d==="start"?(w="flex-start",m=f):(d==="right"||d==="end")&&(w="flex-end",g=f),e.position=this._cssPosition,e.marginLeft=l?"0":m,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":g,t.justifyContent=w,t.alignItems=c?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Le$2),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},Ze$2=(()=>{class o{_injector=h(K$3);global(){return je$1()}flexibleConnectedTo(t){return Ht$3(this._injector,t)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),Xt$5=new y("OVERLAY_DEFAULT_CONFIG");function jt$2(o,e){o.get(Ht$4).load(Xe$2);let t=o.get(Wt$3),i=o.get(O$1),n=o.get(mf),s=o.get(or$1),r=o.get(iM),a=o.get(ai$4,null,{optional:true})||o.get(tt$1).createRenderer(null,null),l=new q$2(e),c=o.get(Xt$5,null,{optional:true})?.usePopover??true;l.direction=l.direction||r.value,!i.body||!("showPopover"in i.body)?l.usePopover=false:l.usePopover=e?.usePopover??c;let d=i.createElement("div"),f=i.createElement("div");d.id=n.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),f.appendChild(d),l.usePopover&&(f.setAttribute("popover","manual"),f.classList.add("cdk-overlay-popover"));let _=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return Yt$4(_)?_.after(f):_?.type==="parent"?_.element.appendChild(f):t.getContainerElement().appendChild(f),new wt$5(new _t$4(d,s,o),f,d,l,o.get(j$1),o.get(Ye$2),i,o.get(Wy),o.get(He$4),e?.disableAnimations??o.get(Bu,null,{optional:true})==="NoopAnimations",o.get(ae$3),a)}var Ue$2=(()=>{class o{scrollStrategies=h(Ie$2);_positionBuilder=h(Ze$2);_injector=h(K$3);create(t){return jt$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||o)};static \u0275prov=F$2({token:o,factory:o.\u0275fac})}return o})(),li$2=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],hi$2=new y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=h(K$3);return ()=>It$6(o)}}),zt$5=(()=>{class o{elementRef=h(ue$2);static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),Ge$2=new y("cdk-connected-overlay-default-config"),ci$2=(()=>{class o{_dir=h(iM,{optional:true});_injector=h(K$3);_overlayRef;_templatePortal;_backdropSubscription=q$3.EMPTY;_attachSubscription=q$3.EMPTY;_detachSubscription=q$3.EMPTY;_positionSubscription=q$3.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=h(hi$2);_ngZone=h(j$1);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new Oe$4;positionChange=new Oe$4;attach=new Oe$4;detach=new Oe$4;overlayKeydown=new Oe$4;overlayOutsideClick=new Oe$4;constructor(){let t=h(Wr$1),i=h(Yr$1),n=h(Ge$2,{optional:true}),s=h(Xt$5,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new $$1(t,i),this.scrollStrategy=this._scrollStrategyFactory(),n&&this._assignConfig(n);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=li$2);let t=this._overlayRef=jt$2(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!eb(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),s=st$3(i);(!n||n!==s&&!n.contains(s))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new q$2({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=Ht$3(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof zt$5?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof zt$5?this.origin.elementRef.nativeElement:this.origin instanceof ue$2?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(uD(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(i){return new(i||o)};static \u0275dir=rt$2({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",wt$6],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",wt$6],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",wt$6],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",wt$6],push:[2,"cdkConnectedOverlayPush","push",wt$6],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",wt$6],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",wt$6],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ya]})}return o})(),di$2=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=he$2({type:o});static \u0275inj=ce$4({providers:[Ue$2],imports:[no$1,De$4,Bt$5,Bt$5]})}return o})();var $e$2=class s{http=h(to$1);createCase(e){let t=new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1());return this.http.post("/api/cases",e,{headers:t}).pipe(ke$4(n=>ut$4(()=>Jt$3(n))))}addMessage(e,t){let n=new ge$3().set("Content-Type","application/json").set("X-Correlation-Id",ao$1());return this.http.post(`/api/cases/${encodeURIComponent(e)}/messages`,{content:t},{headers:n}).pipe(ke$4(i=>ut$4(()=>Jt$3(i))))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})};function Jt$3(s){if(s instanceof Ut$2){let e=s.error,t=e?.error,n=typeof t?.code=="string"?t.code:typeof e?.code=="string"?e.code:`HTTP_${s.status}`,i=typeof t?.message=="string"?t.message:typeof e?.message=="string"?e.message:s.message||"AgentOS API request failed";return {code:n,message:i,status:s.status,raw:s}}return s instanceof Error?{code:"UNKNOWN_ERROR",message:s.message,status:0,raw:s}:{code:"UNKNOWN_ERROR",message:"AgentOS API request failed",status:0,raw:s}}var Ve$1=class s{static STORAGE_KEY="factory-cockpit.supervisor-cases";save(e,t){try{let n=this.readMap();n[this.storageKey(e)]=t,localStorage.setItem(s.STORAGE_KEY,JSON.stringify(n));}catch{}}load(e){try{let n=this.readMap()[this.storageKey(e)];return xn$2(n)?n:void 0}catch{return}}remove(e){try{let t=this.readMap();delete t[this.storageKey(e)],localStorage.setItem(s.STORAGE_KEY,JSON.stringify(t));}catch{}}storageKey(e){return `${e.namespaceId}::${e.workflowId}`}readMap(){try{let e=localStorage.getItem(s.STORAGE_KEY);if(!e)return {};let t=JSON.parse(e);return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:{}}catch{return {}}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})};function xn$2(s){if(typeof s!="object"||s===null||Array.isArray(s))return false;let e=s;return typeof e.caseId=="string"&&e.caseId.length>0&&typeof e.namespaceId=="string"&&e.namespaceId.length>0&&typeof e.createdAt=="string"&&e.createdAt.length>0}var Ke$1=class s{agentOs=h($e$2);store=h(Ve$1);restore(e){let t=e.namespaceId,n=e.id;if(!t||!n)return;let i=this.store.load({workflowId:n,namespaceId:t});if(i)return {caseId:i.caseId,namespaceId:i.namespaceId,agentOsUrl:mt$3(i.caseId,i.namespaceId)}}open(e){let t=e.namespaceId,n=e.id,i=`Supervisor assistance \u2014 ${e.title}`,r=Rn$1(e.title,n,e.ticket,e.workflowType);return this.agentOs.createCase({namespaceId:t,title:i}).pipe(zt$6(a=>{this.store.save({workflowId:n,namespaceId:t},{caseId:a.id,namespaceId:t,createdAt:new Date().toISOString()});}),Nc(a=>this.agentOs.addMessage(a.id,r).pipe(ke$4(()=>qe$3(void 0)),Nc(()=>qe$3({caseId:a.id,namespaceId:t,agentOsUrl:mt$3(a.id,t)})))))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})};function Rn$1(s,e,t,n){return [`@Heimdall Hello. I am opening this case from the Factory Cockpit for sandbox **${s}**.`,"","Available identifiers:",`- Workflow ID: \`${e}\``,...t?[`- Ticket: \`${t}\``]:[],...n?[`- Workflow type: \`${n}\``]:[],"","Could you check the state of this workflow and let me know what is happening?"].join(`
|
|
1027
|
+
`)}function f$1(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)?s:void 0}function V$2(s){return Array.isArray(s)?s:[]}function o(s,e){let t=s?.[e];return typeof t=="string"&&t.length>0?t:void 0}function E(s,e){let t=s?.[e];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function ft$3(s,e){let t=s?.[e];return typeof t=="boolean"?t:void 0}function q$1(s){if(typeof s=="number"&&Number.isFinite(s))return s;if(typeof s=="string"){let e=Date.parse(s);return Number.isFinite(e)?e:null}return null}function Qe$1(s){if(!s)return "--:--:--";let e=new Date(s);return Number.isNaN(e.getTime())?"--:--:--":e.toISOString().slice(11,19)}function gt$3(s,e){if(Array.isArray(s))return s;let t=f$1(s);if(!t)return [];let n=t[e];return Array.isArray(n)?n:Array.isArray(t.items)?t.items:Array.isArray(t.data)?t.data:[]}var En$1=/(oracle|build|test|lint|scan|typecheck|type-check|compile|deterministic|verify|code)/i,Cn$2=/(human|humain|approv|validat|decision|manual|confirm|review|gate|revue)/i;function X(s){let e=f$1(s),t=o(e,"lane");if(t==="human"||t==="agent"||t==="code")return t;let n=f$1(e?.responsibility),i=o(n,"kind");if(i==="human"||i==="agent"||i==="code")return i;let r=`${o(e,"id")??""} ${o(e,"name")??""}`;return En$1.test(r)?"code":Cn$2.test(r)?"human":"agent"}function ht$2(s){let e=f$1(s),t=f$1(e?.responsibility),n=f$1(e?.facts);return o(t,"name")??o(e,"agentName")??o(n,"agentName")}function ge$2(s){return ht$2(s)??"agent"}function bt$2(s){let e=X(s);if(e==="human")return {id:"engineer",kind:"human",label:"engineer"};if(e==="code")return {id:"code",kind:"code",label:"code"};let t=ge$2(s);return {id:`agent:${t}`,kind:"agent",label:t}}function F$1(s){let e=o(f$1(s),"status")??"pending";return e==="needs_research"?"waiting_human":["pending","ready","running","waiting_human","completed","failed","indeterminate","cancelled","skipped"].includes(e)?e:"pending"}function z$1(s){let e=f$1(s),t=q$1(e?.startedAt),n=q$1(e?.finishedAt??e?.completedAt??e?.endedAt);if(t!==null&&n!==null&&n>=t)return (n-t)/1e3;let i=e?.durationMs,r=typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0;return r!==void 0?r/1e3:null}function he$1(s){return s==="human"?"amber":s==="code"?"cyan":"violet"}function Ce$2(s){let e=f$1(s);if(!e)return;let t=f$1(e.realCost),n=t??e,i=I=>n[I]===null?null:E(n,I),r=i("cost"),a=i("unknownCostCount"),c=i("liveTokens"),u=i("totalTokens"),d=i("inputTokens"),m=i("outputTokens"),h=i("cacheReadTokens"),p=i("cacheWriteTokens");if(r===void 0&&a===void 0&&c===void 0&&u===void 0&&d===void 0&&m===void 0&&h===void 0&&p===void 0)return t?{cost:null,unknownCostCount:null}:void 0;let v=n.runCostThreshold===null?null:E(n,"runCostThreshold")??null;return {cost:r,unknownCostCount:a,liveTokens:c,totalTokens:u,inputTokens:d,outputTokens:m,cacheReadTokens:h,cacheWriteTokens:p,paused:ft$3(n,"paused"),active:ft$3(n,"active"),runCostThreshold:v}}function Nn$1(s){if(Array.isArray(s))return s;let e=f$1(s);return e?Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:[]:[]}function Tn$2(s){if(!Array.isArray(s))return;let e=[];return s.forEach((t,n)=>{if(typeof t=="string"&&t.length>0){e.push({id:t,label:t});return}let i=f$1(t);if(!i)return;let r=o(i,"id")??o(i,"actionId")??String(n+1),a=o(i,"label")??o(i,"name")??o(i,"title")??r;e.push({id:r,label:a});}),e.length>0?e:void 0}function vt$4(s){return Nn$1(s).map((e,t)=>{let n=f$1(e)??{},i=f$1(n.payload)??{},r={interactionId:o(n,"interactionId")??o(n,"id")??`interaction-${t+1}`,stepId:o(n,"stepId")??o(i,"stepId")??"",interactionType:o(n,"interactionType")??o(n,"type")??"unknown",status:o(n,"status")??"unknown"},a=o(n,"workflowId");a&&(r.workflowId=a);let c=E(n,"revision");c!==void 0&&(r.revision=c);let u=o(i,"prompt")??o(i,"question")??o(n,"prompt");u&&(r.prompt=u);let d=o(n,"questionType")??o(i,"questionType")??o(i,"type");d&&(r.questionType=d);let m=i.options??n.options;Array.isArray(m)&&(r.options=m.filter(A=>typeof A=="string"));let h=Tn$2(i.actions??n.actions);h&&(r.actions=h);let p=o(i,"recipient")??o(n,"recipient");p&&(r.recipient=p);let b=o(n,"recipientRole")??o(i,"recipientRole");b&&(r.recipientRole=b);let v=o(n,"namespaceId")??o(i,"namespaceId");v&&(r.namespaceId=v);let I=o(n,"executionId")??o(i,"executionId");I&&(r.executionId=I);let R=o(n,"createdAt")??o(i,"createdAt");return R&&(r.createdAt=R),r})}function Mn$1(s){if(Array.isArray(s))return s;let e=f$1(s);return e?Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:[]:[]}function ne$2(s){return Mn$1(s).map((e,t)=>{let n=f$1(e)??{},i={attemptId:o(n,"attemptId")??o(n,"id")??`attempt-${t+1}`,stepId:o(n,"stepId")??"",attemptNumber:E(n,"attemptNumber")??0,agentName:o(n,"agentName")??"",status:o(n,"status")??"unknown",caseId:o(n,"caseId")??""},r=o(n,"effectiveMandate");r&&(i.effectiveMandate=r);let a=f$1(n.resolvedModel),c=o(a,"provider"),u=o(a,"model");c&&u&&(i.resolvedModel={provider:c,model:u});let d=o(n,"failureCode");d&&(i.failureCode=d);let m=o(n,"resultEvidenceId");m&&(i.resultEvidenceId=m);let h=E(n,"revision");h!==void 0&&(i.revision=h);let p=o(n,"createdAt");p&&(i.createdAt=p);let b=o(n,"startedAt");b&&(i.startedAt=b);let v=o(n,"completedAt");v&&(i.completedAt=v);let I=E(n,"activeDurationMs");I!==void 0&&(i.activeDurationMs=I);let R=o(n,"activeSince");R&&(i.activeSince=R);let A=E(n,"waitingDurationMs");A!==void 0&&(i.waitingDurationMs=A);let g=o(n,"waitingSince");g&&(i.waitingSince=g);let l=o(n,"correctionCycleId");l&&(i.correctionCycleId=l);let y=E(n,"correctionCycleNumber");y!==void 0&&(i.correctionCycleNumber=y);let k=o(n,"triggeringExecutionId");return k&&(i.triggeringExecutionId=k),i})}function St$4(s){let e=[];for(let t of gt$3(s,"allowedActions")){let n=f$1(t);if(!n)continue;let i=o(n,"type");if(!i)continue;let r={type:i},a=o(n,"label");a&&(r.label=a);let c=o(n,"interactionId");c&&(r.interactionId=c);let u=o(n,"stepId");u&&(r.stepId=u);let d=o(n,"attemptId");d&&(r.attemptId=d);let m=o(n,"caseId");m&&(r.caseId=m);let h=o(n,"questionEventId");h&&(r.questionEventId=h);let p=E(n,"expectedRevision");p!==void 0&&(r.expectedRevision=p),e.push(r);}return e}function kt$2(s){let e=[];for(let t of gt$3(s,"blockers")){let n=f$1(t);if(!n)continue;let i=o(n,"code")??"UNKNOWN_RUNTIME",r=o(n,"message"),a=o(n,"label")??r??o(n,"details")??i,c={code:i,label:a},u=o(n,"stepId");u&&(c.stepId=u),r&&(c.message=r);let d=o(n,"details");d&&(c.details=d),e.push(c);}return e}var yt$5=2,Xt$4=new Set(["succeeded","completed","failed","indeterminate","interrupted","superseded","cancelled"]);function Zt$4(s){if(s.length===0)return "queued";let e=s.map(t=>F$1(t));return e.some(t=>t==="failed"||t==="indeterminate"||t==="cancelled")?"failed":e.some(t=>t==="running"||t==="waiting_human")?"running":e.every(t=>t==="completed"||t==="skipped")?"succeeded":"queued"}function ae$2(s,e){switch((s??"").toLowerCase()){case "running":case "waiting_human":case "needs_research":return "running";case "ready":return "queued";case "active":case "existing":return Zt$4(V$2(e));case "completed":case "succeeded":return "succeeded";case "failed":case "indeterminate":case "cancelled":return "failed";case "pending":case "queued":return "queued";default:return Zt$4(V$2(e))}}function be$2(s,e){let t=f$1(s.instance),n=s.controllerRequest??e.controllerRequest??t?.controllerRequest;if(typeof n=="string"&&n.length>0)return {text:n};let i=f$1(n);if(!i)return;let r={},a=o(i,"text");a&&(r.text=a);let c=o(i,"prompt");c&&(r.prompt=c);let u=o(i,"namespaceId");u&&(r.namespaceId=u);let d=o(i,"observedAt");d&&(r.observedAt=d);let m=o(i,"actorId");m&&(r.actorId=m);let h=o(i,"source");return h&&(r.source=h),r.text!==void 0||r.prompt!==void 0||r.actorId!==void 0||r.observedAt!==void 0?r:void 0}function en$2(s,e){let t=s.attemptNumber-e.attemptNumber;if(t!==0)return t;let n=q$1(s.startedAt??s.createdAt??s.completedAt)??Number.POSITIVE_INFINITY,i=q$1(e.startedAt??e.createdAt??e.completedAt)??Number.POSITIVE_INFINITY;return n-i||s.attemptId.localeCompare(e.attemptId)}function It$5(s){let e=s.status.toLowerCase();return s.failureCode?.toUpperCase()==="AGENT_NEEDS_RESEARCH"?"waiting_human":e==="succeeded"||e==="completed"||e==="superseded"?"completed":e==="starting"||e==="running"?"running":e==="interrupted"||e==="cancelled"?"cancelled":e==="failed"||e==="indeterminate"||e==="waiting_human"?e:"pending"}function wt$4(s,e,t=[]){let n=new Map;for(let d of e){if(!d.stepId)continue;let m=n.get(d.stepId)??[];m.push(d),n.set(d.stepId,m);}let i=new Set,r=new Set(t.map(d=>d.stepId)),a=s.flatMap(d=>{let m=f$1(d)??{},h=o(m,"id");h&&i.add(h);let p=h?n.get(h):void 0;if(r.has(h??""))return [];if(X(m)!=="agent"||!p?.length)return [d];let b=[...p].sort(en$2);return b.map(v=>{let I=Xt$4.has(v.status.toLowerCase());return P(I$2({},m),{id:`${h}:attempt:${v.attemptId}`,sourceStepId:h,name:b.length>1?`${o(m,"name")??h} \xB7 attempt ${v.attemptNumber||"?"}`:o(m,"name")??h,agentName:v.agentName||o(m,"agentName"),attemptId:v.attemptId,attemptNumber:v.attemptNumber,caseId:v.caseId||void 0,failureCode:v.failureCode||void 0,responsibility:P(I$2({},f$1(m.responsibility)??{}),{kind:"agent",name:v.agentName||ge$2(m)}),status:It$5(v),startedAt:v.startedAt??v.activeSince??v.createdAt,completedAt:I?v.completedAt:void 0,activeDurationMs:v.activeDurationMs,activeSince:v.activeSince,waitingDurationMs:v.waitingDurationMs,waitingSince:v.waitingSince,durationMs:void 0})})}),c=[];for(let[d,m]of n.entries()){if(i.has(d)||!m.length)continue;let h=[...m].sort(en$2);for(let p of h){let b=Xt$4.has(p.status.toLowerCase()),v=p.agentName||d;c.push({id:`${d}:attempt:${p.attemptId}`,sourceStepId:d,name:h.length>1?`${v} \xB7 attempt ${p.attemptNumber||"?"}`:v,agentName:p.agentName||void 0,attemptId:p.attemptId,attemptNumber:p.attemptNumber,caseId:p.caseId||void 0,failureCode:p.failureCode||void 0,responsibility:{kind:"agent",name:p.agentName||"Searcher"},status:It$5(p),startedAt:p.startedAt??p.activeSince??p.createdAt,completedAt:b?p.completedAt:void 0,activeDurationMs:p.activeDurationMs,activeSince:p.activeSince,waitingDurationMs:p.waitingDurationMs,waitingSince:p.waitingSince});}}let u=t.map(d=>{let m=s.find(b=>o(f$1(b),"id")===d.stepId),h=f$1(m)??{},p=d.attemptId?e.find(b=>b.attemptId===d.attemptId):void 0;return P(I$2({},h),{id:`${d.stepId}:execution:${d.executionId}`,sourceStepId:d.stepId,name:`${o(h,"name")??d.stepId} \xB7 execution ${d.executionNumber}`,status:p?It$5(p):d.status,attemptId:d.attemptId,attemptNumber:p?.attemptNumber,agentName:p?.agentName,caseId:p?.caseId,failureCode:p?.failureCode,startedAt:d.startedAt??p?.startedAt??p?.activeSince??p?.createdAt,completedAt:d.completedAt??p?.completedAt,executionId:d.executionId,executionNumber:d.executionNumber,cycleNumber:d.cycleNumber,triggeringExecutionId:d.triggeringExecutionId,resultEvidenceId:d.resultEvidenceId})});return [...a,...c,...u]}function _n$3(s){let e=F$1(s);return e==="skipped"?"skipped":e==="waiting_human"?"waiting_human":e==="running"?"running":e==="pending"||e==="ready"?"pending":e==="failed"?"failed":e==="cancelled"?"cancelled":e==="indeterminate"?"indeterminate":"done"}function Dn$1(s){return ["failed","indeterminate"].includes(F$1(s))?"red":he$1(X(s))}function sn$2(s,e=0){let t=Array.isArray(s)?s:[];if(t.length===0)return [];let n=t.map(a=>z$1(a)??0),i=n.reduce((a,c)=>a+c,0),r=e>0?e:i;return t.map((a,c)=>{let u=f$1(a),d=o(u,"id")??o(u,"name")??`step-${c+1}`,m=o(u,"name"),h=n[c]??0,p={key:d,ratio:r>0?h/r:1/t.length,tone:Dn$1(a),status:_n$3(a)};return m&&m!==d&&(p.label=m),p})}function tn$3(s){let e=f$1(s);return ht$2(s)??o(e,"name")??o(e,"id")}function On$1(s){let e=s.find(n=>["running","waiting_human","ready"].includes(F$1(n)));if(e)return tn$3(e);let t=s[s.length-1];return t?tn$3(t):void 0}function At$5(s,e,t,n=[]){let i=f$1(s)??{},r=f$1(i.projection)??i,a=V$2(r.steps),c=wt$4(a,ne$2(t),n),u=be$2(i,r),d=[...a,...c].map(p=>q$1(f$1(p)?.startedAt)).filter(p=>p!==null),m=q$1(u?.observedAt);m!==null&&d.push(m);let h=rn$3(i,r);return h!==null&&d.push(h),d.length>0?Math.min(...d):q$1(f$1(e)?.startedAt)??Date.now()}function rn$3(s,e){let t=f$1(s.instance);return q$1(s.createdAt??e.createdAt??t?.createdAt)}function qn$1(s){return q$1(s.finishedAt??s.completedAt??s.endedAt)}function nn$3(s,e,t,n){let i=[];for(let r of V$2(s)){let a=null;if(typeof r=="number"&&Number.isFinite(r))a=r;else if(typeof r=="string"){let c=q$1(r);c!==null&&(a=(c-e)/1e3);}a!==null&&a>=t&&a<=n&&i.push(a);}return i.length>0?i:void 0}function xt$3(s,e,t,n=[]){let i=f$1(s)??{},r=f$1(i.projection)??i,a=wt$4(V$2(r.steps),ne$2(t),n),c=be$2(i,r),u=rn$3(i,r);if(a.length===0&&!c&&u===null)return [];let d=a.map(l=>q$1(f$1(l)?.startedAt)).filter(l=>l!==null),m=q$1(c?.observedAt),h=At$5(s,e,t,n),p=new Map,b=l=>V$2(l.dependsOn).reduce((k,C)=>typeof C!="string"?k:Math.max(k,p.get(C)??0),0),v=a.map((l,y)=>{let k=f$1(l)??{};return {obj:k,index:y,start:q$1(k.startedAt),terminalEnd:qn$1(k),duration:z$1(l)}}).sort((l,y)=>{let k=l.start??Number.POSITIVE_INFINITY,C=y.start??Number.POSITIVE_INFINITY;return k-C||l.index-y.index}),I=new Map,R=(l,y)=>{let k=I.get(l.id);return k||(k={id:l.id,label:l.label,subtitle:l.kind==="agent"?l.label:"workspace",kind:l.kind==="human"?"human":l.kind==="code"?"workspace":"agent",tone:he$1(l.kind),blocks:[]},I.set(l.id,k)),l.kind==="agent"&&y!==void 0&&(k.contextPct=y),k},A=0;for(let l of v){let y=bt$2(l.obj),k=E(l.obj,"contextPct"),C=R(y,k),x=F$1(l.obj),U=o(l.obj,"attemptId")!==void 0,B=o(l.obj,"executionId")!==void 0;if(!(x==="running"||x==="completed"||x==="failed"||x==="indeterminate"||x==="cancelled"||x==="waiting_human"&&l.start!==null||x==="pending"&&(U||B)||x==="ready"&&B))continue;let $=o(l.obj,"sourceStepId")??o(l.obj,"id"),de=Math.max(b(l.obj),A),j=l.start!==null?Math.max((l.start-h)/1e3,0):de,ue=l.start!==null&&l.terminalEnd!==null&&l.terminalEnd>=l.start?Math.max((l.terminalEnd-h)/1e3,j):null,se=E(l.obj,"activeDurationMs"),_e=E(l.obj,"waitingDurationMs"),ie=q$1(l.obj.activeSince),re=q$1(l.obj.waitingSince),Se=se!==void 0||_e!==void 0,De=x==="running"&&ie!==null||x==="waiting_human"&&re!==null?Date.now():l.terminalEnd,Oe=Se&&De!==null?Math.max((De-h)/1e3,j):null,tt=x==="pending"&&l.start===null?j:j+Math.max(l.duration??0,yt$5),nt=x==="running"&&l.start!==null?Math.max((Date.now()-h)/1e3,j):null,Y=Math.max(Oe??ue??nt??tt,j);A=Math.max(A,Y),$&&p.set($,Y);let M=P(I$2({label:o(l.obj,"name")??o(l.obj,"id")??"step"},o(l.obj,"sourceStepId")??o(l.obj,"id")?{stepId:o(l.obj,"sourceStepId")??o(l.obj,"id")}:{}),{startSec:j,endSec:Y,status:x}),H=o(l.obj,"description");H&&(M.description=H);let oe=nn$3(l.obj.ticks,h,j,Y);oe&&(M.ticksSec=oe);let qe=nn$3(l.obj.errorTicks,h,j,Y);qe&&(M.errorTicksSec=qe);let ke=o(l.obj,"agentName");ke&&(M.agentName=ke);let ye=o(l.obj,"attemptId");ye&&(M.attemptId=ye);let Ie=E(l.obj,"attemptNumber");Ie!==void 0&&(M.attemptNumber=Ie);let we=o(l.obj,"caseId");we&&(M.caseId=we);let Ae=o(l.obj,"failureCode");Ae&&(M.failureCode=Ae);let st=o(l.obj,"executionId");st&&(M.executionId=st);let je=E(l.obj,"executionNumber");je!==void 0&&(M.executionNumber=je);let Fe=E(l.obj,"cycleNumber");Fe!==void 0&&(M.cycleNumber=Fe);let Pe=o(l.obj,"triggeringExecutionId");if(Pe&&(M.triggeringExecutionId=Pe),Se){let rt=x==="running"&&ie!==null?Math.max(Date.now()-ie,0):0,ot=x==="waiting_human"&&re!==null?Math.max(Date.now()-re,0):0;M.activeDurationSec=Math.max((se??0)+rt,0)/1e3,M.waitingDurationSec=Math.max((_e??0)+ot,0)/1e3;}let it=o(l.obj,"id")==="request"||M.label==="request";y.kind==="human"&&it&&!C.request?C.request=M:C.blocks.push(M);}if(c||u!==null){let l=I.get("engineer");if(l||(l={id:"engineer",label:"engineer",subtitle:c?.actorId??"human",kind:"human",tone:"amber",blocks:[]},I.set("engineer",l)),!l.request){let y=m??u,k=d.length>0?Math.min(...d):null,x={label:"launch request",kind:"launch_request",startSec:0,endSec:y!==null&&k!==null&&k>y?Math.max((k-h)/1e3,yt$5):yt$5,status:"completed"},U=c?.text??c?.prompt;U&&(x.description=U),l.request=x;}c?.actorId&&(!l.subtitle||l.subtitle==="workspace"||l.subtitle==="human")&&(l.subtitle=c.actorId);}let g=l=>l.kind==="human"?0:l.kind==="workspace"?1:2;return [...I.values()].sort((l,y)=>g(l)-g(y))}function He$3(s,e,t,n=new Set){let i=f$1(s)??{},r=f$1(i.projection)??i,a=f$1(i.relations),c=V$2(r.steps),u=Ce$2(e),d=c.map(k=>z$1(k)).filter(k=>k!==null),m=Math.round(d.reduce((k,C)=>k+C,0)),h=o(i,"workflowId")??o(r,"workflowId")??"unknown",p=o(r,"goal")??o(r,"title")??o(a,"ticket")??o(i,"workflowId")??"",v=c.map(F$1).some(k=>k==="waiting_human"),I=sn$2(c,m).map(k=>n.has(k.key)&&k.status==="pending"?P(I$2({},k),{status:"blocked"}):k),R=be$2(i,r),A=I.some(k=>k.key==="request"||k.label==="request");if(R&&!A){let k=c.some(B=>o(f$1(B),"startedAt")!==void 0),C={key:"user-request",label:"User request",ratio:I.length>0?Math.min(1/(I.length+1),.15):1,tone:"amber",status:k?"done":"pending"},x=1-C.ratio,U=I.map(B=>P(I$2({},B),{ratio:B.ratio*x}));I.splice(0,I.length,C,...U);}let g=ae$2(o(r,"status"),c),l=v?"waiting_human":g==="failed"?"failed":n.size>0?"blocked":g==="running"?"running":g==="succeeded"?"succeeded":"pending",y={id:h,workflow:o(r,"title")??h,status:g,cardState:l,currentPhase:On$1(c),goal:p,costUsd:u?.cost??null,unknownCostCount:u?.unknownCostCount??null,durationSec:m,tokens:u?.totalTokens??null,phases:I};return v&&(y.waitingHuman=true),y}function jn$1(s){if(s.length!==0)return s.reduce((e,t)=>t.attemptNumber>=e.attemptNumber?t:e)}function Fn$1(s){return s.map(e=>{let t={title:e.interactionType,status:e.status};return e.prompt&&(t.subtitle=e.prompt),e.actions&&(t.actions=e.actions),t})}function Pn$1(s){return s.map((e,t)=>{let n=f$1(e)??{},i=f$1(n.facts)??{},a={title:o(n,"kind")??o(n,"evidenceId")??`output-${t+1}`},c=o(n,"outcome");c&&(a.status=c);let u=o(i,"message")??o(i,"text")??o(i,"summary")??c;return u&&(a.subtitle=u),a})}function Un$2(s){let e=f$1(s.decision),t=f$1(s.routeDecision),n=o(s,"activation"),i=o(s,"join");if(!e&&!t&&!n&&!i)return null;let r=[];if(e){let a=o(e,"mode");r.push({title:"Selection mode",subtitle:a==="single"?"One route":"One or more routes"});let c=Array.isArray(e.routes)?e.routes:[],u=t?.selectedRoutes,d=Array.isArray(u)?u:[];for(let m of c){let h=f$1(m),p=o(h,"name")??"?",b="undecided";t&&(b=d.includes(p)?"selected":"not_selected"),r.push({title:p,subtitle:o(h,"target"),status:b});}}return n&&(r.push({title:"Activation",subtitle:n==="selected"?"Selected":"Not selected",status:o(s,"status")}),r.push({title:"Executed",subtitle:s.executed===true?"Yes":"No"})),i&&r.push({title:"Convergence decision",subtitle:i}),t&&(r.push({title:"Selected attempt",subtitle:o(t,"attemptId")}),r.push({title:"Selected result",subtitle:o(t,"resultId")})),{label:"Conditional routing",items:r}}function Wn$2(s){let e=o(s,"mission");if(!e)return [{label:"Preparation / Mission / Deliverables",body:"No configured step contract is recorded. Consult the attempt mandate for instructions actually dispatched."}];let t=n=>Array.isArray(n)?n.filter(i=>typeof i=="string").map(i=>`\u2022 ${i}`).join(`
|
|
1028
|
+
`)||"No configured requirements.":"Not recorded";return [{label:"Preparation (configured)",body:t(s.entry)},{label:"Mission (configured)",body:e},{label:"Deliverables (configured)",body:t(s.exit)}]}function cn$3(s){let e=[{title:"Type",subtitle:"launch request"},{title:"Run",subtitle:s.title},{title:"Created",subtitle:s.createdAt},{title:"Namespace",subtitle:s.namespaceId??"Not recorded"},{title:"Workflow",subtitle:s.workflowType??s.workflowId},{title:"Author",subtitle:s.author??"Not recorded"}];return {name:s.title,status:"succeeded",stepStatus:"completed",durationSec:0,owner:s.author??"Not recorded",kind:"launch request",attempt:"\u2014",sections:[{label:"Launch request",items:e},{label:"Initial comment",body:s.text??"No initial comment recorded."}]}}function ve$3(s,e,t=[],n=[],i=[],r,a,c){let u;r&&(u=s.find(P=>{let $=f$1(P);return o($,"id")===r||o($,"key")===r})),u||(u=s.find(P=>["running","waiting_human","ready"].includes(F$1(P)))??s[s.length-1]);let d=f$1(u)??{},m=f$1(d.responsibility),h=z$1(d)??0,p=o(d,"description"),b=o(d,"id")??o(d,"key"),v=o(m,"name")??ge$2(d),I=o(m,"kind")??X(d),R=b?n.filter(P=>P.stepId===b):[],A=a?R.find(P=>P.attemptId===a):jn$1(R),g=P(I$2({name:o(d,"name")??o(d,"id")??"phase",status:o(d,"status")?ae$2(o(d,"status"),[d]):e,stepStatus:F$1(d),durationSec:Math.round(h),owner:v,kind:I,attempt:"No attempt recorded"},c?{attemptsLoadError:c}:{}),{sections:[]});b&&(g.stepId=b),R.length>0&&A?(g.attempt=`${A.attemptNumber}/${R.length}`,g.currentAttemptNumber=A.attemptNumber,g.totalAttempts=R.length,g.attempts=R,g.agentName=A.agentName,g.attemptStatus=A.status,g.caseId=A.caseId,A.failureCode&&(g.failureCode=A.failureCode)):g.attempt=c?"Attempts unavailable":["pending","ready"].includes(g.stepStatus)?"Not dispatched":"No attempt recorded";let l=b?t.filter(P=>P.stepId===b):t,y={label:"Validations",count:l.length,items:Fn$1(l)};l.length===0&&(y.body="No interaction validation recorded for this phase.");let k=i.filter(P=>{let $=f$1(P)??{},de=o($,"stepId"),j=o($,"evidenceId")??o($,"id"),ue=b!==void 0&&de===b,se=A?.resultEvidenceId!==void 0&&j===A.resultEvidenceId;return ue||se}),C={label:"Outputs",count:k.length,items:Pn$1(k)};k.length===0&&(C.body="No output recorded for this phase.");let x=[];(g.agentName??v)&&x.push({title:"Agent",subtitle:g.agentName??v}),v&&x.push({title:"Role",subtitle:`${v} (${I})`}),g.caseId&&x.push({title:"Case",subtitle:g.caseId}),g.totalAttempts&&x.push({title:"Attempts",subtitle:g.attempt});let U={label:"Agent configuration",items:x};x.length===0&&(U.body="No agent configuration recorded."),g.sections=[...Wn$2(d),y,C,U];let B=Un$2(d);return B&&g.sections.unshift(B),p&&g.sections.push({label:"Description",body:p}),g.sections.push({label:"Attempt mandate",notAvailable:!A?.effectiveMandate,body:A?A.effectiveMandate??"Not recorded for this attempt.":c?"Unavailable because attempts could not be loaded.":g.attempt==="Not dispatched"?"No attempt has been dispatched for this step.":"No attempt is recorded for this step."},{label:"Resolved LLM model",notAvailable:!A?.resolvedModel,body:A?.resolvedModel?`${A.resolvedModel.provider} / ${A.resolvedModel.model}`:A?"Not recorded for this attempt.":"No attempt is available to resolve a model."}),g}function Rt$4(s,e,t=[],n=[],i=[],r){let a=new Map;for(let c of s){let u=f$1(c),d=o(u,"id")??o(u,"key");d&&a.set(d,ve$3(s,e,t,n,i,d,void 0,r));}return a}function Et$5(s,e,t=[],n=[],i=[],r){let a=new Map;for(let c of n)!c.attemptId||!c.stepId||a.set(c.attemptId,ve$3(s,e,t,n,i,c.stepId,c.attemptId,r));return a}function Ln$2(s){let e=s.toLowerCase();return e.includes("tool")?"tool_call":e.includes("think")?"thinking":e.includes("human")||e.includes("decision")||e.includes("agent")?"agent_message":e.includes("phase")?"phase_start":"log"}var dn$2=2e3,Bn$2=2048,Ge$1=8192,on$3=20,$n$1=/[\u001B\u009B][[\]()#;?]*(?:(?:(?:[a-zA-Z\d]*(?:;[-a-zA-Z\d/#&.:=?%@~_]+)*)?\u0007)|(?:(?:\d{1,4}(?:[;:]\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))/g;function Q$2(s,e){if(typeof s=="string")return s.replace($n$1,"").replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g,"").slice(0,e)}function an$2(s){if(typeof s=="string")return {excerpt:Q$2(s,Ge$1)??"",truncated:s.length>Ge$1};let e=f$1(s);if(!e)return;let t=typeof e.excerpt=="string"?e.excerpt:"",i={excerpt:Q$2(t,Ge$1)??"",truncated:e.truncated===true||t.length>Ge$1},r=Q$2(e.sha256,128);return r&&(i.sha256=r),i}function Vn(...s){let e=s.map(i=>i?.excerpt??"").join(`
|
|
1029
|
+
`),t=new Set,n=[/Running target \S+ for project ([A-Za-z0-9._-]+) failed/gi,/Failed tasks?:\s*([^\n]+)/gi];for(let i of n)for(let r of e.matchAll(i))if(Q$2(r[1],256)?.split(/[,\s]+/).filter(Boolean).forEach(a=>t.add(a)),t.size>=on$3)break;return [...t].slice(0,on$3)}function Kn$1(s,e){let t=o(s,"kind"),n=Q$2(e.verification,256);if(!(t==="code-verification"||t==="session-step"&&(n||e.executed!==void 0)))return;let r=e.timedOut===true,a=e.executed,c=typeof e.exitCode=="number"&&Number.isFinite(e.exitCode)?e.exitCode:void 0,u=o(s,"outcome"),m=Q$2(e.status,64)==="running"||u==="running"?"running":a===false?"refused":r?"timed_out":c===0&&u!=="fail"&&u!=="failed"?"passed":"failed",h=an$2(e.stdout),p=an$2(e.stderr),b={};for(let v of ["cwd","observedHead","rootIdentity","timeoutMs"]){let I=e[v];typeof I=="string"?b[v]=Q$2(I,512)??"":typeof I=="number"&&Number.isFinite(I)&&(b[v]=I);}return h?.sha256&&(b.stdoutSha256=h.sha256),p?.sha256&&(b.stderrSha256=p.sha256),{verification:n,state:m,command:Q$2(e.command,Bn$2),code:Q$2(e.code,256),message:Q$2(e.message,dn$2),exitCode:c,stdout:h,stderr:p,failedTasks:Vn(h,p),technical:b}}function Ne$4(s,e){let t=[],n=new Map;for(let r of s){let a=f$1(r);if(o(a,"kind")!=="code-verification")continue;let c=o(a,"evidenceId")??o(a,"id");c&&n.set(c,a??{});}let i=new Set;for(let r of s){let a=f$1(r)??{},c=f$1(a.facts)??{},u=o(a,"kind")??"log",d=u==="session-step"?o(c,"evidenceId"):void 0,m=d?n.get(d):void 0,h=f$1(m?.facts);if(m&&h&&i.add(d),u==="code-verification"){let g=o(a,"evidenceId")??o(a,"id");if(g&&i.has(g)||s.some(y=>{let k=f$1(y),C=f$1(k?.facts);return o(k,"kind")==="session-step"&&o(C,"evidenceId")===g}))continue}let p=h?I$2(I$2({},h),c):c,b=m?P(I$2(I$2({},m),a),{kind:"code-verification"}):a,v=Kn$1(b,p),I={time:Qe$1(o(a,"createdAt")??o(p,"startedAt")),type:Ln$2(u),text:Q$2(v?.message??p.message??p.text??a.outcome??u,dn$2)??u};v&&(I.codeDiagnostic=v);let R=o(p,"tool");R&&(I.tool=R);let A=typeof p.durationMs=="number"&&Number.isFinite(p.durationMs)?p.durationMs:void 0;A!==void 0&&(I.durationSec=A/1e3),t.push(I);}if(t.length===0)for(let r of e){let a=f$1(r)??{},c=o(a,"startedAt");c&&t.push({time:Qe$1(c),type:"phase_start",text:o(a,"name")??o(a,"id")??"step"});}return t}function Te$4(s){return s.map(e=>({time:Qe$1(e.createdAt),type:"agent_message",text:`[Human validation - ${e.interactionType}] ${e.prompt??e.status}`}))}function ze$3(s,e,t,n,i,r){if(!i)return s;let a=new Set;for(let h of e){let p=f$1(h)??{},b=o(p,"stepId"),v=o(p,"evidenceId")??o(p,"id");if(v)if(r){let R=n.find(g=>g.attemptId===r)?.resultEvidenceId===v,A=o(p,"attemptId")===r;(R||b===i&&A)&&a.add(v);}else b===i&&a.add(v);}let c=e.filter(h=>{let p=f$1(h)??{},b=o(p,"evidenceId")??o(p,"id");return b!==void 0&&a.has(b)}),u=Ne$4(c,[]),d=t.filter(h=>h.stepId===i),m=Te$4(d);return [...u,...m]}var Qn$1=new Set(["running","active","waiting_human","needs_research"]),Hn$2=new Set(["idle","ready","pending","queued"]);function ln$3(s,e){let t=(s??"").toLowerCase();return Qn$1.has(t)?"working":Hn$2.has(t)?"idle":e==="running"?"working":"idle"}function Gn$1(s){return s?Number.isFinite(Date.parse(s)):false}function D$2(s){let e=f$1(s),t=f$1(e?.projection);return o(e,"workflowId")??o(t,"workflowId")}function ce$3(s){let e=f$1(s),t=f$1(e?.instance);return o(e,"namespaceId")??o(t,"namespaceId")}function Ct$4(s){let e=f$1(s),t=f$1(e?.controllerExecution);return o(t,"caseId")}function zn$1(s){return ["failed","indeterminate"].includes(F$1(s))?"red":he$1(X(s))}function Yn$1(s,e=new Set){return s.map((t,n)=>{let i=f$1(t)??{},r=F$1(i),a={key:o(i,"id")??o(i,"name")??`step-${n+1}`,tone:zn$1(i),status:e.has(o(i,"id")??o(i,"name")??`step-${n+1}`)?"blocked":r==="skipped"?"skipped":r==="waiting_human"?"waiting_human":r==="running"?"running":r==="failed"?"failed":r==="pending"||r==="ready"?"pending":"done"},c=z$1(i);return c!==null&&(a.durationSec=Math.round(c)),a})}function Me$3(s,e,t,n,i,r,a,c,u){let d=f$1(s)??{},m=f$1(d.projection)??d,h=V$2(m.steps),p=V$2(f$1(t)?.items),b=Zn$1(h,p),v=f$1(d.controllerExecution),I=f$1(e),R=f$1(n),A=Ce$2(R),g=vt$4(i),l=ne$2(r),y=Jn$1(m.stepExecutions),k=Xn$1(m.correction),C=St$4(a),x=kt$2(a),U=new Set(x.map(S=>S.stepId).filter(S=>!!S)),B=C.find(S=>S.type==="cancel_attempt"&&S.attemptId!==void 0),P$1=l.find(S=>S.status==="running"||S.status==="starting"),$=B?.attemptId??P$1?.attemptId,de=B?.expectedRevision??P$1?.revision,j=o(d,"workflowId")??o(m,"workflowId")??"unknown",ue=Ct$4(d),se=ae$2(o(m,"status"),b),_e=ae$2(void 0,b),ie=new Map;for(let S of l){let T=ie.get(S.stepId);(!T||S.attemptNumber>=T.attemptNumber)&&ie.set(S.stepId,S);}let re=[...ie.values()],Se=re.some(S=>S.status.toLowerCase()==="running"||S.status.toLowerCase()==="starting"),De=!Se&&re.some(S=>S.status.toLowerCase()==="indeterminate"&&S.failureCode?.toUpperCase()==="AGENT_NEEDS_RESEARCH"),Oe=b.map(F$1),tt=y.length>0,nt=_e==="failed"&&(!tt||se==="failed"),Y=Oe.includes("running")||Se,M=!Y&&(k?.status==="waiting_human"||Oe.includes("waiting_human")||De||re.some(S=>S.status==="waiting_human")||(c??[]).some(S=>!S.answered)),H=Y||M?"running":nt?"failed":se,oe=Y,qe=M?"waiting_human":oe?"running":H==="succeeded"?"completed":H==="failed"?"failed":"pending",ke=P(I$2({},d),{projection:P(I$2({},m),{steps:b})}),ye=At$5(ke,e,l,y),Ie=new Date(ye).toISOString(),we=xt$3(ke,e,l,y),Ae=we.reduce((S,T)=>{let W=T.request?.endSec??0,le=T.blocks.reduce((Re,Z)=>Math.max(Re,Z.endSec),0);return Math.max(S,W,le)},0),je=b.map(S=>z$1(S)).filter(S=>S!==null).reduce((S,T)=>S+T,0),Fe=l.some(S=>S.activeDurationMs!==void 0||S.activeSince!==void 0),Pe=l.reduce((S,T)=>{let W=Math.max(T.activeDurationMs??0,0),le=Date.parse(T.activeSince??""),Re=T.status==="running"&&Number.isFinite(le)?Math.max(Date.now()-le,0):0;return S+(W+Re)/1e3},0),Ot=oe?b.reduce((S,T)=>{if(F$1(T)!=="running")return S;let W=Date.parse(o(f$1(T),"startedAt")??"");return Number.isFinite(W)?S+Math.max((Date.now()-W)/1e3,0):S},0):0,it=Math.round(Fe?Pe:je+Ot),rt=A?.totalTokens??null,ot=A?.inputTokens??null,vn=A?.outputTokens??null,Sn=Rt$4(b,H,g,l,p,u),xe=be$2(d,m),kn=f$1(d.instance),yn=o(d,"createdAt")??o(m,"createdAt")??o(kn,"createdAt")??xe?.observedAt??Ie,In=cn$3({title:o(m,"title")??j,createdAt:yn,namespaceId:xe?.namespaceId??ce$3(d),workflowId:j,workflowType:o(m,"workflowType"),author:xe?.actorId,text:xe?.text??xe?.prompt}),wn=Et$5(b,H,g,l,p,u),qt=new Map;for(let S of y){let T=un$3(p,S),W=g.filter(Z=>Z.executionId===S.executionId),le=S.attemptId?l.filter(Z=>Z.attemptId===S.attemptId):[],Re=b.map(Z=>{let Ut=f$1(Z);return o(Ut,"id")===S.stepId?P(I$2({},Ut),{status:S.status,startedAt:S.startedAt,completedAt:S.completedAt}):Z});qt.set(S.executionId,ve$3(Re,H,W,le,T,S.stepId,S.attemptId));}let jt=new Map,Ft=new Map,Pt=new Map;for(let S of b){let T=f$1(S),W=o(T,"id")??o(T,"key");W&&jt.set(W,ze$3([],p,g,l,W,void 0));}for(let S of l)Ft.set(S.attemptId,ze$3([],p,g,l,S.stepId,S.attemptId));for(let S of y){let T=g.filter(W=>W.executionId===S.executionId);Pt.set(S.executionId,[...Ne$4(un$3(p,S),[]),...Te$4(T)]);}let An=f$1(d.relations)??f$1(f$1(d.instance)?.relations)??void 0;return P(I$2(I$2(I$2(P(I$2(I$2(P(I$2(P(I$2({},b.some(S=>f$1(S)?.decision||f$1(S)?.outcomeTransitions)?{routingSteps:b}:{}),{id:j,sandbox:o(An,"ticket")??o(v,"caseId")??o(d,"namespaceId")??j,goal:o(m,"goal")??o(m,"title")??"",status:H,executionState:qe,activelyRunning:oe,startedAt:o(I,"startedAt")??o(m,"startedAt")??es(b)??new Date().toISOString(),timelineOriginAt:Ie,workflow:o(m,"title")??j,costUsd:A?.cost??null,unknownCostCount:A?.unknownCostCount??null,durationSec:it,tokens:rt,tokensRead:ot,tokensWritten:vn,steps:Yn$1(b,U),lanes:we,nowSec:Math.round(oe?Math.max(Ae,Math.max((Date.now()-ye)/1e3,0)):Ae),events:[...Ne$4(p,b),...Te$4(g)],phase:ve$3(b,H,g,l,p,void 0,void 0,u),launchRequest:In,phaseByStepId:Sn,phaseByAttemptId:wn,phaseByExecutionId:qt,interactions:g,attempts:l}),u?{attemptsLoadError:u}:{}),{cacheReadTokens:A?.cacheReadTokens,cacheWriteTokens:A?.cacheWriteTokens}),y.length?{stepExecutions:y}:{}),k?{correction:k}:{}),{allowedActions:C,blockers:x,agentQuestions:c??[]}),$!==void 0?{activeAttemptId:$}:{}),de!==void 0?{activeAttemptRevision:de}:{}),ue!==void 0?{controllerCaseId:ue}:{}),{eventsByStepId:jt,eventsByAttemptId:Ft,eventsByExecutionId:Pt})}function un$3(s,e){return s.filter(t=>{let n=f$1(t),i=f$1(n?.facts),r=o(n,"evidenceId")??o(n,"id");return o(n,"executionId")===e.executionId||o(i,"executionId")===e.executionId||e.resultEvidenceId!==void 0&&r===e.resultEvidenceId||e.attemptId!==void 0&&(o(n,"attemptId")===e.attemptId||o(i,"attemptId")===e.attemptId)})}function Jn$1(s){return V$2(s).flatMap(e=>{let t=f$1(e),n=o(t,"executionId"),i=o(t,"stepId"),r=E(t,"executionNumber"),a=o(t,"status");if(!n||!i||r===void 0||!a)return [];let c=E(t,"cycleNumber"),u=o(t,"startedAt"),d=o(t,"completedAt"),m=o(t,"attemptId"),h=o(t,"resultEvidenceId"),p=o(t,"triggeringExecutionId");return [I$2(I$2(I$2(I$2(I$2(I$2({executionId:n,stepId:i,executionNumber:r,status:a},c!==void 0?{cycleNumber:c}:{}),u?{startedAt:u}:{}),d?{completedAt:d}:{}),m?{attemptId:m}:{}),h?{resultEvidenceId:h}:{}),p?{triggeringExecutionId:p}:{})]})}function Xn$1(s){let e=f$1(s),t=o(e,"cycleId"),n=E(e,"cycleNumber"),i=E(e,"maxCycles"),r=o(e,"status"),a=o(e,"triggeringStepId"),c=o(e,"returnTargetStepId");if(!e||!t||n===void 0||i===void 0||!r||!a||!c)return;let u=o(e,"triggeringAttemptId"),d=o(e,"triggeringExecutionId");return I$2(I$2({cycleId:t,cycleNumber:n,maxCycles:i,status:r,triggeringStepId:a,returnTargetStepId:c},u?{triggeringAttemptId:u}:{}),d?{triggeringExecutionId:d}:{})}function Zn$1(s,e){let t=new Map;for(let i of s){let r=f$1(i),a=o(r,"id"),c=o(r,"executionId");a&&c&&t.set(a,c);}let n=new Map;for(let i of e){let r=f$1(i),a=o(r,"kind");if(a!=="code-verification"&&a!=="session-step")continue;let c=o(r,"stepId")??o(f$1(r?.facts),"stepId");if(!c)continue;let u=f$1(r?.facts);if(!u)continue;let d=o(u,"executionId")??o(r,"executionId"),m=t.get(c);if(d&&m&&d!==m)continue;let h=o(u,"status")??o(r,"outcome");!(E(u,"durationMs")!==void 0||o(u,"startedAt")!==void 0)&&h!=="running"||n.set(c,P(I$2({},u),{evidenceStatus:h}));}return s.map(i=>{let r=f$1(i),a=o(r,"id");if(!r||!a)return i;let c=n.get(a);if(!c)return i;let u=E(r,"durationMs")??E(c,"durationMs"),d=o(r,"startedAt")??o(c,"startedAt"),m=o(r,"completedAt")??o(c,"completedAt"),h=F$1(r),p=o(c,"evidenceStatus"),b=p==="running"?"running":p==="needs_research"?"waiting_human":E(c,"exitCode")===0&&c.timedOut!==true?"completed":"failed";return P(I$2(I$2(I$2(I$2({},r),u!==void 0?{durationMs:u}:{}),d?{startedAt:d}:{}),m?{completedAt:m}:{}),{status:h==="pending"||h==="ready"?b:h})})}function es(s){for(let e of s){let t=o(f$1(e),"startedAt");if(t)return t}}function Ye$1(s,e){let t=He$3(s),n=f$1(s)??{},i=f$1(n.projection)??n,r=f$1(n.relations)??f$1(f$1(n.instance)?.relations),a=ce$3(s),c=o(r,"ticket"),u=o(r,"branch")??c,d=o(i,"workflowType"),m=o(i,"title"),h=o(i,"goal"),p=o(i,"status"),b=m??(t.id!=="unknown"?t.id:c??h??"workflow"),v={id:t.id,title:b,project:a??c??"coday",status:e??(t.status==="failed"?"failed":ln$3(p,t.status)),costUsd:t.costUsd,durationSec:t.durationSec,tokens:t.tokens,phases:t.phases,run:t};a&&(v.namespaceId=a),d&&(v.workflowType=d),c&&(v.ticket=c),u&&(v.branch=u);let I=Ct$4(s);I&&(v.controllerCaseId=I);let R=o(n,"createdAt");return R&&Gn$1(R)&&(v.createdAt=R),v}function Je$1(s,e){let t=new Set((e.blockers??[]).map(i=>i.stepId).filter(i=>!!i)),n=He$3(s,{realCost:{cost:e.costUsd,unknownCostCount:e.unknownCostCount,totalTokens:e.tokens??void 0}},void 0,t);return n.status=e.status,n.durationSec=e.durationSec,n.tokens=e.tokens,n.costUsd=e.costUsd,n.unknownCostCount=e.unknownCostCount,n.waitingHuman=e.executionState==="waiting_human",n.cardState=e.executionState==="waiting_human"?"waiting_human":e.status==="failed"?"failed":t.size>0?"blocked":e.activelyRunning?"running":e.status==="succeeded"?"succeeded":"pending",n.phases=e.steps.map(i=>({key:i.key,ratio:e.durationSec>0?(i.durationSec??0)/e.durationSec:1/Math.max(e.steps.length,1),tone:i.tone,status:i.status})),n}var Nt$5="unassigned";var Tt$4={id:"872641a8",sandbox:"coday-agentos-execution-adapter-03b2",goal:"@Archay Goal: Implement explicit AgentOS Execution Adapter boundary & robust SSE Client in factory-service",status:"running",executionState:"running",activelyRunning:true,startedAt:"2026-09-30T18:08:22+02:00",workflow:"adw_simple_sdlc",costUsd:1.07,durationSec:856,tokens:606500,tokensRead:73500,tokensWritten:17900,nowSec:856,steps:[{key:"request",tone:"amber",status:"done",durationSec:0},{key:"plan",tone:"violet",status:"done",durationSec:236},{key:"workspace",tone:"green",status:"done"},{key:"build",tone:"cyan",status:"running",durationSec:619}],lanes:[{id:"human",label:"benjamin.valdes",subtitle:"engineer",kind:"human",tone:"amber",blocks:[],request:{label:"request",description:"Capture the incoming ask",startSec:0,endSec:0,status:"completed"}},{id:"code",label:"code",subtitle:"workspace",kind:"workspace",tone:"cyan",blocks:[{label:"workspace",startSec:229,endSec:237,status:"completed"}]},{id:"planner",label:"planner",subtitle:"claude-opus-4-8",kind:"agent",tone:"violet",contextPct:7,blocks:[{label:"plan",description:"Turn the request into an implementable plan",startSec:0,endSec:236,status:"completed",ticksSec:[6,12,18,24,30,90,180,230],errorTicksSec:[48,52]}]},{id:"builder",label:"builder",subtitle:"kimi-k3",kind:"agent",tone:"cyan",blocks:[{label:"build",description:"Implement the plan exactly",startSec:237,endSec:856,status:"running",ticksSec:[252,260,268,276,284,292,780,840]}]}],phase:{name:"build",status:"running",stepStatus:"running",durationSec:619,owner:"builder",kind:"agent",attempt:"No attempt recorded",sections:[{label:"Agent configuration"},{label:"Description"},{label:"Compiled prompts",count:2},{label:"Validations",count:0},{label:"Outputs",count:0}]},events:[{time:"18:12:19",type:"phase_start",text:"build"},{time:"18:12:19",type:"agent_start",text:"builder"},{time:"18:12:27",type:"thinking",text:"Let me start by reading the plan and spec files, and exploring the factory-service\u2026"},{time:"18:12:27",type:"tool_call",tool:"read",text:"/work/data/sessions/872641a8/context_handoff/plan.md",durationSec:.01},{time:"18:12:27",type:"tool_call",tool:"read",text:"/work/app/specs/872641a8_agentos_execution_adapter_sse.md",durationSec:.01},{time:"18:12:36",type:"tool_call",tool:"bash",text:"find /work/app -type d -name factory-service | head",durationSec:.47},{time:"18:12:43",type:"tool_call",tool:"ls",text:"/work/app/factory-service/src/main/kotlin/io/whozoss/factory",durationSec:0},{time:"18:13:02",type:"thinking",text:"Now let me read the app_docs (SSE contract), and check the build setup\u2026"},{time:"18:13:02",type:"tool_call",tool:"read",text:"/work/app/factory-service/build.gradle.kts",durationSec:.01},{time:"18:13:13",type:"tool_call",tool:"read",text:"/work/app/app_docs/agentos-sse-contract.md",durationSec:0},{time:"18:21:18",type:"agent_message",text:"I have full context now. Let me check the Nx/Gradle wiring for running factory-service\u2026"},{time:"18:22:14",type:"agent_message",text:"Now I'll implement the new package. Starting with the main source files."},{time:"18:22:14",type:"tool_call",tool:"write",text:"/work/app/factory-service/src/main/kotlin/io/whozoss/factory/adapter/\u2026",durationSec:0}]};var ts=["workflow-projection-updated","workflow-projection-removed","workflow-projection-restored","workflow-projection-purged"],ns=new y("FACTORY_COCKPIT_EVENT_SOURCE_FACTORY",{providedIn:"root",factory:()=>s=>{if(typeof EventSource>"u")throw new Error("EventSource is not available in this environment");return new EventSource(s)}}),ss="/api/factory/workflows/stream",is=3e4,Xe$1=class s{eventSourceFactory=h(ns);source=null;reconnectTimer=null;reconnectAttempts=0;hasConnected=false;namespaceId;disposed=false;invalidationsSubject=new Z$2;reconnectedSubject=new Z$2;connectionSubject=new Z$2;invalidations$=this.invalidationsSubject.asObservable();reconnected$=this.reconnectedSubject.asObservable();connectionState$=this.connectionSubject.asObservable();connect(e){let t=e.trim();if(!t){this.close();return}this.namespaceId=t,this.open();}close(){this.clearReconnect(),this.closeSource(),this.hasConnected=false,this.reconnectAttempts=0,this.connectionSubject.next(false);}ngOnDestroy(){this.disposed=true,this.close(),this.invalidationsSubject.complete(),this.reconnectedSubject.complete(),this.connectionSubject.complete();}open(){if(this.disposed)return;this.clearReconnect(),this.closeSource();let e;try{e=this.eventSourceFactory(this.buildUrl());}catch{this.scheduleReconnect();return}this.source=e,e.onopen=()=>this.handleOpen(),e.onerror=()=>this.handleError();for(let t of ts)e.addEventListener(t,n=>this.handleEvent(t,n));}buildUrl(){let e=this.namespaceId?.trim();if(!e)throw new Error("Factory workflow SSE requires namespaceId");return `${ss}?namespaceId=${encodeURIComponent(e)}`}handleOpen(){this.reconnectAttempts=0,this.hasConnected&&this.reconnectedSubject.next(),this.hasConnected=true,this.connectionSubject.next(true);}handleEvent(e,t){let n=this.parse(t.data),i=typeof n=="object"&&n!==null?n:void 0,r={type:e,data:n,receivedAt:Date.now()};typeof i?.workflowId=="string"&&(r.workflowId=i.workflowId),typeof i?.namespaceId=="string"&&(r.namespaceId=i.namespaceId),typeof i?.revision=="number"&&(r.revision=i.revision),this.invalidationsSubject.next(r);}parse(e){if(typeof e!="string"||e.length===0)return e;try{return JSON.parse(e)}catch{return e}}handleError(){this.connectionSubject.next(false),this.closeSource(),this.scheduleReconnect();}scheduleReconnect(){if(this.disposed||this.reconnectTimer!==null)return;let e=Math.min(2e3*2**this.reconnectAttempts,is);this.reconnectAttempts+=1,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open();},e);}clearReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);}closeSource(){this.source&&(this.source.onopen=null,this.source.onerror=null,this.source.close(),this.source=null);}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})};function rs(s){return s.code==="IDEMPOTENCY_KEY_COLLISION"}function Mt$3(s,e,t){return rs(e)?{stepId:s,kind:"collision",message:`The submission key already exists with different content. The ${t} was not resent.`}:e.status===409?{stepId:s,kind:"conflict",message:"The workflow has changed. Allowed actions have been refreshed; review the new state."}:{stepId:s,kind:"error",message:e.message}}function mt$3(s,e){let t=new URLSearchParams;return e&&t.set("ns",e),t.set("case",s),`/agentos/home?${t.toString()}`}var pn$3=class s{api=h(vb);sse=h(Xe$1);supervisorCases=h(Ke$1);namespaces=Qe$3(new Map);namespaceOptions=Qe$3([]);selectedNamespaceId=Qe$3(null);namespaceOptionsLoading=Qe$3(true);namespaceOptionsError=Qe$3(null);workstreamMappingMissing=Qe$3(false);overviewError=Qe$3(null);namespaceSelectionRequired=lT(()=>false);runs=Qe$3([]);parentRuns=Qe$3(new Map);recentTasks=Qe$3([]);showDestroyed=Qe$3(false);answeringQuestionId=Qe$3(null);questionFeedback=Qe$3(null);resumingResearchStepId=Qe$3(null);researchResumptionFeedback=Qe$3(null);researchResumptionKeys=new Map;retryingStepId=Qe$3(null);retryFeedback=Qe$3(null);retryKeys=new Map;sandboxes=lT(()=>this.runs());activeRuns=lT(()=>this.runs().filter(e=>e.status!=="destroyed"),{equal:Ze$1});destroyedRuns=lT(()=>this.runs().filter(e=>e.status==="destroyed"),{equal:Ze$1});visibleRuns=lT(()=>{let e=this.showDestroyed()?this.runs():this.activeRuns();return ms([...e])},{equal:Ze$1});workstreamViews=[];workstreams=lT(()=>{let e=this.namespaces(),t=new Map;for(let r of this.visibleRuns()){let a=r.namespaceId?.trim()||Nt$5,c=t.get(a)??[];c.push(r),t.set(a,c);}let n=new Map(this.workstreamViews.map(r=>[r.namespaceId,r])),i=[...t.entries()].map(([r,a])=>{let c=n.get(r),u=r===Nt$5?"No namespace":e.get(r)??r,d=_t$3(c?.runs??[],a);return c&&c.title===u&&c.runs===d?c:{namespaceId:r,title:u,runs:d}}).sort((r,a)=>r.title.localeCompare(a.title));return this.workstreamViews=_t$3(this.workstreamViews,i),this.workstreamViews});costs=lT(()=>{let e=this.activeRuns(),t=c=>c.run?c.run.costUsd:c.costUsd,n=e.some(c=>t(c)===null),i=e.some(c=>c.run?.unknownCostCount==null),r=n?null:e.reduce((c,u)=>c+(t(u)??0),0),a=i?null:e.reduce((c,u)=>c+(u.run?.unknownCostCount??0),0);return {active:e.length,workflowsUsd:r,totalUsd:r,unknownCostCount:a}},{equal:et$1});workflows=Qe$3([]);sessions=Qe$3(new Map);enrichment=new Map;subscriptions=new q$3;overviewRequest=null;overviewRefreshPending=false;detailRequest=null;detailRefreshPending=false;selectedWorkflowId=null;detailNamespaceId=null;namespaceGeneration=0;overviewEnrichmentRequests=new Map;overviewEnrichmentPending=new Set;usageRefreshRequest=null;removedUsage=new Map;removedUsageAttempted=new Set;removedUsageRequest=null;destroyed=false;constructor(){this.loadNamespaceOptions(),this.subscriptions.add(vo$1(4e3,4e3).subscribe(()=>{if(this.selectedWorkflowId){let e=this.sessions().get(this.selectedWorkflowId);e&&(e.status==="running"||e.status==="queued")&&this.refreshSelectedSession();}})),this.subscriptions.add(vo$1(15e3,15e3).subscribe(()=>{this.selectedNamespaceId()===null?this.refresh():this.refreshActiveUsage();})),this.subscriptions.add(this.sse.invalidations$.subscribe(e=>{let t=this.selectedNamespaceId();!t||e.namespaceId&&e.namespaceId!==t||(this.load(),e.workflowId?this.queueOverviewEnrichment(e.workflowId):this.queueAllOverviewEnrichment(),(!e.workflowId||e.workflowId===this.selectedWorkflowId)&&this.refreshSelectedSession());})),this.subscriptions.add(this.sse.reconnected$.subscribe(()=>{this.selectedNamespaceId()&&(this.load(),this.queueAllOverviewEnrichment(),this.refreshSelectedSession());}));}ngOnDestroy(){this.destroyed=true,this.subscriptions.unsubscribe(),this.cancelNamespaceRequests(),this.sse.close();}selectNamespace(e){let t=e?.trim()||null;if(t!==this.selectedNamespaceId()){if(this.namespaceGeneration+=1,this.cancelNamespaceRequests(),this.selectedNamespaceId.set(t),this.workstreamMappingMissing.set(false),this.overviewError.set(null),this.clearScopedState(),!t){this.sse.close(),this.load();return}this.sse.connect(t),this.load();}}loadNamespaceOptions(){this.namespaceOptionsLoading.set(true),this.namespaceOptionsError.set(null),this.api.getNamespaces().pipe(yr(()=>this.namespaceOptionsLoading.set(false))).subscribe({next:e=>{this.namespaceOptions.set(e),this.applyNamespaces(e),this.namespaceOptionsLoading.set(false),this.load();},error:e=>this.namespaceOptionsError.set(e)});}session(e){let t=this.sessions().get(e);return t||(e===Tt$4.id?Tt$4:void 0)}parentRunFor(e){if(!e)return;let t=this.parentRuns().get(e);if(t)return t;let n=e.indexOf("__f");if(n>0){let i=e.slice(0,n);return this.parentRuns().get(i)}}loadParentRun(e,t){let n=e.indexOf("__f"),i=n>0?e.slice(0,n):e,r=t??this.namespaceFor(e);!i||!r||this.api.getParentRun(i,r).subscribe({next:a=>{a&&a.runId&&this.parentRuns.update(c=>new Map(c).set(a.runId,a));},error:()=>{}});}replyParentRunEscalation(e,t,n,i,r){let a=r??this.namespaceFor(e);a&&this.api.replyParentRunEscalation(e,t,{selectedOption:n,text:i},a).subscribe({next:c=>{c&&c.runId&&this.parentRuns.update(u=>new Map(u).set(c.runId,c)),this.refreshAfterAction(this.selectedWorkflowId??e);},error:()=>{}});}selectSession(e,t){let n=e.trim(),i=t?.trim()||null;if(i&&this.selectedNamespaceId()!==null&&i!==this.selectedNamespaceId()&&this.selectNamespace(i),!n){this.clearSessionSelection();return}if(n===this.selectedWorkflowId){if(i&&i!==this.detailNamespaceId){this.detailNamespaceId=i,this.cancelDetailRequest(),this.startDetailRequest(n);return}this.queueDetailRefresh(n);return}this.selectedWorkflowId=n,this.detailNamespaceId=i,this.cancelDetailRequest(),this.startDetailRequest(n);}clearSessionSelection(e){e&&e!==this.selectedWorkflowId||(this.selectedWorkflowId=null,this.detailNamespaceId=null,this.cancelDetailRequest());}refresh(){this.load(),this.queueAllOverviewEnrichment(),this.refreshSelectedSession();}refreshActiveUsage(){let e=this.selectedNamespaceId();if(!e||this.usageRefreshRequest&&!this.usageRefreshRequest.closed)return;let t=this.namespaceGeneration,n=this.activeRuns().filter(i=>i.namespaceId===e&&i.run?.status==="running"&&i.id!==this.selectedWorkflowId&&this.enrichment.has(i.id)&&!this.overviewEnrichmentRequests.has(i.id));n.length!==0&&(this.usageRefreshRequest=at$3(n).pipe(lt$3(i=>this.api.getMetrics(i.id,e).pipe(zt$6(r=>{r!=null&&this.applyEnrichment(i.id,e,t,void 0,{metrics:r});}),ke$4(()=>wn$1)),os)).subscribe());}enrichRemovedRunsUsage(){if(this.destroyed||this.removedUsageRequest&&!this.removedUsageRequest.closed)return;let e=this.namespaceGeneration,t=this.destroyedRuns().filter(n=>!!n.namespaceId&&!this.removedUsageAttempted.has(n.id)).slice(0,as);if(t.length!==0){for(let n of t)this.removedUsageAttempted.add(n.id);this.removedUsageRequest=at$3(t).pipe(lt$3(n=>this.loadRemovedRunUsage(n,e),cs),yr(()=>{this.removedUsageRequest=null,e===this.namespaceGeneration&&this.enrichRemovedRunsUsage();})).subscribe();}}loadRemovedRunUsage(e,t){let n=e.namespaceId;return this.api.getAttempts(e.id,n).pipe(Nc(i=>{let r=new Set;for(let a of ne$2(i))a.caseId&&r.add(a.caseId);return r.size===0||r.size>JW?wn$1:this.api.getCumulativeUsage([...r])}),zt$6(i=>{t!==this.namespaceGeneration||!ds(i)||(this.removedUsage.set(e.id,i),this.setRuns(this.runs().map(r=>r.id===e.id&&r.status==="destroyed"?fn$4(r,i):r)));}),A$1(()=>{}),ke$4(()=>qe$3(void 0)))}load(){if(!(this.namespaceOptionsLoading()&&this.namespaceOptions().length===0)){if(this.overviewRequest){this.overviewRefreshPending=true;return}this.overviewRequest=this.loadOverview().pipe(yr(()=>{this.overviewRequest=null,this.overviewRefreshPending&&(this.overviewRefreshPending=false,this.load());})).subscribe();}}loadOverview(){let e=this.selectedNamespaceId();if(!e)return this.loadAllNamespaces();let t=this.namespaceGeneration;return Cc({active:this.api.getWorkflows("active",e),removed:this.api.getWorkflows("removed",e)}).pipe(zt$6(({active:n,removed:i})=>{t!==this.namespaceGeneration||e!==this.selectedNamespaceId()||(this.workstreamMappingMissing.set(false),this.overviewError.set(null),this.applyWorkflows(n,i));}),ke$4(n=>{if(t!==this.namespaceGeneration||e!==this.selectedNamespaceId())return qe$3(void 0);let i=gn$3(n);return this.workstreamMappingMissing.set(i),this.overviewError.set(i?null:n),this.clearScopedState(),i&&this.sse.close(),qe$3(void 0)}),Nc(()=>qe$3(void 0)))}loadAllNamespaces(){let e=this.namespaceGeneration,t=XW(this.namespaceOptions());return at$3(t).pipe(lt$3(({id:n},i)=>Cc({active:this.api.getWorkflows("active",n),removed:this.api.getWorkflows("removed",n)}).pipe(A$1(r=>P(I$2({},r),{index:i,error:null})),ke$4(r=>qe$3({index:i,active:[],removed:[],error:gn$3(r)?null:r}))),4),nD(),A$1(n=>n.sort((i,r)=>i.index-r.index)),zt$6(n=>{e!==this.namespaceGeneration||this.selectedNamespaceId()!==null||(this.overviewError.set(n.find(i=>i.error)?.error??null),this.workstreamMappingMissing.set(false),this.applyWorkflows(n.flatMap(i=>i.active),n.flatMap(i=>i.removed)));}),Nc(()=>qe$3(void 0)))}applyNamespaces(e){let t=new Map;for(let n of XW(e))t.set(n.id,n.name);this.namespaces.set(t);}applyWorkflows(e,t){let n=Array.isArray(e)?e:[],i=Array.isArray(t)?t:[],r=[...n,...i],a=this.selectedWorkflowId,c=a?this.workflowSnapshot(a):void 0,u=a?r.find(g=>D$2(g)===a):void 0,d=c&&hn$3(c)>hn$3(u)?c:void 0,m=d?r.some(g=>D$2(g)===a)?r.map(g=>D$2(g)===a?d:g):[...r,d]:r,h=d?n.some(g=>D$2(g)===a)?n.map(g=>D$2(g)===a?d:g):i.some(g=>D$2(g)===a)?n:[...n,d]:n,p=d?i.map(g=>D$2(g)===a?d:g):i;this.workflows.set(m);let b=new Set(m.map(g=>D$2(g)).filter(g=>!!g));for(let g of [...this.enrichment.keys()])b.has(g)||this.enrichment.delete(g);for(let g of [...this.removedUsage.keys()])b.has(g)||this.removedUsage.delete(g);for(let[g,l]of [...this.overviewEnrichmentRequests])b.has(g)||(this.overviewEnrichmentRequests.delete(g),this.overviewEnrichmentPending.delete(g),this.detailRequest===l&&(this.detailRequest=null),l.unsubscribe());let v=new Map;for(let g of m){let l=D$2(g),y=l?this.enrichment.get(l):void 0,k=Me$3(g,y?.timing,y?.evidence,y?.metrics,y?.interactions,y?.attempts,y?.actions,y?.agentQuestions,y?.attemptsLoadError);y?.agentQuestionsError&&(k.agentQuestionsError=y.agentQuestionsError),v.set(k.id,k);}this.sessions.set(v);let I=(g,l)=>{let y=Ye$1(g,l),k=D$2(g),C=k&&this.enrichment.has(k)?v.get(k):void 0,x=C?mn$3(y,Je$1(g,C)):y,U=l&&k?this.removedUsage.get(k):void 0;return U?fn$4(x,U):x},R=h.map(g=>I(g)),A=p.map(g=>I(g,"destroyed"));this.setRuns([...R,...A]);for(let g of h){let l=D$2(g);!l||l===this.selectedWorkflowId||this.enrichment.has(l)||this.overviewEnrichmentRequests.has(l)||this.queueOverviewEnrichment(l);}this.selectedWorkflowId&&h.some(g=>D$2(g)===this.selectedWorkflowId)&&!this.enrichment.has(this.selectedWorkflowId)&&this.refreshSelectedSession();}workflowSnapshot(e){return this.workflows().find(t=>D$2(t)===e)}refreshSelectedSession(){this.selectedWorkflowId&&this.queueDetailRefresh(this.selectedWorkflowId);}queueDetailRefresh(e){if(e===this.selectedWorkflowId){if(this.detailRequest){this.detailRefreshPending=true;return}this.startDetailRequest(e);}}startDetailRequest(e){if(e!==this.selectedWorkflowId)return;let t=this.overviewEnrichmentRequests.get(e);if(t){this.detailRequest=t;return}let n=this.workflowSnapshot(e),i=n?ce$3(n):this.detailNamespaceId;if(!n&&!i)return;let r=null;r=(n?this.enrichSession(n):this.loadSelectedWorkflow(e,i)).pipe(yr(()=>{if(this.detailRequest===r&&(this.detailRequest=null,this.detailRefreshPending)){this.detailRefreshPending=false;let c=this.selectedWorkflowId;c===e&&this.startDetailRequest(c);}})).subscribe(),this.detailRequest=r;}cancelDetailRequest(){this.detailRefreshPending=false,this.detailRequest?.unsubscribe(),this.detailRequest=null;}refreshAfterAction(e){this.load(),e===this.selectedWorkflowId?this.queueDetailRefresh(e):this.queueOverviewEnrichment(e);}loadSelectedWorkflow(e,t){let n=this.namespaceGeneration;return this.api.getWorkflow(e,t).pipe(Nc(i=>{if(n!==this.namespaceGeneration||this.selectedNamespaceId()!==null&&t!==this.selectedNamespaceId())return qe$3(void 0);if(D$2(i)!==e)return qe$3(void 0);let r=this.workflows();if(!r.some(a=>D$2(a)===e)){this.workflows.set([...r,i]),this.runs.update(c=>[...c,Ye$1(i)]);let a=Me$3(i);this.sessions.update(c=>new Map(c).set(a.id,a));}return this.enrichSession(i)}),ke$4(()=>qe$3(void 0)))}enrichSession(e){let t=D$2(e);if(!t)return qe$3(void 0);let n=ce$3(e),i=this.selectedNamespaceId();if(!n||i!==null&&n!==i)return qe$3(void 0);let r=this.namespaceGeneration,a=u=>this.applyEnrichment(t,n,r,e,u),c=u=>u.pipe(ke$4(()=>qe$3(void 0)));return Cc({timing:c(this.api.getTiming(t,n)),evidence:c(this.api.getEvidence(t,n)),metrics:c(this.api.getMetrics(t,n)),interactions:c(this.api.getInteractions(t,n)),attempts:this.api.getAttempts(t,n).pipe(A$1(u=>({attempts:u})),ke$4(u=>qe$3({attempts:void 0,attemptsLoadError:u.message}))),actions:c(this.api.getActions(t,n)),agentQuestions:this.api.getAgentQuestions(t,n).pipe(ke$4(u=>(u.code==="AGENT_QUESTIONS_UNAVAILABLE"&&a({agentQuestions:[],agentQuestionsError:ps(u,t,n)}),qe$3(void 0))))}).pipe(zt$6(u=>{let d=u.attempts,m=Object.fromEntries(Object.entries(u).filter(([h,p])=>h!=="attempts"&&p!==void 0));d?.attempts!==void 0&&(m.attempts=d.attempts,m.attemptsLoadError=void 0),d?.attemptsLoadError&&(m.attemptsLoadError=d.attemptsLoadError),a(m);}),Nc(()=>qe$3(void 0)))}applyEnrichment(e,t,n,i,r){if(n!==this.namespaceGeneration||this.selectedNamespaceId()!==null&&t!==this.selectedNamespaceId())return;let a=this.workflowSnapshot(e)??i;if(a===void 0)return;let c=I$2(I$2({},this.enrichment.get(e)??{}),r);this.enrichment.set(e,c);let u=Me$3(a,c.timing,c.evidence,c.metrics,c.interactions,c.attempts,c.actions,c.agentQuestions,c.attemptsLoadError);c.agentQuestionsError&&(u.agentQuestionsError=c.agentQuestionsError),this.sessions.update(d=>{let m=new Map(d);return m.set(u.id,u),m}),this.updateRun(Je$1(a,u));}queueAllOverviewEnrichment(){for(let e of this.workflows()){let t=D$2(e);t&&this.queueOverviewEnrichment(t);}}queueOverviewEnrichment(e){if(e===this.selectedWorkflowId)return;if(this.overviewEnrichmentRequests.has(e)){this.overviewEnrichmentPending.add(e);return}let t=this.workflowSnapshot(e);if(!t||this.runs().find(i=>i.id===e)?.status==="destroyed")return;let n=null;n=this.enrichSession(t).pipe(yr(()=>{if(this.overviewEnrichmentRequests.get(e)!==n)return;this.overviewEnrichmentRequests.delete(e);let i=this.detailRequest===n;i&&(this.detailRequest=null);let r=this.overviewEnrichmentPending.delete(e);e===this.selectedWorkflowId?i&&(r||this.detailRefreshPending)&&(this.detailRefreshPending=false,this.startDetailRequest(e)):r&&this.queueOverviewEnrichment(e);})).subscribe(),this.overviewEnrichmentRequests.set(e,n);}cancelNamespaceRequests(){this.overviewRefreshPending=false,this.overviewRequest?.unsubscribe(),this.overviewRequest=null,this.usageRefreshRequest?.unsubscribe(),this.usageRefreshRequest=null;let e=this.removedUsageRequest;this.removedUsageRequest=null,e?.unsubscribe(),this.cancelDetailRequest();for(let t of this.overviewEnrichmentRequests.values())t.unsubscribe();this.overviewEnrichmentRequests.clear(),this.overviewEnrichmentPending.clear();}clearScopedState(){this.workflows.set([]),this.workstreamViews=[],this.runs.set([]),this.sessions.set(new Map),this.enrichment.clear(),this.removedUsage.clear(),this.removedUsageAttempted.clear(),this.detailNamespaceId!==this.selectedNamespaceId()&&(this.selectedWorkflowId=null,this.detailNamespaceId=null);}namespaceFor(e){let t=this.workflows().find(i=>D$2(i)===e),n=t?ce$3(t):this.detailNamespaceId??this.selectedNamespaceId()??void 0;return n&&(this.selectedNamespaceId()===null||n===this.selectedNamespaceId())?n:void 0}replyInteraction(e,t,n,i){let r=i??this.namespaceFor(e);r&&this.api.replyInteraction(e,t,n,r).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}answerAgentQuestion(e,t,n){if(this.answeringQuestionId())return;this.answeringQuestionId.set(t.questionEventId),this.questionFeedback.set(null);let i=this.namespaceFor(e);if(!i){this.answeringQuestionId.set(null);return}this.api.answerAgentQuestion(e,t.questionEventId,{stepId:t.stepId,answer:n},i).subscribe({next:()=>{this.answeringQuestionId.set(null),this.refreshAfterAction(e);},error:r=>{this.answeringQuestionId.set(null);let a=r.status===409;this.questionFeedback.set({interactionId:t.questionEventId,kind:a?"conflict":"error",message:a?"The question has changed. The allowed state has been updated; please review your answer.":r.message}),a&&this.refreshAfterAction(e);}});}retryFailedStep(e,t,n){if(this.retryingStepId())return;let i=n??this.namespaceFor(e),r=(t.additionalContext??"").trim();if(!i||r.length>4e3)return;let a=JSON.stringify({namespaceId:i,expectedRevision:t.expectedRevision,additionalContext:r}),c=`${e}:${t.stepId}`,u=this.retryKeys.get(c),d=u?.payload===a?u.key:us();this.retryKeys.set(c,{payload:a,key:d}),this.retryingStepId.set(t.stepId),this.retryFeedback.set(null),this.api.retryFailedStep(e,t.stepId,{namespaceId:i,expectedRevision:t.expectedRevision,additionalContext:r},d).subscribe({next:()=>{this.retryingStepId.set(null),this.retryKeys.delete(c),this.refreshAfterAction(e);},error:m=>{this.retryingStepId.set(null),this.retryFeedback.set(Mt$3(t.stepId,m,"retry")),m.status===409&&this.refreshAfterAction(e);}});}resumeResearch(e,t,n){if(this.resumingResearchStepId())return;let i=n??this.namespaceFor(e),r=t.additionalContext.trim();if(!i||!r||r.length>4e3)return;let a=JSON.stringify({namespaceId:i,expectedRevision:t.expectedRevision,additionalContext:r}),c=`${e}:${t.stepId}`,u=this.researchResumptionKeys.get(c),d=u?.payload===a?u.key:ls();this.researchResumptionKeys.set(c,{payload:a,key:d}),this.resumingResearchStepId.set(t.stepId),this.researchResumptionFeedback.set(null),this.api.resumeResearch(e,t.stepId,{namespaceId:i,expectedRevision:t.expectedRevision,additionalContext:r},d).subscribe({next:()=>{this.resumingResearchStepId.set(null),this.researchResumptionKeys.delete(c),this.refreshAfterAction(e);},error:m=>{this.resumingResearchStepId.set(null),this.researchResumptionFeedback.set(Mt$3(t.stepId,m,"resumption")),m.status===409&&this.refreshAfterAction(e);}});}cancelAttempt(e,t,n,i){let r=i??this.namespaceFor(e);r&&this.api.cancelAttempt(e,t,n,r).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}continueCost(e,t,n){let i=n??this.namespaceFor(e);i&&this.api.continueCost(e,t,i).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}stopCost(e,t){let n=t??this.namespaceFor(e);n&&this.api.stopCost(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}stop(e,t){let n=this.sessions().get(e),i=n?.activeAttemptId;if(!i)return;let r=n?.activeAttemptRevision,a={reason:"stop"};r!==void 0&&(a.expectedRevision=r),this.cancelAttempt(e,i,a,t);}remove(e,t){let n=t??this.namespaceFor(e);n&&this.api.removeWorkflow(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}restore(e,t){let n=t??this.namespaceFor(e);n&&this.api.restoreWorkflow(e,n).subscribe({next:()=>this.refreshAfterAction(e),error:()=>{}});}restoreSupervisorCase(e){return this.supervisorCases.restore(e)}openSupervisorCase(e){return this.supervisorCases.open(e)}setRuns(e){let t=this.runs(),n=a=>JSON.stringify([a.namespaceId,a.id]),i=new Map(t.map(a=>[n(a),a])),r=e.map(a=>{let c=i.get(n(a));return c&&et$1(c,a)?c:a});this.runs.set(_t$3(t,r));}updateRun(e){this.setRuns(this.runs().map(t=>t.id===e.id?mn$3(t,e):t));}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})};function mn$3(s,e){return P(I$2({},s),{status:s.status==="destroyed"?"destroyed":e.cardState==="failed"?"failed":e.cardState==="blocked"?"blocked":e.cardState==="waiting_human"?"waiting_human":e.cardState==="running"?"working":"idle",run:e,costUsd:e.costUsd,durationSec:e.durationSec,tokens:e.tokens,phases:e.phases})}var os=4,as=8,cs=2;function ds(s){return !!s&&Number.isFinite(s.cost)&&Number.isFinite(s.unknownCostCount)&&s.unknownCostCount>=0}function fn$4(s,e){let t=Number.isFinite(e.totalTokens)?e.totalTokens:null;return I$2(P(I$2({},s),{costUsd:e.cost,finalCostUsd:e.cost,tokens:t}),s.run?{run:P(I$2({},s.run),{costUsd:e.cost,unknownCostCount:e.unknownCostCount,tokens:t})}:{})}function Ze$1(s,e){return s.length===e.length&&s.every((t,n)=>t===e[n])}function _t$3(s,e){return Ze$1(s,e)?s:e}function et$1(s,e){if(Object.is(s,e))return true;if(Array.isArray(s)&&Array.isArray(e))return s.length===e.length&&s.every((r,a)=>et$1(r,e[a]));if(!s||!e||typeof s!="object"||typeof e!="object"||Array.isArray(s)||Array.isArray(e))return false;let t=s,n=e,i=Object.keys(t);return i.length===Object.keys(n).length&&i.every(r=>Object.hasOwn(n,r)&&et$1(t[r],n[r]))}function us(){let s=globalThis.crypto;return typeof s?.randomUUID=="function"?s.randomUUID():`failed-step-retry-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function ls(){let s=globalThis.crypto;return typeof s?.randomUUID=="function"?s.randomUUID():`research-resumption-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function gn$3(s){return s.code==="WORKFLOW_NOT_FOUND"&&s.message==="No workstream is mapped to the requested namespace."}function hn$3(s){if(typeof s!="object"||s===null)return -1;let e=s.revision;return typeof e=="number"&&Number.isFinite(e)?e:-1}function ps(s,e,t){let n=s.details,i=r=>{let a=n?.[r];return typeof a=="string"&&a.length>0?a:void 0};return {code:s.code,message:s.message,caseId:i("caseId"),namespaceId:i("namespaceId")??t,workflowId:i("workflowId")??e,stepId:i("stepId")}}function ms(s){return s.sort((e,t)=>{let n=e.createdAt?Date.parse(e.createdAt):null,i=t.createdAt?Date.parse(t.createdAt):null;return n===null&&i===null?0:n===null?1:i===null?-1:i-n})}var Dt$3=class Dt{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z$2;bulk={select:e=>this._select(e),deselect:e=>this._deselect(e),setSelection:e=>this._setSelection(e)};constructor(e=false,t,n=true,i){this._multiple=e,this._emitChanges=n,this.compareWith=i,t&&t.length&&(e?t.forEach(r=>this._markSelected(r)):this._markSelected(t[0]),this._selectedToEmit.length=0);}select(...e){return this._select(e)}deselect(...e){return this._deselect(e)}setSelection(...e){return this._setSelection(e)}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=true){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return !this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e);}isMultipleSelection(){return this._multiple}_select(e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}_deselect(e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}_setSelection(e){this._verifyValueAssignment(e);let t=this.selected,n=new Set(e.map(r=>this._getConcreteValue(r)));e.forEach(r=>this._markSelected(r)),t.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]);}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e));}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e));}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e));}_verifyValueAssignment(e){e.length>1&&this._multiple;}_hasQueuedChanges(){return !!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let n of t)if(this.compareWith(e,n))return n;return e}else return e}};var fs=(()=>{class s{_listeners=[];notify(t,n){for(let i of this._listeners)i(t,n);}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(n=>t!==n);}}ngOnDestroy(){this._listeners=[];}static \u0275fac=function(n){return new(n||s)};static \u0275prov=F$2({token:s,factory:s.\u0275fac})}return s})();var bn$3=class bn{applyChanges(e,t,n,i,r){e.forEachOperation((a,c,u)=>{let d,m;if(a.previousIndex==null){let h=n(a,c,u);d=t.createEmbeddedView(h.templateRef,h.context,h.index),m=Z$1.INSERTED;}else u==null?(t.remove(c),m=Z$1.REMOVED):(d=t.get(c),t.move(d,u),m=Z$1.MOVED);r&&r({context:d?.context,operation:m,record:a});});}detach(){}};var rr$1=(()=>{class s{_animationsDisabled=so$1();state="unchecked";disabled=false;appearance="full";static \u0275fac=function(n){return new(n||s)};static \u0275cmp=xe$1({type:s,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,i){n&2&&It$7("mat-pseudo-checkbox-indeterminate",i.state==="indeterminate")("mat-pseudo-checkbox-checked",i.state==="checked")("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal",i.appearance==="minimal")("mat-pseudo-checkbox-full",i.appearance==="full")("_mat-animation-noopable",i._animationsDisabled);},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,i){},styles:[`.mat-pseudo-checkbox {
|
|
1030
1030
|
border-radius: 2px;
|
|
1031
1031
|
cursor: pointer;
|
|
1032
1032
|
display: inline-block;
|
|
@@ -1132,7 +1132,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
1132
1132
|
top: 6px;
|
|
1133
1133
|
width: 12px;
|
|
1134
1134
|
}
|
|
1135
|
-
`],encapsulation:2})}return
|
|
1135
|
+
`],encapsulation:2})}return s})();var R$1=new y("CdkAccordion"),be$1=(()=>{class t{_stateChanges=new Z$2;_openCloseAllActions=new Z$2;id=h(mf).getId("cdk-accordion-");multi=false;openAll(){this.multi&&this._openCloseAllActions.next(true);}closeAll(){this._openCloseAllActions.next(false);}ngOnChanges(e){this._stateChanges.next(e);}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete();}static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",wt$6]},exportAs:["cdkAccordion"],features:[Ey([{provide:R$1,useExisting:t}]),ya]})}return t})(),_e$2=(()=>{class t{accordion=h(R$1,{optional:true,skipSelf:true});_changeDetectorRef=h(Ly);_expansionDispatcher=h(fs);_openCloseAllSubscription=q$3.EMPTY;closed=new Oe$4;opened=new Oe$4;destroyed=new Oe$4;expandedChange=new Oe$4;id=h(mf).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n);}else this.closed.emit();this._changeDetectorRef.markForCheck();}}_expanded=false;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e);}_disabled=Qe$3(false);_removeUniqueSelectionListener=()=>{};ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=false);}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions());}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe();}toggle(){this.disabled||(this.expanded=!this.expanded);}close(){this.disabled||(this.expanded=false);}open(){this.disabled||(this.expanded=true);}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e);})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",wt$6],disabled:[2,"disabled","disabled",wt$6]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ey([{provide:R$1,useValue:void 0}])]})}return t})(),ye$2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=he$2({type:t});static \u0275inj=ce$4({})}return t})();var Ae$2=["body"],Pe$2=["bodyWrapper"],De$3=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ke$2=["mat-expansion-panel-header","*","mat-action-row"];function Te$3(t,Ce){}var Ie$1=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],He$2=["mat-panel-title","mat-panel-description","*"];function Se$2(t,Ce){t&1&&(dn$3(0,"span",1),rh(),dn$3(1,"svg",2),pn$4(2,"path",3),fn$5()());}var j=new y("MAT_ACCORDION"),ve$2=new y("MAT_EXPANSION_PANEL"),Fe$4=(()=>{class t{_template=h(Wr$1);_expansionPanel=h(ve$2,{optional:true});static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),we$2=new y("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Oe$2=(()=>{class t extends _e$2{_viewContainerRef=h(Yr$1);_animationsDisabled=so$1();_document=h(O$1);_ngZone=h(j$1);_elementRef=h(ue$2);_renderer=h(ai$4);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e;}_hideToggle=false;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e;}_togglePosition;afterExpand=new Oe$4;afterCollapse=new Oe$4;_inputChanges=new Z$2;accordion=h(j,{optional:true,skipSelf:true});_lazyContent;_body;_bodyWrapper;_portal;_headerId=h(mf).getId("mat-expansion-panel-header-");constructor(){super();let e=h(we$2,{optional:true});this._expansionDispatcher=h(fs),e&&(this.hideToggle=e.hideToggle);}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":false}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded;}close(){this.expanded=false;}open(){this.expanded=true;}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Ac(null),Tt$6(()=>this.expanded&&!this._portal),Ge$3(1)).subscribe(()=>{this._portal=new $$1(this._lazyContent._template,this._viewContainerRef);}),this._setupAnimationEvents();}ngOnChanges(e){this._inputChanges.next(e);}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete();}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return false}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit();});};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled");},200);});}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,a,r){if(n&1&&ny(r,Fe$4,5),n&2){let o;gC(o=yC())&&(a._lazyContent=o.first);}},viewQuery:function(n,a){if(n&1&&ry(Ae$2,5)(Pe$2,5),n&2){let r;gC(r=yC())&&(a._body=r.first),gC(r=yC())&&(a._bodyWrapper=r.first);}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,a){n&2&&It$7("mat-expanded",a.expanded)("mat-expansion-panel-spacing",a._hasSpacing());},inputs:{hideToggle:[2,"hideToggle","hideToggle",wt$6],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ey([{provide:j,useValue:void 0},{provide:ve$2,useExisting:t}]),Kr$1,ya],ngContentSelectors:ke$2,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,a){n&1&&(sr$1(De$3),ot$3(0),ma(1,"div",2,0)(3,"div",3,1)(5,"div",4),ot$3(6,1),$g(7,Te$3,0,0,"ng-template",5),Id(),ot$3(8,2),Id()()),n&2&&(ri$3(),ir$1("inert",a.expanded?null:""),ri$3(2),Zg("id",a.id),ir$1("aria-labelledby",a._headerId),ri$3(4),Zg("cdkPortalOutlet",a._portal));},dependencies:[Wi$2],styles:[`.mat-expansion-panel {
|
|
1136
1136
|
box-sizing: content-box;
|
|
1137
1137
|
display: block;
|
|
1138
1138
|
margin: 0;
|
|
@@ -1421,7 +1421,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
1421
1421
|
padding-left: 4px;
|
|
1422
1422
|
padding-right: 0;
|
|
1423
1423
|
}
|
|
1424
|
-
`],encapsulation:2})}return t})();var Ze=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(_t$5(ai$4),_t$5(ue$2))};static \u0275dir=rt$2({type:n})}return n})(),se$2=(()=>{class n extends Ze{static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,features:[Kr$1]})}return n})(),R=new y("");var Mt$2={provide:R,useExisting:Es(()=>Xe),multi:true};function Et$4(){let n=jt$3()?jt$3().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var Ft$4=new y(""),Xe=(()=>{class n extends Ze{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Et$4());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(_t$5(ai$4),_t$5(ue$2),_t$5(Ft$4,8))};static \u0275dir=rt$2({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&ey("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)});},standalone:false,features:[Ey([Mt$2]),Kr$1]})}return n})();function be(n){return n==null||Ae$1(n)===0}function Ae$1(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var D$1=new y(""),oe$1=new y(""),wt$3=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ve$1=class ve{static min(t){return Ye(t)}static max(t){return Ke(t)}static required(t){return Je(t)}static requiredTrue(t){return Nt$4(t)}static email(t){return St$3(t)}static minLength(t){return It$4(t)}static maxLength(t){return Qe(t)}static pattern(t){return Ot$2(t)}static nullValidator(t){return K$1()}static compose(t){return st$2(t)}static composeAsync(t){return ot$2(t)}};function Ye(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Ke(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Je(n){return be(n.value)?{required:true}:null}function Nt$4(n){return n.value===true?null:{required:true}}function St$3(n){return be(n.value)||wt$3.test(n.value)?null:{email:true}}function It$4(n){return t=>{let e=t.value?.length??Ae$1(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Qe(n){return t=>{let e=t.value?.length??Ae$1(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Ot$2(n){if(!n)return K$1;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(be(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function K$1(n){return null}function et(n){return n!=null}function tt(n){return Aa(n)?at$3(n):n}function nt$2(n){let t={};return n.forEach(e=>{t=e!=null?I$2(I$2({},t),e):t;}),Object.keys(t).length===0?null:t}function it$1(n,t){return t.map(e=>e(n))}function xt$2(n){return !n.validate}function rt$1(n){return n.map(t=>xt$2(t)?t:e=>t.validate(e))}function st$2(n){if(!n)return null;let t=n.filter(et);return t.length==0?null:function(e){return nt$2(it$1(e,t))}}function Me$2(n){return n!=null?st$2(rt$1(n)):null}function ot$2(n){if(!n)return null;let t=n.filter(et);return t.length==0?null:function(e){let i=it$1(e,t).map(tt);return Cc(i).pipe(A$1(nt$2))}}function Ee$2(n){return n!=null?ot$2(rt$1(n)):null}function Be(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function at$2(n){return n._rawValidators}function lt$2(n){return n._rawAsyncValidators}function _e$1(n){return n?Array.isArray(n)?n:[n]:[]}function J(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ge(n,t){let e=_e$1(t);return _e$1(n).forEach(r=>{J(e,r)||e.push(r);}),e}function Ue$1(n,t){return _e$1(t).filter(e=>!J(n,e))}var Q$1=class Q{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=Me$2(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ee$2(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,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},v=class extends Q$1{name;get formDirective(){return null}get path(){return null}};var B$1="VALID",Y$1="INVALID",S$1="PENDING",G$2="DISABLED",C=class{},ee=class extends C{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},H=class extends C{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},L=class extends C{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},I$1=class I extends C{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},te=class extends C{source;constructor(t){super(),this.source=t;}},w$1=class w extends C{source;constructor(t){super(),this.source=t;}};function Fe$3(n){return (ae$1(n)?n.validators:n)||null}function Rt$3(n){return Array.isArray(n)?Me$2(n):n||null}function we$1(n,t){return (ae$1(t)?t.asyncValidators:n)||null}function Pt$3(n){return Array.isArray(n)?Ee$2(n):n||null}function ae$1(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function ut$2(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new g(1e3,"");if(!ct$2(i,e))throw new g(1001,"")}function dt$2(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new g(-1002,"")});}var O=class{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=Qe$3(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return pi$2(this.statusReactive)}set status(t){pi$2(()=>this.statusReactive.set(t));}_status=lT(()=>this.statusReactive());statusReactive=Qe$3(void 0);get valid(){return this.status===B$1}get invalid(){return this.status===Y$1}get pending(){return this.status===S$1}get disabled(){return this.status===G$2}get enabled(){return this.status!==G$2}errors;get pristine(){return pi$2(this.pristineReactive)}set pristine(t){pi$2(()=>this.pristineReactive.set(t));}_pristine=lT(()=>this.pristineReactive());pristineReactive=Qe$3(true);get dirty(){return !this.pristine}get touched(){return pi$2(this.touchedReactive)}set touched(t){pi$2(()=>this.touchedReactive.set(t));}_touched=lT(()=>this.touchedReactive());touchedReactive=Qe$3(false);get untouched(){return !this.touched}_events=new Z$2;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(Ge(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(Ge(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(Ue$1(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(Ue$1(t,this._rawAsyncValidators));}hasValidator(t){return J(this._rawValidators,t)}hasAsyncValidator(t){return J(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(P(I$2({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new L(true,i));}markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new L(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(P(I$2({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new H(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new H(true,i));}markAsPending(t={}){this.status=S$1;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new I$1(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(P(I$2({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=G$2,this.errors=null,this._forEachChild(r=>{r.disable(P(I$2({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ee(this.value,i)),this._events.next(new I$1(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(I$2({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=B$1,this._forEachChild(i=>{i.enable(P(I$2({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(P(I$2({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===B$1||this.status===S$1)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ee(this.value,e)),this._events.next(new I$1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(P(I$2({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?G$2:B$1;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=S$1,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=tt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new I$1(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Oe$4,this.statusChanges=new Oe$4;}_calculateStatus(){return this._allControlsDisabled()?G$2:this.errors?Y$1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(S$1)?S$1:this._anyControlsHaveStatus(Y$1)?Y$1:B$1}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new H(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new L(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){ae$1(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=Rt$3(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Pt$3(this._rawAsyncValidators);}_updateHasRequiredValidator(){pi$2(()=>this._hasRequired.set(this.hasValidator(ve$1.required)));}};function ct$2(n,t){return Object.hasOwn(n,t)}function kt$1(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Tt$3(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var ye$1=class ye{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};function jt$1(n){return typeof n=="number"?n:parseInt(n,10)}function ht$1(n){return typeof n=="number"?n:parseFloat(n)}var le$4=(()=>{class n{_validator=K$1;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):K$1,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=rt$2({type:n,features:[ya]})}return n})(),Bt$4={provide:D$1,useExisting:Es(()=>Gt$2),multi:true},Gt$2=(()=>{class n extends le$4{max;inputName="max";normalizeInput=e=>ht$1(e);createValidator=e=>Ke(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("max",r._enabled?r.max:null);},inputs:{max:"max"},standalone:false,features:[Ey([Bt$4]),Kr$1]})}return n})(),Ut$1={provide:D$1,useExisting:Es(()=>Ht$2),multi:true},Ht$2=(()=>{class n extends le$4{min;inputName="min";normalizeInput=e=>ht$1(e);createValidator=e=>Ye(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("min",r._enabled?r.min:null);},inputs:{min:"min"},standalone:false,features:[Ey([Ut$1]),Kr$1]})}return n})(),Lt$3={provide:D$1,useExisting:Es(()=>ft$2),multi:true};var ft$2=(()=>{class n extends le$4{required;inputName="required";normalizeInput=wt$6;createValidator=e=>Je;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[Ey([Lt$3]),Kr$1]})}return n})();var Wt$2={provide:D$1,useExisting:Es(()=>qt$2),multi:true},qt$2=(()=>{class n extends le$4{maxlength;inputName="maxlength";normalizeInput=e=>jt$1(e);createValidator=e=>Qe(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("maxlength",r._enabled?r.maxlength:null);},inputs:{maxlength:"maxlength"},standalone:false,features:[Ey([Wt$2]),Kr$1]})}return n})();var $t$2=new y(""),q=new y("",{factory:()=>ue$1}),ue$1="always";function gt$2(n,t){return [...t.path,n]}function Ce$1(n,t,e=ue$1){Ne$2(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Zt$3(n,t),Yt$3(n,t),Xt$3(n,t),zt$4(n,t);}function He$1(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),ie$1(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function ne$1(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function zt$4(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Ne$2(n,t){let e=at$2(n);t.validator!==null?n.setValidators(Be(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=lt$2(n);t.asyncValidator!==null?n.setAsyncValidators(Be(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ne$1(t._rawValidators,r),ne$1(t._rawAsyncValidators,r);}function ie$1(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=at$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=lt$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return ne$1(t._rawValidators,i),ne$1(t._rawAsyncValidators,i),e}function Zt$3(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&pt$2(n,t);});}function Xt$3(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&pt$2(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function pt$2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function Yt$3(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function mt$2(n,t){Ne$2(n,t);}function Kt$2(n,t){return ie$1(n,t)}function vt$3(n,t){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Jt$2(n){return Object.getPrototypeOf(n.constructor)===se$2}function _t$2(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function Qt$2(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Xe?e=s:Jt$2(s)?i=s:r=s;}),r||i||e||null}function en$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var yt$4={provide:$t$2,useFactory:()=>{let n=h(V$1,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},V$1=class V extends Q$1{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof w$1&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Qt$2(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(Ue$3)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(Ly);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new q$3,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof w$1&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=kt$1(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof ft$2));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let o=this._convertErrors(s);t.setInputOnDirectives("errors",o);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Tt$3(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new ye$1({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=lT(()=>{let r=t();return r.length===0?null:r.reduce((s,o)=>(s[o.kind]=o,s),{})});this.parseErrorsValidator=(()=>e).bind(this),$s(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},re$1=class re{_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 kn$1=(()=>{class n extends re$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(_t$5(V$1,2))};static \u0275dir=rt$2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&It$7("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[Kr$1]})}return n})(),Tn$1=(()=>{class n extends re$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(_t$5(v,10))};static \u0275dir=rt$2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&It$7("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[Kr$1]})}return n})(),x$1=class x extends O{constructor(t,e,i){super(Fe$3(e),we$1(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){pi$2(()=>{dt$2(this,true,t),Object.keys(t).forEach(i=>{ut$2(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,P(I$2({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new w$1(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return true;return false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return ct$2(this.controls,t)?this.controls[t]:null}};var Ve=class extends x$1{};var tn$2={provide:v,useExisting:Es(()=>nn$2)},U$1=Promise.resolve(),nn$2=(()=>{class n extends v{callSetDisabledState;get submitted(){return pi$2(this.submittedReactive)}_submitted=lT(()=>this.submittedReactive());submittedReactive=Qe$3(false);_directives=new Set;form;ngSubmit=new Oe$4;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new x$1({},Me$2(e),Ee$2(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){U$1.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}removeControl(e){U$1.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){U$1.then(()=>{let i=this._findContainer(e.path),r=new x$1({});mt$2(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){U$1.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){U$1.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),_t$2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new te(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(_t$5(D$1,10),_t$5(oe$1,10),_t$5(q,8))};static \u0275dir=rt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&ey("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[Ey([tn$2]),Kr$1]})}return n})();function Le$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function We(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var W=class extends O{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Fe$3(e),we$1(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),ae$1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(We(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){pi$2(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new w$1(this));}_updateValue(){}_anyControls(t){return false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){Le$1(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){Le$1(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:true,emitModelToViewChange:false}),true):false}_applyFormState(t){We(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}};var rn$2=n=>n instanceof W;var sn$1={provide:V$1,useExisting:Es(()=>on$2)},qe$1=Promise.resolve(),on$2=(()=>{class n extends V$1{_changeDetectorRef;callSetDisabledState;control=new W;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Oe$4;constructor(e,i,r,s,o,p,_,P){super(_,P,s),this._changeDetectorRef=o,this.callSetDisabledState=p,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),vt$3(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){qe$1.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&wt$6(i);qe$1.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?gt$2(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(_t$5(v,9),_t$5(D$1,10),_t$5(oe$1,10),_t$5(R,10),_t$5(Ly,8),_t$5(q,8),_t$5(K$4,8),_t$5(ai$4,8))};static \u0275dir=rt$2({type:n,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:false,features:[Ey([sn$1,yt$4]),Kr$1,ya,Lw(null)]})}return n})();var Bn$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=rt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),an$1={provide:R,useExisting:Es(()=>ln$2),multi:true},ln$2=(()=>{class n extends se$2{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[Ey([an$1]),Kr$1]})}return n})();var De$2=class De extends O{constructor(t,e,i){super(Fe$3(e),we$1(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){pi$2(()=>{dt$2(this,false,t),t.forEach((i,r)=>{ut$2(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],P(I$2({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new w$1(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var un$1=(()=>{class n extends v{callSetDisabledState;get submitted(){return pi$2(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=lT(()=>this._submittedReactive());_submittedReactive=Qe$3(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(ie$1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){He$1(e.control||null,e,false),en$1(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,_t$2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new te(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(He$1(i||null,e),rn$2(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);mt$2(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Kt$2(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Ne$2(this.form,this),this._oldForm&&ie$1(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(_t$5(D$1,10),_t$5(oe$1,10),_t$5(q,8))};static \u0275dir=rt$2({type:n,features:[Kr$1,ya]})}return n})();var Ct$3=new y("");var dn$1={provide:V$1,useExisting:Es(()=>cn$2)},cn$2=(()=>{class n extends V$1{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Oe$4;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,o,p,_){super(_,p,s),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),vt$3(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return gt$2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(_t$5(v,13),_t$5(D$1,10),_t$5(oe$1,10),_t$5(R,10),_t$5(Ct$3,8),_t$5(ai$4,8),_t$5(K$4,8))};static \u0275dir=rt$2({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[Ey([dn$1,yt$4]),Kr$1,ya,Lw(null)]})}return n})();var hn$2={provide:v,useExisting:Es(()=>fn$2)},fn$2=(()=>{class n extends un$1{form=null;ngSubmit=new Oe$4;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&ey("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[Ey([hn$2]),Kr$1]})}return n})(),gn$2={provide:R,useExisting:Es(()=>Dt$2),multi:true};function Vt$4(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function pn$2(n){return n.split(":")[0]}var Dt$2=(()=>{class n extends se$2{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=h(or$1).injector;destroyRef=h(Ue$3);cdr=h(Ly);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,Zl({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),r=Vt$4(i,e);this.setProperty("value",r);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=pn$2(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[Ey([gn$2]),Kr$1]})}return n})(),Gn=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Vt$4(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static \u0275fac=function(i){return new(i||n)(_t$5(ue$2),_t$5(ai$4),_t$5(Dt$2,9))};static \u0275dir=rt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})(),mn$2={provide:R,useExisting:Es(()=>bt$1),multi:true};function $e$1(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function vn$2(n){return n.split(":")[0]}var bt$1=(()=>{class n extends se$2{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,o)=>{s._setSelected(r.indexOf(o)>-1);};}else i=r=>{r._setSelected(false);};this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let o=s;for(let p=0;p<o.length;p++){let _=o[p],P=this._getOptionValue(_.value);r.push(P);}}else {let o=i.options;for(let p=0;p<o.length;p++){let _=o[p];if(_.selected){let P=this._getOptionValue(_.value);r.push(P);}}}this.value=r,e(r);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=vn$2(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[Ey([mn$2]),Kr$1]})}return n})(),Un$1=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue($e$1(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue($e$1(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static \u0275fac=function(i){return new(i||n)(_t$5(ue$2),_t$5(ai$4),_t$5(bt$1,9))};static \u0275dir=rt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})();var At$4=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({})}return n})();function ze$2(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var _n$2=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return ze$2(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new x$1(r,s)}record(e,i=null){let r=this._reduceControls(e);return new Ve(r,i)}control(e,i,r){let s={};return this.useNonNullable?(ze$2(i)?s=i:(s.validators=i,s.asyncValidators=r),new W(e,P(I$2({},s),{nonNullable:true}))):new W(e,i,r)}array(e,i,r){let s=e.map(o=>this._createControl(o));return new De$2(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof W)return e;if(e instanceof O)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})(),Hn$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=F$2({token:n,factory:()=>h(_n$2).nonNullable})}return n})();var Ln$1=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:q,useValue:e.callSetDisabledState??ue$1}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[At$4]})}return n})(),Wn$1=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Ct$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:q,useValue:e.callSetDisabledState??ue$1}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[At$4]})}return n})();var we=class{_box;_destroyed=new Z$2;_resizeSubject=new Z$2;_resizeObserver;_elementObservables=new Map;constructor(o){this._box=o,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)));}observe(o){return this._elementObservables.has(o)||this._elementObservables.set(o,new k$1(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(o,{box:this._box}),()=>{this._resizeObserver?.unobserve(o),t.unsubscribe(),this._elementObservables.delete(o);}}).pipe(Tt$6(e=>e.some(t=>t.target===o)),cD({bufferSize:1,refCount:true}),Er(this._destroyed))),this._elementObservables.get(o)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear();}},yt$3=(()=>{class n{_cleanupErrorListener;_observers=new Map;_ngZone=h(j$1);constructor(){}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.();}observe(e,t){let i=t?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new we(i)),this._observers.get(i).observe(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})();var $t$1=["notch"],Yt$2=["*"],xt$1=["iconPrefixContainer"],Ct$2=["textPrefixContainer"],wt$2=["iconSuffixContainer"],Mt$1=["textSuffixContainer"],Xt$2=["textField"],Zt$2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jt$1=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function ei$1(n,o){n&1&&Yg(0,"span",21);}function ti$1(n,o){if(n&1&&(ma(0,"label",20),ot$3(1,1),ci$3(2,ei$1,1,0,"span",21),Id()),n&2){let e=pC(2);Zg("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ir$1("for",e._control.disableAutomaticLabeling?null:e._control.id),ri$3(2),ui$2(!e.hideRequiredMarker&&e._control.required?2:-1);}}function ii$1(n,o){if(n&1&&ci$3(0,ti$1,3,5,"label",20),n&2){let e=pC();ui$2(e._hasFloatingLabel()?0:-1);}}function ni$1(n,o){n&1&&Yg(0,"div",7);}function ri$1(n,o){}function oi$1(n,o){if(n&1&&$g(0,ri$1,0,0,"ng-template",13),n&2){pC(2);let e=bC(1);Zg("ngTemplateOutlet",e);}}function ai$2(n,o){if(n&1&&(ma(0,"div",9),ci$3(1,oi$1,1,1,null,13),Id()),n&2){let e=pC();Zg("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),ri$3(),ui$2(e._forceDisplayInfixLabel()?-1:1);}}function li$1(n,o){n&1&&(ma(0,"div",10,2),ot$3(2,2),Id());}function di$1(n,o){n&1&&(ma(0,"div",11,3),ot$3(2,3),Id());}function si$1(n,o){}function ci$1(n,o){if(n&1&&$g(0,si$1,0,0,"ng-template",13),n&2){pC();let e=bC(1);Zg("ngTemplateOutlet",e);}}function mi$1(n,o){n&1&&(ma(0,"div",14,4),ot$3(2,4),Id());}function fi$1(n,o){n&1&&(ma(0,"div",15,5),ot$3(2,5),Id());}function ui$1(n,o){n&1&&Yg(0,"div",16);}function pi$1(n,o){n&1&&(ma(0,"div",18),ot$3(1,6),Id());}function hi$1(n,o){if(n&1&&(ma(0,"mat-hint",22),VC(1),Id()),n&2){let e=pC(2);Zg("id",e._hintLabelId),ri$3(),hy(e.hintLabel);}}function gi$1(n,o){if(n&1&&(ma(0,"div",19),ci$3(1,hi$1,2,2,"mat-hint",22),ot$3(2,7),Yg(3,"div",23),ot$3(4,8),Id()),n&2){let e=pC();ri$3(),ui$2(e.hintLabel?1:-1);}}var Me$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-label"]]})}return n})(),Tt$2=new y("MatError"),_i$1=(()=>{class n{id=h(mf).getId("mat-mdc-error-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,i){t&2&&Xg("id",i.id);},inputs:{id:"id"},features:[Ey([{provide:Tt$2,useExisting:n}])]})}return n})(),Se$1=(()=>{class n{align="start";id=h(mf).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,i){t&2&&(Xg("id",i.id),ir$1("align",null),It$7("mat-mdc-form-field-hint-end",i.align==="end"));},inputs:{align:"align",id:"id"}})}return n})(),Rt$2=new y("MatPrefix"),bi$1=(()=>{class n{set _isTextSelector(e){this._isText=true;}_isText=false;static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ey([{provide:Rt$2,useExisting:n}])]})}return n})(),vi$1=new y("MatSuffix");var At$3=new y("FloatingLabelParent"),St$2=(()=>{class n{_elementRef=h(ue$2);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize();}_floating=false;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe();}_monitorResize=false;_resizeObserver=h(yt$3);_ngZone=h(j$1);_parent=h(At$3);_resizeSubscription=new q$3;ngOnDestroy(){this._resizeSubscription.unsubscribe();}getWidth(){return yi$1(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized());}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize());});}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,i){t&2&&It$7("mdc-floating-label--float-above",i.floating);},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return n})();function yi$1(n){let o=n;if(o.offsetParent!==null)return o.scrollWidth;let e=o.cloneNode(true);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Ft$3="mdc-line-ripple--active",le$3="mdc-line-ripple--deactivating",Et$3=(()=>{class n{_elementRef=h(ue$2);_cleanupTransitionEnd;constructor(){let e=h(j$1),t=h(ai$4);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd);});}activate(){let e=this._elementRef.nativeElement.classList;e.remove(le$3),e.add(Ft$3);}deactivate(){this._elementRef.nativeElement.classList.add(le$3);}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,i=t.contains(le$3);e.propertyName==="opacity"&&i&&t.remove(Ft$3,le$3);};ngOnDestroy(){this._cleanupTransitionEnd();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return n})(),Ot$1=(()=>{class n{_elementRef=h(ue$2);_ngZone=h(j$1);open=false;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="");}))):e.classList.add("mdc-notched-outline--no-label");}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`;}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,i){if(t&1&&ry($t$1,5),t&2){let r;gC(r=yC())&&(i._notch=r.first);}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,i){t&2&&It$7("mdc-notched-outline--notched",i.open);},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},ngContentSelectors:Yt$2,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,i){t&1&&(sr$1(),pn$4(0,"div",1),dn$3(1,"div",2,0),ot$3(3),fn$5(),pn$4(4,"div",3));},encapsulation:2})}return n})(),Fe$2=(()=>{class n{value=null;stateChanges;id;placeholder;ngControl=null;focused=false;empty=false;shouldLabelFloat=false;required=false;disabled=false;errorState=false;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n})}return n})();var Ee$1=new y("MatFormField"),xi$1=new y("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dt$1="fill",Ci$1="auto",kt="fixed",wi$1="translateY(-50%)",It$3=(()=>{class n{_elementRef=h(ue$2);_changeDetectorRef=h(Ly);_platform=h(De$5);_idGenerator=h(mf);_ngZone=h(j$1);_defaults=h(xi$1,{optional:true});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=mU("iconPrefixContainer");_textPrefixContainerSignal=mU("textPrefixContainer");_iconSuffixContainerSignal=mU("iconSuffixContainer");_textSuffixContainerSignal=mU("textSuffixContainer");_prefixSuffixContainers=lT(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=gU(Me$1);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=nW(e);}_hideRequiredMarker=false;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Ci$1}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck());}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Dt$1;this._appearanceSignal.set(t);}_appearanceSignal=Qe$3(Dt$1);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||kt}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||kt;}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints();}_hintLabel="";_hasIconPrefix=false;_hasTextPrefix=false;_hasIconSuffix=false;_hasTextSuffix=false;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e;}_destroyed=new Z$2;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=so$1();constructor(){let e=this._defaults,t=h(iM);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),$s(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset();}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled");},300);}),this._changeDetectorRef.detectChanges();}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix();}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck();}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete();}getLabelId=lT(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always");}_initializeControl(e){let t=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(i+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck();}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(Ac([void 0,void 0]),A$1(()=>[t.errorState,t.userAriaDescribedBy]),aD(),Tt$6(([[r,a],[_,v]])=>r!==_||a!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(Er(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()));}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText);}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Jb(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck();});}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck();}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck();}),this._validateHints(),this._syncDescribedByIds();}_assertFormFieldControl(){this._control;}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=true,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=false,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e);}_syncOutlineLabelOffset(){vU({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset());});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"});}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())});}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return !this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=lT(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():false}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth();}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth());}_processHints(){this._validateHints(),this._syncDescribedByIds();}_validateHints(){this._hintChildren;}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(_=>_.align==="start"):null,a=this._hintChildren?this._hintChildren.find(_=>_.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id);}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let t=this._control.describedByIds,i;if(t){let r=this._describedByIds||e;i=e.concat(t.filter(a=>a&&!r.includes(a)));}else i=e;this._control.setDescribedByIds(i),this._describedByIds=e;}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return ["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,_=t?.getBoundingClientRect().width??0,v=i?.getBoundingClientRect().width??0,Ht=r?.getBoundingClientRect().width??0,Wt=this._currentDirection==="rtl"?"-1":"1",Gt=`${a+_}px`,Ut=`calc(${Wt} * (${Gt} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,Qt=`var(--mat-mdc-form-field-label-transform, ${wi$1} translateX(${Ut}))`,Kt=a+_+v+Ht;return [Qt,Kt]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,i]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),i!==null&&this._notchedOutline?._setMaxWidth(i);}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(t&1&&(oy(r,i._labelChild,Me$1,5),ny(r,Fe$2,5)(r,Rt$2,5)(r,vi$1,5)(r,Tt$2,5)(r,Se$1,5)),t&2){vC();let a;gC(a=yC())&&(i._formFieldControl=a.first),gC(a=yC())&&(i._prefixChildren=a),gC(a=yC())&&(i._suffixChildren=a),gC(a=yC())&&(i._errorChildren=a),gC(a=yC())&&(i._hintChildren=a);}},viewQuery:function(t,i){if(t&1&&(iy(i._iconPrefixContainerSignal,xt$1,5)(i._textPrefixContainerSignal,Ct$2,5)(i._iconSuffixContainerSignal,wt$2,5)(i._textSuffixContainerSignal,Mt$1,5),ry(Xt$2,5)(xt$1,5)(Ct$2,5)(wt$2,5)(Mt$1,5)(St$2,5)(Ot$1,5)(Et$3,5)),t&2){vC(4);let r;gC(r=yC())&&(i._textField=r.first),gC(r=yC())&&(i._iconPrefixContainer=r.first),gC(r=yC())&&(i._textPrefixContainer=r.first),gC(r=yC())&&(i._iconSuffixContainer=r.first),gC(r=yC())&&(i._textSuffixContainer=r.first),gC(r=yC())&&(i._floatingLabel=r.first),gC(r=yC())&&(i._notchedOutline=r.first),gC(r=yC())&&(i._lineRipple=r.first);}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,i){t&2&&It$7("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"));},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ey([{provide:Ee$1,useExisting:n},{provide:At$3,useExisting:n}])],ngContentSelectors:Jt$1,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,i){if(t&1&&(sr$1(Zt$2),$g(0,ii$1,1,1,"ng-template",null,0,iT),ma(2,"div",6,1),ey("click",function(a){return i._control.onContainerClick(a)}),ci$3(4,ni$1,1,0,"div",7),ma(5,"div",8),ci$3(6,ai$2,2,2,"div",9),ci$3(7,li$1,3,0,"div",10),ci$3(8,di$1,3,0,"div",11),ma(9,"div",12),ci$3(10,ci$1,1,1,null,13),ot$3(11),Id(),ci$3(12,mi$1,3,0,"div",14),ci$3(13,fi$1,3,0,"div",15),Id(),ci$3(14,ui$1,1,0,"div",16),Id(),ma(15,"div",17),ci$3(16,pi$1,2,0,"div",18)(17,gi$1,5,1,"div",19),Id()),t&2){let r;ri$3(2),It$7("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),ri$3(2),ui$2(!i._hasOutline()&&!i._control.disabled?4:-1),ri$3(2),ui$2(i._hasOutline()?6:-1),ri$3(),ui$2(i._hasIconPrefix?7:-1),ri$3(),ui$2(i._hasTextPrefix?8:-1),ri$3(2),ui$2(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),ri$3(2),ui$2(i._hasTextSuffix?12:-1),ri$3(),ui$2(i._hasIconSuffix?13:-1),ri$3(),ui$2(i._hasOutline()?-1:14),ri$3(),It$7("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let a=i._getSubscriptMessageType();ri$3(),ui$2((r=a)==="error"?16:r==="hint"?17:-1);}},dependencies:[St$2,Ot$1,aS,Et$3,Se$1],styles:[`.mdc-text-field {
|
|
1424
|
+
`],encapsulation:2})}return t})();var Ze=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(_t$5(ai$4),_t$5(ue$2))};static \u0275dir=rt$2({type:n})}return n})(),se$2=(()=>{class n extends Ze{static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,features:[Kr$1]})}return n})(),R=new y("");var Mt$2={provide:R,useExisting:Es(()=>Xe),multi:true};function Et$4(){let n=jt$3()?jt$3().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var Ft$4=new y(""),Xe=(()=>{class n extends Ze{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Et$4());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(_t$5(ai$4),_t$5(ue$2),_t$5(Ft$4,8))};static \u0275dir=rt$2({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&ey("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)});},standalone:false,features:[Ey([Mt$2]),Kr$1]})}return n})();function be(n){return n==null||Ae$1(n)===0}function Ae$1(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var D$1=new y(""),oe$1=new y(""),wt$3=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ve$1=class ve{static min(t){return Ye(t)}static max(t){return Ke(t)}static required(t){return Je(t)}static requiredTrue(t){return Nt$4(t)}static email(t){return St$3(t)}static minLength(t){return It$4(t)}static maxLength(t){return Qe(t)}static pattern(t){return Ot$2(t)}static nullValidator(t){return K$1()}static compose(t){return st$2(t)}static composeAsync(t){return ot$2(t)}};function Ye(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Ke(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Je(n){return be(n.value)?{required:true}:null}function Nt$4(n){return n.value===true?null:{required:true}}function St$3(n){return be(n.value)||wt$3.test(n.value)?null:{email:true}}function It$4(n){return t=>{let e=t.value?.length??Ae$1(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Qe(n){return t=>{let e=t.value?.length??Ae$1(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Ot$2(n){if(!n)return K$1;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(be(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function K$1(n){return null}function et(n){return n!=null}function tt(n){return Aa(n)?at$3(n):n}function nt$2(n){let t={};return n.forEach(e=>{t=e!=null?I$2(I$2({},t),e):t;}),Object.keys(t).length===0?null:t}function it$1(n,t){return t.map(e=>e(n))}function xt$2(n){return !n.validate}function rt$1(n){return n.map(t=>xt$2(t)?t:e=>t.validate(e))}function st$2(n){if(!n)return null;let t=n.filter(et);return t.length==0?null:function(e){return nt$2(it$1(e,t))}}function Me$2(n){return n!=null?st$2(rt$1(n)):null}function ot$2(n){if(!n)return null;let t=n.filter(et);return t.length==0?null:function(e){let i=it$1(e,t).map(tt);return Cc(i).pipe(A$1(nt$2))}}function Ee$2(n){return n!=null?ot$2(rt$1(n)):null}function Be(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function at$2(n){return n._rawValidators}function lt$2(n){return n._rawAsyncValidators}function _e$1(n){return n?Array.isArray(n)?n:[n]:[]}function J(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ge(n,t){let e=_e$1(t);return _e$1(n).forEach(r=>{J(e,r)||e.push(r);}),e}function Ue$1(n,t){return _e$1(t).filter(e=>!J(n,e))}var Q$1=class Q{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=Me$2(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ee$2(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,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},v=class extends Q$1{name;get formDirective(){return null}get path(){return null}};var B$1="VALID",Y$1="INVALID",S$1="PENDING",G$2="DISABLED",C=class{},ee=class extends C{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},H=class extends C{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},L=class extends C{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},I$1=class I extends C{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},te=class extends C{source;constructor(t){super(),this.source=t;}},w$1=class w extends C{source;constructor(t){super(),this.source=t;}};function Fe$3(n){return (ae$1(n)?n.validators:n)||null}function Rt$3(n){return Array.isArray(n)?Me$2(n):n||null}function we$1(n,t){return (ae$1(t)?t.asyncValidators:n)||null}function Pt$3(n){return Array.isArray(n)?Ee$2(n):n||null}function ae$1(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function ut$2(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new g(1e3,"");if(!ct$2(i,e))throw new g(1001,"")}function dt$2(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new g(-1002,"")});}var O=class{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=Qe$3(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return pi$2(this.statusReactive)}set status(t){pi$2(()=>this.statusReactive.set(t));}_status=lT(()=>this.statusReactive());statusReactive=Qe$3(void 0);get valid(){return this.status===B$1}get invalid(){return this.status===Y$1}get pending(){return this.status===S$1}get disabled(){return this.status===G$2}get enabled(){return this.status!==G$2}errors;get pristine(){return pi$2(this.pristineReactive)}set pristine(t){pi$2(()=>this.pristineReactive.set(t));}_pristine=lT(()=>this.pristineReactive());pristineReactive=Qe$3(true);get dirty(){return !this.pristine}get touched(){return pi$2(this.touchedReactive)}set touched(t){pi$2(()=>this.touchedReactive.set(t));}_touched=lT(()=>this.touchedReactive());touchedReactive=Qe$3(false);get untouched(){return !this.touched}_events=new Z$2;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(Ge(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(Ge(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(Ue$1(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(Ue$1(t,this._rawAsyncValidators));}hasValidator(t){return J(this._rawValidators,t)}hasAsyncValidator(t){return J(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(P(I$2({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new L(true,i));}markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new L(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(P(I$2({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new H(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new H(true,i));}markAsPending(t={}){this.status=S$1;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new I$1(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(P(I$2({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=G$2,this.errors=null,this._forEachChild(r=>{r.disable(P(I$2({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ee(this.value,i)),this._events.next(new I$1(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(I$2({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=B$1,this._forEachChild(i=>{i.enable(P(I$2({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(P(I$2({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===B$1||this.status===S$1)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ee(this.value,e)),this._events.next(new I$1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(P(I$2({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?G$2:B$1;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=S$1,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=tt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new I$1(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Oe$4,this.statusChanges=new Oe$4;}_calculateStatus(){return this._allControlsDisabled()?G$2:this.errors?Y$1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(S$1)?S$1:this._anyControlsHaveStatus(Y$1)?Y$1:B$1}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new H(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new L(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){ae$1(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=Rt$3(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Pt$3(this._rawAsyncValidators);}_updateHasRequiredValidator(){pi$2(()=>this._hasRequired.set(this.hasValidator(ve$1.required)));}};function ct$2(n,t){return Object.hasOwn(n,t)}function kt$1(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Tt$3(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var ye$1=class ye{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};function jt$1(n){return typeof n=="number"?n:parseInt(n,10)}function ht$1(n){return typeof n=="number"?n:parseFloat(n)}var le$4=(()=>{class n{_validator=K$1;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):K$1,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=rt$2({type:n,features:[ya]})}return n})(),Bt$4={provide:D$1,useExisting:Es(()=>Gt$2),multi:true},Gt$2=(()=>{class n extends le$4{max;inputName="max";normalizeInput=e=>ht$1(e);createValidator=e=>Ke(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("max",r._enabled?r.max:null);},inputs:{max:"max"},standalone:false,features:[Ey([Bt$4]),Kr$1]})}return n})(),Ut$1={provide:D$1,useExisting:Es(()=>Ht$2),multi:true},Ht$2=(()=>{class n extends le$4{min;inputName="min";normalizeInput=e=>ht$1(e);createValidator=e=>Ye(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("min",r._enabled?r.min:null);},inputs:{min:"min"},standalone:false,features:[Ey([Ut$1]),Kr$1]})}return n})(),Lt$3={provide:D$1,useExisting:Es(()=>ft$2),multi:true};var ft$2=(()=>{class n extends le$4{required;inputName="required";normalizeInput=wt$6;createValidator=e=>Je;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[Ey([Lt$3]),Kr$1]})}return n})();var Wt$2={provide:D$1,useExisting:Es(()=>qt$2),multi:true},qt$2=(()=>{class n extends le$4{maxlength;inputName="maxlength";normalizeInput=e=>jt$1(e);createValidator=e=>Qe(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ir$1("maxlength",r._enabled?r.maxlength:null);},inputs:{maxlength:"maxlength"},standalone:false,features:[Ey([Wt$2]),Kr$1]})}return n})();var $t$2=new y(""),q=new y("",{factory:()=>ue$1}),ue$1="always";function gt$2(n,t){return [...t.path,n]}function Ce$1(n,t,e=ue$1){Ne$2(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Zt$3(n,t),Yt$3(n,t),Xt$3(n,t),zt$4(n,t);}function He$1(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),ie$1(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function ne$1(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function zt$4(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Ne$2(n,t){let e=at$2(n);t.validator!==null?n.setValidators(Be(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=lt$2(n);t.asyncValidator!==null?n.setAsyncValidators(Be(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ne$1(t._rawValidators,r),ne$1(t._rawAsyncValidators,r);}function ie$1(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=at$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=lt$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return ne$1(t._rawValidators,i),ne$1(t._rawAsyncValidators,i),e}function Zt$3(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&pt$2(n,t);});}function Xt$3(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&pt$2(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function pt$2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function Yt$3(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function mt$2(n,t){Ne$2(n,t);}function Kt$2(n,t){return ie$1(n,t)}function vt$3(n,t){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Jt$2(n){return Object.getPrototypeOf(n.constructor)===se$2}function _t$2(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function Qt$2(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Xe?e=s:Jt$2(s)?i=s:r=s;}),r||i||e||null}function en$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var yt$4={provide:$t$2,useFactory:()=>{let n=h(V$1,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},V$1=class V extends Q$1{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof w$1&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Qt$2(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(Ue$3)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(Ly);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new q$3,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof w$1&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=kt$1(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof ft$2));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let o=this._convertErrors(s);t.setInputOnDirectives("errors",o);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Tt$3(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new ye$1({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=lT(()=>{let r=t();return r.length===0?null:r.reduce((s,o)=>(s[o.kind]=o,s),{})});this.parseErrorsValidator=(()=>e).bind(this),$s(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},re$1=class re{_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 kn$1=(()=>{class n extends re$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(_t$5(V$1,2))};static \u0275dir=rt$2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&It$7("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[Kr$1]})}return n})(),Tn$1=(()=>{class n extends re$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(_t$5(v,10))};static \u0275dir=rt$2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&It$7("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[Kr$1]})}return n})(),x$1=class x extends O{constructor(t,e,i){super(Fe$3(e),we$1(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){pi$2(()=>{dt$2(this,true,t),Object.keys(t).forEach(i=>{ut$2(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,P(I$2({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new w$1(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return true;return false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return ct$2(this.controls,t)?this.controls[t]:null}};var Ve=class extends x$1{};var tn$2={provide:v,useExisting:Es(()=>nn$2)},U$1=Promise.resolve(),nn$2=(()=>{class n extends v{callSetDisabledState;get submitted(){return pi$2(this.submittedReactive)}_submitted=lT(()=>this.submittedReactive());submittedReactive=Qe$3(false);_directives=new Set;form;ngSubmit=new Oe$4;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new x$1({},Me$2(e),Ee$2(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){U$1.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}removeControl(e){U$1.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){U$1.then(()=>{let i=this._findContainer(e.path),r=new x$1({});mt$2(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){U$1.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){U$1.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),_t$2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new te(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(_t$5(D$1,10),_t$5(oe$1,10),_t$5(q,8))};static \u0275dir=rt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&ey("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[Ey([tn$2]),Kr$1]})}return n})();function Le$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function We(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var W=class extends O{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Fe$3(e),we$1(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),ae$1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(We(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){pi$2(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new w$1(this));}_updateValue(){}_anyControls(t){return false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){Le$1(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){Le$1(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:true,emitModelToViewChange:false}),true):false}_applyFormState(t){We(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}};var rn$2=n=>n instanceof W;var sn$1={provide:V$1,useExisting:Es(()=>on$2)},qe$1=Promise.resolve(),on$2=(()=>{class n extends V$1{_changeDetectorRef;callSetDisabledState;control=new W;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Oe$4;constructor(e,i,r,s,o,p,_,P){super(_,P,s),this._changeDetectorRef=o,this.callSetDisabledState=p,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),vt$3(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){qe$1.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&wt$6(i);qe$1.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?gt$2(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(_t$5(v,9),_t$5(D$1,10),_t$5(oe$1,10),_t$5(R,10),_t$5(Ly,8),_t$5(q,8),_t$5(K$3,8),_t$5(ai$4,8))};static \u0275dir=rt$2({type:n,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:false,features:[Ey([sn$1,yt$4]),Kr$1,ya,Lw(null)]})}return n})();var Bn$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=rt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),an$1={provide:R,useExisting:Es(()=>ln$2),multi:true},ln$2=(()=>{class n extends se$2{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[Ey([an$1]),Kr$1]})}return n})();var De$2=class De extends O{constructor(t,e,i){super(Fe$3(e),we$1(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){pi$2(()=>{dt$2(this,false,t),t.forEach((i,r)=>{ut$2(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],P(I$2({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new w$1(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var un$1=(()=>{class n extends v{callSetDisabledState;get submitted(){return pi$2(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=lT(()=>this._submittedReactive());_submittedReactive=Qe$3(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(ie$1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){He$1(e.control||null,e,false),en$1(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,_t$2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new te(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(He$1(i||null,e),rn$2(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);mt$2(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Kt$2(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Ne$2(this.form,this),this._oldForm&&ie$1(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(_t$5(D$1,10),_t$5(oe$1,10),_t$5(q,8))};static \u0275dir=rt$2({type:n,features:[Kr$1,ya]})}return n})();var Ct$3=new y("");var dn$1={provide:V$1,useExisting:Es(()=>cn$2)},cn$2=(()=>{class n extends V$1{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Oe$4;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,o,p,_){super(_,p,s),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ce$1(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),vt$3(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return gt$2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(_t$5(v,13),_t$5(D$1,10),_t$5(oe$1,10),_t$5(R,10),_t$5(Ct$3,8),_t$5(ai$4,8),_t$5(K$3,8))};static \u0275dir=rt$2({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[Ey([dn$1,yt$4]),Kr$1,ya,Lw(null)]})}return n})();var hn$2={provide:v,useExisting:Es(()=>fn$2)},fn$2=(()=>{class n extends un$1{form=null;ngSubmit=new Oe$4;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&ey("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[Ey([hn$2]),Kr$1]})}return n})(),gn$2={provide:R,useExisting:Es(()=>Dt$2),multi:true};function Vt$4(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function pn$2(n){return n.split(":")[0]}var Dt$2=(()=>{class n extends se$2{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=h(or$1).injector;destroyRef=h(Ue$3);cdr=h(Ly);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,Zl({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),r=Vt$4(i,e);this.setProperty("value",r);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=pn$2(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[Ey([gn$2]),Kr$1]})}return n})(),Gn=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Vt$4(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static \u0275fac=function(i){return new(i||n)(_t$5(ue$2),_t$5(ai$4),_t$5(Dt$2,9))};static \u0275dir=rt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})(),mn$2={provide:R,useExisting:Es(()=>bt$1),multi:true};function $e$1(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function vn$2(n){return n.split(":")[0]}var bt$1=(()=>{class n extends se$2{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,o)=>{s._setSelected(r.indexOf(o)>-1);};}else i=r=>{r._setSelected(false);};this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let o=s;for(let p=0;p<o.length;p++){let _=o[p],P=this._getOptionValue(_.value);r.push(P);}}else {let o=i.options;for(let p=0;p<o.length;p++){let _=o[p];if(_.selected){let P=this._getOptionValue(_.value);r.push(P);}}}this.value=r,e(r);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=vn$2(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=pm(n)))(r||n)}})();static \u0275dir=rt$2({type:n,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&ey("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[Ey([mn$2]),Kr$1]})}return n})(),Un$1=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue($e$1(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue($e$1(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static \u0275fac=function(i){return new(i||n)(_t$5(ue$2),_t$5(ai$4),_t$5(bt$1,9))};static \u0275dir=rt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})();var At$4=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({})}return n})();function ze$2(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var _n$2=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return ze$2(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new x$1(r,s)}record(e,i=null){let r=this._reduceControls(e);return new Ve(r,i)}control(e,i,r){let s={};return this.useNonNullable?(ze$2(i)?s=i:(s.validators=i,s.asyncValidators=r),new W(e,P(I$2({},s),{nonNullable:true}))):new W(e,i,r)}array(e,i,r){let s=e.map(o=>this._createControl(o));return new De$2(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof W)return e;if(e instanceof O)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})(),Hn$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=F$2({token:n,factory:()=>h(_n$2).nonNullable})}return n})();var Ln$1=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:q,useValue:e.callSetDisabledState??ue$1}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[At$4]})}return n})(),Wn$1=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Ct$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:q,useValue:e.callSetDisabledState??ue$1}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[At$4]})}return n})();var we=class{_box;_destroyed=new Z$2;_resizeSubject=new Z$2;_resizeObserver;_elementObservables=new Map;constructor(o){this._box=o,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)));}observe(o){return this._elementObservables.has(o)||this._elementObservables.set(o,new k$1(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(o,{box:this._box}),()=>{this._resizeObserver?.unobserve(o),t.unsubscribe(),this._elementObservables.delete(o);}}).pipe(Tt$6(e=>e.some(t=>t.target===o)),cD({bufferSize:1,refCount:true}),Er(this._destroyed))),this._elementObservables.get(o)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear();}},yt$3=(()=>{class n{_cleanupErrorListener;_observers=new Map;_ngZone=h(j$1);constructor(){}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.();}observe(e,t){let i=t?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new we(i)),this._observers.get(i).observe(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})();var $t$1=["notch"],Yt$2=["*"],xt$1=["iconPrefixContainer"],Ct$2=["textPrefixContainer"],wt$2=["iconSuffixContainer"],Mt$1=["textSuffixContainer"],Xt$2=["textField"],Zt$2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jt$1=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function ei$1(n,o){n&1&&Yg(0,"span",21);}function ti$1(n,o){if(n&1&&(ma(0,"label",20),ot$3(1,1),ci$3(2,ei$1,1,0,"span",21),Id()),n&2){let e=pC(2);Zg("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ir$1("for",e._control.disableAutomaticLabeling?null:e._control.id),ri$3(2),ui$2(!e.hideRequiredMarker&&e._control.required?2:-1);}}function ii$1(n,o){if(n&1&&ci$3(0,ti$1,3,5,"label",20),n&2){let e=pC();ui$2(e._hasFloatingLabel()?0:-1);}}function ni$1(n,o){n&1&&Yg(0,"div",7);}function ri$1(n,o){}function oi$1(n,o){if(n&1&&$g(0,ri$1,0,0,"ng-template",13),n&2){pC(2);let e=bC(1);Zg("ngTemplateOutlet",e);}}function ai$2(n,o){if(n&1&&(ma(0,"div",9),ci$3(1,oi$1,1,1,null,13),Id()),n&2){let e=pC();Zg("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),ri$3(),ui$2(e._forceDisplayInfixLabel()?-1:1);}}function li$1(n,o){n&1&&(ma(0,"div",10,2),ot$3(2,2),Id());}function di$1(n,o){n&1&&(ma(0,"div",11,3),ot$3(2,3),Id());}function si$1(n,o){}function ci$1(n,o){if(n&1&&$g(0,si$1,0,0,"ng-template",13),n&2){pC();let e=bC(1);Zg("ngTemplateOutlet",e);}}function mi$1(n,o){n&1&&(ma(0,"div",14,4),ot$3(2,4),Id());}function fi$1(n,o){n&1&&(ma(0,"div",15,5),ot$3(2,5),Id());}function ui$1(n,o){n&1&&Yg(0,"div",16);}function pi$1(n,o){n&1&&(ma(0,"div",18),ot$3(1,6),Id());}function hi$1(n,o){if(n&1&&(ma(0,"mat-hint",22),VC(1),Id()),n&2){let e=pC(2);Zg("id",e._hintLabelId),ri$3(),hy(e.hintLabel);}}function gi$1(n,o){if(n&1&&(ma(0,"div",19),ci$3(1,hi$1,2,2,"mat-hint",22),ot$3(2,7),Yg(3,"div",23),ot$3(4,8),Id()),n&2){let e=pC();ri$3(),ui$2(e.hintLabel?1:-1);}}var Me$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-label"]]})}return n})(),Tt$2=new y("MatError"),_i$1=(()=>{class n{id=h(mf).getId("mat-mdc-error-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,i){t&2&&Xg("id",i.id);},inputs:{id:"id"},features:[Ey([{provide:Tt$2,useExisting:n}])]})}return n})(),Se$1=(()=>{class n{align="start";id=h(mf).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,i){t&2&&(Xg("id",i.id),ir$1("align",null),It$7("mat-mdc-form-field-hint-end",i.align==="end"));},inputs:{align:"align",id:"id"}})}return n})(),Rt$2=new y("MatPrefix"),bi$1=(()=>{class n{set _isTextSelector(e){this._isText=true;}_isText=false;static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ey([{provide:Rt$2,useExisting:n}])]})}return n})(),vi$1=new y("MatSuffix");var At$3=new y("FloatingLabelParent"),St$2=(()=>{class n{_elementRef=h(ue$2);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize();}_floating=false;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe();}_monitorResize=false;_resizeObserver=h(yt$3);_ngZone=h(j$1);_parent=h(At$3);_resizeSubscription=new q$3;ngOnDestroy(){this._resizeSubscription.unsubscribe();}getWidth(){return yi$1(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized());}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize());});}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,i){t&2&&It$7("mdc-floating-label--float-above",i.floating);},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return n})();function yi$1(n){let o=n;if(o.offsetParent!==null)return o.scrollWidth;let e=o.cloneNode(true);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Ft$3="mdc-line-ripple--active",le$3="mdc-line-ripple--deactivating",Et$3=(()=>{class n{_elementRef=h(ue$2);_cleanupTransitionEnd;constructor(){let e=h(j$1),t=h(ai$4);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd);});}activate(){let e=this._elementRef.nativeElement.classList;e.remove(le$3),e.add(Ft$3);}deactivate(){this._elementRef.nativeElement.classList.add(le$3);}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,i=t.contains(le$3);e.propertyName==="opacity"&&i&&t.remove(Ft$3,le$3);};ngOnDestroy(){this._cleanupTransitionEnd();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return n})(),Ot$1=(()=>{class n{_elementRef=h(ue$2);_ngZone=h(j$1);open=false;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="");}))):e.classList.add("mdc-notched-outline--no-label");}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`;}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,i){if(t&1&&ry($t$1,5),t&2){let r;gC(r=yC())&&(i._notch=r.first);}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,i){t&2&&It$7("mdc-notched-outline--notched",i.open);},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},ngContentSelectors:Yt$2,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,i){t&1&&(sr$1(),pn$4(0,"div",1),dn$3(1,"div",2,0),ot$3(3),fn$5(),pn$4(4,"div",3));},encapsulation:2})}return n})(),Fe$2=(()=>{class n{value=null;stateChanges;id;placeholder;ngControl=null;focused=false;empty=false;shouldLabelFloat=false;required=false;disabled=false;errorState=false;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n})}return n})();var Ee$1=new y("MatFormField"),xi$1=new y("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dt$1="fill",Ci$1="auto",kt="fixed",wi$1="translateY(-50%)",It$3=(()=>{class n{_elementRef=h(ue$2);_changeDetectorRef=h(Ly);_platform=h(De$5);_idGenerator=h(mf);_ngZone=h(j$1);_defaults=h(xi$1,{optional:true});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=mU("iconPrefixContainer");_textPrefixContainerSignal=mU("textPrefixContainer");_iconSuffixContainerSignal=mU("iconSuffixContainer");_textSuffixContainerSignal=mU("textSuffixContainer");_prefixSuffixContainers=lT(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=gU(Me$1);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=nW(e);}_hideRequiredMarker=false;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Ci$1}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck());}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Dt$1;this._appearanceSignal.set(t);}_appearanceSignal=Qe$3(Dt$1);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||kt}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||kt;}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints();}_hintLabel="";_hasIconPrefix=false;_hasTextPrefix=false;_hasIconSuffix=false;_hasTextSuffix=false;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e;}_destroyed=new Z$2;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=so$1();constructor(){let e=this._defaults,t=h(iM);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),$s(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset();}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled");},300);}),this._changeDetectorRef.detectChanges();}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix();}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck();}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete();}getLabelId=lT(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always");}_initializeControl(e){let t=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(i+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck();}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(Ac([void 0,void 0]),A$1(()=>[t.errorState,t.userAriaDescribedBy]),aD(),Tt$6(([[r,a],[_,v]])=>r!==_||a!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(Er(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()));}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText);}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Jb(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck();});}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck();}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck();}),this._validateHints(),this._syncDescribedByIds();}_assertFormFieldControl(){this._control;}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=true,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=false,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e);}_syncOutlineLabelOffset(){vU({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset());});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"});}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())});}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return !this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=lT(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():false}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth();}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth());}_processHints(){this._validateHints(),this._syncDescribedByIds();}_validateHints(){this._hintChildren;}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(_=>_.align==="start"):null,a=this._hintChildren?this._hintChildren.find(_=>_.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id);}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let t=this._control.describedByIds,i;if(t){let r=this._describedByIds||e;i=e.concat(t.filter(a=>a&&!r.includes(a)));}else i=e;this._control.setDescribedByIds(i),this._describedByIds=e;}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return ["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,_=t?.getBoundingClientRect().width??0,v=i?.getBoundingClientRect().width??0,Ht=r?.getBoundingClientRect().width??0,Wt=this._currentDirection==="rtl"?"-1":"1",Gt=`${a+_}px`,Ut=`calc(${Wt} * (${Gt} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,Qt=`var(--mat-mdc-form-field-label-transform, ${wi$1} translateX(${Ut}))`,Kt=a+_+v+Ht;return [Qt,Kt]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,i]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),i!==null&&this._notchedOutline?._setMaxWidth(i);}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(t&1&&(oy(r,i._labelChild,Me$1,5),ny(r,Fe$2,5)(r,Rt$2,5)(r,vi$1,5)(r,Tt$2,5)(r,Se$1,5)),t&2){vC();let a;gC(a=yC())&&(i._formFieldControl=a.first),gC(a=yC())&&(i._prefixChildren=a),gC(a=yC())&&(i._suffixChildren=a),gC(a=yC())&&(i._errorChildren=a),gC(a=yC())&&(i._hintChildren=a);}},viewQuery:function(t,i){if(t&1&&(iy(i._iconPrefixContainerSignal,xt$1,5)(i._textPrefixContainerSignal,Ct$2,5)(i._iconSuffixContainerSignal,wt$2,5)(i._textSuffixContainerSignal,Mt$1,5),ry(Xt$2,5)(xt$1,5)(Ct$2,5)(wt$2,5)(Mt$1,5)(St$2,5)(Ot$1,5)(Et$3,5)),t&2){vC(4);let r;gC(r=yC())&&(i._textField=r.first),gC(r=yC())&&(i._iconPrefixContainer=r.first),gC(r=yC())&&(i._textPrefixContainer=r.first),gC(r=yC())&&(i._iconSuffixContainer=r.first),gC(r=yC())&&(i._textSuffixContainer=r.first),gC(r=yC())&&(i._floatingLabel=r.first),gC(r=yC())&&(i._notchedOutline=r.first),gC(r=yC())&&(i._lineRipple=r.first);}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,i){t&2&&It$7("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"));},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ey([{provide:Ee$1,useExisting:n},{provide:At$3,useExisting:n}])],ngContentSelectors:Jt$1,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,i){if(t&1&&(sr$1(Zt$2),$g(0,ii$1,1,1,"ng-template",null,0,iT),ma(2,"div",6,1),ey("click",function(a){return i._control.onContainerClick(a)}),ci$3(4,ni$1,1,0,"div",7),ma(5,"div",8),ci$3(6,ai$2,2,2,"div",9),ci$3(7,li$1,3,0,"div",10),ci$3(8,di$1,3,0,"div",11),ma(9,"div",12),ci$3(10,ci$1,1,1,null,13),ot$3(11),Id(),ci$3(12,mi$1,3,0,"div",14),ci$3(13,fi$1,3,0,"div",15),Id(),ci$3(14,ui$1,1,0,"div",16),Id(),ma(15,"div",17),ci$3(16,pi$1,2,0,"div",18)(17,gi$1,5,1,"div",19),Id()),t&2){let r;ri$3(2),It$7("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),ri$3(2),ui$2(!i._hasOutline()&&!i._control.disabled?4:-1),ri$3(2),ui$2(i._hasOutline()?6:-1),ri$3(),ui$2(i._hasIconPrefix?7:-1),ri$3(),ui$2(i._hasTextPrefix?8:-1),ri$3(2),ui$2(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),ri$3(2),ui$2(i._hasTextSuffix?12:-1),ri$3(),ui$2(i._hasIconSuffix?13:-1),ri$3(),ui$2(i._hasOutline()?-1:14),ri$3(),It$7("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let a=i._getSubscriptMessageType();ri$3(),ui$2((r=a)==="error"?16:r==="hint"?17:-1);}},dependencies:[St$2,Ot$1,aS,Et$3,Se$1],styles:[`.mdc-text-field {
|
|
1425
1425
|
display: inline-flex;
|
|
1426
1426
|
align-items: baseline;
|
|
1427
1427
|
padding: 0 16px;
|
|
@@ -2370,7 +2370,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio
|
|
|
2370
2370
|
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
2371
2371
|
max-width: calc(133.3333333333% + 1px);
|
|
2372
2372
|
}
|
|
2373
|
-
`],encapsulation:2})}return n})();var Mi$1=["text"],Si$1=[[["mat-icon"]],"*"],Fi$1=["mat-icon","*"];function Ei$1(n,o){if(n&1&&Yg(0,"mat-pseudo-checkbox",1),n&2){let e=pC();Zg("disabled",e.disabled)("state",e.selected?"checked":"unchecked");}}function Oi$1(n,o){if(n&1&&Yg(0,"mat-pseudo-checkbox",3),n&2){let e=pC();Zg("disabled",e.disabled);}}function Di$1(n,o){if(n&1&&(ma(0,"span",4),VC(1),Id()),n&2){let e=pC();ri$3(),Sd("(",e.group.label,")");}}var De$1=new y("MAT_OPTION_PARENT_COMPONENT"),ke$1=new y("MatOptgroup");var Oe$1=class Oe{source;isUserInput;constructor(o,e=false){this.source=o,this.isUserInput=e;}},ce$2=(()=>{class n{_element=h(ue$2);_changeDetectorRef=h(Ly);_parent=h(De$1,{optional:true});group=h(ke$1,{optional:true});_signalDisableRipple=false;_selected=false;_active=false;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=h(mf).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e);}_disabled=Qe$3(false);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return !!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new Oe$4;_text;_stateChanges=new Z$2;constructor(){let e=h(Ht$4);e.load(pb),e.load(tc),this._signalDisableRipple=!!this._parent&&Zn$2(this._parent.disableRipple);}get active(){return this._active}get viewValue(){return (this._text?.nativeElement.textContent||"").trim()}select(e=true){this._selected||(this._selected=true,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}deselect(e=true){this._selected&&(this._selected=false,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}focus(e,t){let i=this._getHostElement();typeof i.focus=="function"&&i.focus(t);}setActiveStyles(){this._active||(this._active=true,this._changeDetectorRef.markForCheck());}setInactiveStyles(){this._active&&(this._active=false,this._changeDetectorRef.markForCheck());}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!eb(e)&&(this._selectViaInteraction(),e.preventDefault());}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:true,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(true));}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e);}}ngOnDestroy(){this._stateChanges.complete();}_emitSelectionChangeEvent(e=false){this.onSelectionChange.emit(new Oe$1(this,e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-option"]],viewQuery:function(t,i){if(t&1&&ry(Mi$1,7),t&2){let r;gC(r=yC())&&(i._text=r.first);}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,i){t&1&&ey("click",function(){return i._selectViaInteraction()})("keydown",function(a){return i._handleKeydown(a)}),t&2&&(Xg("id",i.id),ir$1("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),It$7("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled));},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",wt$6]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Fi$1,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,i){t&1&&(sr$1(Si$1),ci$3(0,Ei$1,1,2,"mat-pseudo-checkbox",1),ot$3(1),ma(2,"span",2,0),ot$3(4,1),Id(),ci$3(5,Oi$1,1,1,"mat-pseudo-checkbox",3),ci$3(6,Di$1,2,1,"span",4),Yg(7,"div",5)),t&2&&(ui$2(i.multiple?0:-1),ri$3(5),ui$2(!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator?5:-1),ri$3(),ui$2(i.group&&i.group._inert?6:-1),ri$3(),Zg("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple));},dependencies:[
|
|
2373
|
+
`],encapsulation:2})}return n})();var Mi$1=["text"],Si$1=[[["mat-icon"]],"*"],Fi$1=["mat-icon","*"];function Ei$1(n,o){if(n&1&&Yg(0,"mat-pseudo-checkbox",1),n&2){let e=pC();Zg("disabled",e.disabled)("state",e.selected?"checked":"unchecked");}}function Oi$1(n,o){if(n&1&&Yg(0,"mat-pseudo-checkbox",3),n&2){let e=pC();Zg("disabled",e.disabled);}}function Di$1(n,o){if(n&1&&(ma(0,"span",4),VC(1),Id()),n&2){let e=pC();ri$3(),Sd("(",e.group.label,")");}}var De$1=new y("MAT_OPTION_PARENT_COMPONENT"),ke$1=new y("MatOptgroup");var Oe$1=class Oe{source;isUserInput;constructor(o,e=false){this.source=o,this.isUserInput=e;}},ce$2=(()=>{class n{_element=h(ue$2);_changeDetectorRef=h(Ly);_parent=h(De$1,{optional:true});group=h(ke$1,{optional:true});_signalDisableRipple=false;_selected=false;_active=false;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=h(mf).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e);}_disabled=Qe$3(false);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return !!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new Oe$4;_text;_stateChanges=new Z$2;constructor(){let e=h(Ht$4);e.load(pb),e.load(tc),this._signalDisableRipple=!!this._parent&&Zn$2(this._parent.disableRipple);}get active(){return this._active}get viewValue(){return (this._text?.nativeElement.textContent||"").trim()}select(e=true){this._selected||(this._selected=true,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}deselect(e=true){this._selected&&(this._selected=false,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}focus(e,t){let i=this._getHostElement();typeof i.focus=="function"&&i.focus(t);}setActiveStyles(){this._active||(this._active=true,this._changeDetectorRef.markForCheck());}setInactiveStyles(){this._active&&(this._active=false,this._changeDetectorRef.markForCheck());}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!eb(e)&&(this._selectViaInteraction(),e.preventDefault());}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:true,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(true));}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e);}}ngOnDestroy(){this._stateChanges.complete();}_emitSelectionChangeEvent(e=false){this.onSelectionChange.emit(new Oe$1(this,e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-option"]],viewQuery:function(t,i){if(t&1&&ry(Mi$1,7),t&2){let r;gC(r=yC())&&(i._text=r.first);}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,i){t&1&&ey("click",function(){return i._selectViaInteraction()})("keydown",function(a){return i._handleKeydown(a)}),t&2&&(Xg("id",i.id),ir$1("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),It$7("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled));},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",wt$6]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Fi$1,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,i){t&1&&(sr$1(Si$1),ci$3(0,Ei$1,1,2,"mat-pseudo-checkbox",1),ot$3(1),ma(2,"span",2,0),ot$3(4,1),Id(),ci$3(5,Oi$1,1,1,"mat-pseudo-checkbox",3),ci$3(6,Di$1,2,1,"span",4),Yg(7,"div",5)),t&2&&(ui$2(i.multiple?0:-1),ri$3(5),ui$2(!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator?5:-1),ri$3(),ui$2(i.group&&i.group._inert?6:-1),ri$3(),Zg("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple));},dependencies:[rr$1,mW],styles:[`.mat-mdc-option {
|
|
2374
2374
|
-webkit-user-select: none;
|
|
2375
2375
|
user-select: none;
|
|
2376
2376
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -2491,7 +2491,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio
|
|
|
2491
2491
|
.mat-mdc-option-active .mat-focus-indicator::before {
|
|
2492
2492
|
content: "";
|
|
2493
2493
|
}
|
|
2494
|
-
`],encapsulation:2})}return n})();function Nt$3(n,o,e){if(e.length){let t=o.toArray(),i=e.toArray(),r=0;for(let a=0;a<n+1;a++)t[a].group&&t[a].group===i[r]&&r++;return r}return 0}function Lt$2(n,o,e,t){return n<e?n:n+o>e+t?Math.max(0,n-t+o):e}var Pt$2=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[Wv,It$3,no$1]})}return n})();var zt$3=new y("");var Vt$3=(()=>{class n{isErrorState(e,t){return !!(e&&e.invalid&&(e.touched||t&&t.submitted))}isSignalErrorState(e){if(!e)return false;let t=e().invalid(),i=e().touched();return t&&i}static \u0275fac=function(t){return new(t||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})();var me$3=class me{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=false;matcher;ngControl;formField;constructor(o,e,t,i,r){this._defaultMatcher=o,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=r,e?Zn$2(e.field)&&!e.updateValueAndValidity?(this.formField=e,this.ngControl=null):(this.formField=null,this.ngControl=e):this.ngControl=this.formField=null;}updateErrorState(){let o=this.errorState,e=this._getCurrentErrorState(this.matcher||this._defaultMatcher);e!==o&&(this.errorState=e,this._stateChanges.next());}_getCurrentErrorState(o){if(this.formField&&o?.isSignalErrorState)return o.isSignalErrorState(this.formField.field())??false;let e=this._parentFormGroup||this._parentForm,t=this.ngControl?this.ngControl.control:null;return o?.isErrorState(t,e)??false}};var Bt$3=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[no$1]})}return n})();var Te$2=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[mb,Bt$3,ce$2,no$1]})}return n})();var Ii$1=["trigger"],Ni$1=["panel"],Li$1=[[["mat-select-trigger"]],"*"],Pi$1=["mat-select-trigger","*"];function zi$1(n,o){if(n&1&&(ma(0,"span",4),VC(1),Id()),n&2){let e=pC();ri$3(),hy(e.placeholder);}}function Vi$1(n,o){n&1&&ot$3(0);}function Bi$2(n,o){if(n&1&&(ma(0,"span",11),VC(1),Id()),n&2){let e=pC(2);ri$3(),hy(e.triggerValue);}}function ji$1(n,o){if(n&1&&(ma(0,"span",5),ci$3(1,Vi$1,1,0)(2,Bi$2,2,1,"span",11),Id()),n&2){let e=pC();ri$3(),ui$2(e.customTrigger?1:2);}}function qi$1(n,o){if(n&1){let e=aC();ma(0,"div",12,1),ey("keydown",function(i){Wp(e);let r=pC();return Gp(r._handleKeydown(i))}),ot$3(2,1),Id();}if(n&2){let e=pC();di$3(e.panelClass),It$7("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",e._parentFormField?.color==="primary")("mat-accent",e._parentFormField?.color==="accent")("mat-warn",e._parentFormField?.color==="warn")("mat-undefined",!e._parentFormField?.color),ir$1("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var Hi$1=new y("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=h(K$4);return ()=>It$6(n)}}),Wi$1=new y("MAT_SELECT_CONFIG"),Gi$1=new y("MatSelectTrigger"),Re$2=class Re{source;value;constructor(o,e){this.source=o,this.value=e;}},Hr=(()=>{class n{_viewportRuler=h(A);_changeDetectorRef=h(Ly);_elementRef=h(ue$2);_dir=h(iM,{optional:true});_idGenerator=h(mf);_renderer=h(ai$4);_parentFormField=h(Ee$1,{optional:true});ngControl=h(V$1,{self:true,optional:true});_liveAnnouncer=h(MM);_defaultOptions=h(Wi$1,{optional:true});_animationsDisabled=so$1();_popoverLocation;_initialized=new Z$2;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,r=Nt$3(e,this.options,this.optionGroups),a=t._getHostElement();e===0&&r===1?i.scrollTop=0:i.scrollTop=Lt$2(a.offsetTop,a.offsetHeight,i.scrollTop,i.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new Re$2(this,e)}_scrollStrategyFactory=h(Hi$1);_panelOpen=false;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z$2;_errorStateTracker;stateChanges=new Z$2;disableAutomaticLabeling=true;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=false;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=false;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e);}_disableRipple=Qe$3(false);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ve$1.required)??false}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=false;disableOptionCentering=this._defaultOptions?.disableOptionCentering??false;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection();}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??false;optionSelectionChanges=Xb(()=>{let e=this.options;return e?e.changes.pipe(Ac(e),Nc(()=>Jb(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Nc(()=>this.optionSelectionChanges))});openedChange=new Oe$4;_openedStream=this.openedChange.pipe(Tt$6(e=>e),A$1(()=>{}));_closedStream=this.openedChange.pipe(Tt$6(e=>!e),A$1(()=>{}));selectionChange=new Oe$4;valueChange=new Oe$4;constructor(){let e=h(Vt$3),t=h(nn$2,{optional:true}),i=h(fn$2,{optional:true}),r=h(new ka("tabindex"),{optional:true}),a=h(Xt$5,{optional:true}),_=h(zt$3,{optional:true,self:true});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new me$3(e,_||this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===false?null:"inline",this.id=this.id;}ngOnInit(){this._selectionModel=new _t$3(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Er(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges());});}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Er(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect());}),this.options.changes.pipe(Ac(null),Er(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby");}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass));}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._panelOpen=true,this._overlayDir.positionChange.pipe(Ge$3(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(true)));}close(){this._panelOpen&&(this._panelOpen=false,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(false)));}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0;};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay());}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay();},200);e.classList.add("mat-select-panel-exit");}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck();}writeValue(e){this._assignValue(e);}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next();}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return "";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState();}_isRtl(){return this._dir?this._dir.value==="rtl":false}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,r=t===13||t===32,a=this._keyManager;if(!a.isTyping()&&r&&!eb(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let _=this.selected;a.onKeydown(e);let v=this.selected;v&&_!==v&&this._liveAnnouncer.announce(v.viewValue,1e4);}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,r=i===40||i===38,a=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(i===13||i===32)&&t.activeItem&&!eb(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!a&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let _=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(_?v.select():v.deselect());});}else {let _=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==_&&t.activeItem._selectViaInteraction();}}_handleOverlayKeydown(e){e.keyCode===27&&!eb(e)&&(e.preventDefault(),this.close());}_onFocus(){this.disabled||(this._focused=true,this.stateChanges.next());}_onBlur(){this._focused=false,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}get empty(){return !this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next();});}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else {let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return false;try{return (i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return false}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,true):false}_skipPredicate=e=>this.panelOpen?false:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof zt$5?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}_initKeyManager(){this._keyManager=new pf(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close());}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction();});}_resetOptions(){let e=Jb(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Er(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),Jb(...this.options.map(t=>t._stateChanges)).pipe(Er(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next();}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return !this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(e){let t=st$3(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open());}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-select"]],contentQueries:function(t,i,r){if(t&1&&ny(r,Gi$1,5)(r,ce$2,5)(r,ke$1,5),t&2){let a;gC(a=yC())&&(i.customTrigger=a.first),gC(a=yC())&&(i.options=a),gC(a=yC())&&(i.optionGroups=a);}},viewQuery:function(t,i){if(t&1&&ry(Ii$1,5)(Ni$1,5)(ci$2,5),t&2){let r;gC(r=yC())&&(i.trigger=r.first),gC(r=yC())&&(i.panel=r.first),gC(r=yC())&&(i._overlayDir=r.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&ey("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(ir$1("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),It$7("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",wt$6],disableRipple:[2,"disableRipple","disableRipple",wt$6],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Bd(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",wt$6],placeholder:"placeholder",required:[2,"required","required",wt$6],multiple:[2,"multiple","multiple",wt$6],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",wt$6],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Bd],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",wt$6]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ey([{provide:Fe$2,useExisting:n},{provide:De$1,useExisting:n}]),ya],ngContentSelectors:Pi$1,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,i){if(t&1&&(sr$1(Li$1),ma(0,"div",2,0),ey("click",function(){return i.open()}),ma(3,"div",3),ci$3(4,zi$1,2,1,"span",4)(5,ji$1,3,1,"span",5),Id(),ma(6,"div",6)(7,"div",7),rh(),ma(8,"svg",8),Yg(9,"path",9),Id()()()(),$g(10,qi$1,3,16,"ng-template",10),ey("detach",function(){return i.close()})("backdropClick",function(){return i.close()})("overlayKeydown",function(a){return i._handleOverlayKeydown(a)})),t&2){let r=bC(1);ri$3(3),ir$1("id",i._valueId),ri$3(),ui$2(i.empty?4:5),ri$3(6),Zg("cdkConnectedOverlayDisableClose",true)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",true)("cdkConnectedOverlayUsePopover",i._popoverLocation);}},dependencies:[zt$5,ci$2],styles:[`@keyframes _mat-select-enter {
|
|
2494
|
+
`],encapsulation:2})}return n})();function Nt$3(n,o,e){if(e.length){let t=o.toArray(),i=e.toArray(),r=0;for(let a=0;a<n+1;a++)t[a].group&&t[a].group===i[r]&&r++;return r}return 0}function Lt$2(n,o,e,t){return n<e?n:n+o>e+t?Math.max(0,n-t+o):e}var Pt$2=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[Wv,It$3,no$1]})}return n})();var zt$3=new y("");var Vt$3=(()=>{class n{isErrorState(e,t){return !!(e&&e.invalid&&(e.touched||t&&t.submitted))}isSignalErrorState(e){if(!e)return false;let t=e().invalid(),i=e().touched();return t&&i}static \u0275fac=function(t){return new(t||n)};static \u0275prov=F$2({token:n,factory:n.\u0275fac})}return n})();var me$3=class me{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=false;matcher;ngControl;formField;constructor(o,e,t,i,r){this._defaultMatcher=o,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=r,e?Zn$2(e.field)&&!e.updateValueAndValidity?(this.formField=e,this.ngControl=null):(this.formField=null,this.ngControl=e):this.ngControl=this.formField=null;}updateErrorState(){let o=this.errorState,e=this._getCurrentErrorState(this.matcher||this._defaultMatcher);e!==o&&(this.errorState=e,this._stateChanges.next());}_getCurrentErrorState(o){if(this.formField&&o?.isSignalErrorState)return o.isSignalErrorState(this.formField.field())??false;let e=this._parentFormGroup||this._parentForm,t=this.ngControl?this.ngControl.control:null;return o?.isErrorState(t,e)??false}};var Bt$3=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[no$1]})}return n})();var Te$2=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[mb,Bt$3,ce$2,no$1]})}return n})();var Ii$1=["trigger"],Ni$1=["panel"],Li$1=[[["mat-select-trigger"]],"*"],Pi$1=["mat-select-trigger","*"];function zi$1(n,o){if(n&1&&(ma(0,"span",4),VC(1),Id()),n&2){let e=pC();ri$3(),hy(e.placeholder);}}function Vi$1(n,o){n&1&&ot$3(0);}function Bi$2(n,o){if(n&1&&(ma(0,"span",11),VC(1),Id()),n&2){let e=pC(2);ri$3(),hy(e.triggerValue);}}function ji$1(n,o){if(n&1&&(ma(0,"span",5),ci$3(1,Vi$1,1,0)(2,Bi$2,2,1,"span",11),Id()),n&2){let e=pC();ri$3(),ui$2(e.customTrigger?1:2);}}function qi$1(n,o){if(n&1){let e=aC();ma(0,"div",12,1),ey("keydown",function(i){Wp(e);let r=pC();return Gp(r._handleKeydown(i))}),ot$3(2,1),Id();}if(n&2){let e=pC();di$3(e.panelClass),It$7("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",e._parentFormField?.color==="primary")("mat-accent",e._parentFormField?.color==="accent")("mat-warn",e._parentFormField?.color==="warn")("mat-undefined",!e._parentFormField?.color),ir$1("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var Hi$1=new y("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=h(K$3);return ()=>It$6(n)}}),Wi$1=new y("MAT_SELECT_CONFIG"),Gi$1=new y("MatSelectTrigger"),Re$2=class Re{source;value;constructor(o,e){this.source=o,this.value=e;}},Hr=(()=>{class n{_viewportRuler=h(A);_changeDetectorRef=h(Ly);_elementRef=h(ue$2);_dir=h(iM,{optional:true});_idGenerator=h(mf);_renderer=h(ai$4);_parentFormField=h(Ee$1,{optional:true});ngControl=h(V$1,{self:true,optional:true});_liveAnnouncer=h(MM);_defaultOptions=h(Wi$1,{optional:true});_animationsDisabled=so$1();_popoverLocation;_initialized=new Z$2;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,r=Nt$3(e,this.options,this.optionGroups),a=t._getHostElement();e===0&&r===1?i.scrollTop=0:i.scrollTop=Lt$2(a.offsetTop,a.offsetHeight,i.scrollTop,i.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new Re$2(this,e)}_scrollStrategyFactory=h(Hi$1);_panelOpen=false;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z$2;_errorStateTracker;stateChanges=new Z$2;disableAutomaticLabeling=true;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=false;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=false;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e);}_disableRipple=Qe$3(false);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ve$1.required)??false}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=false;disableOptionCentering=this._defaultOptions?.disableOptionCentering??false;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection();}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??false;optionSelectionChanges=Xb(()=>{let e=this.options;return e?e.changes.pipe(Ac(e),Nc(()=>Jb(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Nc(()=>this.optionSelectionChanges))});openedChange=new Oe$4;_openedStream=this.openedChange.pipe(Tt$6(e=>e),A$1(()=>{}));_closedStream=this.openedChange.pipe(Tt$6(e=>!e),A$1(()=>{}));selectionChange=new Oe$4;valueChange=new Oe$4;constructor(){let e=h(Vt$3),t=h(nn$2,{optional:true}),i=h(fn$2,{optional:true}),r=h(new ka("tabindex"),{optional:true}),a=h(Xt$5,{optional:true}),_=h(zt$3,{optional:true,self:true});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new me$3(e,_||this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===false?null:"inline",this.id=this.id;}ngOnInit(){this._selectionModel=new Dt$3(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Er(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges());});}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Er(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect());}),this.options.changes.pipe(Ac(null),Er(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby");}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass));}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._panelOpen=true,this._overlayDir.positionChange.pipe(Ge$3(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(true)));}close(){this._panelOpen&&(this._panelOpen=false,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(false)));}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0;};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay());}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay();},200);e.classList.add("mat-select-panel-exit");}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck();}writeValue(e){this._assignValue(e);}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next();}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return "";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState();}_isRtl(){return this._dir?this._dir.value==="rtl":false}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,r=t===13||t===32,a=this._keyManager;if(!a.isTyping()&&r&&!eb(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let _=this.selected;a.onKeydown(e);let v=this.selected;v&&_!==v&&this._liveAnnouncer.announce(v.viewValue,1e4);}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,r=i===40||i===38,a=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(i===13||i===32)&&t.activeItem&&!eb(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!a&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let _=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(_?v.select():v.deselect());});}else {let _=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==_&&t.activeItem._selectViaInteraction();}}_handleOverlayKeydown(e){e.keyCode===27&&!eb(e)&&(e.preventDefault(),this.close());}_onFocus(){this.disabled||(this._focused=true,this.stateChanges.next());}_onBlur(){this._focused=false,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}get empty(){return !this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next();});}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else {let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return false;try{return (i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return false}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,true):false}_skipPredicate=e=>this.panelOpen?false:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof zt$5?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}_initKeyManager(){this._keyManager=new pf(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close());}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction();});}_resetOptions(){let e=Jb(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Er(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),Jb(...this.options.map(t=>t._stateChanges)).pipe(Er(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next();}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return !this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(e){let t=st$3(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open());}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-select"]],contentQueries:function(t,i,r){if(t&1&&ny(r,Gi$1,5)(r,ce$2,5)(r,ke$1,5),t&2){let a;gC(a=yC())&&(i.customTrigger=a.first),gC(a=yC())&&(i.options=a),gC(a=yC())&&(i.optionGroups=a);}},viewQuery:function(t,i){if(t&1&&ry(Ii$1,5)(Ni$1,5)(ci$2,5),t&2){let r;gC(r=yC())&&(i.trigger=r.first),gC(r=yC())&&(i.panel=r.first),gC(r=yC())&&(i._overlayDir=r.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&ey("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(ir$1("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),It$7("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",wt$6],disableRipple:[2,"disableRipple","disableRipple",wt$6],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Bd(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",wt$6],placeholder:"placeholder",required:[2,"required","required",wt$6],multiple:[2,"multiple","multiple",wt$6],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",wt$6],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Bd],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",wt$6]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ey([{provide:Fe$2,useExisting:n},{provide:De$1,useExisting:n}]),ya],ngContentSelectors:Pi$1,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,i){if(t&1&&(sr$1(Li$1),ma(0,"div",2,0),ey("click",function(){return i.open()}),ma(3,"div",3),ci$3(4,zi$1,2,1,"span",4)(5,ji$1,3,1,"span",5),Id(),ma(6,"div",6)(7,"div",7),rh(),ma(8,"svg",8),Yg(9,"path",9),Id()()()(),$g(10,qi$1,3,16,"ng-template",10),ey("detach",function(){return i.close()})("backdropClick",function(){return i.close()})("overlayKeydown",function(a){return i._handleOverlayKeydown(a)})),t&2){let r=bC(1);ri$3(3),ir$1("id",i._valueId),ri$3(),ui$2(i.empty?4:5),ri$3(6),Zg("cdkConnectedOverlayDisableClose",true)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",true)("cdkConnectedOverlayUsePopover",i._popoverLocation);}},dependencies:[zt$5,ci$2],styles:[`@keyframes _mat-select-enter {
|
|
2495
2495
|
from {
|
|
2496
2496
|
opacity: 0;
|
|
2497
2497
|
transform: scaleY(0.8);
|
|
@@ -2680,7 +2680,7 @@ div.mat-mdc-select-panel {
|
|
|
2680
2680
|
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
|
|
2681
2681
|
transform: var(--mat-select-arrow-transform, translateY(-8px));
|
|
2682
2682
|
}
|
|
2683
|
-
`],encapsulation:2})}return n})();var Wr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[di$2,Te$2,no$1,Vt$5,Pt$2,Te$2]})}return n})();var ot$1=class s{transform(r,t=4,e=0){if(r==null)return "\u2014";let i=`$${r.toFixed(t)}`;return e==null?`? ${i}`:e>0?`\u2265 ${i}`:i}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"usd",type:s,pure:true})},st$1=class s{transform(r){if(r==null)return "\u2014";if(r<60)return `${r.toFixed(2)}s`;let t=Math.floor(r/60),e=Math.round(r%60);return `${t}m ${e.toString().padStart(2,"0")}s`}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"duration",type:s,pure:true})},nt$1=class s{transform(r){return r==null?"\u2014":r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}k`:`${r}`}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"tokens",type:s,pure:true})};var dt$1=["tooltip"],ct$1=20;var pt$1=new y("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let s=h(K$4);return ()=>It$6(s,{scrollThrottle:ct$1})}}),mt$1=new y("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var at$1="tooltip-panel",_t$1={passive:true},ft$1=8,ut$1=8,gt$1=24,yt$2=200,vt$2=(()=>{class s{_elementRef=h(ue$2);_ngZone=h(j$1);_platform=h(De$5);_ariaDescriber=h(N3);_focusMonitor=h(uf);_dir=h(iM);_injector=h(K$4);_viewContainerRef=h(Yr$1);_mediaMatcher=h(oc);_document=h(O$1);_renderer=h(ai$4);_animationsDisabled=so$1();_defaultOptions=h(mt$1,{optional:true});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=false;_disabled=false;_tooltipClass;_viewInitialized=false;_pointerExitEventsInitialized=false;_tooltipComponent=lt$1;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=false;_dirSubscribed=false;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=nW(t),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled}set disabled(t){let e=nW(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=fM(t);}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=fM(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e);}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z$2;_isDestroyed=false;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=ft$1;}ngAfterViewInit(){this._viewInitialized=true,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Er(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t);}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new Ft$5(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Er(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t);}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()));}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t);}_isTooltipVisible(){return !!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&n._origin instanceof ue$2)return this._overlayRef;this._detach();}let e=this._injector.get(U$2).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${at$1}`,o=Ht$3(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return o.positionChanges.pipe(Er(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=jt$2(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(pt$1)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Er(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Er(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Er(this._destroyed)).subscribe(n=>{n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=true,this._dir.change.pipe(Er(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(I$2(I$2({},i.main),o.main)),this._addOffset(I$2(I$2({},i.fallback),o.fallback))]);}_addOffset(t){let e=ut$1,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(i.originX,i.originY);return {main:i,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(i.overlayX,i.overlayY);return {main:i,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Zl(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck());}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,n;if(e==="center"?this._dir&&this._dir.value==="rtl"?n=i==="end"?"left":"right":n=i==="start"?"left":"right":n=e==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let p=this._overlayRef;if(p){let w=`${this._cssClassPrefix}-${at$1}-`;p.removePanelClass(w+this._currentPosition),p.addPanelClass(w+n);}this._currentPosition=n;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i);},this._defaultOptions?.touchLongPressShowDelay??o);})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e);}));}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=true,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide();}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide();}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};this._addListener("touchend",t),this._addListener("touchcancel",t);}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,_t$1));}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?true:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:false}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent";}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=true,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||Zl({write:()=>{this._ariaDescriptionPending=false,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!eb(t):true;static \u0275fac=function(e){return new(e||s)};static \u0275dir=rt$2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&It$7("mat-mdc-tooltip-disabled",i.disabled);},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return s})(),lt$1=(()=>{class s{_changeDetectorRef=h(Ly);_elementRef=h(ue$2);_isMultiline=false;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=so$1();_tooltip;_closeOnInteraction=false;_isVisible=false;_onHide=new Z$2;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(true),this._showTimeoutId=void 0;},t);}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(false),this._hideTimeoutId=void 0;},t);}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(false));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>gt$1&&t.width>=yt$2}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(t){t?this._closeOnInteraction=true:this.isVisible()||this._onHide.next();}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(e);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=true);}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=xe$1({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&ry(dt$1,7),e&2){let o;gC(o=yC())&&(i._tooltip=o.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&ey("mouseleave",function(n){return i._handleMouseLeave(n)});},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(dn$3(0,"div",1,0),ty("animationend",function(n){return i._handleAnimationEnd(n)}),dn$3(2,"div",2),VC(3),fn$5()()),e&2&&(di$3(i.tooltipClass),It$7("mdc-tooltip--multiline",i._isMultiline),ri$3(3),hy(i.message));},styles:[`.mat-mdc-tooltip {
|
|
2683
|
+
`],encapsulation:2})}return n})();var Wr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[di$2,Te$2,no$1,Vt$5,Pt$2,Te$2]})}return n})();var ot$1=class s{transform(r,t=4,e=0){if(r==null)return "\u2014";let i=`$${r.toFixed(t)}`;return e==null?`? ${i}`:e>0?`\u2265 ${i}`:i}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"usd",type:s,pure:true})},st$1=class s{transform(r){if(r==null)return "\u2014";if(r<60)return `${r.toFixed(2)}s`;let t=Math.floor(r/60),e=Math.round(r%60);return `${t}m ${e.toString().padStart(2,"0")}s`}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"duration",type:s,pure:true})},nt$1=class s{transform(r){return r==null?"\u2014":r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}k`:`${r}`}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=yd({name:"tokens",type:s,pure:true})};var dt$1=["tooltip"],ct$1=20;var pt$1=new y("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let s=h(K$3);return ()=>It$6(s,{scrollThrottle:ct$1})}}),mt$1=new y("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var at$1="tooltip-panel",_t$1={passive:true},ft$1=8,ut$1=8,gt$1=24,yt$2=200,vt$2=(()=>{class s{_elementRef=h(ue$2);_ngZone=h(j$1);_platform=h(De$5);_ariaDescriber=h(N3);_focusMonitor=h(uf);_dir=h(iM);_injector=h(K$3);_viewContainerRef=h(Yr$1);_mediaMatcher=h(oc);_document=h(O$1);_renderer=h(ai$4);_animationsDisabled=so$1();_defaultOptions=h(mt$1,{optional:true});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=false;_disabled=false;_tooltipClass;_viewInitialized=false;_pointerExitEventsInitialized=false;_tooltipComponent=lt$1;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=false;_dirSubscribed=false;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=nW(t),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled}set disabled(t){let e=nW(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=fM(t);}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=fM(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e);}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z$2;_isDestroyed=false;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=ft$1;}ngAfterViewInit(){this._viewInitialized=true,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Er(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t);}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new Ft$5(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Er(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t);}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()));}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t);}_isTooltipVisible(){return !!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&n._origin instanceof ue$2)return this._overlayRef;this._detach();}let e=this._injector.get(U$2).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${at$1}`,o=Ht$3(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return o.positionChanges.pipe(Er(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=jt$2(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(pt$1)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Er(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Er(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Er(this._destroyed)).subscribe(n=>{n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=true,this._dir.change.pipe(Er(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(I$2(I$2({},i.main),o.main)),this._addOffset(I$2(I$2({},i.fallback),o.fallback))]);}_addOffset(t){let e=ut$1,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(i.originX,i.originY);return {main:i,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(i.overlayX,i.overlayY);return {main:i,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Zl(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck());}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,n;if(e==="center"?this._dir&&this._dir.value==="rtl"?n=i==="end"?"left":"right":n=i==="start"?"left":"right":n=e==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let p=this._overlayRef;if(p){let w=`${this._cssClassPrefix}-${at$1}-`;p.removePanelClass(w+this._currentPosition),p.addPanelClass(w+n);}this._currentPosition=n;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i);},this._defaultOptions?.touchLongPressShowDelay??o);})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e);}));}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=true,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide();}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide();}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};this._addListener("touchend",t),this._addListener("touchcancel",t);}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,_t$1));}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?true:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:false}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent";}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=true,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||Zl({write:()=>{this._ariaDescriptionPending=false,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!eb(t):true;static \u0275fac=function(e){return new(e||s)};static \u0275dir=rt$2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&It$7("mat-mdc-tooltip-disabled",i.disabled);},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return s})(),lt$1=(()=>{class s{_changeDetectorRef=h(Ly);_elementRef=h(ue$2);_isMultiline=false;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=so$1();_tooltip;_closeOnInteraction=false;_isVisible=false;_onHide=new Z$2;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(true),this._showTimeoutId=void 0;},t);}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(false),this._hideTimeoutId=void 0;},t);}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(false));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>gt$1&&t.width>=yt$2}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(t){t?this._closeOnInteraction=true:this.isVisible()||this._onHide.next();}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(e);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=true);}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=xe$1({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&ry(dt$1,7),e&2){let o;gC(o=yC())&&(i._tooltip=o.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&ey("mouseleave",function(n){return i._handleMouseLeave(n)});},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(dn$3(0,"div",1,0),ty("animationend",function(n){return i._handleAnimationEnd(n)}),dn$3(2,"div",2),VC(3),fn$5()()),e&2&&(di$3(i.tooltipClass),It$7("mdc-tooltip--multiline",i._isMultiline),ri$3(3),hy(i.message));},styles:[`.mat-mdc-tooltip {
|
|
2684
2684
|
position: relative;
|
|
2685
2685
|
transform: scale(0);
|
|
2686
2686
|
display: inline-flex;
|
|
@@ -2886,7 +2886,7 @@ div.mat-mdc-select-panel {
|
|
|
2886
2886
|
transform: translate(-50%, -50%);
|
|
2887
2887
|
cursor: pointer;
|
|
2888
2888
|
}
|
|
2889
|
-
`],encapsulation:2})}return n})(),ai$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[HW,Wr,jt,wt$1]})}return n})();var _t=class n extends se$1{itemsPerPageLabel="Items per page";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(d,e,t)=>{if(t===0||e===0)return `0 of ${t}`;let i=d*e,a=Math.min(i+e,t);return `${i+1} \u2013 ${a} of ${t}`};static \u0275fac=(()=>{let d;return function(t){return (d||(d=pm(n)))(t||n)}})();static \u0275prov=M({token:n,factory:n.\u0275fac})};var zt$2=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Et$2=["mat-icon, [matMenuItemIcon]","*"];function Ft$2(n,d){n&1&&(rh(),ma(0,"svg",2),Yg(1,"polygon",3),Id());}var At$2=["*"];function Bt$2(n,d){if(n&1){let e=aC();dn$3(0,"div",0),ty("click",function(){Wp(e);let i=pC();return Gp(i.closed.emit("click"))})("animationstart",function(i){Wp(e);let a=pC();return Gp(a._onAnimationStart(i.animationName))})("animationend",function(i){Wp(e);let a=pC();return Gp(a._onAnimationDone(i.animationName))})("animationcancel",function(i){Wp(e);let a=pC();return Gp(a._onAnimationDone(i.animationName))}),dn$3(1,"div",1),ot$3(2),fn$5()();}if(n&2){let e=pC();di$3(e._classList),It$7("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Xg("id",e.panelId),ir$1("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var me$2=new y("MAT_MENU_PANEL"),le$2=(()=>{class n{_elementRef=h(ue$2);_document=h(O$1);_focusMonitor=h(uf);_parentMenu=h(me$2,{optional:true});_changeDetectorRef=h(Ly);role="menuitem";disabled=false;disableRipple=false;_hovered=new Z$2;_focused=new Z$2;_highlighted=false;_triggersSubmenu=false;constructor(){h(Ht$4).load(pb),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&ey("click",function(o){return i._checkDisabled(o)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(ir$1("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),It$7("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",wt$6],disableRipple:[2,"disableRipple","disableRipple",wt$6]},exportAs:["matMenuItem"],ngContentSelectors:Et$2,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(sr$1(zt$2),ot$3(0),ma(1,"span",0),ot$3(2,1),Id(),Yg(3,"div",1),ci$3(4,Ft$2,2,0,":svg:svg",2)),t&2&&(ri$3(3),Zg("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),ri$3(),ui$2(i._triggersSubmenu?4:-1));},dependencies:[mW],encapsulation:2})}return n})();var Lt$1=new y("MatMenuContent");var Nt$2=new y("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),re="_mat-menu-enter",G$1="_mat-menu-exit",U=(()=>{class n{_elementRef=h(ue$2);_changeDetectorRef=h(Ly);_injector=h(K$4);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=so$1();_allItems;_directDescendantItems=new Qn$2;_classList={};_panelAnimationState="void";_animationDone=new Z$2;_isAnimating=Qe$3(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,i=I$2({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{i[a]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{i[a]=true;}),this._elementRef.nativeElement.className=""),this._classList=i;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new Oe$4;close=this.closed;panelId=h(mf).getId("mat-menu-panel-");constructor(){let e=h(Nt$2);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new hf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(e=>Jb(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),a=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[a]&&!i[a].disabled?t.setActiveItem(a):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(t=>Jb(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:eb(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Zl(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=P(I$2({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===G$1;(t||e===re)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===re||e===G$1)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(G$1),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?re:G$1);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Ac(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-menu"]],contentQueries:function(t,i,a){if(t&1&&ny(a,Lt$1,5)(a,le$2,5)(a,le$2,4),t&2){let o;gC(o=yC())&&(i.lazyContent=o.first),gC(o=yC())&&(i._allItems=o),gC(o=yC())&&(i.items=o);}},viewQuery:function(t,i){if(t&1&&ry(Wr$1,5),t&2){let a;gC(a=yC())&&(i.templateRef=a.first);}},hostVars:3,hostBindings:function(t,i){t&2&&ir$1("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",wt$6],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:wt$6(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ey([{provide:me$2,useExisting:n}])],ngContentSelectors:At$2,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(sr$1(),zg(0,Bt$2,3,12,"ng-template"));},styles:[`mat-menu {
|
|
2889
|
+
`],encapsulation:2})}return n})(),ai$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[HW,Wr,jt,wt$1]})}return n})();var _t=class n extends se$1{itemsPerPageLabel="Items per page";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(d,e,t)=>{if(t===0||e===0)return `0 of ${t}`;let i=d*e,a=Math.min(i+e,t);return `${i+1} \u2013 ${a} of ${t}`};static \u0275fac=(()=>{let d;return function(t){return (d||(d=pm(n)))(t||n)}})();static \u0275prov=M({token:n,factory:n.\u0275fac})};var zt$2=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Et$2=["mat-icon, [matMenuItemIcon]","*"];function Ft$2(n,d){n&1&&(rh(),ma(0,"svg",2),Yg(1,"polygon",3),Id());}var At$2=["*"];function Bt$2(n,d){if(n&1){let e=aC();dn$3(0,"div",0),ty("click",function(){Wp(e);let i=pC();return Gp(i.closed.emit("click"))})("animationstart",function(i){Wp(e);let a=pC();return Gp(a._onAnimationStart(i.animationName))})("animationend",function(i){Wp(e);let a=pC();return Gp(a._onAnimationDone(i.animationName))})("animationcancel",function(i){Wp(e);let a=pC();return Gp(a._onAnimationDone(i.animationName))}),dn$3(1,"div",1),ot$3(2),fn$5()();}if(n&2){let e=pC();di$3(e._classList),It$7("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Xg("id",e.panelId),ir$1("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var me$2=new y("MAT_MENU_PANEL"),le$2=(()=>{class n{_elementRef=h(ue$2);_document=h(O$1);_focusMonitor=h(uf);_parentMenu=h(me$2,{optional:true});_changeDetectorRef=h(Ly);role="menuitem";disabled=false;disableRipple=false;_hovered=new Z$2;_focused=new Z$2;_highlighted=false;_triggersSubmenu=false;constructor(){h(Ht$4).load(pb),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&ey("click",function(o){return i._checkDisabled(o)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(ir$1("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),It$7("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",wt$6],disableRipple:[2,"disableRipple","disableRipple",wt$6]},exportAs:["matMenuItem"],ngContentSelectors:Et$2,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(sr$1(zt$2),ot$3(0),ma(1,"span",0),ot$3(2,1),Id(),Yg(3,"div",1),ci$3(4,Ft$2,2,0,":svg:svg",2)),t&2&&(ri$3(3),Zg("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),ri$3(),ui$2(i._triggersSubmenu?4:-1));},dependencies:[mW],encapsulation:2})}return n})();var Lt$1=new y("MatMenuContent");var Nt$2=new y("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),re="_mat-menu-enter",G$1="_mat-menu-exit",U=(()=>{class n{_elementRef=h(ue$2);_changeDetectorRef=h(Ly);_injector=h(K$3);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=so$1();_allItems;_directDescendantItems=new Qn$2;_classList={};_panelAnimationState="void";_animationDone=new Z$2;_isAnimating=Qe$3(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,i=I$2({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{i[a]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{i[a]=true;}),this._elementRef.nativeElement.className=""),this._classList=i;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new Oe$4;close=this.closed;panelId=h(mf).getId("mat-menu-panel-");constructor(){let e=h(Nt$2);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new hf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(e=>Jb(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),a=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[a]&&!i[a].disabled?t.setActiveItem(a):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(t=>Jb(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:eb(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Zl(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=P(I$2({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===G$1;(t||e===re)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===re||e===G$1)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(G$1),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?re:G$1);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Ac(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe$1({type:n,selectors:[["mat-menu"]],contentQueries:function(t,i,a){if(t&1&&ny(a,Lt$1,5)(a,le$2,5)(a,le$2,4),t&2){let o;gC(o=yC())&&(i.lazyContent=o.first),gC(o=yC())&&(i._allItems=o),gC(o=yC())&&(i.items=o);}},viewQuery:function(t,i){if(t&1&&ry(Wr$1,5),t&2){let a;gC(a=yC())&&(i.templateRef=a.first);}},hostVars:3,hostBindings:function(t,i){t&2&&ir$1("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",wt$6],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:wt$6(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ey([{provide:me$2,useExisting:n}])],ngContentSelectors:At$2,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(sr$1(),zg(0,Bt$2,3,12,"ng-template"));},styles:[`mat-menu {
|
|
2890
2890
|
display: none;
|
|
2891
2891
|
}
|
|
2892
2892
|
|
|
@@ -3078,8 +3078,8 @@ div.mat-mdc-select-panel {
|
|
|
3078
3078
|
position: absolute;
|
|
3079
3079
|
pointer-events: none;
|
|
3080
3080
|
}
|
|
3081
|
-
`],encapsulation:2})}return n})(),Vt$2=new y("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=h(K$4);return ()=>It$6(n)}});var k=new WeakMap,Ht$1=(()=>{class n{_canHaveBackdrop;_element=h(ue$2);_viewContainerRef=h(Yr$1);_menuItemInstance=h(le$2,{optional:true,self:true});_dir=h(iM,{optional:true});_focusMonitor=h(uf);_ngZone=h(j$1);_injector=h(K$4);_scrollStrategy=h(Vt$2);_changeDetectorRef=h(Ly);_animationsDisabled=so$1();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=q$3.EMPTY;_menuCloseSubscription=q$3.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=h(me$2,{optional:true});this._parentMaterialMenu=t instanceof U?t:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&k.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let i=k.get(t);k.set(t,this),i&&i!==this&&i._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),u=o.positionStrategy;this._setPosition(t,u),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??false,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),t instanceof U&&(t._setIsOpen(true),t._directDescendantItems.changes.pipe(Er(t.close)).subscribe(()=>{u.withLockedPosition(false).reapplyLastPosition(),u.withLockedPosition(true);}));}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}_destroyMenu(e){let t=this._overlayRef,i=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),i instanceof U&&this._ownsMenu(i)?(this._pendingRemoval=i._animationDone.pipe(Ge$3(1)).subscribe(()=>{t.detach(),k.has(i)||i.lazyContent?.detach();}),i._setIsOpen(false)):(t.detach(),i?.lazyContent?.detach()),i&&this._ownsMenu(i)&&k.delete(i),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=jt$2(this._injector,t),this._overlayRef.keydownEvents().subscribe(i=>{this._menu instanceof U&&this._menu._handleKeydown(i);});}return this._overlayRef}_getOverlayConfig(e){return new q$2({positionStrategy:Ht$3(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{this._ngZone.run(()=>{let a=i.connectionPair.overlayX==="start"?"after":"before",o=i.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o);});});}_setPosition(e,t){let[i,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,u]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[W,Q]=[o,u],[K,$]=[i,a],D=0;if(this._triggersSubmenu()){if($=i=e.xPosition==="before"?"start":"end",a=K=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let ce=this._parentMaterialMenu.items.first;this._parentInnerPadding=ce?ce._getHostElement().offsetTop:0;}D=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(W=o==="top"?"bottom":"top",Q=u==="top"?"bottom":"top");t.withPositions([{originX:i,originY:W,overlayX:K,overlayY:o,offsetY:D},{originX:a,originY:W,overlayX:$,overlayY:o,offsetY:D},{originX:i,originY:Q,overlayX:K,overlayY:u,offsetY:-D},{originX:a,originY:Q,overlayX:$,overlayY:u,offsetY:-D}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:qe$3(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Tt$6(o=>this._menuOpen&&o!==this._menuItemInstance)):qe$3();return Jb(e,i,a,t)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $$2(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return k.get(e)===this}_triggerIsAriaDisabled(){return wt$6(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){YI();};static \u0275dir=rt$2({type:n})}return n})(),Ai$1=(()=>{class n extends Ht$1{_cleanupTouchstart;_hoverSubscription=q$3.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new Oe$4;onMenuOpen=this.menuOpened;menuClosed=new Oe$4;onMenuClose=this.menuClosed;constructor(){super(true);let e=h(ai$4);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{Mi$2(t)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Si$2(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&ey("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),t&2&&ir$1("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Kr$1]})}return n})();var Bi$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[mb,di$2,no$1,Vt$5]})}return n})();var f="primary",ze$1=Symbol("RouteTitle"),Bt$1=class Bt{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function ie(t){return new Bt$1(t)}function zt$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function tn$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return zt$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !zt$1(o,t.slice(0,o.length),c)||!zt$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function st(t){return new Promise((n,e)=>{t.pipe(iD()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Wn(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!F(t[e],n[e]))return false;return true}function F(t,n){let e=t?Vt$1(t):void 0,r=n?Vt$1(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!rn$1(t[i],n[i]))return false;return true}function Vt$1(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Qn(t){return t.length>0?t[t.length-1]:null}function se(t){return Qb(t)?t:Aa(t)?at$3(Promise.resolve(t)):qe$3(t)}function nn$1(t){return Qb(t)?st(t):Promise.resolve(t)}var Kn={exact:an,subset:sn},on$1={exact:Yn,subset:Zn,ignored:()=>true},or={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_e={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ar(t,n,e){let r=t instanceof I?t:n.parseUrl(t);return lT(()=>Gt$1(n.lastSuccessfulNavigation()?.finalUrl??new I,r,I$2(I$2({},_e),e)))}function Gt$1(t,n,e){return Kn[e.paths](t.root,n.root,e.matrixParams)&&on$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Yn(t,n){return F(t,n)}function an(t,n,e){if(!ne(t.segments,n.segments)||!it(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!an(t.children[r],n.children[r],e))return false;return true}function Zn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rn$1(t[e],n[e]))}function sn(t,n,e){return cn$1(t,n,n.segments,e)}function cn$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ne(i,e)||n.hasChildren()||!it(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!it(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!sn(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !ne(t.segments,i)||!it(t.segments,i,r)||!t.children[f]?false:cn$1(t.children[f],n,o,r)}}function it(t,n,e){return n.every((r,i)=>on$1[e](t[i].parameters,r.parameters))}var I=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return ei.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ot(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return ln$1(this)}};function Jn(t,n){return ne(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Xn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)));}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new Qt$1(n);return new I(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ee(n.root,true)}`,r=ni(n.queryParams),i=typeof n.fragment=="string"?`#${ti(n.fragment)}`:"";return `${e}${r}${i}`}},ei=new Y;function ot(t){return t.segments.map(n=>ln$1(n)).join("/")}function Ee(t,n){if(!t.hasChildren())return ot(t);if(n){let e=t.children[f]?Ee(t.children[f],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ee(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Xn(t,(r,i)=>i===f?[Ee(t.children[f],false)]:[`${i}:${Ee(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ot(t)}/${e[0]}`:`${ot(t)}/(${e.join("//")})`}}function un(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rt(t){return un(t).replace(/%3B/gi,";")}function ti(t){return encodeURI(t)}function Wt$1(t){return un(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function Qr(t){return at(t.replace(/\+/g,"%20"))}function ln$1(t){return `${Wt$1(t.path)}${ri(t.parameters)}`}function ri(t){return Object.entries(t).map(([n,e])=>`;${Wt$1(n)}=${Wt$1(e)}`).join("")}function ni(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${rt(e)}=${rt(i)}`).join("&"):`${rt(e)}=${rt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ii=/^[^\/()?;#]+/;function Ht(t){let n=t.match(ii);return n?n[0]:""}var oi=/^[^\/()?;=#]+/;function ai(t){let n=t.match(oi);return n?n[0]:""}var si=/^[^=?&#]+/;function ci(t){let n=t.match(si);return n?n[0]:""}var ui=/^[^&#]+/;function li(t){let n=t.match(ui);return n?n[0]:""}var Qt$1=class Qt{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new g(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m(e,r)),i}parseSegment(){let n=Ht(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new g(4009,false);return this.capture(n),new K(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ai(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Ht(this.remaining);i&&(r=i,this.capture(r));}n[at(e)]=at(r);}parseQueryParam(n){let e=ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=li(this.remaining);a&&(r=a,this.capture(r));}let i=Qr(e),o=Qr(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ht(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new g(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f);let c=this.parseChildren(e+1);r[a??f]=Object.keys(c).length===1&&c[f]?c[f]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new g(4011,false)}};function hn$1(t){return t.segments.length>0?new m([],{[f]:t}):t}function dn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=dn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return hi(e)}function hi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof I}function fn$1(t,n,e=null,r=null,i=new Y){let o=pn$1(t);return gn$1(o,n,e,r,i)}function pn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=hn$1(r);return n??i}function gn$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Ft$1(o,o,o,e,r,i);let a=di(n);if(a.toRoot())return Ft$1(o,o,new m([],{}),e,r,i);let c=fi(a,o,t),s=c.processChildren?Ne$1(c.segmentGroup,c.index,a.commands):mn$1(c.segmentGroup,c.index,a.commands);return Ft$1(o,c.segmentGroup,s,e,r,i)}function ct(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ue(t){return typeof t=="object"&&t!=null&&t.outlets}function Kr(t,n,e){t||="\u0275";let r=new I;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Ft$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>Kr(u,v,o)):Kr(u,h,o);let c;t===n?c=e:c=vn$1(t,n,e);let s=hn$1(dn(c));return new I(s,a,i)}function vn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=vn$1(o,n,e);}),new m(t.segments,r)}var ut=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ct(r[0]))throw new g(4003,false);let i=r.find(Ue);if(i&&i!==Qn(r))throw new g(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ut(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new ut(e,n,r)}var he=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function fi(t,n,e){if(t.isAbsolute)return new he(n,true,0);if(!e)return new he(n,false,NaN);if(e.parent===null)return new he(e,true,0);let r=ct(t.commands[0])?0:1,i=e.segments.length-1+r;return pi(e,i,t.numberOfDoubleDots)}function pi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new g(4005,false);i=r.segments.length;}return new he(r,false,i-o)}function gi(t){return Ue(t[0])?t[0].outlets:{[f]:t}}function mn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Ne$1(t,n,e);let r=vi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m(t.segments.slice(r.pathIndex),t.children),Ne$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Kt$1(t,n,e):r.match?Ne$1(t,0,i):Kt$1(t,n,e)}function Ne$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=gi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Ne$1(t.children[f],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=mn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function vi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Ue(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!Zr(s,u,a))return o;r+=2;}else {if(!Zr(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function Kt$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ue(o)){let s=mi(o.outlets);return new m(r,s)}if(i===0&&ct(e[0])){let s=t.segments[n];r.push(new K(s.path,Yr(e[0]))),i++;continue}let a=Ue(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&ct(c)?(r.push(new K(a,Yr(c))),i+=2):(r.push(new K(a,{})),i++);}return new m(r,{})}function mi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Kt$1(new m([],{}),0,r));}),n}function Yr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Zr(t,n,e){return t==e.path&&F(n,e.parameters)}var Me="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),_=class{id;url;constructor(n,e){this.id=n,this.url=e;}},oe=class extends _{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},z=class extends _{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Oe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Oe||{}),x=class extends _{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yn$1(t){return t instanceof x&&(t.code===w.Redirect||t.code===w.SupersededByNewNavigation)}var V=class extends _{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},ae=class extends _{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe$1=class Pe extends _{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends _{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends _{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},dt=class extends _{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends _{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt$1=class Rt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var fe=class{},Le=class{},pe$1=class pe{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function yi(t){return !(t instanceof fe)&&!(t instanceof pe$1)&&!(t instanceof Le)}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Re$1(this.rootInjector);}},Re$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(C$1(ae$3))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Yt$1(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Yt$1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Zt$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Zt$1(n,this._root).map(e=>e.value)}};function Yt$1(t,n){if(t===n.value)return n;for(let e of n.children){let r=Yt$1(t,e);if(r)return r}return null}function Zt$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=Zt$1(t,e);if(r.length)return r.unshift(n),r}return []}var D=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function le$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var je=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n);}toString(){return this.snapshot.toString()}};function Rn(t,n){let e=Ri(t,n),r=new Cn$3([new K("",{})]),i=new Cn$3({}),o=new Cn$3({}),a=new Cn$3({}),c=new Cn$3(""),s=new G(r,i,a,c,o,f,t,e.root);return s.snapshot=e.root,new je(new D(s,[]),e)}function Ri(t,n){let e={},r={},i={},a=new ge$1([],e,i,"",r,f,t,null,{},n);return new xe("",new D(a,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(A$1(u=>u[ze$1]))??qe$3(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A$1(n=>ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A$1(n=>ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Si="always";function sr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:I$2(I$2({},n.params),t.params),data:I$2(I$2({},n.data),t.data),resolve:I$2(I$2(I$2(I$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:I$2({},t.params),data:I$2({},t.data),resolve:I$2(I$2({},t.data),t._resolvedData??{})},i&&Cn$1(i)&&(r.resolve[ze$1]=i.title),r}var ge$1=class ge{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze$1]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},xe=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e);}toString(){return Sn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e));}function Sn(t){let n=t.children.length>0?` { ${t.children.map(Sn).join(", ")} } `:"";return `${t.value}${n}`}function qt$1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Wn(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function Jt(t,n){let e=F(t.params,n.params)&&Jn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Jt(t.parent,n.parent))}function Cn$1(t){return typeof t.title=="string"||t.title===null}var wn=new y(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new Oe$4;deactivateEvents=new Oe$4;attachEvents=new Oe$4;detachEvents=new Oe$4;routerOutletData=Oy();parentContexts=h(Re$1);location=h(Yr$1);changeDetector=h(Ly);inputBinder=h(He,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new g(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new g(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new Xt$1(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=rt$2({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ya]})}return t})(),Xt$1=class Xt{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===G?this.route:n===Re$1?this.childContexts:n===wn?this.outletData:this.parent.get(n,e)}},He=new y(""),bn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ec([this.options.queryParams?r.queryParams:qe$3({}),r.params,r.data]).pipe(Nc(([o,a,c],s)=>(c=I$2(I$2(I$2({},o),a),c),s===0?qe$3(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=bU(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){YI();};static \u0275prov=M({token:t,factory:t.\u0275fac})}return t})(),lr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe$1({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yg(0,"router-outlet");},dependencies:[ur],encapsulation:2,changeDetection:1})}return t})();function hr(t){let n=t.children&&t.children.map(hr),e=n?P(I$2({},t),{children:n}):I$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=lr),e}function Ci(t,n,e){let r=new Set,i=ke(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new je(i,n)}}function ke(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=wi(t,n,e,r);return new D(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>ke(t,s,void 0,r)),c}}let i=bi(n.value);r.add(i);let o=n.children.map(a=>ke(t,a,void 0,r));return new D(i,o)}}function wi(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return ke(t,i,o,r);return ke(t,i,void 0,r)})}function bi(t){return new G(new Cn$3(t.url),new Cn$3(t.params),new Cn$3(t.queryParams),new Cn$3(t.fragment),new Cn$3(t.data),t.outlet,t.component,t)}var ve=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},In="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=An(false,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function An(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[In]=true,e.cancellationCode=n,e}function Ii(t){return En(t)&&Z(t.url)}function En(t){return !!t&&t[In]}var er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),qt$1(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new mt(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(qt$1(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),qt$1(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},de$1=class de{component;route;constructor(n,e){this.component=n,this.route=e;}};function Ai(t,n,e){let r=t._root,i=n?n._root:null;return Te$1(r,i,e,[r.value])}function Ei(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Se(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!bD(t)?t:n.get(t):r}function Te$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=le$1(n);return t.children.forEach(a=>{Ti(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>De(c,e.getContext(a),i)),i}function Ti(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ni(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Te$1(t,n,c?c.children:null,r,i):Te$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new de$1(c.outlet.component,a));}else a&&De(n,c,i),i.canActivateChecks.push(new bt(r)),o.component?Te$1(t,null,c?c.children:null,r,i):Te$1(t,null,e,r,i);return i}function Ni(t,n,e){if(typeof e=="function")return Nr(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ne(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ne(t.url,n.url)||!F(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Jt(t,n)||!F(t.queryParams,n.queryParams);default:return !Jt(t,n)}}function De(t,n,e){let r=le$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?De(a,n.children.getContext(o),e):De(a,null,e):De(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new de$1(n.outlet.component,i)):e.canDeactivateChecks.push(new de$1(null,i)):e.canDeactivateChecks.push(new de$1(null,i));}function Fe$1(t){return typeof t=="function"}function Mi(t){return typeof t=="boolean"}function Di(t){return t&&Fe$1(t.canLoad)}function _i(t){return t&&Fe$1(t.canActivate)}function Ui(t){return t&&Fe$1(t.canActivateChild)}function Oi(t){return t&&Fe$1(t.canDeactivate)}function Pi(t){return t&&Fe$1(t.canMatch)}function Tn(t){return t instanceof go$1||t?.name==="EmptyError"}var nt=Symbol("INITIAL_VALUE");function me$1(){return Nc(t=>Ec(t.map(n=>n.pipe(Ge$3(1),Ac(nt)))).pipe(A$1(n=>{for(let e of n)if(e!==true){if(e===nt)return nt;if(e===false||Li(e))return e}return true}),Tt$6(n=>n!==nt),Ge$3(1)))}function Li(t){return Z(t)||t instanceof ve}function Nn(t){return t.aborted?qe$3(void 0).pipe(Ge$3(1)):new k$1(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Mn(t){return Er(Nn(t))}function ji(t){return lt$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?qe$3(P(I$2({},n),{guardsResult:true})):xi(o,e,r).pipe(lt$3(a=>a&&Mi(a)?ki(e,i,t):qe$3(a)),A$1(a=>P(I$2({},n),{guardsResult:a})))})}function xi(t,n,e){return at$3(t).pipe(lt$3(r=>qi(r.component,r.route,e,n)),iD(r=>r!==true,true))}function ki(t,n,e){return at$3(n).pipe(Tc(r=>qt$3(zi(r.route.parent,e),$i(r.route,e),Fi(t,r.path),Hi(t,r.route))),iD(r=>r!==true,true))}function $i(t,n){return t!==null&&n&&n(new yt(t)),qe$3(true)}function zi(t,n){return t!==null&&n&&n(new vt(t)),qe$3(true)}function Hi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return qe$3(true);let r=e.map(i=>Xb(()=>{let o=n._environmentInjector,a=Se(i,o),c=_i(a)?a.canActivate(n,t):Nr(o,()=>a(n,t));return se(c).pipe(iD())}));return qe$3(r).pipe(me$1())}function Fi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>Xb(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Se(c,s),h=Ui(u)?u.canActivateChild(e,t):Nr(s,()=>u(e,t));return se(h).pipe(iD())});return qe$3(a).pipe(me$1())}));return qe$3(i).pipe(me$1())}function qi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return qe$3(true);let o=i.map(a=>{let c=n._environmentInjector,s=Se(a,c),u=Oi(s)?s.canDeactivate(t,n,e,r):Nr(c,()=>s(t,n,e,r));return se(u).pipe(iD())});return qe$3(o).pipe(me$1())}function Bi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return qe$3(true);let a=o.map(c=>{let s=Se(c,t),u=Di(s)?s.canLoad(n,e):Nr(t,()=>s(n,e)),h=se(u);return i?h.pipe(Mn(i)):h});return qe$3(a).pipe(me$1(),Dn(r))}function Dn(t){return Sb(zt$6(n=>{if(typeof n!="boolean")throw wt(t,n)}),A$1(n=>n===true))}function Vi(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return qe$3(true);let c=a.map(s=>{let u=Se(s,t),h=Pi(u)?u.canMatch(n,e,i):Nr(t,()=>u(n,e,i));return se(h).pipe(Mn(o))});return qe$3(c).pipe(me$1(),Dn(r))}var B=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},$e=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Gi(t){throw new g(4e3,false)}function Wi(t){throw An(false,w.GuardRejected)}var tr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw Gi(`${n.redirectTo}`);i=i.children[f];}}async applyRedirectCommands(n,e,r,i,o){let a=await Qi(e,i,o);if(a instanceof I)throw new $e(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new $e(c);return c}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new I(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new g(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function Qi(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return st(se(Nr(e,()=>r(n))))}function Ki(t,n){return t.providers&&!t._injector&&(t._injector=jg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function $(t){return t.outlet||f}function Yi(t,n){let e=t.filter(r=>$(r)===n);return e.push(...t.filter(r=>$(r)!==n)),e}var rr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _n$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Zi(t,n,e,r,i,o,a){let c=Un(t,n,e);if(!c.matched)return qe$3(c);let s=_n$1(o(c));return r=Ki(n,r),Vi(r,n,e,i,s,a).pipe(A$1(u=>u===true?c:I$2({},rr)))}function Un(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?I$2({},rr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||tn$1)(e,t,n);if(!i)return I$2({},rr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?I$2(I$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Jr(t,n,e,r,i){return e.length>0&&eo(t,e,r,i)?{segmentGroup:new m(n,Xi(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&to(t,e,r)?{segmentGroup:new m(t.segments,Ji(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Ji(t,n,e,r){let i={};for(let o of e)if(At$1(t,n,o)&&!r[$(o)]){let a=new m([],{});i[$(o)]=a;}return I$2(I$2({},r),i)}function Xi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&$(r)!==f){let i=new m([],{});e[$(r)]=i;}return e}function eo(t,n,e,r){return e.some(i=>!At$1(t,n,i)||!($(i)!==f)?false:!(r!==void 0&&$(i)===r))}function to(t,n,e){return e.some(r=>At$1(t,n,r))}function At$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function ro(t,n,e){return n.length===0&&!t.children[e]}var nr=class{};async function no(t,n,e,r,i,o,a,c){return new ir(t,n,e,r,i,a,o,c).recognize()}var io=31,ir=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new tr(this.urlSerializer,this.urlTree);}noMatchError(n){return new g(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Jr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new D(r,e),o=new xe("",i),a=fn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new ge$1([],Object.freeze({}),Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof B?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof D?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],h=Yi(e,s),v=await this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=On(a);return oo(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof B||Tn(u))continue;throw u}if(ro(r,i,o))return new nr;throw new B(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if($(r)!==a&&(a===f||!At$1(i,o,r)))throw new B(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new B(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Un(e,i,o);if(!s)throw new B(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>io&&(this.allowRedirects=false));let A=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let k=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,_n$1(A),n),J=await this.applyRedirects.lineralizeSegments(i,k);return this.processSegment(n,r,e,J.concat(g),a,false,c)}createSnapshot(n,e,r,i,o){let a=new ge$1(r,i,Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,so(e),$(e),e.component??e._loadedComponent??null,e,co(e),n),c=sr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=X=>this.createSnapshot(n,r,X.consumedSegments,X.parameters,a),s=await st(Zi(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new B(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:A}=s,k=this.createSnapshot(n,r,g,v,a),{segmentGroup:J,slicedSegments:we}=Jr(e,g,A,u,o);if(we.length===0&&J.hasChildren()){let X=await this.processChildren(h,u,J,k);return new D(k,X)}if(u.length===0&&we.length===0)return new D(k,[]);let Mt=$(r)===o,Be=await this.processSegment(h,u,J,we,Mt?f:o,true,k);return new D(k,Be instanceof D?[Be]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await st(Bi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Wi()}return {routes:[],injector:n}}};function oo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet));}function ao(t){let n=t.value.routeConfig;return n&&n.path===""}function On(t){let n=[],e=new Set;for(let r of t){if(!ao(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=On(r.children);n.push(new D(r.value,i));}return n.filter(r=>!e.has(r))}function so(t){return t.data||{}}function co(t){return t.resolve||{}}function uo(t,n,e,r,i,o,a){return lt$3(async c=>{let{state:s,tree:u}=await no(t,n,e,r,c.extractedUrl,i,o,a);return P(I$2({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function lo(t){return lt$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return qe$3(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of Pn(c))o.add(s);let a=0;return at$3(o).pipe(Tc(c=>i.has(c)?ho(c,e,t):(c.data=sr(c,c.parent,t).resolve,qe$3(void 0))),zt$6(()=>a++),sD(1),lt$3(c=>a===o.size?qe$3(n):wn$1))})}function Pn(t){let n=t.children.map(e=>Pn(e)).flat();return [t,...n]}function ho(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Cn$1(r)&&(i[ze$1]=r.title),Xb(()=>(t.data=sr(t,t.parent,e).resolve,fo(i,t,n).pipe(A$1(o=>(t._resolvedData=o,t.data=I$2(I$2({},t.data),o),null)))))}function fo(t,n,e){let r=Vt$1(t);if(r.length===0)return qe$3({});let i={};return at$3(r).pipe(lt$3(o=>po(t[o],n,e).pipe(iD(),zt$6(a=>{if(a instanceof ve)throw wt(new Y,a);i[o]=a;}))),sD(1),A$1(()=>i),ke$4(o=>Tn(o)?wn$1:ut$4(o)))}function po(t,n,e){let r=n._environmentInjector,i=Se(t,r),o=i.resolve?i.resolve(n,e):Nr(r,()=>i(n,e));return se(o)}function Xr(t){return Nc(n=>{let e=t(n);return e?at$3(e).pipe(A$1(()=>n)):qe$3(n)})}var dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[ze$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ln)})}return t})(),Ln=(()=>{class t extends dr{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(C$1(g8))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ce=new y("",{factory:()=>({})}),qe=new y(""),jn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(aT);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await nn$1(Nr(e,()=>r.loadComponent())),a=await kn(pU(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await xn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();async function xn(t,n,e,r){let i=await nn$1(Nr(e,()=>t.loadChildren())),o=await kn(pU(i)),a;o instanceof Pg||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(qe,[],{optional:true,self:true}).flat()),{routes:s.map(hr),injector:c,factory:h}}async function kn(t){return t}var Et$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(go)})}return t})(),go=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),$n=new y("");var zn=new y(""),vo=()=>{},Hn=new y(""),Fn=(()=>{class t{currentNavigation=Qe$3(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Qe$3(null);events=new Z$2;transitionAbortWithErrorSubject=new Z$2;configLoader=h(jn);environmentInjector=h(ae$3);destroyRef=h(Ue$3);urlSerializer=h(ye);rootContexts=h(Re$1);location=h(Wy);inputBindingEnabled=h(He,{optional:true})!==null;titleStrategy=h(dr);options=h(Ce,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Si;urlHandlingStrategy=h(Et$1);createViewTransition=h($n,{optional:true});navigationErrorHandler=h(Hn,{optional:true});activatedRouteInjectorFeature=h(zn,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>qe$3(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;pi$2(()=>{this.transitions?.next(P(I$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Cn$3(null),this.transitions.pipe(Tt$6(r=>r!==null),Nc(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return qe$3(r).pipe(Nc(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),wn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?P(I$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new V(s.id,this.urlSerializer.serialize(s.rawUrl),"",Oe.IgnoredSameUrlNavigation)),s.resolve(false),wn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return qe$3(s).pipe(Nc(g=>(this.events.next(new oe(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?wn$1:Promise.resolve(g))),uo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),zt$6(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(A=>(A.finalUrl=g.urlAfterRedirects,A)),this.events.next(new Le);}),Nc(g=>at$3(r.routesRecognizeHandler.deferredHandle??qe$3(void 0)).pipe(A$1(()=>g))),zt$6(()=>{let g=new Pe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:A,source:k,restoredState:J,extras:we}=s,Mt=new oe(g,this.urlSerializer.serialize(A),k,J);this.events.next(Mt);let Be=Rn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=P(I$2({},s),{targetSnapshot:Be,urlAfterRedirects:A,extras:P(I$2({},we),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(X=>(X.finalUrl=A,X)),qe$3(r)}else return this.events.next(new V(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Oe.IgnoredByUrlHandlingStrategy)),s.resolve(false),wn$1}),A$1(s=>{let u=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=P(I$2({},s),{guards:Ai(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),ji(s=>this.events.next(s)),Nc(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return wn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",w.GuardRejected),wn$1;if(s.guards.canActivateChecks.length===0)return qe$3(s);let h=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return wn$1;let v=false;return qe$3(s).pipe(lo(this.paramsInheritanceStrategy),zt$6({next:()=>{v=true;let g=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",w.NoDataFromResolver);}}))}),Xr(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let A=v._environmentInjector;g.push(this.configLoader.loadComponent(A,v.routeConfig).then(k=>{v.component=k;}));}for(let A of v.children)g.push(...u(A));return g},h=u(s.targetSnapshot.root);return h.length===0?qe$3(s):at$3(Promise.all(h).then(()=>s))}),Nc(s=>{let{newlyCreatedRoutes:u,state:h}=Ci(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=P(I$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),qe$3(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),Xr(()=>this.afterPreactivation()),Nc(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?at$3(h).pipe(A$1(()=>r)):qe$3(r)}),Ge$3(1),Nc(s=>{i=false,this.events.next(new fe);let u=r.beforeActivateHandler.deferredHandle;return u?at$3(u.then(()=>s)):qe$3(s)}),zt$6(s=>{new er(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=vo,u)),this.lastSuccessfulNavigation.set(pi$2(this.currentNavigation)),this.events.next(new z(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Er(Nn(a.signal).pipe(Tt$6(()=>!o&&i),zt$6(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",w.Aborted);}))),zt$6({complete:()=>{o=true;}}),Er(this.transitionAbortWithErrorSubject.pipe(zt$6(s=>{throw s}))),yr(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ke$4(s=>{if(o=true,en(r),this.destroyed)return r.resolve(false),wn$1;if(En(s))this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ii(s)?this.events.next(new pe$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new ae(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=Nr(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof ve){let{message:v,cancellationCode:g}=wt(this.urlSerializer,h);this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new pe$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return wn$1}))}))}cancelNavigationTransition(e,r,i){en(e);let o=new x(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=pi$2(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function mo(t){return t!==Me}function en(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var qn=new y("");var Bn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(yo)})}return t})(),It$1=class It{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},yo=(()=>{class t extends It$1{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Tt$1=(()=>{class t{urlSerializer=h(ye);options=h(Ce,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(Wy);urlHandlingStrategy=h(Et$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new I;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof I?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=Rn(null,h(ae$3));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ro)})}return t})(),Ro=(()=>{class t extends Tt$1{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof oe?this.updateStateMemento():e instanceof V?this.commitTransition(r):e instanceof Pe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof fe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof x&&!yn$1(e)?this.restoreHistory(r):e instanceof ae?this.restoreHistory(r,true):e instanceof z&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=I$2(I$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=I$2(I$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?I$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):I$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function fr(t,n){t.events.pipe(Tt$6(e=>e instanceof z||e instanceof x||e instanceof ae||e instanceof V),A$1(e=>e instanceof z||e instanceof V?0:(e instanceof x?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:false)?2:1),Tt$6(e=>e!==2),Ge$3(1)).subscribe(()=>{n();});}var ce$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=h(Wg);stateManager=h(Tt$1);options=h(Ce,{optional:true})||{};pendingTasks=h(Wn$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Fn);urlSerializer=h(ye);location=h(Wy);urlHandlingStrategy=h(Et$1);injector=h(ae$3);_events=new Z$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=h(Bn);injectorCleanup=h(qn,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(qe,{optional:true})?.flat()??[];componentInputBindingEnabled=!!h(He,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new q$3;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=pi$2(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof x&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof z)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof pe$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=I$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mo(i.source)},a);this.scheduleNavigation(c,Me,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Me,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=P(I$2({},o),{browserUrl:e})),i){let u=I$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(an$3)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pi$2(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=I$2(I$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=pn$1(g);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return gn$1(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Me,null,r)}navigate(e,r={skipLocationChange:false}){return So(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(At$7(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=I$2({},or):r===false?i=I$2({},_e):i=I$2(I$2({},_e),r),Z(e))return Gt$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Gt$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function So(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new g(4008,false)}var wo=(()=>{class t{router=h(ce$1);stateManager=h(Tt$1);fragment=Qe$3("");queryParams=Qe$3({});path=Qe$3("");serializer=h(ye);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof z&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new I(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Nt$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=h(new ka("href"),{optional:true});reactiveHref=fT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pi$2(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return pi$2(this._target)}_target=Qe$3(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return pi$2(this._queryParams)}_queryParams=Qe$3(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return pi$2(this._fragment)}_fragment=Qe$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return pi$2(this._queryParamsHandling)}_queryParamsHandling=Qe$3(void 0);set state(e){this._state.set(e);}get state(){return pi$2(this._state)}_state=Qe$3(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return pi$2(this._info)}_info=Qe$3(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return pi$2(this._relativeTo)}_relativeTo=Qe$3(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return pi$2(this._preserveFragment)}_preserveFragment=Qe$3(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return pi$2(this._skipLocationChange)}_skipLocationChange=Qe$3(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return pi$2(this._replaceUrl)}_replaceUrl=Qe$3(false);browserUrl=Oy(void 0);isAnchorElement;onChanges=new Z$2;applicationErrorHandler=h(an$3);options=h(Ce,{optional:true});reactiveRouterState=h(wo);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Qe$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=I$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=lT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Z(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return pi$2(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(G),Ol("tabindex"),_t$5(ai$4),_t$5(ue$2),_t$5(Fa))};static \u0275dir=rt$2({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&ey("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&ir$1("href",i.reactiveHref(),h_)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",wt$6],skipLocationChange:[2,"skipLocationChange","skipLocationChange",wt$6],replaceUrl:[2,"replaceUrl","replaceUrl",wt$6],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[ya]})}return t})(),bo=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Oe$4;link=h(Nt$1,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof z&&this.update();});}ngAfterContentInit(){qe$3(this.links.changes,qe$3(null)).pipe(yo$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=at$3(e).pipe(yo$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=Io(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?I$2({},or):I$2({},_e);return i=>{let o=i.urlTree;return o?pi$2(ar(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(ue$2),_t$5(ai$4),_t$5(Ly))};static \u0275dir=rt$2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&ny(o,Nt$1,5),r&2){let a;gC(a=yC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ya]})}return t})();function Io(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ao=new y("");function Eo(t,...n){return Pn$2([{provide:qe,multi:true,useValue:t},{provide:G,useFactory:To},{provide:Ed,multi:true,useFactory:Mo},n.map(e=>e.\u0275providers)])}function To(){return h(ce$1).routerState.root}function No(t,n){return {\u0275kind:t,\u0275providers:n}}function Mo(){let t=h(K$4);return n=>{let e=t.get(or$1);if(n!==e.components[0])return;let r=t.get(ce$1),i=t.get(Do);t.get(_o)===1&&r.initialNavigation(),t.get(Uo,null,{optional:true})?.setUpPreloading(),t.get(Ao,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var Do=new y("",{factory:()=>new Z$2}),_o=new y("",{factory:()=>1});var Uo=new y("");function Oo(t={}){return No(8,[{provide:He,useFactory:()=>new bn$1(t)}])}
|
|
3082
|
-
var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createContainer();let o=this._document.querySelector(Bt);o&&this._containerElement&&o.appendChild(this._containerElement);}static \u0275fac=(()=>{let o;return function(n){return (o||(o=pm(t)))(n||t)}})();static \u0275prov=M({token:t,factory:t.\u0275fac})};function Lt(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Dt=["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"]],void 0,[["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"]],void 0,[["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}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Lt];var Et=[{path:"",pathMatch:"full",redirectTo:"workstreams"},{path:"sandboxes",redirectTo:"workstreams",pathMatch:"full"},{path:"workstreams",loadComponent:()=>import('./chunk-
|
|
3081
|
+
`],encapsulation:2})}return n})(),Vt$2=new y("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=h(K$3);return ()=>It$6(n)}});var k=new WeakMap,Ht$1=(()=>{class n{_canHaveBackdrop;_element=h(ue$2);_viewContainerRef=h(Yr$1);_menuItemInstance=h(le$2,{optional:true,self:true});_dir=h(iM,{optional:true});_focusMonitor=h(uf);_ngZone=h(j$1);_injector=h(K$3);_scrollStrategy=h(Vt$2);_changeDetectorRef=h(Ly);_animationsDisabled=so$1();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=q$3.EMPTY;_menuCloseSubscription=q$3.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=h(me$2,{optional:true});this._parentMaterialMenu=t instanceof U?t:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&k.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let i=k.get(t);k.set(t,this),i&&i!==this&&i._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),u=o.positionStrategy;this._setPosition(t,u),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??false,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),t instanceof U&&(t._setIsOpen(true),t._directDescendantItems.changes.pipe(Er(t.close)).subscribe(()=>{u.withLockedPosition(false).reapplyLastPosition(),u.withLockedPosition(true);}));}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}_destroyMenu(e){let t=this._overlayRef,i=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),i instanceof U&&this._ownsMenu(i)?(this._pendingRemoval=i._animationDone.pipe(Ge$3(1)).subscribe(()=>{t.detach(),k.has(i)||i.lazyContent?.detach();}),i._setIsOpen(false)):(t.detach(),i?.lazyContent?.detach()),i&&this._ownsMenu(i)&&k.delete(i),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=jt$2(this._injector,t),this._overlayRef.keydownEvents().subscribe(i=>{this._menu instanceof U&&this._menu._handleKeydown(i);});}return this._overlayRef}_getOverlayConfig(e){return new q$2({positionStrategy:Ht$3(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{this._ngZone.run(()=>{let a=i.connectionPair.overlayX==="start"?"after":"before",o=i.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o);});});}_setPosition(e,t){let[i,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,u]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[W,Q]=[o,u],[K,$]=[i,a],D=0;if(this._triggersSubmenu()){if($=i=e.xPosition==="before"?"start":"end",a=K=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let ce=this._parentMaterialMenu.items.first;this._parentInnerPadding=ce?ce._getHostElement().offsetTop:0;}D=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(W=o==="top"?"bottom":"top",Q=u==="top"?"bottom":"top");t.withPositions([{originX:i,originY:W,overlayX:K,overlayY:o,offsetY:D},{originX:a,originY:W,overlayX:$,overlayY:o,offsetY:D},{originX:i,originY:Q,overlayX:K,overlayY:u,offsetY:-D},{originX:a,originY:Q,overlayX:$,overlayY:u,offsetY:-D}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:qe$3(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Tt$6(o=>this._menuOpen&&o!==this._menuItemInstance)):qe$3();return Jb(e,i,a,t)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $$1(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return k.get(e)===this}_triggerIsAriaDisabled(){return wt$6(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){YI();};static \u0275dir=rt$2({type:n})}return n})(),Ai$1=(()=>{class n extends Ht$1{_cleanupTouchstart;_hoverSubscription=q$3.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new Oe$4;onMenuOpen=this.menuOpened;menuClosed=new Oe$4;onMenuClose=this.menuClosed;constructor(){super(true);let e=h(ai$4);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{Mi$2(t)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Si$2(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&ey("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),t&2&&ir$1("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Kr$1]})}return n})();var Bi$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[mb,di$2,no$1,Vt$5]})}return n})();var f="primary",ze$1=Symbol("RouteTitle"),Bt$1=class Bt{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function ie(t){return new Bt$1(t)}function zt$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function tn$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return zt$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !zt$1(o,t.slice(0,o.length),c)||!zt$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function st(t){return new Promise((n,e)=>{t.pipe(iD()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Wn(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!F(t[e],n[e]))return false;return true}function F(t,n){let e=t?Vt$1(t):void 0,r=n?Vt$1(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!rn$1(t[i],n[i]))return false;return true}function Vt$1(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Qn(t){return t.length>0?t[t.length-1]:null}function se(t){return Qb(t)?t:Aa(t)?at$3(Promise.resolve(t)):qe$3(t)}function nn$1(t){return Qb(t)?st(t):Promise.resolve(t)}var Kn={exact:an,subset:sn},on$1={exact:Yn,subset:Zn,ignored:()=>true},or={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_e={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ar(t,n,e){let r=t instanceof I?t:n.parseUrl(t);return lT(()=>Gt$1(n.lastSuccessfulNavigation()?.finalUrl??new I,r,I$2(I$2({},_e),e)))}function Gt$1(t,n,e){return Kn[e.paths](t.root,n.root,e.matrixParams)&&on$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Yn(t,n){return F(t,n)}function an(t,n,e){if(!ne(t.segments,n.segments)||!it(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!an(t.children[r],n.children[r],e))return false;return true}function Zn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rn$1(t[e],n[e]))}function sn(t,n,e){return cn$1(t,n,n.segments,e)}function cn$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ne(i,e)||n.hasChildren()||!it(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!it(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!sn(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !ne(t.segments,i)||!it(t.segments,i,r)||!t.children[f]?false:cn$1(t.children[f],n,o,r)}}function it(t,n,e){return n.every((r,i)=>on$1[e](t[i].parameters,r.parameters))}var I=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return ei.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ot(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return ln$1(this)}};function Jn(t,n){return ne(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Xn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)));}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new Qt$1(n);return new I(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ee(n.root,true)}`,r=ni(n.queryParams),i=typeof n.fragment=="string"?`#${ti(n.fragment)}`:"";return `${e}${r}${i}`}},ei=new Y;function ot(t){return t.segments.map(n=>ln$1(n)).join("/")}function Ee(t,n){if(!t.hasChildren())return ot(t);if(n){let e=t.children[f]?Ee(t.children[f],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ee(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Xn(t,(r,i)=>i===f?[Ee(t.children[f],false)]:[`${i}:${Ee(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ot(t)}/${e[0]}`:`${ot(t)}/(${e.join("//")})`}}function un(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rt(t){return un(t).replace(/%3B/gi,";")}function ti(t){return encodeURI(t)}function Wt$1(t){return un(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function Qr(t){return at(t.replace(/\+/g,"%20"))}function ln$1(t){return `${Wt$1(t.path)}${ri(t.parameters)}`}function ri(t){return Object.entries(t).map(([n,e])=>`;${Wt$1(n)}=${Wt$1(e)}`).join("")}function ni(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${rt(e)}=${rt(i)}`).join("&"):`${rt(e)}=${rt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ii=/^[^\/()?;#]+/;function Ht(t){let n=t.match(ii);return n?n[0]:""}var oi=/^[^\/()?;=#]+/;function ai(t){let n=t.match(oi);return n?n[0]:""}var si=/^[^=?&#]+/;function ci(t){let n=t.match(si);return n?n[0]:""}var ui=/^[^&#]+/;function li(t){let n=t.match(ui);return n?n[0]:""}var Qt$1=class Qt{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new g(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m(e,r)),i}parseSegment(){let n=Ht(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new g(4009,false);return this.capture(n),new K(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ai(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Ht(this.remaining);i&&(r=i,this.capture(r));}n[at(e)]=at(r);}parseQueryParam(n){let e=ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=li(this.remaining);a&&(r=a,this.capture(r));}let i=Qr(e),o=Qr(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ht(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new g(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f);let c=this.parseChildren(e+1);r[a??f]=Object.keys(c).length===1&&c[f]?c[f]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new g(4011,false)}};function hn$1(t){return t.segments.length>0?new m([],{[f]:t}):t}function dn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=dn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return hi(e)}function hi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof I}function fn$1(t,n,e=null,r=null,i=new Y){let o=pn$1(t);return gn$1(o,n,e,r,i)}function pn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=hn$1(r);return n??i}function gn$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Ft$1(o,o,o,e,r,i);let a=di(n);if(a.toRoot())return Ft$1(o,o,new m([],{}),e,r,i);let c=fi(a,o,t),s=c.processChildren?Ne$1(c.segmentGroup,c.index,a.commands):mn$1(c.segmentGroup,c.index,a.commands);return Ft$1(o,c.segmentGroup,s,e,r,i)}function ct(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ue(t){return typeof t=="object"&&t!=null&&t.outlets}function Kr(t,n,e){t||="\u0275";let r=new I;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Ft$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>Kr(u,v,o)):Kr(u,h,o);let c;t===n?c=e:c=vn$1(t,n,e);let s=hn$1(dn(c));return new I(s,a,i)}function vn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=vn$1(o,n,e);}),new m(t.segments,r)}var ut=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ct(r[0]))throw new g(4003,false);let i=r.find(Ue);if(i&&i!==Qn(r))throw new g(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ut(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new ut(e,n,r)}var he=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function fi(t,n,e){if(t.isAbsolute)return new he(n,true,0);if(!e)return new he(n,false,NaN);if(e.parent===null)return new he(e,true,0);let r=ct(t.commands[0])?0:1,i=e.segments.length-1+r;return pi(e,i,t.numberOfDoubleDots)}function pi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new g(4005,false);i=r.segments.length;}return new he(r,false,i-o)}function gi(t){return Ue(t[0])?t[0].outlets:{[f]:t}}function mn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Ne$1(t,n,e);let r=vi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m(t.segments.slice(r.pathIndex),t.children),Ne$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Kt$1(t,n,e):r.match?Ne$1(t,0,i):Kt$1(t,n,e)}function Ne$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=gi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Ne$1(t.children[f],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=mn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function vi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Ue(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!Zr(s,u,a))return o;r+=2;}else {if(!Zr(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function Kt$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ue(o)){let s=mi(o.outlets);return new m(r,s)}if(i===0&&ct(e[0])){let s=t.segments[n];r.push(new K(s.path,Yr(e[0]))),i++;continue}let a=Ue(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&ct(c)?(r.push(new K(a,Yr(c))),i+=2):(r.push(new K(a,{})),i++);}return new m(r,{})}function mi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Kt$1(new m([],{}),0,r));}),n}function Yr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Zr(t,n,e){return t==e.path&&F(n,e.parameters)}var Me="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),_=class{id;url;constructor(n,e){this.id=n,this.url=e;}},oe=class extends _{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},z=class extends _{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Oe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Oe||{}),x=class extends _{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yn$1(t){return t instanceof x&&(t.code===w.Redirect||t.code===w.SupersededByNewNavigation)}var V=class extends _{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},ae=class extends _{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe$1=class Pe extends _{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends _{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends _{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},dt=class extends _{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends _{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt$1=class Rt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var fe=class{},Le=class{},pe$1=class pe{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function yi(t){return !(t instanceof fe)&&!(t instanceof pe$1)&&!(t instanceof Le)}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Re$1(this.rootInjector);}},Re$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(C$1(ae$3))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Yt$1(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Yt$1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Zt$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Zt$1(n,this._root).map(e=>e.value)}};function Yt$1(t,n){if(t===n.value)return n;for(let e of n.children){let r=Yt$1(t,e);if(r)return r}return null}function Zt$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=Zt$1(t,e);if(r.length)return r.unshift(n),r}return []}var D=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function le$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var je=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n);}toString(){return this.snapshot.toString()}};function Rn(t,n){let e=Ri(t,n),r=new Cn$3([new K("",{})]),i=new Cn$3({}),o=new Cn$3({}),a=new Cn$3({}),c=new Cn$3(""),s=new G(r,i,a,c,o,f,t,e.root);return s.snapshot=e.root,new je(new D(s,[]),e)}function Ri(t,n){let e={},r={},i={},a=new ge$1([],e,i,"",r,f,t,null,{},n);return new xe("",new D(a,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(A$1(u=>u[ze$1]))??qe$3(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A$1(n=>ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A$1(n=>ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Si="always";function sr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:I$2(I$2({},n.params),t.params),data:I$2(I$2({},n.data),t.data),resolve:I$2(I$2(I$2(I$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:I$2({},t.params),data:I$2({},t.data),resolve:I$2(I$2({},t.data),t._resolvedData??{})},i&&Cn$1(i)&&(r.resolve[ze$1]=i.title),r}var ge$1=class ge{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze$1]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},xe=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e);}toString(){return Sn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e));}function Sn(t){let n=t.children.length>0?` { ${t.children.map(Sn).join(", ")} } `:"";return `${t.value}${n}`}function qt$1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Wn(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function Jt(t,n){let e=F(t.params,n.params)&&Jn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Jt(t.parent,n.parent))}function Cn$1(t){return typeof t.title=="string"||t.title===null}var wn=new y(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new Oe$4;deactivateEvents=new Oe$4;attachEvents=new Oe$4;detachEvents=new Oe$4;routerOutletData=Oy();parentContexts=h(Re$1);location=h(Yr$1);changeDetector=h(Ly);inputBinder=h(He,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new g(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new g(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new Xt$1(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=rt$2({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ya]})}return t})(),Xt$1=class Xt{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===G?this.route:n===Re$1?this.childContexts:n===wn?this.outletData:this.parent.get(n,e)}},He=new y(""),bn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ec([this.options.queryParams?r.queryParams:qe$3({}),r.params,r.data]).pipe(Nc(([o,a,c],s)=>(c=I$2(I$2(I$2({},o),a),c),s===0?qe$3(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=bU(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){YI();};static \u0275prov=M({token:t,factory:t.\u0275fac})}return t})(),lr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe$1({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yg(0,"router-outlet");},dependencies:[ur],encapsulation:2,changeDetection:1})}return t})();function hr(t){let n=t.children&&t.children.map(hr),e=n?P(I$2({},t),{children:n}):I$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=lr),e}function Ci(t,n,e){let r=new Set,i=ke(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new je(i,n)}}function ke(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=wi(t,n,e,r);return new D(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>ke(t,s,void 0,r)),c}}let i=bi(n.value);r.add(i);let o=n.children.map(a=>ke(t,a,void 0,r));return new D(i,o)}}function wi(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return ke(t,i,o,r);return ke(t,i,void 0,r)})}function bi(t){return new G(new Cn$3(t.url),new Cn$3(t.params),new Cn$3(t.queryParams),new Cn$3(t.fragment),new Cn$3(t.data),t.outlet,t.component,t)}var ve=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},In="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=An(false,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function An(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[In]=true,e.cancellationCode=n,e}function Ii(t){return En(t)&&Z(t.url)}function En(t){return !!t&&t[In]}var er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),qt$1(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new mt(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(qt$1(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),qt$1(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},de$1=class de{component;route;constructor(n,e){this.component=n,this.route=e;}};function Ai(t,n,e){let r=t._root,i=n?n._root:null;return Te$1(r,i,e,[r.value])}function Ei(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Se(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!bD(t)?t:n.get(t):r}function Te$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=le$1(n);return t.children.forEach(a=>{Ti(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>De(c,e.getContext(a),i)),i}function Ti(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ni(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Te$1(t,n,c?c.children:null,r,i):Te$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new de$1(c.outlet.component,a));}else a&&De(n,c,i),i.canActivateChecks.push(new bt(r)),o.component?Te$1(t,null,c?c.children:null,r,i):Te$1(t,null,e,r,i);return i}function Ni(t,n,e){if(typeof e=="function")return Nr(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ne(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ne(t.url,n.url)||!F(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Jt(t,n)||!F(t.queryParams,n.queryParams);default:return !Jt(t,n)}}function De(t,n,e){let r=le$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?De(a,n.children.getContext(o),e):De(a,null,e):De(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new de$1(n.outlet.component,i)):e.canDeactivateChecks.push(new de$1(null,i)):e.canDeactivateChecks.push(new de$1(null,i));}function Fe$1(t){return typeof t=="function"}function Mi(t){return typeof t=="boolean"}function Di(t){return t&&Fe$1(t.canLoad)}function _i(t){return t&&Fe$1(t.canActivate)}function Ui(t){return t&&Fe$1(t.canActivateChild)}function Oi(t){return t&&Fe$1(t.canDeactivate)}function Pi(t){return t&&Fe$1(t.canMatch)}function Tn(t){return t instanceof go$1||t?.name==="EmptyError"}var nt=Symbol("INITIAL_VALUE");function me$1(){return Nc(t=>Ec(t.map(n=>n.pipe(Ge$3(1),Ac(nt)))).pipe(A$1(n=>{for(let e of n)if(e!==true){if(e===nt)return nt;if(e===false||Li(e))return e}return true}),Tt$6(n=>n!==nt),Ge$3(1)))}function Li(t){return Z(t)||t instanceof ve}function Nn(t){return t.aborted?qe$3(void 0).pipe(Ge$3(1)):new k$1(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Mn(t){return Er(Nn(t))}function ji(t){return lt$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?qe$3(P(I$2({},n),{guardsResult:true})):xi(o,e,r).pipe(lt$3(a=>a&&Mi(a)?ki(e,i,t):qe$3(a)),A$1(a=>P(I$2({},n),{guardsResult:a})))})}function xi(t,n,e){return at$3(t).pipe(lt$3(r=>qi(r.component,r.route,e,n)),iD(r=>r!==true,true))}function ki(t,n,e){return at$3(n).pipe(Tc(r=>qt$3(zi(r.route.parent,e),$i(r.route,e),Fi(t,r.path),Hi(t,r.route))),iD(r=>r!==true,true))}function $i(t,n){return t!==null&&n&&n(new yt(t)),qe$3(true)}function zi(t,n){return t!==null&&n&&n(new vt(t)),qe$3(true)}function Hi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return qe$3(true);let r=e.map(i=>Xb(()=>{let o=n._environmentInjector,a=Se(i,o),c=_i(a)?a.canActivate(n,t):Nr(o,()=>a(n,t));return se(c).pipe(iD())}));return qe$3(r).pipe(me$1())}function Fi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>Xb(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Se(c,s),h=Ui(u)?u.canActivateChild(e,t):Nr(s,()=>u(e,t));return se(h).pipe(iD())});return qe$3(a).pipe(me$1())}));return qe$3(i).pipe(me$1())}function qi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return qe$3(true);let o=i.map(a=>{let c=n._environmentInjector,s=Se(a,c),u=Oi(s)?s.canDeactivate(t,n,e,r):Nr(c,()=>s(t,n,e,r));return se(u).pipe(iD())});return qe$3(o).pipe(me$1())}function Bi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return qe$3(true);let a=o.map(c=>{let s=Se(c,t),u=Di(s)?s.canLoad(n,e):Nr(t,()=>s(n,e)),h=se(u);return i?h.pipe(Mn(i)):h});return qe$3(a).pipe(me$1(),Dn(r))}function Dn(t){return Sb(zt$6(n=>{if(typeof n!="boolean")throw wt(t,n)}),A$1(n=>n===true))}function Vi(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return qe$3(true);let c=a.map(s=>{let u=Se(s,t),h=Pi(u)?u.canMatch(n,e,i):Nr(t,()=>u(n,e,i));return se(h).pipe(Mn(o))});return qe$3(c).pipe(me$1(),Dn(r))}var B=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},$e=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Gi(t){throw new g(4e3,false)}function Wi(t){throw An(false,w.GuardRejected)}var tr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw Gi(`${n.redirectTo}`);i=i.children[f];}}async applyRedirectCommands(n,e,r,i,o){let a=await Qi(e,i,o);if(a instanceof I)throw new $e(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new $e(c);return c}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new I(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new g(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function Qi(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return st(se(Nr(e,()=>r(n))))}function Ki(t,n){return t.providers&&!t._injector&&(t._injector=jg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function $(t){return t.outlet||f}function Yi(t,n){let e=t.filter(r=>$(r)===n);return e.push(...t.filter(r=>$(r)!==n)),e}var rr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _n$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Zi(t,n,e,r,i,o,a){let c=Un(t,n,e);if(!c.matched)return qe$3(c);let s=_n$1(o(c));return r=Ki(n,r),Vi(r,n,e,i,s,a).pipe(A$1(u=>u===true?c:I$2({},rr)))}function Un(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?I$2({},rr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||tn$1)(e,t,n);if(!i)return I$2({},rr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?I$2(I$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Jr(t,n,e,r,i){return e.length>0&&eo(t,e,r,i)?{segmentGroup:new m(n,Xi(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&to(t,e,r)?{segmentGroup:new m(t.segments,Ji(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Ji(t,n,e,r){let i={};for(let o of e)if(At$1(t,n,o)&&!r[$(o)]){let a=new m([],{});i[$(o)]=a;}return I$2(I$2({},r),i)}function Xi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&$(r)!==f){let i=new m([],{});e[$(r)]=i;}return e}function eo(t,n,e,r){return e.some(i=>!At$1(t,n,i)||!($(i)!==f)?false:!(r!==void 0&&$(i)===r))}function to(t,n,e){return e.some(r=>At$1(t,n,r))}function At$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function ro(t,n,e){return n.length===0&&!t.children[e]}var nr=class{};async function no(t,n,e,r,i,o,a,c){return new ir(t,n,e,r,i,a,o,c).recognize()}var io=31,ir=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new tr(this.urlSerializer,this.urlTree);}noMatchError(n){return new g(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Jr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new D(r,e),o=new xe("",i),a=fn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new ge$1([],Object.freeze({}),Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof B?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof D?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],h=Yi(e,s),v=await this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=On(a);return oo(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof B||Tn(u))continue;throw u}if(ro(r,i,o))return new nr;throw new B(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if($(r)!==a&&(a===f||!At$1(i,o,r)))throw new B(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new B(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Un(e,i,o);if(!s)throw new B(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>io&&(this.allowRedirects=false));let A=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let k=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,_n$1(A),n),J=await this.applyRedirects.lineralizeSegments(i,k);return this.processSegment(n,r,e,J.concat(g),a,false,c)}createSnapshot(n,e,r,i,o){let a=new ge$1(r,i,Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,so(e),$(e),e.component??e._loadedComponent??null,e,co(e),n),c=sr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=X=>this.createSnapshot(n,r,X.consumedSegments,X.parameters,a),s=await st(Zi(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new B(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:A}=s,k=this.createSnapshot(n,r,g,v,a),{segmentGroup:J,slicedSegments:we}=Jr(e,g,A,u,o);if(we.length===0&&J.hasChildren()){let X=await this.processChildren(h,u,J,k);return new D(k,X)}if(u.length===0&&we.length===0)return new D(k,[]);let Mt=$(r)===o,Be=await this.processSegment(h,u,J,we,Mt?f:o,true,k);return new D(k,Be instanceof D?[Be]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await st(Bi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Wi()}return {routes:[],injector:n}}};function oo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet));}function ao(t){let n=t.value.routeConfig;return n&&n.path===""}function On(t){let n=[],e=new Set;for(let r of t){if(!ao(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=On(r.children);n.push(new D(r.value,i));}return n.filter(r=>!e.has(r))}function so(t){return t.data||{}}function co(t){return t.resolve||{}}function uo(t,n,e,r,i,o,a){return lt$3(async c=>{let{state:s,tree:u}=await no(t,n,e,r,c.extractedUrl,i,o,a);return P(I$2({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function lo(t){return lt$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return qe$3(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of Pn(c))o.add(s);let a=0;return at$3(o).pipe(Tc(c=>i.has(c)?ho(c,e,t):(c.data=sr(c,c.parent,t).resolve,qe$3(void 0))),zt$6(()=>a++),sD(1),lt$3(c=>a===o.size?qe$3(n):wn$1))})}function Pn(t){let n=t.children.map(e=>Pn(e)).flat();return [t,...n]}function ho(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Cn$1(r)&&(i[ze$1]=r.title),Xb(()=>(t.data=sr(t,t.parent,e).resolve,fo(i,t,n).pipe(A$1(o=>(t._resolvedData=o,t.data=I$2(I$2({},t.data),o),null)))))}function fo(t,n,e){let r=Vt$1(t);if(r.length===0)return qe$3({});let i={};return at$3(r).pipe(lt$3(o=>po(t[o],n,e).pipe(iD(),zt$6(a=>{if(a instanceof ve)throw wt(new Y,a);i[o]=a;}))),sD(1),A$1(()=>i),ke$4(o=>Tn(o)?wn$1:ut$4(o)))}function po(t,n,e){let r=n._environmentInjector,i=Se(t,r),o=i.resolve?i.resolve(n,e):Nr(r,()=>i(n,e));return se(o)}function Xr(t){return Nc(n=>{let e=t(n);return e?at$3(e).pipe(A$1(()=>n)):qe$3(n)})}var dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[ze$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ln)})}return t})(),Ln=(()=>{class t extends dr{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(C$1(g8))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ce=new y("",{factory:()=>({})}),qe=new y(""),jn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(aT);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await nn$1(Nr(e,()=>r.loadComponent())),a=await kn(pU(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await xn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();async function xn(t,n,e,r){let i=await nn$1(Nr(e,()=>t.loadChildren())),o=await kn(pU(i)),a;o instanceof Pg||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(qe,[],{optional:true,self:true}).flat()),{routes:s.map(hr),injector:c,factory:h}}async function kn(t){return t}var Et$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(go)})}return t})(),go=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),$n=new y("");var zn=new y(""),vo=()=>{},Hn=new y(""),Fn=(()=>{class t{currentNavigation=Qe$3(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Qe$3(null);events=new Z$2;transitionAbortWithErrorSubject=new Z$2;configLoader=h(jn);environmentInjector=h(ae$3);destroyRef=h(Ue$3);urlSerializer=h(ye);rootContexts=h(Re$1);location=h(Wy);inputBindingEnabled=h(He,{optional:true})!==null;titleStrategy=h(dr);options=h(Ce,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Si;urlHandlingStrategy=h(Et$1);createViewTransition=h($n,{optional:true});navigationErrorHandler=h(Hn,{optional:true});activatedRouteInjectorFeature=h(zn,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>qe$3(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;pi$2(()=>{this.transitions?.next(P(I$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Cn$3(null),this.transitions.pipe(Tt$6(r=>r!==null),Nc(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return qe$3(r).pipe(Nc(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),wn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?P(I$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new V(s.id,this.urlSerializer.serialize(s.rawUrl),"",Oe.IgnoredSameUrlNavigation)),s.resolve(false),wn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return qe$3(s).pipe(Nc(g=>(this.events.next(new oe(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?wn$1:Promise.resolve(g))),uo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),zt$6(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(A=>(A.finalUrl=g.urlAfterRedirects,A)),this.events.next(new Le);}),Nc(g=>at$3(r.routesRecognizeHandler.deferredHandle??qe$3(void 0)).pipe(A$1(()=>g))),zt$6(()=>{let g=new Pe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:A,source:k,restoredState:J,extras:we}=s,Mt=new oe(g,this.urlSerializer.serialize(A),k,J);this.events.next(Mt);let Be=Rn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=P(I$2({},s),{targetSnapshot:Be,urlAfterRedirects:A,extras:P(I$2({},we),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(X=>(X.finalUrl=A,X)),qe$3(r)}else return this.events.next(new V(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Oe.IgnoredByUrlHandlingStrategy)),s.resolve(false),wn$1}),A$1(s=>{let u=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=P(I$2({},s),{guards:Ai(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),ji(s=>this.events.next(s)),Nc(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return wn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",w.GuardRejected),wn$1;if(s.guards.canActivateChecks.length===0)return qe$3(s);let h=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return wn$1;let v=false;return qe$3(s).pipe(lo(this.paramsInheritanceStrategy),zt$6({next:()=>{v=true;let g=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",w.NoDataFromResolver);}}))}),Xr(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let A=v._environmentInjector;g.push(this.configLoader.loadComponent(A,v.routeConfig).then(k=>{v.component=k;}));}for(let A of v.children)g.push(...u(A));return g},h=u(s.targetSnapshot.root);return h.length===0?qe$3(s):at$3(Promise.all(h).then(()=>s))}),Nc(s=>{let{newlyCreatedRoutes:u,state:h}=Ci(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=P(I$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),qe$3(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),Xr(()=>this.afterPreactivation()),Nc(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?at$3(h).pipe(A$1(()=>r)):qe$3(r)}),Ge$3(1),Nc(s=>{i=false,this.events.next(new fe);let u=r.beforeActivateHandler.deferredHandle;return u?at$3(u.then(()=>s)):qe$3(s)}),zt$6(s=>{new er(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=vo,u)),this.lastSuccessfulNavigation.set(pi$2(this.currentNavigation)),this.events.next(new z(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Er(Nn(a.signal).pipe(Tt$6(()=>!o&&i),zt$6(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",w.Aborted);}))),zt$6({complete:()=>{o=true;}}),Er(this.transitionAbortWithErrorSubject.pipe(zt$6(s=>{throw s}))),yr(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ke$4(s=>{if(o=true,en(r),this.destroyed)return r.resolve(false),wn$1;if(En(s))this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ii(s)?this.events.next(new pe$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new ae(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=Nr(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof ve){let{message:v,cancellationCode:g}=wt(this.urlSerializer,h);this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new pe$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return wn$1}))}))}cancelNavigationTransition(e,r,i){en(e);let o=new x(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=pi$2(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function mo(t){return t!==Me}function en(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var qn=new y("");var Bn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(yo)})}return t})(),It$1=class It{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},yo=(()=>{class t extends It$1{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Tt$1=(()=>{class t{urlSerializer=h(ye);options=h(Ce,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(Wy);urlHandlingStrategy=h(Et$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new I;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof I?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=Rn(null,h(ae$3));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ro)})}return t})(),Ro=(()=>{class t extends Tt$1{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof oe?this.updateStateMemento():e instanceof V?this.commitTransition(r):e instanceof Pe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof fe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof x&&!yn$1(e)?this.restoreHistory(r):e instanceof ae?this.restoreHistory(r,true):e instanceof z&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=I$2(I$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=I$2(I$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?I$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):I$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function fr(t,n){t.events.pipe(Tt$6(e=>e instanceof z||e instanceof x||e instanceof ae||e instanceof V),A$1(e=>e instanceof z||e instanceof V?0:(e instanceof x?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:false)?2:1),Tt$6(e=>e!==2),Ge$3(1)).subscribe(()=>{n();});}var ce$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=h(Wg);stateManager=h(Tt$1);options=h(Ce,{optional:true})||{};pendingTasks=h(Wn$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Fn);urlSerializer=h(ye);location=h(Wy);urlHandlingStrategy=h(Et$1);injector=h(ae$3);_events=new Z$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=h(Bn);injectorCleanup=h(qn,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(qe,{optional:true})?.flat()??[];componentInputBindingEnabled=!!h(He,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new q$3;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=pi$2(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof x&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof z)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof pe$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=I$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mo(i.source)},a);this.scheduleNavigation(c,Me,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Me,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=P(I$2({},o),{browserUrl:e})),i){let u=I$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(an$3)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pi$2(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=I$2(I$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=pn$1(g);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return gn$1(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Me,null,r)}navigate(e,r={skipLocationChange:false}){return So(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(At$7(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=I$2({},or):r===false?i=I$2({},_e):i=I$2(I$2({},_e),r),Z(e))return Gt$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Gt$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function So(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new g(4008,false)}var wo=(()=>{class t{router=h(ce$1);stateManager=h(Tt$1);fragment=Qe$3("");queryParams=Qe$3({});path=Qe$3("");serializer=h(ye);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof z&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new I(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Nt$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=h(new ka("href"),{optional:true});reactiveHref=fT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pi$2(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return pi$2(this._target)}_target=Qe$3(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return pi$2(this._queryParams)}_queryParams=Qe$3(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return pi$2(this._fragment)}_fragment=Qe$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return pi$2(this._queryParamsHandling)}_queryParamsHandling=Qe$3(void 0);set state(e){this._state.set(e);}get state(){return pi$2(this._state)}_state=Qe$3(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return pi$2(this._info)}_info=Qe$3(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return pi$2(this._relativeTo)}_relativeTo=Qe$3(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return pi$2(this._preserveFragment)}_preserveFragment=Qe$3(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return pi$2(this._skipLocationChange)}_skipLocationChange=Qe$3(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return pi$2(this._replaceUrl)}_replaceUrl=Qe$3(false);browserUrl=Oy(void 0);isAnchorElement;onChanges=new Z$2;applicationErrorHandler=h(an$3);options=h(Ce,{optional:true});reactiveRouterState=h(wo);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Qe$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=I$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=lT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Z(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return pi$2(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(G),Ol("tabindex"),_t$5(ai$4),_t$5(ue$2),_t$5(Fa))};static \u0275dir=rt$2({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&ey("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&ir$1("href",i.reactiveHref(),h_)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",wt$6],skipLocationChange:[2,"skipLocationChange","skipLocationChange",wt$6],replaceUrl:[2,"replaceUrl","replaceUrl",wt$6],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[ya]})}return t})(),bo=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Oe$4;link=h(Nt$1,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof z&&this.update();});}ngAfterContentInit(){qe$3(this.links.changes,qe$3(null)).pipe(yo$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=at$3(e).pipe(yo$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=Io(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?I$2({},or):I$2({},_e);return i=>{let o=i.urlTree;return o?pi$2(ar(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(ue$2),_t$5(ai$4),_t$5(Ly))};static \u0275dir=rt$2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&ny(o,Nt$1,5),r&2){let a;gC(a=yC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ya]})}return t})();function Io(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ao=new y("");function Eo(t,...n){return Pn$2([{provide:qe,multi:true,useValue:t},{provide:G,useFactory:To},{provide:Ed,multi:true,useFactory:Mo},n.map(e=>e.\u0275providers)])}function To(){return h(ce$1).routerState.root}function No(t,n){return {\u0275kind:t,\u0275providers:n}}function Mo(){let t=h(K$3);return n=>{let e=t.get(or$1);if(n!==e.components[0])return;let r=t.get(ce$1),i=t.get(Do);t.get(_o)===1&&r.initialNavigation(),t.get(Uo,null,{optional:true})?.setUpPreloading(),t.get(Ao,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var Do=new y("",{factory:()=>new Z$2}),_o=new y("",{factory:()=>1});var Uo=new y("");function Oo(t={}){return No(8,[{provide:He,useFactory:()=>new bn$1(t)}])}
|
|
3082
|
+
var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createContainer();let o=this._document.querySelector(Bt);o&&this._containerElement&&o.appendChild(this._containerElement);}static \u0275fac=(()=>{let o;return function(n){return (o||(o=pm(t)))(n||t)}})();static \u0275prov=M({token:t,factory:t.\u0275fac})};function Lt(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Dt=["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"]],void 0,[["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"]],void 0,[["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}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Lt];var Et=[{path:"",pathMatch:"full",redirectTo:"workstreams"},{path:"sandboxes",redirectTo:"workstreams",pathMatch:"full"},{path:"workstreams",loadComponent:()=>import('./chunk-el-z4iRF.js').then(t=>t.WorkstreamsPageComponent)},{path:"launch",loadComponent:()=>import('./chunk-CM2lHl3p.js').then(t=>t.LaunchPageComponent)},{path:"sessions/:runId",loadComponent:()=>import('./chunk-C-qu5lON.js').then(t=>t.SessionPageComponent)},{path:"historique",pathMatch:"full",redirectTo:"history"},{path:"history",loadComponent:()=>import('./chunk-D7Rw3ZfK.js').then(t=>t.HistoryPageComponent)},{path:"workflows",loadComponent:()=>import('./chunk-B_4j4J3_.js').then(t=>t.WorkflowsPageComponent)},{path:"workflows/new",data:{create:true},canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-1Psr-icp.js').then(t=>t.WorkflowDetailPageComponent)},{path:"workflows/:type/:version",canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-1Psr-icp.js').then(t=>t.WorkflowDetailPageComponent)},{path:"reglages",pathMatch:"full",redirectTo:"workflows"},{path:"admin",loadComponent:()=>import('./chunk-BgFBBwpx.js').then(t=>t.AdminPageComponent)},{path:"**",redirectTo:"workstreams"}];WH(Dt);var Ot={providers:[sT(),KS(),{provide:fi$2,useValue:"en"},{provide:se$1,useClass:_t},{provide:Wt$3,useClass:de},Eo(Et,Oo()),Fw(()=>{h(Rv).setDefaultFontSetClass("material-symbols-outlined");})]};var qt=["*",[["mat-toolbar-row"]]],Wt=["*","mat-toolbar-row"],$t=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),Pt=(()=>{class t{_elementRef=h(ue$2);_platform=h(De$5);_document=h(O$1);color;_toolbarRows;ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,i,d){if(n&1&&ny(d,$t,5),n&2){let m;gC(m=yC())&&(i._toolbarRows=m);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,i){n&2&&(di$3(i.color?"mat-"+i.color:""),It$7("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Wt,decls:2,vars:0,template:function(n,i){n&1&&(sr$1(qt),ot$3(0),ot$3(1,1));},styles:[`.mat-toolbar {
|
|
3083
3083
|
background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface));
|
|
3084
3084
|
color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));
|
|
3085
3085
|
}
|
|
@@ -3318,7 +3318,7 @@ var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createC
|
|
|
3318
3318
|
.mat-sidenav-fixed {
|
|
3319
3319
|
position: fixed;
|
|
3320
3320
|
}
|
|
3321
|
-
`;var Yt=new y("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>false}),Ie=new y("MAT_DRAWER_CONTAINER"),Q=(()=>{class t extends At$6{_platform=h(De$5);_changeDetectorRef=h(Ly);_element=h(ue$2);_ngZone=h(j$1);_isInert=false;_container=h(Te);ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>this._changeDetectorRef.markForCheck());}_drawerToggled(e){e.opened?this._ngZone.runOutsideAngular(()=>{e._animationEnd.pipe(rD(50),Ge$3(1)).subscribe(()=>this._updateInert());}):this._updateInert();}_drawerModeChanged(){this._updateInert();}_updateInert(){let e=this._container._isShowingBackdrop();if(e!==this._isInert){let n=this._element.nativeElement;this._isInert=e,e?n.setAttribute("inert","true"):n.removeAttribute("inert");}}_shouldBeHidden(){if(this._platform.isBrowser)return false;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=(()=>{let e;return function(i){return (e||(e=pm(t)))(i||t)}})();static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,i){n&2&&(cy("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px"),It$7("mat-drawer-content-hidden",i._shouldBeHidden()));},features:[Ey([{provide:At$6,useExisting:t}]),Kr$1],ngContentSelectors:ce,decls:1,vars:0,template:function(n,i){n&1&&(sr$1(),ot$3(0));},encapsulation:2})}return t})(),Pe=(()=>{class t{_elementRef=h(ue$2);_focusTrapFactory=h(TM);_focusMonitor=h(uf);_platform=h(De$5);_ngZone=h(j$1);_renderer=h(ai$4);_interactivityChecker=h(Yv);_doc=h(O$1);_container=h(Ie,{optional:true});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=false;_anchor=null;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit());}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next(),this._getContent()?._drawerModeChanged();}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=nW(e);}_disableClose=false;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=nW(e)),this._autoFocus=e;}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(nW(e));}_opened=Qe$3(false);_openedVia=null;_animationStarted=new Z$2;_animationEnd=new Z$2;openedChange=new Oe$4(true);_openedStream=this.openedChange.pipe(Tt$6(e=>e),A$1(()=>{}));openedStart=this._animationStarted.pipe(Tt$6(()=>this.opened),Sc(void 0));_closedStream=this.openedChange.pipe(Tt$6(e=>!e),A$1(()=>{}));closedStart=this._animationStarted.pipe(Tt$6(()=>!this.opened),Sc(void 0));_destroyed=new Z$2;onPositionChanged=new Oe$4;_content;_modeChanged=new Z$2;_injector=h(K$4);_changeDetectorRef=h(Ly);constructor(){this.openedChange.pipe(Er(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program");}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,n=this._elementRef.nativeElement;return [e.listen(n,"keydown",i=>{i.keyCode===27&&!this.disableClose&&!eb(i)&&this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault();});}),e.listen(n,"transitionend",this._handleTransitionEvent),e.listen(n,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened);});}_focusByCssSelector(e,n){let i=this._elementRef.nativeElement.querySelector(e);i&&(this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let d=()=>{m(),jt(),i.removeAttribute("tabindex");},m=this._renderer.listen(i,"blur",d),jt=this._renderer.listen(i,"mousedown",d);})),i.focus(n));}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case false:case "dialog":return;case true:case "first-tabbable":Zl(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus();},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null);}_isFocusWithinDrawer(){let e=this._doc.activeElement;return !!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=true,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete();}open(e){return this.toggle(true,e)}close(){return this.toggle(false)}_closeViaBackdropClick(){return this._setOpen(false,true,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,n,i){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._getContent()?._drawerToggled(this),this._container?._transitionsEnabled?(this._setIsAnimating(true),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next();}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(i),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe(Ge$3(1)).subscribe(m=>d(m?"open":"close"));}))}_getContent(){return this._container?._content||this._container?._userContent}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e);}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop());}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,i=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,n)),i.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor);}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(false),this._animationEnd.next(e);});};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer"]],viewQuery:function(n,i){if(n&1&&ry(Gt,5),n&2){let d;gC(d=yC())&&(i._content=d.first);}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,i){n&2&&(ir$1("align",null)("tabIndex",i.mode!=="side"?"-1":null),cy("visibility",!i._container&&!i.opened?"hidden":null),It$7("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side"));},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ce,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,i){n&1&&(sr$1(),ma(0,"div",1,0),ot$3(2),Id());},dependencies:[At$6],encapsulation:2})}return t})(),Te=(()=>{class t{_dir=h(iM,{optional:true});_element=h(ue$2);_ngZone=h(j$1);_changeDetectorRef=h(Ly);_animationDisabled=so$1();_transitionsEnabled=false;_allDrawers;_drawers=new Qn$2;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=nW(e);}_autosize=h(Yt);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:nW(e);}_backdropOverride=null;backdropClick=new Oe$4;_start=null;_end=null;_left=null;_right=null;_destroyed=new Z$2;_doCheckSubject=new Z$2;_contentMargins={left:null,right:null};_contentMarginChanges=new Z$2;get scrollable(){return this._userContent||this._content}_injector=h(K$4);constructor(){let e=h(De$5),n=h(A);this._dir?.change.pipe(Er(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins();}),n.change().pipe(Er(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=true;},200);});}ngAfterContentInit(){this._allDrawers.changes.pipe(Ac(this._allDrawers),Er(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges();}),this._drawers.changes.pipe(Ac(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e);}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(bo$1(10),Er(this._destroyed)).subscribe(()=>this.updateContentMargins());});}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete();}open(){this._drawers.forEach(e=>e.open());}close(){this._drawers.forEach(e=>e.close());}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,n-=i;}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();n+=i,e-=i;}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)));}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next());}_watchDrawerToggle(e){e._animationStarted.pipe(Er(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),e.mode!=="side"&&e.openedChange.pipe(Er(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened));}_watchDrawerPosition(e){e.onPositionChanged.pipe(Er(this._drawers.changes)).subscribe(()=>{Zl({read:()=>this._validateDrawers()},{injector:this._injector});});}_watchDrawerMode(e){e._modeChanged.pipe(Er(Jb(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();});}_setContainerClass(e){let n=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?n.add(i):n.remove(i);}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e);}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end);}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop();}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick());}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(n,i,d){if(n&1&&ny(d,Q,5)(d,Pe,5),n&2){let m;gC(m=yC())&&(i._content=m.first),gC(m=yC())&&(i._allDrawers=m);}},viewQuery:function(n,i){if(n&1&&ry(Q,5),n&2){let d;gC(d=yC())&&(i._userContent=d.first);}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,i){n&2&&It$7("mat-drawer-container-explicit-backdrop",i._backdropOverride);},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ey([{provide:Ie,useExisting:t}])],ngContentSelectors:Ft,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,i){n&1&&(sr$1(It),ci$3(0,Qt,1,2,"div",0),ot$3(1),ot$3(2,1),ci$3(3,Kt,2,0,"mat-drawer-content")),n&2&&(ui$2(i.hasBackdrop?0:-1),ri$3(3),ui$2(i._content?-1:3));},dependencies:[Q],styles:[`.mat-drawer-container {
|
|
3321
|
+
`;var Yt=new y("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>false}),Ie=new y("MAT_DRAWER_CONTAINER"),Q=(()=>{class t extends At$6{_platform=h(De$5);_changeDetectorRef=h(Ly);_element=h(ue$2);_ngZone=h(j$1);_isInert=false;_container=h(Te);ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>this._changeDetectorRef.markForCheck());}_drawerToggled(e){e.opened?this._ngZone.runOutsideAngular(()=>{e._animationEnd.pipe(rD(50),Ge$3(1)).subscribe(()=>this._updateInert());}):this._updateInert();}_drawerModeChanged(){this._updateInert();}_updateInert(){let e=this._container._isShowingBackdrop();if(e!==this._isInert){let n=this._element.nativeElement;this._isInert=e,e?n.setAttribute("inert","true"):n.removeAttribute("inert");}}_shouldBeHidden(){if(this._platform.isBrowser)return false;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=(()=>{let e;return function(i){return (e||(e=pm(t)))(i||t)}})();static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,i){n&2&&(cy("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px"),It$7("mat-drawer-content-hidden",i._shouldBeHidden()));},features:[Ey([{provide:At$6,useExisting:t}]),Kr$1],ngContentSelectors:ce,decls:1,vars:0,template:function(n,i){n&1&&(sr$1(),ot$3(0));},encapsulation:2})}return t})(),Pe=(()=>{class t{_elementRef=h(ue$2);_focusTrapFactory=h(TM);_focusMonitor=h(uf);_platform=h(De$5);_ngZone=h(j$1);_renderer=h(ai$4);_interactivityChecker=h(Yv);_doc=h(O$1);_container=h(Ie,{optional:true});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=false;_anchor=null;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit());}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next(),this._getContent()?._drawerModeChanged();}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=nW(e);}_disableClose=false;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=nW(e)),this._autoFocus=e;}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(nW(e));}_opened=Qe$3(false);_openedVia=null;_animationStarted=new Z$2;_animationEnd=new Z$2;openedChange=new Oe$4(true);_openedStream=this.openedChange.pipe(Tt$6(e=>e),A$1(()=>{}));openedStart=this._animationStarted.pipe(Tt$6(()=>this.opened),Sc(void 0));_closedStream=this.openedChange.pipe(Tt$6(e=>!e),A$1(()=>{}));closedStart=this._animationStarted.pipe(Tt$6(()=>!this.opened),Sc(void 0));_destroyed=new Z$2;onPositionChanged=new Oe$4;_content;_modeChanged=new Z$2;_injector=h(K$3);_changeDetectorRef=h(Ly);constructor(){this.openedChange.pipe(Er(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program");}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,n=this._elementRef.nativeElement;return [e.listen(n,"keydown",i=>{i.keyCode===27&&!this.disableClose&&!eb(i)&&this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault();});}),e.listen(n,"transitionend",this._handleTransitionEvent),e.listen(n,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened);});}_focusByCssSelector(e,n){let i=this._elementRef.nativeElement.querySelector(e);i&&(this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let d=()=>{m(),jt(),i.removeAttribute("tabindex");},m=this._renderer.listen(i,"blur",d),jt=this._renderer.listen(i,"mousedown",d);})),i.focus(n));}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case false:case "dialog":return;case true:case "first-tabbable":Zl(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus();},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null);}_isFocusWithinDrawer(){let e=this._doc.activeElement;return !!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=true,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete();}open(e){return this.toggle(true,e)}close(){return this.toggle(false)}_closeViaBackdropClick(){return this._setOpen(false,true,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,n,i){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._getContent()?._drawerToggled(this),this._container?._transitionsEnabled?(this._setIsAnimating(true),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next();}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(i),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe(Ge$3(1)).subscribe(m=>d(m?"open":"close"));}))}_getContent(){return this._container?._content||this._container?._userContent}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e);}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop());}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,i=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,n)),i.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor);}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(false),this._animationEnd.next(e);});};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer"]],viewQuery:function(n,i){if(n&1&&ry(Gt,5),n&2){let d;gC(d=yC())&&(i._content=d.first);}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,i){n&2&&(ir$1("align",null)("tabIndex",i.mode!=="side"?"-1":null),cy("visibility",!i._container&&!i.opened?"hidden":null),It$7("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side"));},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ce,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,i){n&1&&(sr$1(),ma(0,"div",1,0),ot$3(2),Id());},dependencies:[At$6],encapsulation:2})}return t})(),Te=(()=>{class t{_dir=h(iM,{optional:true});_element=h(ue$2);_ngZone=h(j$1);_changeDetectorRef=h(Ly);_animationDisabled=so$1();_transitionsEnabled=false;_allDrawers;_drawers=new Qn$2;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=nW(e);}_autosize=h(Yt);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:nW(e);}_backdropOverride=null;backdropClick=new Oe$4;_start=null;_end=null;_left=null;_right=null;_destroyed=new Z$2;_doCheckSubject=new Z$2;_contentMargins={left:null,right:null};_contentMarginChanges=new Z$2;get scrollable(){return this._userContent||this._content}_injector=h(K$3);constructor(){let e=h(De$5),n=h(A);this._dir?.change.pipe(Er(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins();}),n.change().pipe(Er(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=true;},200);});}ngAfterContentInit(){this._allDrawers.changes.pipe(Ac(this._allDrawers),Er(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges();}),this._drawers.changes.pipe(Ac(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e);}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(bo$1(10),Er(this._destroyed)).subscribe(()=>this.updateContentMargins());});}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete();}open(){this._drawers.forEach(e=>e.open());}close(){this._drawers.forEach(e=>e.close());}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,n-=i;}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();n+=i,e-=i;}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)));}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next());}_watchDrawerToggle(e){e._animationStarted.pipe(Er(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),e.mode!=="side"&&e.openedChange.pipe(Er(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened));}_watchDrawerPosition(e){e.onPositionChanged.pipe(Er(this._drawers.changes)).subscribe(()=>{Zl({read:()=>this._validateDrawers()},{injector:this._injector});});}_watchDrawerMode(e){e._modeChanged.pipe(Er(Jb(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();});}_setContainerClass(e){let n=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?n.add(i):n.remove(i);}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e);}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end);}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop();}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick());}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(n,i,d){if(n&1&&ny(d,Q,5)(d,Pe,5),n&2){let m;gC(m=yC())&&(i._content=m.first),gC(m=yC())&&(i._allDrawers=m);}},viewQuery:function(n,i){if(n&1&&ry(Q,5),n&2){let d;gC(d=yC())&&(i._userContent=d.first);}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,i){n&2&&It$7("mat-drawer-container-explicit-backdrop",i._backdropOverride);},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ey([{provide:Ie,useExisting:t}])],ngContentSelectors:Ft,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,i){n&1&&(sr$1(It),ci$3(0,Qt,1,2,"div",0),ot$3(1),ot$3(2,1),ci$3(3,Kt,2,0,"mat-drawer-content")),n&2&&(ui$2(i.hasBackdrop?0:-1),ri$3(3),ui$2(i._content?-1:3));},dependencies:[Q],styles:[`.mat-drawer-container {
|
|
3322
3322
|
position: relative;
|
|
3323
3323
|
z-index: 1;
|
|
3324
3324
|
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
@@ -3920,4 +3920,4 @@ var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createC
|
|
|
3920
3920
|
right: 50%;
|
|
3921
3921
|
transform: translate(50%, -50%);
|
|
3922
3922
|
}
|
|
3923
|
-
`],encapsulation:2})}return t})(),zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=he$2({type:t});static \u0275inj=ce$4({imports:[Ae,no$1]})}return t})();var Ne=[{id:"industry",label:"Industry"},{id:"terminal",label:"Terminal"},{id:"whoz-oss",label:"Whoz OSS"}],ln=["light","dark","system"],Rt="agentos.theme.variant",Vt="agentos.theme.mode";function ze(t){return Ne.some(o=>o.id===t)}function cn(t){return ln.includes(t)}var mn={light:"dark",dark:"system",system:"light"};function Re(t){return mn[t]}function pn(t,o){return t==="industry"&&o==="light"?null:`${t}-${o}`}var pe=class t{_theme=Qe$3(this.readStored());theme=this._theme.asReadonly();media=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-color-scheme: dark)"):null;onSystemChange=()=>{this._theme().mode==="system"&&this.apply(this._theme());};constructor(){this.apply(this._theme()),this.media?.addEventListener("change",this.onSystemChange);}ngOnDestroy(){this.media?.removeEventListener("change",this.onSystemChange);}setVariant(o){this.set(P(I$2({},this._theme()),{variant:o}));}setMode(o){this.set(P(I$2({},this._theme()),{mode:o}));}cycleMode(){this.setMode(Re(this._theme().mode));}set(o){this._theme.set(o);try{localStorage.setItem(Rt,o.variant),localStorage.setItem(Vt,o.mode);}catch{}this.apply(o);}apply(o){if(typeof document>"u"||!document.documentElement)return;let e=o.mode==="dark"||o.mode==="system"&&this.media?.matches===true,n=pn(o.variant,e?"dark":"light");n?document.documentElement.setAttribute("data-theme",n):document.documentElement.removeAttribute("data-theme");}readStored(){try{let o=localStorage.getItem(Rt),e=localStorage.getItem(Vt);return {variant:ze(o)?o:"industry",mode:cn(e)?e:"system"}}catch{return {variant:"industry",mode:"system"}}}static \u0275fac=function(e){return new(e||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})};var gn=(t,o)=>o.id;function hn(t,o){if(t&1&&(ma(0,"option",1),VC(1),Id()),t&2){let e=o.$implicit,n=pC();Zg("value",e.id)("selected",e.id===n.theme().variant),ri$3(),hy(e.label);}}var fn={light:"light_mode",dark:"dark_mode",system:"brightness_auto"},ue=class t{themes=h(pe);theme=this.themes.theme;variants=Ne;modeIcon=lT(()=>fn[this.theme().mode]);modeTitle=lT(()=>{let o=this.theme().mode;return `Theme: ${o} (click for ${Re(o)})`});onVariantChange(o){let e=o.target.value;ze(e)&&this.themes.setVariant(e);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["ds-theme-picker"]],decls:6,vars:3,consts:[["aria-label","Skin","title","Skin",1,"ds-theme-picker__skin",3,"change"],[3,"value","selected"],["type","button",1,"ds-theme-picker__mode",3,"click","title"],["aria-hidden","true"]],template:function(e,n){e&1&&(ma(0,"select",0),ey("change",function(d){return n.onVariantChange(d)}),eC(1,hn,2,3,"option",1,gn),Id(),ma(3,"button",2),ey("click",function(){return n.themes.cycleMode()}),ma(4,"mat-icon",3),VC(5),Id()()),e&2&&(ri$3(),tC(n.variants),ri$3(2),Zg("title",n.modeTitle()),ir$1("aria-label",n.modeTitle()),ri$3(2),hy(n.modeIcon()));},dependencies:[Z8],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;gap:6px}.ds-theme-picker__skin[_ngcontent-%COMP%]{min-height:32px;padding:0 10px;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-md, 0);background:var(--color-surface, #dcdcde);color:var(--color-text, #1d1f20);font-family:var(--font-body, sans-serif);font-size:13px;cursor:pointer;outline:none}.ds-theme-picker__skin[_ngcontent-%COMP%]:focus-visible{border-color:var(--color-accent, #5980a6)}.ds-theme-picker__mode[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-pill, 0);background:transparent;color:var(--color-text, #1d1f20);cursor:pointer;transition:background .12s ease}.ds-theme-picker__mode[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(29, 31, 32, .06))}.ds-theme-picker__mode[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-accent, #5980a6);outline-offset:2px}.ds-theme-picker__mode[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px;line-height:1}"]})};var _n=(t,o)=>o.link;function bn(t,o){if(t&1&&(ma(0,"a",20),VC(1),Id()),t&2){let e=pC().$implicit;It$7("sf-mono",e.mono),Zg("routerLink",e.link),ri$3(),hy(e.label);}}function yn(t,o){if(t&1&&(ma(0,"span"),VC(1),Id()),t&2){let e=pC(),n=e.$implicit,i=e.$index,d=e.$count;It$7("sf-mono",n.mono)("current",i===d-1),ir$1("aria-current",i===d-1?"page":null),ri$3(),Sd(" ",n.label," ");}}function vn(t,o){if(t&1&&(ma(0,"mat-icon",17),VC(1,"chevron_right"),Id(),ci$3(2,bn,2,4,"a",18)(3,yn,2,6,"span",19)),t&2){let e=o.$implicit,n=o.$index,i=o.$count;ri$3(2),ui$2(e.link&&n!==i-1?2:3);}}function Cn(t,o){if(t&1&&(ma(0,"a",15,0)(2,"span",21)(3,"mat-icon",22),VC(4),Id()(),ma(5,"span",23),VC(6),Id()()),t&2){let e=o.$implicit,n=bC(1);Zg("routerLink",e.link),ir$1("aria-current",n.isActive?"page":null),ri$3(4),hy(e.icon),ri$3(2),hy(e.label);}}var ge=class t{store=h(ln$3);shell=h(yb);nav=[{label:"Workstreams",icon:"grid_view",link:"/workstreams"},{label:"History",icon:"history",link:"/history"},{label:"Workflows",icon:"account_tree",link:"/workflows"},{label:"Admin",icon:"tune",link:"/admin"}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["sf-root"]],decls:38,vars:13,consts:[["rla","routerLinkActive"],[1,"topbar"],["routerLink","/workstreams","aria-label","WHOZ Factory, home",1,"brand"],["src","W.svg","alt","WHOZ","aria-hidden","true",1,"whoz-logo"],["aria-label","Breadcrumb",1,"crumbs"],[1,"sf-spacer"],["aria-label","Cost summary",1,"cost-pill"],["aria-hidden","true",1,"live-dot"],[1,"strong"],[1,"total"],[1,"destroyed-toggle",3,"change","checked"],["aria-label","Benjamin Valdes",1,"avatar"],[1,"body"],["mode","side","opened","","disableClose","",1,"rail"],["aria-label","Main navigation",1,"rail-nav"],["routerLinkActive","active",1,"rail-item",3,"routerLink"],[1,"content"],["aria-hidden","true",1,"sep"],[3,"routerLink","sf-mono"],[3,"sf-mono","current"],[3,"routerLink"],[1,"rail-icon"],["aria-hidden","true"],[1,"rail-label"]],template:function(e,n){if(e&1&&(ma(0,"mat-toolbar",1)(1,"a",2),Yg(2,"img",3),VC(3," WHOZ Factory "),Id(),ma(4,"nav",4),eC(5,vn,4,1,null,null,Xw),Id(),Yg(7,"span",5),ma(8,"div",6),Yg(9,"span",7),ma(10,"span",8),VC(11),Id(),ma(12,"span"),VC(13,"\xB7"),Id(),ma(14,"span"),VC(15,"workflows "),ma(16,"b"),VC(17),eT(18,"usd"),Id()(),ma(19,"span"),VC(20,"\xB7"),Id(),ma(21,"span"),VC(22,"total "),ma(23,"b",9),VC(24),eT(25,"usd"),Id()()(),ma(26,"mat-slide-toggle",10),ey("change",function(d){return n.store.showDestroyed.set(d.checked)}),VC(27," Destroyed runs "),Id(),Yg(28,"ds-theme-picker"),ma(29,"span",11),VC(30,"BV"),Id()(),ma(31,"mat-sidenav-container",12)(32,"mat-sidenav",13)(33,"nav",14),eC(34,Cn,7,4,"a",15,_n),Id()(),ma(36,"mat-sidenav-content",16),Yg(37,"router-outlet"),Id()()),e&2){ri$3(5),tC(n.shell.crumbs());let i=n.store.costs();ri$3(6),Sd("",i.active," active workflows"),ri$3(3),ir$1("title",i.unknownCostCount?i.unknownCostCount+" round(s) with unknown cost":null),ri$3(3),hy(oT(18,5,i.workflowsUsd,2,i.unknownCostCount)),ri$3(7),hy(oT(25,9,i.totalUsd,2,i.unknownCostCount)),ri$3(2),Zg("checked",n.store.showDestroyed()),ri$3(8),tC(n.nav);}},dependencies:[ur,Nt$1,bo,Tt,Pt,Nt,Fe,At,le,Y8,Z8,zt,Ae,ue,ot$1],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh}.topbar[_ngcontent-%COMP%]{height:60px;flex-shrink:0;gap:14px;padding:0 24px;border-bottom:1px solid var(--color-divider)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-family:var(--font-heading);font-size:17px;font-weight:700;color:var(--color-text);text-decoration:none;transition:opacity .14s ease}.brand[_ngcontent-%COMP%]:hover{opacity:.8}.whoz-logo[_ngcontent-%COMP%]{height:28px;width:auto}:is([data-theme$=-dark][_ngcontent-%COMP%]) .whoz-logo[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0;overflow:hidden}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(.sf-mono), .crumbs[_ngcontent-%COMP%] > .current[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{flex-shrink:0}.cost-pill[_ngcontent-%COMP%], .destroyed-toggle[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%], ds-theme-picker[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1600px){.cost-pill[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{display:none}}.crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--color-neutral-500)}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-text-secondary);text-decoration:none;font-weight:600}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-text)}.crumbs[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;height:34px;padding:0 14px;border-radius:var(--radius-pill, 0);border:1px solid var(--color-divider);background:var(--color-bg);font-family:var(--font-heading);font-size:12.5px;color:var(--color-text-secondary)}.cost-pill[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:var(--color-accent-700);font-weight:700}.cost-pill[_ngcontent-%COMP%] .strong[_ngcontent-%COMP%]{color:var(--color-text)}.live-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--color-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-success) 15%,transparent)}.destroyed-toggle[_ngcontent-%COMP%]{font-size:13px}.avatar[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;background:color-mix(in srgb,var(--color-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--color-accent) 40%,transparent);color:var(--color-accent-700);font-family:var(--font-heading);font-size:12px;font-weight:700}.body[_ngcontent-%COMP%]{flex:1}.rail[_ngcontent-%COMP%]{width:88px;border-right:1px solid var(--color-divider)}.rail-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 4px;box-sizing:border-box}.rail-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0;text-decoration:none;color:var(--color-text-secondary);font-size:11px;font-weight:600}.rail-label[_ngcontent-%COMP%]{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}.rail-icon[_ngcontent-%COMP%]{width:52px;height:30px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;transition:background .15s}.rail-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;line-height:1}.rail-item[_ngcontent-%COMP%]:hover .rail-icon[_ngcontent-%COMP%]{background:var(--color-bg-hover)}.rail-item.active[_ngcontent-%COMP%]{color:var(--color-text);font-weight:700}.rail-item.active[_ngcontent-%COMP%] .rail-icon[_ngcontent-%COMP%]{background:var(--color-accent-100);color:var(--color-accent-800)}.content[_ngcontent-%COMP%]{padding:28px 32px;box-sizing:border-box}']})};CS(ge,Ot).catch(t=>console.error(t));export{$s as $,pC as A,aC as B,mt$3 as C,lS as D,st$1 as E,nt$1 as F,It$7 as G,HW as H,It$3 as I,QC as J,GC as K,he$2 as L,Me$1 as M,Nt$1 as N,Oy as O,Pt$2 as P,Qe$3 as Q,ce$4 as R,Se$1 as S,no$1 as T,UW as U,VC as V,Wr as W,y as X,Y8 as Y,Z8 as Z,sr$1 as _,Hr as a,ge$3 as a$,ot$3 as a0,jt as a1,vt$2 as a2,rT as a3,nT as a4,di$3 as a5,Wp as a6,Gp as a7,Sd as a8,jm as a9,gy as aA,G as aB,Ec as aC,A$1 as aD,ns$1 as aE,bn$2 as aF,xn$1 as aG,Oe$2 as aH,Ne$3 as aI,un$2 as aJ,fn$3 as aK,P as aL,cy as aM,mU as aN,oi$2 as aO,Bt$5 as aP,Qe$2 as aQ,si$2 as aR,iy as aS,vC as aT,KC as aU,Xw as aV,to$1 as aW,j$1 as aX,Cn$3 as aY,Nc as aZ,wn$1 as a_,ce$1 as aa,Ue$3 as ab,Hn$1 as ac,ve$1 as ad,I$2 as ae,Wn$1 as af,Bn$1 as ag,Xe as ah,kn$1 as ai,Tn$1 as aj,qt$2 as ak,fn$2 as al,cn$2 as am,_i$1 as an,UI as ao,$I as ap,Ey as aq,vb as ar,Cc as as,ke$4 as at,qe$3 as au,yr as av,XW as aw,ao$1 as ax,zt$6 as ay,M as az,Id as b,fU as b$,k$1 as b0,Z$2 as b1,Er as b2,mb as b3,Ly as b4,iM as b5,mf as b6,Oe$4 as b7,_t$3 as b8,eb as b9,wt$1 as bA,zM as bB,bi$1 as bC,Bi$1 as bD,U as bE,le$2 as bF,Ai$1 as bG,ai$1 as bH,wd as bI,Cd as bJ,_t as bK,se$1 as bL,dt$3 as bM,Pv as bN,Jb as bO,po$1 as bP,_t$5 as bQ,Vt$3 as bR,Ac as bS,pm as bT,Kr$1 as bU,dn$3 as bV,fn$5 as bW,N3 as bX,Qg as bY,Qn$2 as bZ,hf as b_,rt$2 as ba,wt$6 as bb,R as bc,ny as bd,gC as be,yC as bf,ue$2 as bg,uf as bh,so$1 as bi,Ht$4 as bj,pb as bk,ka as bl,mW as bm,Zi$1 as bn,bC as bo,ry as bp,yn$2 as bq,ya as br,rh as bs,oh as bt,D$1 as bu,Es as bv,Bd as bw,Xg as bx,$g as by,Jw as bz,ce$2 as c,Yv as c$,Df as c0,O$1 as c1,fb as c2,K$4 as c3,tc as c4,Fy as c5,De$5 as c6,A as c7,Pe$3 as c8,ut$3 as c9,vr as cA,Ln$1 as cB,Gn as cC,Un$1 as cD,ln$2 as cE,Dt$2 as cF,Ht$2 as cG,Gt$2 as cH,on$2 as cI,m_ as cJ,ty as cK,Xb as cL,je$1 as cM,Ne$5 as cN,Wt$3 as cO,jt$2 as cP,q$2 as cQ,wt$5 as cR,Ft$5 as cS,$$2 as cT,Tt$6 as cU,Wi$2 as cV,di$2 as cW,De$4 as cX,Pw as cY,pt$3 as cZ,TM as c_,hn$3 as ca,Re$4 as cb,Z$1 as cc,Qb as cd,eD as ce,Kb as cf,Yb as cg,Yr$1 as ch,Wr$1 as ci,pn$4 as cj,Zl as ck,V$1 as cl,Ee$1 as cm,ai$4 as cn,nW as co,z3 as cp,nn$2 as cq,zt$3 as cr,Zn$2 as cs,me$3 as ct,Fe$2 as cu,tt$1 as cv,mn$4 as cw,F$2 as cx,Ge$3 as cy,pi$2 as cz,eC as d,dM as d0,fM as d1,xM as d2,At$6 as d3,g as d4,ut$4 as d5,OM as d6,aS as d7,iT as d8,ey as e,ci$3 as f,Yg as g,h,eT as i,Zg as j,hy as k,ln$3 as l,ma as m,oT as n,ot$1 as o,hU as p,lT as q,ri$3 as r,ir$1 as s,tC as t,ui$2 as u,my as v,vy as w,xe$1 as x,yb as y,WC as z};
|
|
3923
|
+
`],encapsulation:2})}return t})(),zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=he$2({type:t});static \u0275inj=ce$4({imports:[Ae,no$1]})}return t})();var Ne=[{id:"industry",label:"Industry"},{id:"terminal",label:"Terminal"},{id:"whoz-oss",label:"Whoz OSS"}],ln=["light","dark","system"],Rt="agentos.theme.variant",Vt="agentos.theme.mode";function ze(t){return Ne.some(o=>o.id===t)}function cn(t){return ln.includes(t)}var mn={light:"dark",dark:"system",system:"light"};function Re(t){return mn[t]}function pn(t,o){return t==="industry"&&o==="light"?null:`${t}-${o}`}var pe=class t{_theme=Qe$3(this.readStored());theme=this._theme.asReadonly();media=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-color-scheme: dark)"):null;onSystemChange=()=>{this._theme().mode==="system"&&this.apply(this._theme());};constructor(){this.apply(this._theme()),this.media?.addEventListener("change",this.onSystemChange);}ngOnDestroy(){this.media?.removeEventListener("change",this.onSystemChange);}setVariant(o){this.set(P(I$2({},this._theme()),{variant:o}));}setMode(o){this.set(P(I$2({},this._theme()),{mode:o}));}cycleMode(){this.setMode(Re(this._theme().mode));}set(o){this._theme.set(o);try{localStorage.setItem(Rt,o.variant),localStorage.setItem(Vt,o.mode);}catch{}this.apply(o);}apply(o){if(typeof document>"u"||!document.documentElement)return;let e=o.mode==="dark"||o.mode==="system"&&this.media?.matches===true,n=pn(o.variant,e?"dark":"light");n?document.documentElement.setAttribute("data-theme",n):document.documentElement.removeAttribute("data-theme");}readStored(){try{let o=localStorage.getItem(Rt),e=localStorage.getItem(Vt);return {variant:ze(o)?o:"industry",mode:cn(e)?e:"system"}}catch{return {variant:"industry",mode:"system"}}}static \u0275fac=function(e){return new(e||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})};var gn=(t,o)=>o.id;function hn(t,o){if(t&1&&(ma(0,"option",1),VC(1),Id()),t&2){let e=o.$implicit,n=pC();Zg("value",e.id)("selected",e.id===n.theme().variant),ri$3(),hy(e.label);}}var fn={light:"light_mode",dark:"dark_mode",system:"brightness_auto"},ue=class t{themes=h(pe);theme=this.themes.theme;variants=Ne;modeIcon=lT(()=>fn[this.theme().mode]);modeTitle=lT(()=>{let o=this.theme().mode;return `Theme: ${o} (click for ${Re(o)})`});onVariantChange(o){let e=o.target.value;ze(e)&&this.themes.setVariant(e);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["ds-theme-picker"]],decls:6,vars:3,consts:[["aria-label","Skin","title","Skin",1,"ds-theme-picker__skin",3,"change"],[3,"value","selected"],["type","button",1,"ds-theme-picker__mode",3,"click","title"],["aria-hidden","true"]],template:function(e,n){e&1&&(ma(0,"select",0),ey("change",function(d){return n.onVariantChange(d)}),eC(1,hn,2,3,"option",1,gn),Id(),ma(3,"button",2),ey("click",function(){return n.themes.cycleMode()}),ma(4,"mat-icon",3),VC(5),Id()()),e&2&&(ri$3(),tC(n.variants),ri$3(2),Zg("title",n.modeTitle()),ir$1("aria-label",n.modeTitle()),ri$3(2),hy(n.modeIcon()));},dependencies:[Z8],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;gap:6px}.ds-theme-picker__skin[_ngcontent-%COMP%]{min-height:32px;padding:0 10px;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-md, 0);background:var(--color-surface, #dcdcde);color:var(--color-text, #1d1f20);font-family:var(--font-body, sans-serif);font-size:13px;cursor:pointer;outline:none}.ds-theme-picker__skin[_ngcontent-%COMP%]:focus-visible{border-color:var(--color-accent, #5980a6)}.ds-theme-picker__mode[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-pill, 0);background:transparent;color:var(--color-text, #1d1f20);cursor:pointer;transition:background .12s ease}.ds-theme-picker__mode[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(29, 31, 32, .06))}.ds-theme-picker__mode[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-accent, #5980a6);outline-offset:2px}.ds-theme-picker__mode[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px;line-height:1}"]})};var _n=(t,o)=>o.link;function bn(t,o){if(t&1&&(ma(0,"a",20),VC(1),Id()),t&2){let e=pC().$implicit;It$7("sf-mono",e.mono),Zg("routerLink",e.link),ri$3(),hy(e.label);}}function yn(t,o){if(t&1&&(ma(0,"span"),VC(1),Id()),t&2){let e=pC(),n=e.$implicit,i=e.$index,d=e.$count;It$7("sf-mono",n.mono)("current",i===d-1),ir$1("aria-current",i===d-1?"page":null),ri$3(),Sd(" ",n.label," ");}}function vn(t,o){if(t&1&&(ma(0,"mat-icon",17),VC(1,"chevron_right"),Id(),ci$3(2,bn,2,4,"a",18)(3,yn,2,6,"span",19)),t&2){let e=o.$implicit,n=o.$index,i=o.$count;ri$3(2),ui$2(e.link&&n!==i-1?2:3);}}function Cn(t,o){if(t&1&&(ma(0,"a",15,0)(2,"span",21)(3,"mat-icon",22),VC(4),Id()(),ma(5,"span",23),VC(6),Id()()),t&2){let e=o.$implicit,n=bC(1);Zg("routerLink",e.link),ir$1("aria-current",n.isActive?"page":null),ri$3(4),hy(e.icon),ri$3(2),hy(e.label);}}var ge=class t{store=h(pn$3);shell=h(yb);nav=[{label:"Workstreams",icon:"grid_view",link:"/workstreams"},{label:"History",icon:"history",link:"/history"},{label:"Workflows",icon:"account_tree",link:"/workflows"},{label:"Admin",icon:"tune",link:"/admin"}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["sf-root"]],decls:38,vars:13,consts:[["rla","routerLinkActive"],[1,"topbar"],["routerLink","/workstreams","aria-label","WHOZ Factory, home",1,"brand"],["src","W.svg","alt","WHOZ","aria-hidden","true",1,"whoz-logo"],["aria-label","Breadcrumb",1,"crumbs"],[1,"sf-spacer"],["aria-label","Cost summary",1,"cost-pill"],["aria-hidden","true",1,"live-dot"],[1,"strong"],[1,"total"],[1,"destroyed-toggle",3,"change","checked"],["aria-label","Benjamin Valdes",1,"avatar"],[1,"body"],["mode","side","opened","","disableClose","",1,"rail"],["aria-label","Main navigation",1,"rail-nav"],["routerLinkActive","active",1,"rail-item",3,"routerLink"],[1,"content"],["aria-hidden","true",1,"sep"],[3,"routerLink","sf-mono"],[3,"sf-mono","current"],[3,"routerLink"],[1,"rail-icon"],["aria-hidden","true"],[1,"rail-label"]],template:function(e,n){if(e&1&&(ma(0,"mat-toolbar",1)(1,"a",2),Yg(2,"img",3),VC(3," WHOZ Factory "),Id(),ma(4,"nav",4),eC(5,vn,4,1,null,null,Xw),Id(),Yg(7,"span",5),ma(8,"div",6),Yg(9,"span",7),ma(10,"span",8),VC(11),Id(),ma(12,"span"),VC(13,"\xB7"),Id(),ma(14,"span"),VC(15,"workflows "),ma(16,"b"),VC(17),eT(18,"usd"),Id()(),ma(19,"span"),VC(20,"\xB7"),Id(),ma(21,"span"),VC(22,"total "),ma(23,"b",9),VC(24),eT(25,"usd"),Id()()(),ma(26,"mat-slide-toggle",10),ey("change",function(d){return n.store.showDestroyed.set(d.checked)}),VC(27," Destroyed runs "),Id(),Yg(28,"ds-theme-picker"),ma(29,"span",11),VC(30,"BV"),Id()(),ma(31,"mat-sidenav-container",12)(32,"mat-sidenav",13)(33,"nav",14),eC(34,Cn,7,4,"a",15,_n),Id()(),ma(36,"mat-sidenav-content",16),Yg(37,"router-outlet"),Id()()),e&2){ri$3(5),tC(n.shell.crumbs());let i=n.store.costs();ri$3(6),Sd("",i.active," active workflows"),ri$3(3),ir$1("title",i.unknownCostCount?i.unknownCostCount+" round(s) with unknown cost":null),ri$3(3),hy(oT(18,5,i.workflowsUsd,2,i.unknownCostCount)),ri$3(7),hy(oT(25,9,i.totalUsd,2,i.unknownCostCount)),ri$3(2),Zg("checked",n.store.showDestroyed()),ri$3(8),tC(n.nav);}},dependencies:[ur,Nt$1,bo,Tt,Pt,Nt,Fe,At,le,Y8,Z8,zt,Ae,ue,ot$1],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh}.topbar[_ngcontent-%COMP%]{height:60px;flex-shrink:0;gap:14px;padding:0 24px;border-bottom:1px solid var(--color-divider)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-family:var(--font-heading);font-size:17px;font-weight:700;color:var(--color-text);text-decoration:none;transition:opacity .14s ease}.brand[_ngcontent-%COMP%]:hover{opacity:.8}.whoz-logo[_ngcontent-%COMP%]{height:28px;width:auto}:is([data-theme$=-dark][_ngcontent-%COMP%]) .whoz-logo[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0;overflow:hidden}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(.sf-mono), .crumbs[_ngcontent-%COMP%] > .current[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{flex-shrink:0}.cost-pill[_ngcontent-%COMP%], .destroyed-toggle[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%], ds-theme-picker[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1600px){.cost-pill[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{display:none}}.crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--color-neutral-500)}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-text-secondary);text-decoration:none;font-weight:600}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-text)}.crumbs[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;height:34px;padding:0 14px;border-radius:var(--radius-pill, 0);border:1px solid var(--color-divider);background:var(--color-bg);font-family:var(--font-heading);font-size:12.5px;color:var(--color-text-secondary)}.cost-pill[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:var(--color-accent-700);font-weight:700}.cost-pill[_ngcontent-%COMP%] .strong[_ngcontent-%COMP%]{color:var(--color-text)}.live-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--color-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-success) 15%,transparent)}.destroyed-toggle[_ngcontent-%COMP%]{font-size:13px}.avatar[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;background:color-mix(in srgb,var(--color-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--color-accent) 40%,transparent);color:var(--color-accent-700);font-family:var(--font-heading);font-size:12px;font-weight:700}.body[_ngcontent-%COMP%]{flex:1}.rail[_ngcontent-%COMP%]{width:88px;border-right:1px solid var(--color-divider)}.rail-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 4px;box-sizing:border-box}.rail-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0;text-decoration:none;color:var(--color-text-secondary);font-size:11px;font-weight:600}.rail-label[_ngcontent-%COMP%]{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}.rail-icon[_ngcontent-%COMP%]{width:52px;height:30px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;transition:background .15s}.rail-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;line-height:1}.rail-item[_ngcontent-%COMP%]:hover .rail-icon[_ngcontent-%COMP%]{background:var(--color-bg-hover)}.rail-item.active[_ngcontent-%COMP%]{color:var(--color-text);font-weight:700}.rail-item.active[_ngcontent-%COMP%] .rail-icon[_ngcontent-%COMP%]{background:var(--color-accent-100);color:var(--color-accent-800)}.content[_ngcontent-%COMP%]{padding:28px 32px;box-sizing:border-box}']})};CS(ge,Ot).catch(t=>console.error(t));export{$s as $,pC as A,aC as B,mt$3 as C,lS as D,st$1 as E,nt$1 as F,It$7 as G,HW as H,It$3 as I,QC as J,GC as K,he$2 as L,Me$1 as M,Nt$1 as N,Oy as O,Pt$2 as P,Qe$3 as Q,ce$4 as R,Se$1 as S,no$1 as T,UW as U,VC as V,Wr as W,y as X,Y8 as Y,Z8 as Z,sr$1 as _,Hr as a,ge$3 as a$,ot$3 as a0,jt as a1,vt$2 as a2,rT as a3,nT as a4,di$3 as a5,Wp as a6,Gp as a7,Sd as a8,jm as a9,gy as aA,G as aB,Ec as aC,A$1 as aD,ns$1 as aE,bn$2 as aF,xn$1 as aG,Oe$2 as aH,Ne$3 as aI,un$2 as aJ,fn$3 as aK,P as aL,cy as aM,mU as aN,oi$2 as aO,Bt$5 as aP,Qe$2 as aQ,si$2 as aR,iy as aS,vC as aT,KC as aU,Xw as aV,to$1 as aW,j$1 as aX,Cn$3 as aY,Nc as aZ,wn$1 as a_,ce$1 as aa,Ue$3 as ab,Hn$1 as ac,ve$1 as ad,I$2 as ae,Wn$1 as af,Bn$1 as ag,Xe as ah,kn$1 as ai,Tn$1 as aj,qt$2 as ak,fn$2 as al,cn$2 as am,_i$1 as an,UI as ao,$I as ap,Ey as aq,vb as ar,Cc as as,ke$4 as at,qe$3 as au,yr as av,XW as aw,ao$1 as ax,zt$6 as ay,M as az,Id as b,fU as b$,k$1 as b0,Z$2 as b1,Er as b2,mb as b3,Ly as b4,iM as b5,mf as b6,Oe$4 as b7,Dt$3 as b8,eb as b9,wt$1 as bA,zM as bB,bi$1 as bC,Bi$1 as bD,U as bE,le$2 as bF,Ai$1 as bG,ai$1 as bH,wd as bI,Cd as bJ,_t as bK,se$1 as bL,dt$3 as bM,Pv as bN,Jb as bO,po$1 as bP,_t$5 as bQ,Vt$3 as bR,Ac as bS,pm as bT,Kr$1 as bU,dn$3 as bV,fn$5 as bW,N3 as bX,Qg as bY,Qn$2 as bZ,hf as b_,rt$2 as ba,wt$6 as bb,R as bc,ny as bd,gC as be,yC as bf,ue$2 as bg,uf as bh,so$1 as bi,Ht$4 as bj,pb as bk,ka as bl,mW as bm,rr$1 as bn,bC as bo,ry as bp,yn$2 as bq,ya as br,rh as bs,oh as bt,D$1 as bu,Es as bv,Bd as bw,Xg as bx,$g as by,Jw as bz,ce$2 as c,Yv as c$,Df as c0,O$1 as c1,fb as c2,K$3 as c3,tc as c4,Fy as c5,De$5 as c6,A as c7,Pe$3 as c8,ut$3 as c9,vr as cA,Ln$1 as cB,Gn as cC,Un$1 as cD,ln$2 as cE,Dt$2 as cF,Ht$2 as cG,Gt$2 as cH,on$2 as cI,m_ as cJ,ty as cK,Xb as cL,je$1 as cM,Ne$5 as cN,Wt$3 as cO,jt$2 as cP,q$2 as cQ,wt$5 as cR,Ft$5 as cS,$$1 as cT,Tt$6 as cU,Wi$2 as cV,di$2 as cW,De$4 as cX,Pw as cY,pt$3 as cZ,TM as c_,bn$3 as ca,Re$4 as cb,Z$1 as cc,Qb as cd,eD as ce,Kb as cf,Yb as cg,Yr$1 as ch,Wr$1 as ci,pn$4 as cj,Zl as ck,V$1 as cl,Ee$1 as cm,ai$4 as cn,nW as co,z3 as cp,nn$2 as cq,zt$3 as cr,Zn$2 as cs,me$3 as ct,Fe$2 as cu,tt$1 as cv,mn$4 as cw,F$2 as cx,Ge$3 as cy,pi$2 as cz,eC as d,dM as d0,fM as d1,xM as d2,At$6 as d3,g as d4,ut$4 as d5,OM as d6,aS as d7,iT as d8,ey as e,ci$3 as f,Yg as g,h,eT as i,Zg as j,hy as k,oT as l,ma as m,hU as n,ot$1 as o,pn$3 as p,lT as q,ri$3 as r,ir$1 as s,tC as t,ui$2 as u,my as v,vy as w,xe$1 as x,yb as y,WC as z};
|