@whoz-oss/coday-client 0.0.0-workstream-forge.160 → 0.0.0-workstream-forge.162
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-BQRV2aXM.js → chunk-03YpIQRe.js} +1 -1
- package/browser/{chunk-giF-MCzQ.js → chunk-33f1Bq4d.js} +1 -1
- package/browser/{chunk-C6l-ubPp.js → chunk-BIqQDrzJ.js} +1 -1
- package/browser/{chunk-DHgv1cy0.js → chunk-BJT1pT3j.js} +1 -1
- package/browser/chunk-BO1HGYJ3.js +2 -0
- package/browser/chunk-BPDyUW9C.js +1 -0
- package/browser/{chunk-CdClH7mi.js → chunk-BQtSIe5T.js} +1 -1
- package/browser/chunk-BUHpp4JE.js +1 -0
- package/browser/chunk-BVM48Akd.js +1 -0
- package/browser/chunk-BVdMofRH.js +1 -0
- package/browser/chunk-BXDdc4SZ.js +1 -0
- package/browser/{chunk-BHB3p2wV.js → chunk-BdAw3RVr.js} +1 -1
- package/browser/chunk-BfnsSzkw.js +2 -0
- package/browser/chunk-Btu4vlJn.js +1027 -0
- package/browser/chunk-Bu3U66-H.js +1 -0
- package/browser/chunk-C1QfCycr.js +1 -0
- package/browser/{chunk-D2ibs68b.js → chunk-C4HOlFhc.js} +1 -1
- package/browser/chunk-C6LQzD3M.js +1 -0
- package/browser/chunk-CDenpy3I.js +1 -0
- package/browser/{chunk-6lzxK4MR.js → chunk-CDsD_Pfd.js} +1 -1
- package/browser/chunk-CDzMjHDI.js +1 -0
- package/browser/chunk-CUjEhdzX.js +1 -0
- package/browser/chunk-CV3K5zNT.js +1 -0
- package/browser/chunk-CbxILJkh.js +1 -0
- package/browser/{chunk-BtPUYR0A.js → chunk-Cc6IKSyC.js} +1 -1
- package/browser/chunk-CkucggC3.js +1 -0
- package/browser/chunk-Cml5V2VG.js +1 -0
- package/browser/chunk-CrJHMDmB.js +1 -0
- package/browser/chunk-CsSaiA1P.js +1 -0
- package/browser/{chunk-Cm-B0Bk2.js → chunk-CubEcxsT.js} +1 -1
- package/browser/chunk-D0Fm138-.js +1 -0
- package/browser/chunk-DAFgF2zk.js +1 -0
- package/browser/chunk-DFXEWELG.js +1 -0
- package/browser/chunk-DHFl5v8y.js +1 -0
- package/browser/chunk-DhVxqqFl.js +2 -0
- package/browser/{chunk-Db9YjUfz.js → chunk-Dnq1VkLC.js} +1 -1
- package/browser/chunk-DqhsOOSW.js +1 -0
- package/browser/chunk-G9dv78Yj.js +1 -0
- package/browser/{chunk-Cw7AdCyF.js → chunk-HGFAbUg7.js} +1 -1
- package/browser/chunk-ILOTMMoB.js +1 -0
- package/browser/chunk-KPQ2pP66.js +1 -0
- package/browser/{chunk-CNj1cQTl.js → chunk-LDlaL5qr.js} +1 -1
- package/browser/{chunk-PgOtzhjh.js → chunk-O-V09dXj.js} +1 -1
- package/browser/{chunk-BKPUzOao.js → chunk-O3MeTbDv.js} +1 -1
- package/browser/chunk-QZ9v-olu.js +1 -0
- package/browser/index.html +4 -2
- package/browser/{main-3WVIQAKF.js → main-ITBV6BE5.js} +13 -13
- package/browser/styles-MRPXDMCX.css +1 -0
- package/package.json +1 -1
- package/browser/chunk-BLas18US.js +0 -1
- package/browser/chunk-BN5SgIBg.js +0 -1027
- package/browser/chunk-BP4bg_R6.js +0 -1
- package/browser/chunk-BnPmoh3z.js +0 -1
- package/browser/chunk-CD-gr1_W.js +0 -1
- package/browser/chunk-CFyS8cBR.js +0 -1
- package/browser/chunk-CGcYoQNb.js +0 -1
- package/browser/chunk-CRkvWY5s.js +0 -1
- package/browser/chunk-CYIDbqSE.js +0 -1
- package/browser/chunk-CcHF3ZPx.js +0 -1
- package/browser/chunk-Cc_OXK2g.js +0 -1
- package/browser/chunk-CgKiDm6z.js +0 -1
- package/browser/chunk-Cgri6mja.js +0 -1
- package/browser/chunk-Cp__Ucb0.js +0 -2
- package/browser/chunk-Cta1xCgm.js +0 -1
- package/browser/chunk-CwR1is0O.js +0 -1
- package/browser/chunk-DRPc0mfI.js +0 -2
- package/browser/chunk-DVFj7gx9.js +0 -1
- package/browser/chunk-DWxo88Hh.js +0 -1
- package/browser/chunk-DZgJFN1U.js +0 -1
- package/browser/chunk-DuzRIIcw.js +0 -1
- package/browser/chunk-Dx61Sbit.js +0 -1
- package/browser/chunk-Ft41O2oO.js +0 -1
- package/browser/chunk-GZDFcyNO.js +0 -1
- package/browser/chunk-LrMK9YKu.js +0 -1
- package/browser/chunk-PLFrDqWd.js +0 -1
- package/browser/chunk-fnvTjcS-.js +0 -1
- package/browser/chunk-kgmv2Up_.js +0 -1
- package/browser/chunk-nYdCEVqA.js +0 -1
- package/browser/chunk-oG_KGFYC.js +0 -2
- package/browser/styles-TDH2HBFP.css +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var p$1=Object.create;var j$5=Object.defineProperty,q$1=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$2=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$2=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var l$1=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$2.call(b,c)&&l$1(a,c,b[c]);if(g$2)for(var c of g$2(b))m.call(b,c)&&l$1(a,c,b[c]);return a},x$2=(a,b)=>q$1(a,s(b));var y$4=(a,b)=>{var c={};for(var d in a)k$2.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$2)for(var d of g$2(a))b.indexOf(d)<0&&m.call(a,d)&&(c[d]=a[d]);return c};var z$4=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$2.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$2=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$1=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function x$1(e){return typeof e=="function"}function mn$1(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
|
|
1
|
+
var p$1=Object.create;var j$5=Object.defineProperty,q$1=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$2=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$2=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var l$1=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$2.call(b,c)&&l$1(a,c,b[c]);if(g$2)for(var c of g$2(b))m.call(b,c)&&l$1(a,c,b[c]);return a},x$2=(a,b)=>q$1(a,s(b));var y$4=(a,b)=>{var c={};for(var d in a)k$2.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$2)for(var d of g$2(a))b.indexOf(d)<0&&m.call(a,d)&&(c[d]=a[d]);return c};var z$4=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$2.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$2=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$1=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function x$1(e){return typeof e=="function"}function mn$1(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 ss$1=mn$1(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 Vn$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ae$2=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$1(r))try{r();}catch(i){t=i instanceof rs$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{zh(i);}catch(s){t=t??[],s instanceof rs$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new rs$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)zh(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)&&Vn$2(n,t);}remove(t){let{_finalizers:n}=this;n&&Vn$2(n,t),t instanceof e&&t._removeParent(this);}};ae$2.EMPTY=(()=>{let e=new ae$2;return e.closed=true,e})();var mu=ae$2.EMPTY;function os$1(e){return e instanceof ae$2||e&&"closed"in e&&x$1(e.remove)&&x$1(e.add)&&x$1(e.unsubscribe)}function zh(e){x$1(e)?e():e.unsubscribe();}var ut$2={Promise:void 0};var Mr={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function is$1(e){Mr.setTimeout(()=>{throw e});}function zt$1(){}function Nr(e){e();}var zn$2=class zn extends ae$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,os$1(t)&&t.add(this)):this.destination=qE;}static create(t,n,r){return new lt$2(t,n,r)}next(t){this.isStopped?Du():this._next(t);}error(t){this.isStopped?Du():(this.isStopped=true,this._error(t));}complete(){this.isStopped?Du():(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 Eu=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){ss$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){ss$1(r);}else ss$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){ss$1(n);}}},lt$2=class lt extends zn$2{constructor(t,n,r){super();let o;if(x$1(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Eu(o);}};function ss$1(e){is$1(e);}function WE(e){throw e}function Du(e,t){}var qE={closed:true,next:zt$1,error:WE,complete:zt$1};var Rr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Be$3(e){return e}function wu(...e){return Iu(e)}function Iu(e){return e.length===0?Be$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=YE(n)?n:new lt$2(n,r,o);return Nr(()=>{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=Yh(r),new r((o,i)=>{let s=new lt$2({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)}[Rr](){return this}pipe(...n){return Iu(n)(this)}toPromise(n){return n=Yh(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 Yh(e){var t;return (t=e??ut$2.Promise)!==null&&t!==void 0?t:Promise}function ZE(e){return e&&x$1(e.next)&&x$1(e.error)&&x$1(e.complete)}function YE(e){return e&&e instanceof zn$2||ZE(e)&&os$1(e)}var Qh=mn$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ne$1=(()=>{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 as$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Qh}next(n){Nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Nr(()=>{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(){Nr(()=>{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?mu:(this.currentObservers=null,i.push(n),new ae$2(()=>{this.currentObservers=null,Vn$2(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 as$1(t,n),e})(),as$1=class as extends ne$1{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:mu}};var ve$2=class ve extends ne$1{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 fe$2=new k$1(e=>e.complete());function cs$1(e){return e&&x$1(e.schedule)}function Cu(e){return e[e.length-1]}function us$1(e){return x$1(Cu(e))?e.pop():void 0}function bt$2(e){return cs$1(Cu(e))?e.pop():void 0}function Kh(e,t){return typeof Cu(e)=="number"?e.pop():t}function Xh(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 Jh(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 Gn$2(e){return this instanceof Gn$2?(this.v=e,this):new Gn$2(e)}function ep(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(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(v){return new Promise(function(E,M){i.push([h,v,E,M])>1||c(h,v);})},g&&(o[h]=g(o[h])));}function c(h,g){try{u(r[h](g));}catch(v){f(i[0][3],v);}}function u(h){h.value instanceof Gn$2?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h);}function l(h){c("next",h);}function d(h){c("throw",h);}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function tp(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 Jh=="function"?Jh(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 ls$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function ds$1(e){return x$1(e?.then)}function fs$1(e){return x$1(e[Rr])}function hs$1(e){return Symbol.asyncIterator&&x$1(e?.[Symbol.asyncIterator])}function ps$1(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 QE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gs$1=QE();function ms$2(e){return x$1(e?.[gs$1])}function ys$1(e){return ep(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Gn$2(n.read());if(o)return yield Gn$2(void 0);yield yield Gn$2(r);}}finally{n.releaseLock();}})}function vs$1(e){return x$1(e?.getReader)}function L$3(e){if(e instanceof k$1)return e;if(e!=null){if(fs$1(e))return KE(e);if(ls$1(e))return JE(e);if(ds$1(e))return XE(e);if(hs$1(e))return np(e);if(ms$2(e))return ew(e);if(vs$1(e))return tw(e)}throw ps$1(e)}function KE(e){return new k$1(t=>{let n=e[Rr]();if(x$1(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JE(e){return new k$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function XE(e){return new k$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,is$1);})}function ew(e){return new k$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function np(e){return new k$1(t=>{nw(e,t).catch(n=>t.error(n));})}function tw(e){return np(ys$1(e))}function nw(e,t){var n,r,o,i;return Xh(this,void 0,void 0,function*(){try{for(n=tp(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 we$2(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 rw(e){return x$1(e?.lift)}function S(e){return t=>{if(rw(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 T$3(e,t,n,r,o){return new bu(e,t,n,r,o)}var bu=class extends zn$2{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 Ds$1(e,t=0){return S((n,r)=>{n.subscribe(T$3(r,o=>we$2(r,e,()=>r.next(o),t),()=>we$2(r,e,()=>r.complete(),t),o=>we$2(r,e,()=>r.error(o),t)));})}function Es(e,t=0){return S((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function rp(e,t){return L$3(e).pipe(Es(t),Ds$1(t))}function op(e,t){return L$3(e).pipe(Es(t),Ds$1(t))}function ip(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 sp(e,t){return new k$1(n=>{let r;return we$2(n,t,()=>{r=e[gs$1](),we$2(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$1(r?.return)&&r.return()})}function ws$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new k$1(n=>{we$2(n,t,()=>{let r=e[Symbol.asyncIterator]();we$2(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function ap(e,t){return ws$1(ys$1(e),t)}function cp(e,t){if(e!=null){if(fs$1(e))return rp(e,t);if(ls$1(e))return ip(e,t);if(ds$1(e))return op(e,t);if(hs$1(e))return ws$1(e,t);if(ms$2(e))return sp(e,t);if(vs$1(e))return ap(e,t)}throw ps$1(e)}function Y$1(e,t){return t?cp(e,t):L$3(e)}function _$3(...e){let t=bt$2(e);return Y$1(e,t)}var Gt$1=mn$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function ow(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new lt$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new Gt$1);}});e.subscribe(i);})}function j$4(e,t){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:iw}=Array,{getPrototypeOf:sw,prototype:aw,keys:cw}=Object;function Is(e){if(e.length===1){let t=e[0];if(iw(t))return {args:t,keys:null};if(uw(t)){let n=cw(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function uw(e){return e&&typeof e=="object"&&sw(e)===aw}var{isArray:lw}=Array;function dw(e,t){return lw(t)?e(...t):e(t)}function Cs$1(e){return j$4(t=>dw(e,t))}function bs$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ss$1(...e){let t=bt$2(e),n=us$1(e),{args:r,keys:o}=Is(e);if(r.length===0)return Y$1([],t);let i=new k$1(fw(r,t,o?s=>bs$1(o,s):Be$3));return n?i.pipe(Cs$1(n)):i}function fw(e,t,n=Be$3){return r=>{up(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)up(t,()=>{let u=Y$1(e[c],t),l=false;u.subscribe(T$3(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function up(e,t,n){e?we$2(n,e,t):t();}function hw(...e){let t=us$1(e),{args:n,keys:r}=Is(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;L$3(n[l]).subscribe(T$3(i,f=>{d||(d=true,u--),a[l]=f;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?bs$1(r,a):a),i.complete());}));}});return t?o.pipe(Cs$1(t)):o}function Wn$2(e){return S((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$3(n,void 0,void 0,s=>{i=L$3(e(s,Wn$2(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var Ts$1=class Ts extends ae$2{constructor(t,n){super();}schedule(t,n=0){return this}};var Ro={setInterval(e,t,...n){let{delegate:r}=Ro;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var _s$1=class _s extends Ts$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 Ro.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&&Ro.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,Vn$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Ao={now(){return (Ao.delegate||Date).now()},delegate:void 0};var Ar=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)}};Ar.now=Ao.now;var Ms$1=class Ms extends Ar{constructor(t,n=Ar.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 Wt$1=new Ms$1(_s$1),lp=Wt$1;function dp(e,t=Wt$1){return S((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$3(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}var xo=class extends ne$1{constructor(t=1/0,n=1/0,r=Ao){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);}}};function Tu(e={}){let{connector:t=()=>new ne$1,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,f=()=>{a?.unsubscribe(),a=void 0;},h=()=>{f(),s=c=void 0,l=d=false;},g=()=>{let v=s;h(),v?.unsubscribe();};return S((v,E)=>{u++,!d&&!l&&f();let M=c=c??t();E.add(()=>{u--,u===0&&!d&&!l&&(a=Su(g,o));}),M.subscribe(E),!s&&u>0&&(s=new lt$2({next:z=>M.next(z),error:z=>{d=!0,f(),a=Su(h,n,z),M.error(z);},complete:()=>{l=!0,f(),a=Su(h,r),M.complete();}}),L$3(v).subscribe(s));})(i)}}function Su(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new lt$2({next:()=>{r.unsubscribe(),e();}});return L$3(t(...n)).subscribe(r)}function pw(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,Tu({connector:()=>new xo(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Ie$4(e,t){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>e.call(t,i,o++)&&r.next(i)));})}function fp(e){return Ie$4((t,n)=>e<=n)}function Ns$1(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,f=()=>{d&&!c.length&&!u&&t.complete();},h=v=>u<r?g(v):c.push(v),g=v=>{i&&t.next(v),u++;let E=false;L$3(n(v,l++)).subscribe(T$3(t,M=>{i?h(M):t.next(M);},()=>{E=true;},void 0,()=>{if(E)try{for(u--;c.length&&u<r;){let M=c.shift();s?we$2(t,s,()=>g(M)):g(M);}f();}catch(M){t.error(M);}}));};return e.subscribe(T$3(t,h,()=>{d=true,f();})),()=>{}}function he$3(e,t,n=1/0){return x$1(t)?he$3((r,o)=>j$4((i,s)=>t(r,i,o,s))(L$3(e(r,o))),n):(typeof t=="number"&&(n=t),S((r,o)=>Ns$1(r,o,e,n)))}function St$1(e=1/0){return he$3(Be$3,e)}function hp(){return St$1(1)}function Tt$2(...e){return hp()(Y$1(e,bt$2(e)))}function Rs$1(...e){let t=bt$2(e);return S((n,r)=>{(t?Tt$2(e,n,t):Tt$2(e,n)).subscribe(r);})}function Ae$4(e,t){return S((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$3(r,c=>{o?.unsubscribe();let u=0,l=i++;L$3(e(c,l)).subscribe(o=T$3(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Le$2(e,t,n){let r=x$1(e)||t||n?{next:e,error:t,complete:n}:e;return r?S((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$3(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);}));}):Be$3}function _u(e,t){let n=x$1(e)?e:()=>e,r=o=>o.error(n());return new k$1(r)}function As$1(e){return !!e&&(e instanceof k$1||x$1(e.lift)&&x$1(e.subscribe))}function xs(e){return e instanceof Date&&!isNaN(e)}var gw=mn$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function mw(e,t){let{first:n,each:r,with:o=yw,scheduler:i=Wt$1,meta:s=null}=xs(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=g=>{l=we$2(c,i,()=>{try{u.unsubscribe(),L$3(o({meta:s,lastValue:d,seen:f})).subscribe(c);}catch(v){c.error(v);}},g);};u=a.subscribe(T$3(c,g=>{l?.unsubscribe(),f++,c.next(d=g),r>0&&h(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!f&&h(n!=null?typeof n=="number"?n:+n-i.now():r);})}function yw(e){throw new gw(e)}function Oo(e){return new k$1(t=>{L$3(e()).subscribe(t);})}function ko(e=0,t,n=lp){let r=-1;return t!=null&&(cs$1(t)?n=t:r=t),new k$1(o=>{let i=xs(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 vw(...e){let t=bt$2(e),n=Kh(e,1/0),r=e;return r.length?r.length===1?L$3(r[0]):St$1(n)(Y$1(r,t)):fe$2}function pp(e){return S((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$3(n,u=>{r=!0,o=u,i||L$3(e(u)).subscribe(i=T$3(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Dw(e,t=Wt$1){return pp(()=>ko(e,t))}function gp(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$3(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function qt$1(e,t){return x$1(t)?he$3(e,t,1):he$3(e,1)}function mp(e){return S((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function He(e){return e<=0?()=>fe$2:S((t,n)=>{let r=0;t.subscribe(T$3(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Mu(){return S((e,t)=>{e.subscribe(T$3(t,zt$1));})}function Nu(e){return j$4(()=>e)}function Ru(e,t){return t?n=>Tt$2(t.pipe(He(1),Mu()),n.pipe(Ru(e))):he$3((n,r)=>L$3(e(n,r)).pipe(He(1),Nu(n)))}function Ew(e,t=Wt$1){let n=ko(e,t);return Ru(()=>n)}function ww(e,t){return S((n,r)=>{let o=new Set;n.subscribe(T$3(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&L$3(t).subscribe(T$3(r,()=>o.clear(),zt$1));})}function yp(e,t=Be$3){return e=e??Iw,S((n,r)=>{let o,i=!0;n.subscribe(T$3(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Iw(e,t){return e===t}function vp(e=Cw){return S((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Cw(){return new Gt$1}function bw(...e){return t=>Tt$2(t,_$3(...e))}function Au(e,t){return t?n=>n.pipe(Au((r,o)=>L$3(e(r,o)).pipe(j$4((i,s)=>t(r,i,o,s))))):S((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$3(r,a=>{i||(i=T$3(r,void 0,()=>{i=null,s&&r.complete();}),L$3(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function Sw(e,t=1/0,n){return t=(t||0)<1?1/0:t,S((r,o)=>Ns$1(r,o,e,t,void 0,!0,n))}function xr(e){return S((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Zt$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ie$4((o,i)=>e(o,i,r)):Be$3,He(1),n?mp(t):vp(()=>new Gt$1))}function Os$1(e){return e<=0?()=>fe$2:S((t,n)=>{let r=[];t.subscribe(T$3(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 Tw(e,t){return S(gp(e,t,arguments.length>=2,!0))}function Or(e){return S((t,n)=>{L$3(e).subscribe(T$3(n,()=>n.complete(),zt$1)),!n.closed&&t.subscribe(n);})}function _w(e,t=false){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var xe$2=null,ks$1=false,qn$2=1,re$2=Symbol("SIGNAL");function C$1(e){let t=xe$2;return xe$2=e,t}function Ps$1(){return xe$2}var yn$1={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$1(e){if(ks$1)throw new Error("");if(xe$2===null)return;xe$2.consumerOnSignalRead(e);let t=xe$2.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=xe$2.recomputing;if(r&&(n=t!==void 0?t.nextProducer:xe$2.producers,n!==void 0&&n.producer===e)){xe$2.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=qn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===xe$2&&(!r||o.knownValidAtEpoch===qn$2))return;let i=Lr(xe$2),s={producer:e,consumer:xe$2,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:qn$2,lastReadVersion:e.version,nextConsumer:void 0};xe$2.producersTail=s,t!==void 0?t.nextProducer=s:xe$2.producers=s,i&&Ip(e,s);}function Dp(){qn$2++;}function Qn$2(e){if(!(Lr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qn$2)){if(!e.producerMustRecompute(e)&&!Pr$1(e)){kr(e);return}e.producerRecomputeValue(e),kr(e);}}function xu(e){if(e.consumers===void 0)return;let t=ks$1;ks$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Nw(r);}}finally{ks$1=t;}}function Ou(){return xe$2?.consumerAllowSignalWrites!==false}function Nw(e){e.dirty=true,xu(e),e.consumerMarkedDirty?.(e);}function kr(e){e.dirty=false,e.lastCleanEpoch=qn$2;}function Qt$1(e){return e&&Ep(e),C$1(e)}function Ep(e){if(e.producersTail?.knownValidAtEpoch===qn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function vn$2(e,t){C$1(t),e&&wp(e);}function wp(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Lr(e))do n=ku(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Pr$1(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Qn$2(n),r!==n.version))return true}return false}function Dn$2(e){if(Lr(e)){let t=e.producers;for(;t!==void 0;)t=ku(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Ip(e,t){let n=e.consumersTail,r=Lr(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)Ip(o.producer,o);}function ku(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,!Lr(t)){let i=t.producers;for(;i!==void 0;)i=ku(i);}return n}function Lr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Lo(e,t){return Object.is(e,t)}function Fo(e,t){let n=Object.create(Rw);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Qn$2(n),Yt$1(n),n.value===_t$2)throw n.error;return n.value};return r[re$2]=n,r}var Zn$2=Symbol("UNSET"),Yn$2=Symbol("COMPUTING"),_t$2=Symbol("ERRORED"),Rw=x$2(w$1({},yn$1),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"computed",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{r=e.computation(),C$1(null),o=t!==Zn$2&&t!==_t$2&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Aw(){throw new Error}var Cp=Aw;function bp(e){Cp(e);}function Pu(e){Cp=e;}function Lu(e,t){let n=Object.create(jo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Sp(n);return r[re$2]=n,[r,s=>En$2(n,s),s=>Ls(n,s)]}function Sp(e){return Yt$1(e),e.value}function En$2(e,t){Ou()||bp(e),e.equal(e.value,t)||(e.value=t,Ow(e));}function Ls(e,t){Ou()||bp(e),En$2(e,t(e.value));}var jo=x$2(w$1({},yn$1),{equal:Lo,value:void 0,kind:"signal"});function Ow(e){e.version++,Dp(),xu(e);}var Fu=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ju(e){if(e.dirty=false,e.version>0&&!Pr$1(e))return;e.version++;let t=Qt$1(e);try{e.cleanup(),e.fn();}finally{vn$2(e,t);}}var Uu;function Fs(){return Uu}function Mt$2(e){let t=Uu;return Uu=e,t}var Tp=Symbol("NotFound");function Fr(e){return e===Tp||e?.name==="\u0275NotFound"}function Bu(e,t,n){let r=Object.create(kw);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Qn$2(r),Yt$1(r),r.value===_t$2)throw r.error;return r.value};return i[re$2]=r,i}function _p(e,t){Qn$2(e),En$2(e,t),kr(e);}function Mp(e,t){if(Qn$2(e),e.value===_t$2)throw e.error;Ls(e,t),kr(e);}var kw=x$2(w$1({},yn$1),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{let i=e.source(),s=t!==Zn$2&&t!==_t$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,C$1(null),o=s&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Np(e){let t=C$1(null);try{return e()}finally{C$1(t);}}var zs$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y$3=class y extends Error{code;constructor(t,n){super(Qe$1(t,n)),this.code=t;}};function Pw(e){return `NG0${Math.abs(e)}`}function Qe$1(e,t){return `${Pw(e)}${t?": "+t:""}`}function H$2(e){for(let t in e)if(e[t]===H$2)return t;throw Error("")}function kp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function zo(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(zo).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 Gs(e,t){return e?t?`${e} ${t}`:e:t||""}var Lw=H$2({__forward_ref__:H$2});function Ws(e){return e.__forward_ref__=Ws,e}function De$3(e){return Xu(e)?e():e}function Xu(e){return typeof e=="function"&&e.hasOwnProperty(Lw)&&e.__forward_ref__===Ws}function R$2(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tr(e){return {providers:e.providers||[],imports:e.imports||[]}}function Go(e){return Fw(e,qs)}function el(e){return Go(e)!==null}function Fw(e,t){return e.hasOwnProperty(t)&&e[t]||null}function jw(e){let t=e?.[qs]??null;return t||null}function Vu(e){return e&&e.hasOwnProperty(Us)?e[Us]:null}var qs=H$2({\u0275prov:H$2}),Us=H$2({\u0275inj:H$2}),D$1=class D{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=R$2({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function tl(e){return e&&!!e.\u0275providers}var nl=H$2({\u0275cmp:H$2}),rl=H$2({\u0275dir:H$2}),ol=H$2({\u0275pipe:H$2}),il=H$2({\u0275mod:H$2}),Bo=H$2({\u0275fac:H$2}),nr=H$2({__NG_ELEMENT_ID__:H$2}),Rp=H$2({__NG_ENV_ID__:H$2});function Pp(e){return Zs(e),e[il]||null}function Xt$1(e){return Zs(e),e[nl]||null}function sl(e){return Zs(e),e[rl]||null}function Lp(e){return Zs(e),e[ol]||null}function Zs(e,t){if(e==null)throw new y$3(-919,false)}function Se$4(e){return typeof e=="string"?e:e==null?"":String(e)}var Fp=H$2({ngErrorCode:H$2}),Uw=H$2({ngErrorMessage:H$2});H$2({ngTokenPath:H$2});function al(e,t){return jp("",-200)}function Ys(e,t){throw new y$3(-201,false)}function jp(e,t,n){let r=new y$3(t,e);return r[Fp]=t,r[Uw]=e,r}function Hw(e){return e[Fp]}var $u;function Up(){return $u}function Oe$3(e){let t=$u;return $u=e,t}function cl(e,t,n){let r=Go(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;Ys();}var Ke$1=globalThis;var Vw={},Kn$2=Vw,$w="__NG_DI_FLAG__",zu=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Jn$2(n)||0;try{return this.injector.get(t,r&8?null:Kn$2,r)}catch(o){if(Fr(o))return o;throw o}}};function zw(e,t=0){let n=Fs();if(n===void 0)throw new y$3(-203,false);if(n===null)return cl(e,void 0,t);{let r=Gw(t),o=n.retrieve(e,r);if(Fr(o)){if(r.optional)return null;throw o}return o}}function b(e,t=0){return (Up()||zw)(De$3(e),t)}function p(e,t){return b(e,Jn$2(t))}function Jn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gw(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Gu(e){let t=[];for(let n=0;n<e.length;n++){let r=De$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y$3(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Ww(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b(o,i));}else t.push(b(r));}return t}function Ww(e){return e[$w]}function wn$2(e,t){let n=e.hasOwnProperty(Bo);return n?e[Bo]:null}function Bp(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 Hp(e){return e.flat(Number.POSITIVE_INFINITY)}function Qs(e,t){e.forEach(n=>Array.isArray(n)?Qs(n,t):t(n));}function ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vp(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function $p(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 Ks(e,t,n){let r=Br(e,t);return r>=0?e[r|1]=n:(r=~r,$p(e,r,t,n)),r}function Js(e,t){let n=Br(e,t);if(n>=0)return e[n|1]}function Br(e,t){return qw(e,t,1)}function qw(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 Cn$2={},be$3=[],en$1=new D$1(""),qo=new D$1("",-1),ll=new D$1(""),Ur=class{get(t,n=Kn$2){if(n===Kn$2){let o=jp("",-201);throw o.name="\u0275NotFound",o}return n}};function ft$2(e){return {\u0275providers:e}}function zp(e){return ft$2([{provide:en$1,multi:true,useValue:e}])}function Gp(...e){return {\u0275providers:dl(true,e),\u0275fromNgModule:true}}function dl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Qs(t,s=>{let a=s;Bs(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Wp(o,i),n}function Wp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];fl(o,i=>{t(i,r);});}}function Bs(e,t,n,r){if(e=De$3(e),!e)return false;let o=null,i=Vu(e),s=!i&&Xt$1(e);if(!i&&!s){let c=e.ngModule;if(i=Vu(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)Bs(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Qs(i.imports,l=>{Bs(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Wp(u,t);}if(!a){let u=wn$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:be$3},o),t({provide:ll,useValue:o,multi:true},o),t({provide:en$1,useValue:()=>b(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;fl(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function fl(e,t){for(let n of e)tl(n)&&(n=n.\u0275providers),Array.isArray(n)?fl(n,t):t(n);}var Zw=H$2({provide:String,useValue:H$2});function qp(e){return e!==null&&typeof e=="object"&&Zw in e}function Yw(e){return !!(e&&e.useExisting)}function Qw(e){return !!(e&&e.useFactory)}function Xn$2(e){return typeof e=="function"}function Zp(e){return !!e.useClass}var Zo=new D$1(""),js={},Ap={},Hu;function Hr(){return Hu===void 0&&(Hu=new Ur),Hu}var ee$2=class ee{},er=class extends ee$2{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,qu(t,s=>this.processProvider(s)),this.records.set(qo,jr(void 0,this)),o.has("environment")&&this.records.set(ee$2,jr(void 0,this));let i=this.records.get(Zo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ll,be$3,{self:true}));}retrieve(t,n){let r=Jn$2(n)||0;try{return this.get(t,Kn$2,r)}catch(o){if(Fr(o))return o;throw o}}destroy(){Uo(this),this._destroyed=true;let t=C$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(),C$1(t);}}onDestroy(t){return Uo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Uo(this);let n=Mt$2(this),r=Oe$3(void 0);try{return t()}finally{Mt$2(n),Oe$3(r);}}get(t,n=Kn$2,r){if(Uo(this),t.hasOwnProperty(Rp))return t[Rp](this);let o=Jn$2(r),s=Mt$2(this),a=Oe$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=tI(t)&&Go(t);l&&this.injectableDefInScope(l)?u=jr(Wu(t),js):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Hr():this.parent;return n=o&8&&n===Kn$2?null:n,c.get(t,n)}catch(c){let u=Hw(c);throw u===-200||u===-201?new y$3(u,null):c}finally{Oe$3(a),Mt$2(s);}}resolveInjectorInitializers(){let t=C$1(null),n=Mt$2(this),r=Oe$3(void 0);try{let i=this.get(en$1,be$3,{self:!0});for(let s of i)s();}finally{Mt$2(n),Oe$3(r),C$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=De$3(t);let n=Xn$2(t)?t:De$3(t&&t.provide),r=Jw(t);if(!Xn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=jr(void 0,js,true),o.factory=()=>Gu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=C$1(null);try{if(n.value===Ap)throw al("");return n.value===js&&(n.value=Ap,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&eI(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=De$3(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 Wu(e){let t=Go(e),n=t!==null?t.factory:wn$2(e);if(n!==null)return n;if(e instanceof D$1)throw new y$3(-204,false);if(e instanceof Function)return Kw(e);throw new y$3(-204,false)}function Kw(e){if(e.length>0)throw new y$3(-204,false);let n=jw(e);return n!==null?()=>n.factory(e):()=>new e}function Jw(e){if(qp(e))return jr(void 0,e.useValue);{let t=hl(e);return jr(t,js)}}function hl(e,t,n){let r;if(Xn$2(e)){let o=De$3(e);return wn$2(o)||Wu(o)}else if(qp(e))r=()=>De$3(e.useValue);else if(Qw(e))r=()=>e.useFactory(...Gu(e.deps||[]));else if(Yw(e))r=(o,i)=>b(De$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=De$3(e&&(e.useClass||e.provide));if(Xw(e))r=()=>new o(...Gu(e.deps));else return wn$2(o)||Wu(o)}return r}function Uo(e){if(e.destroyed)throw new y$3(-205,false)}function jr(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function Xw(e){return !!e.deps}function eI(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function tI(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function qu(e,t){for(let n of e)Array.isArray(n)?qu(n,t):n&&tl(n)?qu(n.\u0275providers,t):t(n);}function ge$3(e,t){let n;e instanceof er?(Uo(e),n=e):n=new zu(e);let o=Mt$2(n),i=Oe$3(void 0);try{return t()}finally{Mt$2(o),Oe$3(i);}}function Yp(){return Up()!==void 0||Fs()!=null}var ht$2=0,I$1=1,N$2=2,pe$3=3,Je$1=4,Te$2=5,rr=6,Vr=7,oe$1=8,Nt$2=9,pt$2=10,$$1=11,$r=12,pl=13,bn$2=14,_e$2=15,Sn$2=16,or=17,Rt$1=18,At$2=19,gl=20,Kt$1=21,Xs=22,In$2=23,Ve$3=24,ir=25,xt=26,X=27,Qp=1,ml=6,Tn$2=7,Yo=8,sr=9,te$2=10;function tn$1(e){return Array.isArray(e)&&typeof e[Qp]=="object"}function Xe(e){return Array.isArray(e)&&e[Qp]===true}function yl(e){return (e.flags&4)!==0}function nn$1(e){return e.componentOffset>-1}function zr(e){return (e.flags&1)===1}function Ot$2(e){return !!e.template}function Gr(e){return (e[N$2]&512)!==0}function ar(e){return (e[N$2]&256)===256}var vl="svg",Kp="math";function et$1(e){for(;Array.isArray(e);)e=e[ht$2];return e}function Dl(e,t){return et$1(t[e])}function tt$1(e,t){return et$1(t[e.index])}function ea(e,t){return e.data[t]}function ta(e,t){return e[t]}function El(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function nt$2(e,t){let n=t[e];return tn$1(n)?n:n[ht$2]}function Jp(e){return (e[N$2]&4)===4}function na(e){return (e[N$2]&128)===128}function Xp(e){return Xe(e[pe$3])}function $e$1(e,t){return t==null?null:e[t]}function wl(e){e[or]=0;}function Il(e){e[N$2]&1024||(e[N$2]|=1024,na(e)&&cr(e));}function eg(e,t){for(;e>0;)t=t[bn$2],e--;return t}function Qo(e){return !!(e[N$2]&9216||e[Ve$3]?.dirty)}function ra(e){e[pt$2].changeDetectionScheduler?.notify(8),e[N$2]&64&&(e[N$2]|=1024),Qo(e)&&cr(e);}function cr(e){e[pt$2].changeDetectionScheduler?.notify(0);let t=Jt(e);for(;t!==null&&!(t[N$2]&8192||(t[N$2]|=8192,!na(t)));)t=Jt(t);}function oa(e,t){if(ar(e))throw new y$3(911,false);e[Kt$1]===null&&(e[Kt$1]=[]),e[Kt$1].push(t);}function tg(e,t){if(e[Kt$1]===null)return;let n=e[Kt$1].indexOf(t);n!==-1&&e[Kt$1].splice(n,1);}function Jt(e){let t=e[pe$3];return Xe(t)?t[pe$3]:t}function Cl(e){return e[Vr]??=[]}function bl(e){return e.cleanup??=[]}function ng(e,t,n,r){let o=Cl(t);o.push(n),e.firstCreatePass&&bl(e).push(r,o.length-1);}var O$2={lFrame:gg(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Zu=false;function rg(){return O$2.lFrame.elementDepthCount}function og(){O$2.lFrame.elementDepthCount++;}function Sl(){O$2.lFrame.elementDepthCount--;}function ia(){return O$2.bindingsEnabled}function Tl(){return O$2.skipHydrationRootTNode!==null}function _l(e){return O$2.skipHydrationRootTNode===e}function Ml(){O$2.skipHydrationRootTNode=null;}function w(){return O$2.lFrame.lView}function G$3(){return O$2.lFrame.tView}function ig(e){return O$2.lFrame.contextLView=e,e[oe$1]}function sg(e){return O$2.lFrame.contextLView=null,e}function le$2(){let e=Nl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Nl(){return O$2.lFrame.currentTNode}function ag(){let e=O$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wr(e,t){let n=O$2.lFrame;n.currentTNode=e,n.isParent=t;}function Rl(){return O$2.lFrame.isParent}function Al(){O$2.lFrame.isParent=false;}function cg(){return O$2.lFrame.contextLView}function xl(){return Zu}function Ho(e){let t=Zu;return Zu=e,t}function qr(){let e=O$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function sa(){return O$2.lFrame.bindingIndex}function ug(e){return O$2.lFrame.bindingIndex=e}function _n$1(){return O$2.lFrame.bindingIndex++}function Zr(e){let t=O$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lg(){return O$2.lFrame.inI18n}function dg(e,t){let n=O$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,aa(t);}function fg(){return O$2.lFrame.currentDirectiveIndex}function aa(e){O$2.lFrame.currentDirectiveIndex=e;}function hg(e){let t=O$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ca(){return O$2.lFrame.currentQueryIndex}function Ko(e){O$2.lFrame.currentQueryIndex=e;}function nI(e){let t=e[I$1];return t.type===2?t.declTNode:t.type===1?e[Te$2]:null}function Ol(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=nI(i),o===null||(i=i[bn$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=O$2.lFrame=pg();return r.currentTNode=t,r.lView=e,true}function ua(e){let t=pg(),n=e[I$1];O$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function pg(){let e=O$2.lFrame,t=e===null?null:e.child;return t===null?gg(e):t}function gg(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 mg(){let e=O$2.lFrame;return O$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kl=mg;function la(){let e=mg();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 yg(e){return (O$2.lFrame.contextLView=eg(e,O$2.lFrame.contextLView))[oe$1]}function rt$1(){return O$2.lFrame.selectedIndex}function Mn$2(e){O$2.lFrame.selectedIndex=e;}function Yr(){let e=O$2.lFrame;return ea(e.tView,e.selectedIndex)}function vg(){O$2.lFrame.currentNamespace=vl;}function Dg(){rI();}function rI(){O$2.lFrame.currentNamespace=null;}function Pl(){return O$2.lFrame.currentNamespace}var Eg=true;function da(){return Eg}function Jo(e){Eg=e;}function Yu(e,t=null,n=null,r){let o=Ll(e,t,n);return o.resolveInjectorInitializers(),o}function Ll(e,t=null,n=null,r,o=new Set){let i=[n||be$3,Gp(e)];return new er(i,t||Hr(),null,o)}var Ee$3=class e{static THROW_IF_NOT_FOUND=Kn$2;static NULL=new Ur;static create(t,n){if(Array.isArray(t))return Yu({name:""},n,t);{let r=t.name??"";return Yu({name:r},t.parent,t.providers)}}static \u0275prov=R$2({token:e,providedIn:"any",factory:()=>b(qo)});static __NG_ELEMENT_ID__=-1},Q$3=new D$1(""),Me$4=(()=>{class e{static __NG_ELEMENT_ID__=oI;static __NG_ENV_ID__=n=>n}return e})(),Hs=class extends Me$4{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return ar(this._lView)}onDestroy(t){let n=this._lView;return oa(n,t),()=>tg(n,t)}};function oI(){return new Hs(w())}var Fl=false,wg=new D$1(""),kt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new ve$2(false);debugTaskTracker=p(wg,{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=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Qu=class extends ne$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Yp()&&(this.destroyRef=p(Me$4,{optional:true})??void 0,this.pendingTasks=p(kt$1,{optional:true})??void 0);}emit(t){let n=C$1(null);try{super.next(t);}finally{C$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 ae$2&&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);}});}}},Ce$4=Qu;function Vs(...e){}function jl(e){let t,n;function r(){e=Vs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Ig(e){return queueMicrotask(()=>e()),()=>{e=Vs;}}var Ul="isAngularZone",Vo=Ul+"_ID",iI=0,J$3=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Ce$4(false);onMicrotaskEmpty=new Ce$4(false);onStable=new Ce$4(false);onError=new Ce$4(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Fl}=t;if(typeof Zone>"u")throw new y$3(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,cI(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ul)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new y$3(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y$3(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,sI,Vs,Vs);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)}},sI={};function Bl(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 aI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){jl(()=>{e.callbackScheduled=false,Ku(e),e.isCheckStableRunning=true,Bl(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Ku(e);}function cI(e){let t=()=>{aI(e);},n=iI++;e._inner=e._inner.fork({name:"angular",properties:{[Ul]:true,[Vo]:n,[Vo+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(uI(c))return r.invokeTask(i,s,a,c);try{return xp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Op(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return xp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!lI(c)&&t(),Op(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ku(e),Bl(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 Ku(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function xp(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Op(e){e._nesting--,Bl(e);}var $o=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Ce$4;onMicrotaskEmpty=new Ce$4;onStable=new Ce$4;onError=new Ce$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 uI(e){return Cg(e,"__ignore_ng_zone__")}function lI(e){return Cg(e,"__scheduler_tick__")}function Cg(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Ye=class{_console=console;handleError(t){this._console.error("ERROR",t);}},ke$2=new D$1("",{factory:()=>{let e=p(J$3),t=p(ee$2),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ye),n.handleError(r));});}}}),bg={provide:en$1,useValue:()=>{p(Ye,{optional:true});},multi:true},dI=new D$1("",{factory:()=>{let e=p(Q$3).defaultView;if(!e)return;let t=p(ke$2),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),p(Me$4).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function fI(){return ft$2([zp(()=>{p(dI);})])}function ie(e,t){let [n,r,o]=Lu(e,t?.equal),i=n;i[re$2];return i.set=r,i.update=o,i.asReadonly=Xo.bind(i),i}function Xo(){let e=this[re$2];if(e.readonlyFn===void 0){let t=()=>this();t[re$2]=e,e.readonlyFn=t;}return e.readonlyFn}var ei$2=new D$1("",{factory:()=>hI}),hI="ng";var fa=new D$1(""),ti$2=new D$1("",{providedIn:"platform",factory:()=>"unknown"}),pI=new D$1(""),ni$2=new D$1("",{factory:()=>p(Q$3).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=gI}return e})();function gI(){return new Qr(w(),le$2())}var dt$2=class dt{},Kr=new D$1("",{factory:()=>true});var ha=new D$1(""),pa=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new Ju})}return e})(),Ju=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}},$s=class{[re$2];constructor(t){this[re$2]=t;}destroy(){this[re$2].destroy();}};function Sg(e,t){let n=t?.injector??p(Ee$3),r=t?.manualCleanup!==true?n.get(Me$4):null,o,i=n.get(Qr,null,{optional:true}),s=n.get(dt$2);return i!==null?(o=vI(i.view,s,e),r instanceof Hs&&r._lView===i.view&&(r=null)):o=DI(e,n.get(pa),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new $s(o)}var Tg=x$2(w$1({},Fu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ho(false);try{ju(this);}finally{Ho(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=C$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],C$1(e);}}}),mI=x$2(w$1({},Tg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),yI=x$2(w$1({},Tg),{consumerMarkedDirty(){this.view[N$2]|=8192,cr(this.view),this.notifier.notify(13);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[In$2]?.delete(this);}});function vI(e,t,n){let r=Object.create(yI);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=_g(r,n),e[In$2]??=new Set,e[In$2].add(r),r.consumerMarkedDirty(r),r}function DI(e,t,n){let r=Object.create(mI);return r.fn=_g(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 _g(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function ri$2(e){return typeof e=="function"&&e[re$2]!==void 0}function ga(e){return ri$2(e)&&typeof e.set=="function"}var oi$2=(()=>{class e{internalPendingTasks=p(kt$1);scheduler=p(dt$2);errorHandler=p(ke$2);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=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})();function gi$2(e){return {toString:e}.toString()}var F$3=(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})(F$3||{}),ba=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function pm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var gm=null,xn$2=(()=>{gm=Mg;let e=()=>Mg;return e.ngInherit=true,e})();function MI(){return gm}function Mg(e){return e.type.prototype.ngOnChanges&&(e.setInput=RI),NI}function NI(){let e=mm(this),t=e?.current;if(t){let n=e.previous;if(n===Cn$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function RI(e,t,n,r,o){let i=this.declaredInputs[r],s=mm(e)||AI(e,{previous:Cn$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ba(u&&u.currentValue,n,c===Cn$2),pm(e,t,o,n);}var Jl="__ngSimpleChanges__";function mm(e){return Object.hasOwn(e,Jl)&&e[Jl]||null}function AI(e,t){return e[Jl]=t}var Ng=[];var V=function(e,t=null,n){for(let r=0;r<Ng.length;r++){let o=Ng[r];o(e,t,n);}};function xI(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=MI()(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 ym(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 Ea(e,t,n){vm(e,t,3,n);}function wa(e,t,n,r){(e[N$2]&3)===n&&vm(e,t,n,r);}function Hl(e,t){let n=e[N$2];(n&3)===t&&(n&=16383,n+=1,e[N$2]=n);}function vm(e,t,n,r){let o=r!==void 0?e[or]&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[or]+=65536),(a<i||i==-1)&&(OI(e,n,t,c),e[or]=(e[or]&4294901760)+c+2),c++;}function Rg(e,t){V(F$3.LifecycleHookStart,e,t);let n=C$1(null);try{t.call(e);}finally{C$1(n),V(F$3.LifecycleHookEnd,e,t);}}function OI(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[N$2]>>14<e[or]>>16&&(e[N$2]&3)===t&&(e[N$2]+=16384,Rg(a,i)):Rg(a,i);}var Xr=-1,lr=class{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 kI(e){return (e.flags&8)!==0}function PI(e){return (e.flags&16)!==0}function LI(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];FI(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Dm(e){return e===3||e===4||e===6}function FI(e){return e.charCodeAt(0)===64}function eo(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?Ag(e,n,o,null,t[++r]):Ag(e,n,o,null,null));}}return e}function Ag(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 Em(e){return e!==Xr}function Sa(e){return e&32767}function jI(e){return e>>16}function Ta(e,t){let n=jI(e),r=t;for(;n>0;)r=r[bn$2],n--;return r}var Xl=true;function _a(e){let t=Xl;return Xl=e,t}var UI=256,wm=UI-1,Im=5,BI=0,Pt$2={};function HI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=BI++);let o=r&wm,i=1<<o;t.data[e+(o>>Im)]|=i;}function Ma(e,t){let n=Cm(e,t);if(n!==-1)return n;let r=t[I$1];r.firstCreatePass&&(e.injectorIndex=t.length,Vl(r.data,e),Vl(t,null),Vl(r.blueprint,null));let o=Od(e,t),i=e.injectorIndex;if(Em(o)){let s=Sa(o),a=Ta(o,t),c=a[I$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 Vl(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 Od(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=Nm(o),r===null)return Xr;if(n++,o=o[bn$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Xr}function ed(e,t,n){HI(e,t,n);}function VI(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(Dm(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 bm(e,t,n){if(n&8||e!==void 0)return e;Ys();}function Sm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Nt$2],i=Oe$3(void 0);try{return o?o.get(t,r,n&8):cl(t,r,n&8)}finally{Oe$3(i);}}return bm(r,t,n)}function Tm(e,t,n,r=0,o){if(e!==null){if(t[N$2]&2048&&!(r&2)){let s=WI(e,t,n,r,Pt$2);if(s!==Pt$2)return s}let i=_m(e,t,n,r,Pt$2);if(i!==Pt$2)return i}return Sm(t,n,r,o)}function _m(e,t,n,r,o){let i=zI(n);if(typeof i=="function"){if(!Ol(t,e,r))return r&1?bm(o,n,r):Sm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ys(n);else return s}finally{kl();}}else if(typeof i=="number"){let s=null,a=Cm(e,t),c=Xr,u=r&1?t[_e$2][Te$2]:null;for((a===-1||r&4)&&(c=a===-1?Od(e,t):t[a+8],c===Xr||!Og(r,false)?a=-1:(s=t[I$1],a=Sa(c),t=Ta(c,t)));a!==-1;){let l=t[I$1];if(xg(i,a,l.data)){let d=$I(a,t,n,s,r,u);if(d!==Pt$2)return d}c=t[a+8],c!==Xr&&Og(r,t[I$1].data[a+8]===u)&&xg(i,a,t)?(s=l,a=Sa(c),t=Ta(c,t)):a=-1;}}return o}function $I(e,t,n,r,o,i){let s=t[I$1],a=s.data[e+8],c=r==null?nn$1(a)&&Xl:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ia(a,s,n,c,u);return l!==null?ui$2(t,s,l,a,o):Pt$2}function Ia(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,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&Ot$2(h)&&h.type===n)return c}return null}function ui$2(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof lr){let a=i;if(a.resolving)throw al();let c=_a(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?Oe$3(a.injectImpl):null;Ol(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&xI(n,s[n],t);}finally{d!==null&&Oe$3(d),_a(c),a.resolving=false,kl();}}return i}function zI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&wm:GI:t}function xg(e,t,n){let r=1<<e;return !!(n[t+(e>>Im)]&r)}function Og(e,t){return !(e&2)&&!(e&1&&t)}var Nn$2=class Nn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Tm(this._tNode,this._lView,t,Jn$2(r),n)}};function GI(){return new Nn$2(le$2(),w())}function Mm(e){return gi$2(()=>{let t=e.prototype.constructor,n=t[Bo]||td(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Bo]||td(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function td(e){return Xu(e)?()=>{let t=td(De$3(e));return t&&t()}:wn$2(e)}function WI(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[N$2]&2048&&!Gr(s);){let a=_m(i,s,n,r|2,Pt$2);if(a!==Pt$2)return a;let c=i.parent;if(!c){let u=s[gl];if(u){let l=u.get(n,Pt$2,r&-5);if(l!==Pt$2)return l}c=Nm(s),s=s[bn$2];}i=c;}return o}function Nm(e){let t=e[I$1],n=t.type;return n===2?t.declTNode:n===1?e[Te$2]:null}function mi$2(e){return VI(le$2(),e)}function Z$2(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function qI(){return so(le$2(),w())}function so(e,t){return new Ft$1(tt$1(e,t))}var Ft$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=qI}return e})();function Rm(e){return e instanceof Ft$1?e.nativeElement:e}function ZI(){return this._results[Symbol.iterator]()}var Na=class{_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 ne$1}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=Hp(t);(this._changesDetected=!Bp(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]=ZI};function Am(e){return (e.flags&128)===128}var kd=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(kd||{}),xm=new Map,YI=0;function QI(){return YI++}function KI(e){xm.set(e[At$2],e);}function nd(e){xm.delete(e[At$2]);}var kg="__ngContext__";function to(e,t){tn$1(t)?(e[kg]=t[At$2],KI(t)):e[kg]=t;}function Om(e){return Pm(e[$r])}function km(e){return Pm(e[Je$1])}function Pm(e){for(;e!==null&&!Xe(e);)e=e[Je$1];return e}var rd;function Pd(e){rd=e;}function Ld(){if(rd!==void 0)return rd;if(typeof document<"u")return document;throw new y$3(210,false)}var Lm="r";var Fm="di";var Fd=new D$1(""),jm=false,Um=new D$1("",{factory:()=>jm});var Ga=new D$1("");var Pg=new WeakMap;function JI(e,t){if(e==null||typeof e!="object")return;let n=Pg.get(e);n||(n=new WeakSet,Pg.set(e,n)),n.add(t);}function Wa(e){return (e.flags&32)===32}var tC=()=>null;function Bm(e,t,n=false){return tC()}function Hm(e,t){let n=e.contentQueries;if(n!==null){let r=C$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];Ko(i),a.contentQueries(2,t[s],s);}}}finally{C$1(r);}}}function od(e,t,n){Ko(0);let r=C$1(null);try{t(e,n);}finally{C$1(r);}}function jd(e,t,n){if(yl(t)){let r=C$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{C$1(r);}}}var yt$1=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(yt$1||{});var ma;function nC(){if(ma===void 0&&(ma=null,Ke$1.trustedTypes))try{ma=Ke$1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return ma}function qa(e){return nC()?.createHTML(e)||e}var ya;function Vm(){if(ya===void 0&&(ya=null,Ke$1.trustedTypes))try{ya=Ke$1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return ya}function Lg(e){return Vm()?.createHTML(e)||e}function Fg(e){return Vm()?.createScriptURL(e)||e}var rn$1=class rn{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${zs$1})`}},id=class extends rn$1{getTypeName(){return "HTML"}},sd=class extends rn$1{getTypeName(){return "Style"}},ad=class extends rn$1{getTypeName(){return "Script"}},cd=class extends rn$1{getTypeName(){return "URL"}},ud=class extends rn$1{getTypeName(){return "ResourceURL"}};function Ge(e){return e instanceof rn$1?e.changingThisBreaksApplicationSecurity:e}function jt$1(e,t){let n=$m(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${zs$1})`)}return n===t}function $m(e){return e instanceof rn$1&&e.getTypeName()||null}function Ud(e){return new id(e)}function Bd(e){return new sd(e)}function Hd(e){return new ad(e)}function Vd(e){return new cd(e)}function $d(e){return new ud(e)}function rC(e){let t=new dd(e);return oC()?new ld(t):t}var ld=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(qa(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},dd=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=qa(t),n}};function oC(){try{return !!new window.DOMParser().parseFromString(qa(""),"text/html")}catch(e){return false}}var iC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yi$2(e){return e=String(e),e.match(iC)?e:"unsafe:"+e}function on$1(e){let t={};for(let n of e.split(","))t[n]=true;return t}function vi$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var zm=on$1("area,br,col,hr,img,wbr"),Gm=on$1("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wm=on$1("rp,rt"),sC=vi$2(Wm,Gm),aC=vi$2(Gm,on$1("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")),cC=vi$2(Wm,on$1("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")),jg=vi$2(zm,aC,cC,sC),qm=on$1("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),uC=on$1("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"),lC=on$1("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"),dC=vi$2(qm,uC,lC),fC=on$1("script,style,template"),fd=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=gC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=pC(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Ug(t).toLowerCase();if(!jg.hasOwnProperty(n))return this.sanitizedSomething=true,!fC.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(!dC.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;qm[a]&&(c=yi$2(c)),this.buf.push(" ",s,'="',Bg(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Ug(t).toLowerCase();jg.hasOwnProperty(n)&&!zm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Bg(t));}};function hC(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function pC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Zm(t);return t}function gC(e){let t=e.firstChild;if(t&&hC(e,t))throw Zm(t);return t}function Ug(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Zm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var mC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yC=/([^\#-~ |!])/g;function Bg(e){return e.replace(/&/g,"&").replace(mC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(yC,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var va;function Za(e,t){let n=null;try{va=va||rC(e);let r=t?String(t):"";n=va.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=va.getInertBodyElement(r);}while(r!==i);let a=new fd().sanitizeChildren(Hg(n)||n);return qa(a)}finally{if(n){let r=Hg(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Hg(e){return "content"in e&&vC(e)?e.content:null}function vC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var DC=/^>|^->|<!--|-->|--!>|<!-$/g,EC=/(<|>)/g,wC="\u200B$1\u200B";function IC(e){return e.replace(DC,t=>t.replace(EC,wC))}function CC(e,t){return e.createText(t)}function bC(e,t,n){e.setValue(t,n);}function SC(e,t){return e.createComment(IC(t))}function Ym(e,t,n){return e.createElement(t,n)}function Ra(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Qm(e,t,n){e.appendChild(t,n);}function Vg(e,t,n,r,o){r!==null?Ra(e,t,n,r,o):Qm(e,t,n);}function Km(e,t,n,r){e.removeChild(null,t,n,r);}function TC(e,t,n){e.setAttribute(t,"style",n);}function _C(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Jm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&LI(e,t,r),o!==null&&_C(e,t,o),i!==null&&TC(e,t,i);}var ot$1=(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})(ot$1||{});function MC(e){let t=Gd();return t?Lg(t.sanitize(ot$1.HTML,e)||""):jt$1(e,"HTML")?Lg(Ge(e)):Za(Ld(),Se$4(e))}function Xm(e){let t=Gd();return t?t.sanitize(ot$1.URL,e)||"":jt$1(e,"URL")?Ge(e):yi$2(Se$4(e))}function ey(e){let t=Gd();if(t)return Fg(t.sanitize(ot$1.RESOURCE_URL,e)||"");if(jt$1(e,"ResourceURL"))return Fg(Ge(e));throw new y$3(904,false)}var NC={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function RC(e,t){return NC[e.toLowerCase()]?.[t.toLowerCase()]===true?ey:Xm}function zd(e,t,n){return RC(t,n)(e)}function Gd(){let e=w();return e&&e[pt$2].sanitizer}function AC(e){return e instanceof Function?e():e}function xC(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 ty="ng-template";function OC(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&xC(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Wd(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 Wd(e){return e.type===4&&e.value!==ty}function kC(e,t,n){let r=e.type===4&&!n?ty:e.value;return t===r}function PC(e,t,n){let r=4,o=e.attrs,i=o!==null?jC(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!gt$2(r)&&!gt$2(c))return false;if(s&>$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!kC(e,c,n)||c===""&&t.length===1){if(gt$2(r))return false;s=true;}}else if(r&8){if(o===null||!OC(e,o,c,n)){if(gt$2(r))return false;s=true;}}else {let u=t[++a],l=LC(c,o,Wd(e),n);if(l===-1){if(gt$2(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt$2(r))return false;s=true;}}}}return gt$2(r)||s}function gt$2(e){return (e&1)===0}function LC(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 UC(t,e)}function ny(e,t,n=false){for(let r=0;r<t.length;r++)if(PC(e,t[r],n))return true;return false}function FC(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function jC(e){for(let t=0;t<e.length;t++){let n=e[t];if(Dm(n))return t}return e.length}function UC(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 BC(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 $g(e,t){return e?":not("+t.trim()+")":t}function HC(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!==""&&!gt$2(s)&&(t+=$g(i,o),o=""),r=s,i=i||!gt$2(r);n++;}return o!==""&&(t+=$g(i,o)),t}function VC(e){return e.map(HC).join(",")}function $C(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(!gt$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var me$2={},Lt$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Lt$1||{}),zC;function qd(e,t){return zC(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var hd=new WeakMap;function ry(e){return e?e[bn$2]??e:null}var si$2=new WeakSet;function GC(e,t,n){let r=hd.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ry(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),si$2.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 WC(e,t,n){let r=ry(n),o=hd.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):hd.set(e,[{el:t,declarationView:r}]);}var Rn$2=new Set,Ya=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ya||{}),Ut$1=new D$1(""),zg=new Set;function it$1(e){zg.has(e)||(zg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Qa=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Zd=[0,1,2,3],Yd=(()=>{class e{ngZone=p(J$3);scheduler=p(dt$2);errorHandler=p(Ye,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){p(Ut$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&V(F$3.AfterRenderHooksStart),this.executing=true;for(let r of Zd)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(F$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[ir]??=[]).push(n),cr(r),r[N$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(Ya.AFTER_NEXT_RENDER,n):n()}static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),li$1=class li{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?.[ir];t&&(this.view[ir]=t.filter(n=>n!==this));}};function Ka(e,t){let n=t?.injector??p(Ee$3);return it$1("NgAfterNextRender"),ZC(e,n,t,true)}function qC(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ZC(e,t,n,r){let o=t.get(Qa);o.impl??=t.get(Yd);let i=t.get(Ut$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Me$4):null,a=t.get(Qr,null,{optional:true}),c=new li$1(o.impl,qC(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Qd=new D$1("",{factory:()=>{let e=p(ee$2),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function oy(e,t,n){let r=e.get(Qd);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 YC(e,t){let n=e.get(Qd);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function QC(e,t){let n=e.get(Qd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function KC(e,t){for(let[n,r]of t)oy(e,r.animateFns);}function Gg(e,t,n,r){let o=e?.[xt]?.enter;t!==null&&o&&o.has(n.index)&&KC(r,o);}function Wg(e,t,n,r){try{n.get(qo);}catch(s){return r(false)}let o=e?.[xt];o?.enter?.has(t.index)&&YC(n,o.enter.get(t.index).animateFns);let i=JC(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ja(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Rn$2.add(e[At$2]),oy(n,()=>XC(e,t,o||void 0,i,r),o||void 0);}function JC(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[I$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function XC(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&&Ja(e,t,i),i.length>0){let s=n||e?.[xt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),tb(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Rn$2.delete(e[At$2]),o(true);});}else e&&Rn$2.delete(e[At$2]),o(false);}function Ja(e,t,n){if(t.type&12){let o=e[t.index];if(Xe(o))for(let i=te$2;i<o.length;i++){let s=o[i];s[I$1].type===2&&eb(s,n);}}let r=t.child;for(;r;)Ja(e,r,n),r=r.next;}function eb(e,t){let n=e[xt];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[I$1].firstChild;for(;r;)Ja(e,r,t),r=r.next;}function tb(e,t,n){t.then(()=>{e[xt]?.running===t&&(e[xt].running=void 0,Rn$2.delete(e[At$2])),n(true);});}function Jr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Xe(o)?c=o:tn$1(o)&&(u=true,o=o[ht$2]);let l=et$1(o);e===0&&r!==null?(Gg(a,r,i,n),s==null?Qm(t,r,l):Ra(t,r,l,s||null,true)):e===1&&r!==null?(Gg(a,r,i,n),Ra(t,r,l,s||null,true),GC(i,l,a)):e===2?(a?.[xt]?.leave?.has(i.index)&&WC(i,l,a),si$2.delete(l),Wg(a,i,n,d=>{if(si$2.has(l)){si$2.delete(l);return}Km(t,l,u,d);})):e===3&&(si$2.delete(l),Wg(a,i,n,()=>{t.destroyNode(l);})),c!=null&&db(t,e,n,c,i,r,s);}}function nb(e,t){iy(e,t),t[ht$2]=null,t[Te$2]=null;}function rb(e,t,n,r,o,i){r[ht$2]=o,r[Te$2]=t,ec(e,r,n,1,o,i);}function iy(e,t){t[pt$2].changeDetectionScheduler?.notify(9),ec(e,t,t[$$1],2,null,null);}function ob(e){let t=e[$r];if(!t)return $l(e[I$1],e);for(;t;){let n=null;if(tn$1(t))n=t[$r];else {let r=t[te$2];r&&(n=r);}if(!n){for(;t&&!t[Je$1]&&t!==e;)tn$1(t)&&$l(t[I$1],t),t=t[pe$3];t===null&&(t=e),tn$1(t)&&$l(t[I$1],t),n=t&&t[Je$1];}t=n;}}function Kd(e,t){let n=e[sr],r=n.indexOf(t);n.splice(r,1);}function Xa(e,t){if(ar(t))return;let n=t[$$1];n.destroyNode&&ec(e,t,n,3,null,null),ob(t);}function $l(e,t){if(ar(t))return;let n=C$1(null);try{t[N$2]&=-129,t[N$2]|=256,t[Ve$3]&&Dn$2(t[Ve$3]),sb(e,t),ib(e,t),t[I$1].type===1&&t[$$1].destroy();let r=t[Sn$2];if(r!==null&&Xe(t[pe$3])){r!==t[pe$3]&&Kd(r,t);let o=t[Rt$1];o!==null&&o.detachView(e);}nd(t);}finally{C$1(n);}}function ib(e,t){let n=e.cleanup,r=t[Vr];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[Vr]=null);let o=t[Kt$1];if(o!==null){t[Kt$1]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[In$2];if(i!==null){t[In$2]=null;for(let s of i)s.destroy();}}function sb(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 lr)){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(F$3.LifecycleHookStart,a,c);try{c.call(a);}finally{V(F$3.LifecycleHookEnd,a,c);}}else {V(F$3.LifecycleHookStart,o,i);try{i.call(o);}finally{V(F$3.LifecycleHookEnd,o,i);}}}}}function sy(e,t,n){return ab(e,t.parent,n)}function ab(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ht$2];if(nn$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===yt$1.None||o===yt$1.Emulated)return null}return tt$1(r,n)}function ay(e,t,n){return ub(e,t,n)}function cb(e,t,n){return e.type&40?tt$1(e,n):null}var ub=cb;function Jd(e,t,n,r){let o=sy(e,r,t),i=t[$$1],s=r.parent||t[Te$2],a=ay(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Vg(i,o,n[c],a,false);else Vg(i,o,n,a,false);}function ai$2(e,t){if(t!==null){let n=t.type;if(n&3)return tt$1(t,e);if(n&4)return pd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ai$2(e,r);{let o=e[t.index];return Xe(o)?pd(-1,o):et$1(o)}}else {if(n&128)return ai$2(e,t.next);if(n&32)return qd(t,e)()||et$1(e[t.index]);{let r=cy(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Jt(e[_e$2]);return ai$2(o,r)}else return ai$2(e,t.next)}}}return null}function cy(e,t){if(t!==null){let r=e[_e$2][Te$2],o=t.projection;return r.projection[o]}return null}function pd(e,t){let n=te$2+e+1;if(n<t.length){let r=t[n],o=r[I$1].firstChild;if(o!==null)return ai$2(r,o)}return t[Tn$2]}function Xd(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Nt$2];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&to(et$1(c),r),n.flags|=2),!Wa(n))if(u&8)Xd(e,t,n.child,r,o,i,false),Jr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=qd(n,r),d;for(;d=l();)Jr$1(t,e,a,o,d,n,i,r);Jr$1(t,e,a,o,c,n,i,r);}else u&16?uy(e,t,r,n,o,i):Jr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function ec(e,t,n,r,o,i){Xd(n,r,e.firstChild,t,o,i,false);}function lb(e,t,n){let r=t[$$1],o=sy(e,n,t),i=n.parent||t[Te$2],s=ay(i,n,t);uy(r,0,t,n,o,s);}function uy(e,t,n,r,o,i){let s=n[_e$2],c=s[Te$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Jr$1(t,e,n[Nt$2],o,l,r,i,n);}else {let u=c,l=s[pe$3];Am(r)&&(u.flags|=128),Xd(e,t,u,l,o,i,true);}}function db(e,t,n,r,o,i,s){let a=r[Tn$2],c=et$1(r);a!==c&&Jr$1(t,e,n,i,a,o,s);for(let u=te$2;u<r.length;u++){let l=r[u];ec(l[I$1],l,e,t,i,a);}}function fb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Lt$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Lt$1.Important),e.setStyle(n,r,o,i));}}function ef(e,t,n,r,o,i,s,a,c,u,l){let d=X+r,f=d+o,h=hb(d,f),g=typeof u=="function"?u():u;return h[I$1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:g,incompleteFirstPass:false,ssrId:l}}function hb(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:me$2);return n}function pb(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ef(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function tf(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ht$2]=o,d[N$2]=r|4|128|8|64|1024,(u!==null||e&&e[N$2]&2048)&&(d[N$2]|=2048),wl(d),d[pe$3]=d[bn$2]=e,d[oe$1]=n,d[pt$2]=s||e&&e[pt$2],d[$$1]=a||e&&e[$$1],d[Nt$2]=c||e&&e[Nt$2]||null,d[Te$2]=i,d[At$2]=QI(),d[rr]=l,d[gl]=u,d[_e$2]=t.type==2?e[_e$2]:d,d}function gb(e,t,n){let r=tt$1(t,e),o=pb(n),i=e[pt$2].rendererFactory,s=nf(e,tf(e,o,null,ly(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ly(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function dy(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 nf(e,t){return e[$r]?e[pl][Je$1]=t:e[$r]=t,e[pl]=t,t}function mb(e=1){fy(G$3(),w(),rt$1()+e);}function fy(e,t,n,r){if((t[N$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ea(t,i,n);}else {let i=e.preOrderHooks;i!==null&&wa(t,i,0,n);}Mn$2(n);}var tc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(tc||{});function dr(e,t,n,r){let o=C$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&tc.SignalBased)!==0&&(c=t[i][re$2]),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):pm(t,c,i,r);}finally{C$1(o);}}function hy(e,t,n,r,o){let i=rt$1(),s=r&2;try{Mn$2(-1),s&&t.length>X&&fy(e,t,X,!1);let a=s?F$3.TemplateUpdateStart:F$3.TemplateCreateStart;V(a,o,n),n(r,o);}finally{Mn$2(i);let a=s?F$3.TemplateUpdateEnd:F$3.TemplateCreateEnd;V(a,o,n);}}function nc(e,t,n){Ib(e,t,n),(n.flags&64)===64&&Cb(e,t,n);}function Di$2(e,t,n=tt$1){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 yb(e,t,n,r){let i=r.get(Um,jm)||n===yt$1.ShadowDom||n===yt$1.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function Eb(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function py(e,t,n,r,o,i){let s=t[I$1];if(af(e,s,t,n,r)){nn$1(e)&&wb(t,e.index);return}e.type&3&&(n=Eb(n)),gy(e,t,n,r,o,i);}function gy(e,t,n,r,o,i){if(e.type&3){let s=tt$1(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function wb(e,t){let n=nt$2(t,e);n[N$2]&16||(n[N$2]|=64);}function Ib(e,t,n){let r=n.directiveStart,o=n.directiveEnd;nn$1(n)&&gb(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ma(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ui$2(t,e,s,n);if(to(c,t),i!==null&&_b(t,s-r,c,a,n,i),Ot$2(a)){let u=nt$2(n.index,t);u[oe$1]=ui$2(t,e,s,n);}}}function Cb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=fg();try{Mn$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];aa(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&bb(c,u);}}finally{Mn$2(-1),aa(s);}}function bb(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function rf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ny(t,i.selectors,false)&&(r??=[],Ot$2(i)?r.unshift(i):r.push(i));}return r}function Sb(e,t,n,r,o,i){let s=tt$1(e,t);Tb(t[$$1],s,i,e.value,n,r,o);}function Tb(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Se$4(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function _b(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];dr(r,n,c,u);}}function of(e,t,n,r,o){let i=X+n,s=t[I$1],a=o(s,t,e,r,n);t[i]=a,Wr(e,true);let c=e.type===2;return c?(Jm(t[$$1],a,e),(rg()===0||zr(e))&&to(a,t),og()):to(a,t),da()&&(!c||!Wa(e))&&Jd(s,t,a,e),e}function sf(e){let t=e;return Rl()?Al():(t=t.parent,Wr(t,false)),t}function Mb(e,t){let n=e[Nt$2];if(!n)return;let r;try{r=n.get(ke$2,null);}catch(o){r=null;}r?.(t);}function af(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];dr(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];dr(l,u,r,o),a=true;}return a}function Nb(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 f=0;f<d.length;f+=2){let h=d[f];if(h>=a&&h<=c){let g=t.data[h],v=d[f+1];dr(g,n[h],v,i),u=true;}else if(h>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(dr(r,n[s],o,i),u=true),u}function Rb(e,t){let n=nt$2(t,e),r=n[I$1];Ab(r,n);let o=n[ht$2];o!==null&&n[rr]===null&&(n[rr]=Bm(o,n[Nt$2])),V(F$3.ComponentStart);try{cf(r,n,n[oe$1]);}finally{V(F$3.ComponentEnd,n[oe$1]);}}function Ab(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function cf(e,t,n){ua(t);try{let r=e.viewQuery;r!==null&&od(1,r,n);let o=e.template;o!==null&&hy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Rt$1]?.finishViewCreation(e),e.staticContentQueries&&Hm(e,t),e.staticViewQueries&&od(2,e.viewQuery,n);let i=e.components;i!==null&&xb(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[N$2]&=-5,la();}}function xb(e,t){for(let n=0;n<t.length;n++)Rb(e,t[n]);}function Ei$2(e,t,n,r){let o=C$1(null);try{let i=t.tView,a=e[N$2]&4096?4096:16,c=tf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Sn$2]=u;let l=e[Rt$1];return l!==null&&(c[Rt$1]=l.createEmbeddedView(i)),cf(i,c,n),c}finally{C$1(o);}}function no(e,t){return !t||t.firstChild===null||Am(e)}function di$2(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(et$1(i)),Xe(i)&&my(i,r);let s=n.type;if(s&8)di$2(e,t,n.child,r);else if(s&32){let a=qd(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=cy(t,n);if(Array.isArray(a))r.push(...a);else {let c=Jt(t[_e$2]);di$2(c[I$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function my(e,t){for(let n=te$2;n<e.length;n++){let r=e[n],o=r[I$1].firstChild;o!==null&&di$2(r[I$1],r,o,t);}e[Tn$2]!==e[ht$2]&&t.push(e[Tn$2]);}function yy(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0;}}var vy=[];function Ob(e){return e[Ve$3]??kb(e)}function kb(e){let t=vy.pop()??Object.create(Lb);return t.lView=e,t}function Pb(e){e.lView[Ve$3]!==e&&(e.lView=null,vy.push(e));}var Lb=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{cr(e.lView);},consumerOnSignalRead(){this.lView[Ve$3]=this;}});function Fb(e){let t=e[Ve$3]??Object.create(jb);return t.lView=e,t}var jb=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Jt(e.lView);for(;t&&!Dy(t[I$1]);)t=Jt(t);t&&Il(t);},consumerOnSignalRead(){this.lView[Ve$3]=this;}});function Dy(e){return e.type!==2}function Ey(e){if(e[In$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[In$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[N$2]&8192);}}var Ub=100;function wy(e,t=0){let r=e[pt$2].rendererFactory;r.begin?.();try{Bb(e,t);}finally{r.end?.();}}function Bb(e,t){let n=xl();try{Ho(!0),gd(e,t);let r=0;for(;Qo(e);){if(r===Ub)throw new y$3(103,!1);r++,gd(e,1);}}finally{Ho(n);}}function Hb(e,t,n,r){if(ar(t))return;let o=t[N$2],i=false,s=false;ua(t);let a=true,c=null,u=null;(Dy(e)?(u=Ob(t),c=Qt$1(u)):Ps$1()===null?(a=false,u=Fb(t),c=Qt$1(u)):t[Ve$3]&&(Dn$2(t[Ve$3]),t[Ve$3]=null));try{wl(t),ug(e.bindingStartIndex),n!==null&&hy(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Ea(t,h,null);}else {let h=e.preOrderHooks;h!==null&&wa(t,h,0,null),Hl(t,0);}if(s||Vb(t),Ey(t),Iy(t,0),e.contentQueries!==null&&Hm(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Ea(t,h);}else {let h=e.contentHooks;h!==null&&wa(t,h,1),Hl(t,1);}zb(e,t);let d=e.components;d!==null&&by(t,d,0);let f=e.viewQuery;if(f!==null&&od(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Ea(t,h);}else {let h=e.viewHooks;h!==null&&wa(t,h,2),Hl(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Xs]){for(let h of t[Xs])h();t[Xs]=null;}i||(yy(t),t[N$2]&=-73);}catch(l){throw cr(t),l}finally{u!==null&&(vn$2(u,c),a&&Pb(u)),la();}}function Iy(e,t){for(let n=Om(e);n!==null;n=km(n))for(let r=te$2;r<n.length;r++){let o=n[r];Cy(o,t);}}function Vb(e){for(let t=Om(e);t!==null;t=km(t)){if(!(t[N$2]&2))continue;let n=t[sr];for(let r=0;r<n.length;r++){let o=n[r];Il(o);}}}function $b(e,t,n){V(F$3.ComponentStart);let r=nt$2(t,e);try{Cy(r,n);}finally{V(F$3.ComponentEnd,r[oe$1]);}}function Cy(e,t){na(e)&&gd(e,t);}function gd(e,t){let r=e[I$1],o=e[N$2],i=e[Ve$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Pr$1(i)),s||=false,i&&(i.dirty=false),e[N$2]&=-9217,s)Hb(r,e,r.template,e[oe$1]);else if(o&8192){let a=C$1(null);try{Ey(e),Iy(e,1);let c=r.components;c!==null&&by(e,c,1),yy(e);}finally{C$1(a);}}}function by(e,t,n){for(let r=0;r<t.length;r++)$b(e,t[r],n);}function zb(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)Mn$2(~o);else {let i=o,s=n[++r],a=n[++r];dg(s,i);let c=t[i];V(F$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{V(F$3.HostBindingsUpdateEnd,c);}}}}finally{Mn$2(-1);}}function uf(e,t){let n=xl()?64:1088;for(e[pt$2].changeDetectionScheduler?.notify(t);e;){e[N$2]|=n;let r=Jt(e);if(Gr(e)&&!r)return e;e=r;}return null}function Sy(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ty(e,t){let n=te$2+t;if(n<e.length)return e[n]}function wi$1(e,t,n,r=true){let o=t[I$1];if(Gb(o,t,e,n),r){let s=pd(n,e),a=t[$$1],c=a.parentNode(e[Tn$2]);c!==null&&rb(o,e[Te$2],a,t,c,s);}let i=t[rr];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function _y(e,t){let n=fi$2(e,t);return n!==void 0&&Xa(n[I$1],n),n}function fi$2(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n];if(r){let o=r[Sn$2];o!==null&&o!==e&&Kd(o,r),t>0&&(e[n-1][Je$1]=r[Je$1]);let i=Wo(e,te$2+t);nb(r[I$1],r);let s=i[Rt$1];s!==null&&s.detachView(i[I$1]),r[pe$3]=null,r[Je$1]=null,r[N$2]&=-129;}return r}function Gb(e,t,n,r){let o=te$2+r,i=n.length;r>0&&(n[o-1][Je$1]=t),r<i-te$2?(t[Je$1]=n[o],ul(n,te$2+r,t)):(n.push(t),t[Je$1]=null),t[pe$3]=n;let s=t[Sn$2];s!==null&&n!==s&&My(s,t);let a=t[Rt$1];a!==null&&a.insertView(e),ra(t),t[N$2]|=128;}function My(e,t){let n=e[sr],r=t[pe$3];if(tn$1(r))e[N$2]|=2;else {let o=r[pe$3][_e$2];t[_e$2]!==o&&(e[N$2]|=2);}n===null?e[sr]=[t]:n.push(t);}var An$2=class An{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[I$1];return di$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[oe$1]}set context(t){this._lView[oe$1]=t;}get destroyed(){return ar(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[pe$3];if(Xe(t)){let n=t[Yo],r=n?n.indexOf(this):-1;r>-1&&(fi$2(t,r),Wo(n,r));}this._attachedToViewContainer=false;}Xa(this._lView[I$1],this._lView);}onDestroy(t){oa(this._lView,t);}markForCheck(){uf(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[N$2]&=-129;}reattach(){ra(this._lView),this._lView[N$2]|=128;}detectChanges(){this._lView[N$2]|=1024,wy(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y$3(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Gr(this._lView),n=this._lView[Sn$2];n!==null&&!t&&Kd(n,this._lView),iy(this._lView[I$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new y$3(902,false);this._appRef=t;let n=Gr(this._lView),r=this._lView[Sn$2];r!==null&&!n&&My(r,this._lView),ra(this._lView);}};var ro=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Wb;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=Ei$2(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new An$2(i)}}return e})();function Wb(){return rc(le$2(),w())}function rc(e,t){return e.type&4?new ro(t,e,so(e,t)):null}function ao(e,t,n,r,o){let i=e.data[t];if(i===null)i=qb(e,t,n,r,o),lg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ag();i.injectorIndex=s===null?-1:s.injectorIndex;}return Wr(i,true),i}function qb(e,t,n,r,o){let i=Nl(),s=Rl(),a=s?i:i&&i.parent,c=e.data[t]=Yb(e,a,n,t,r,o);return Zb(e,c,i,s),c}function Zb(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 Yb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tl()&&(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:Pl(),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 Qb(e){let t=e[ml]??[],r=e[pe$3][$$1],o=[];for(let i of t)i.data[Fm]!==void 0?o.push(i):Kb(i,r);e[ml]=o;}function Kb(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Lm];for(;n<o;){let i=r.nextSibling;Km(t,r,false),r=i,n++;}}}var Jb=()=>null,Xb=()=>null;function Aa(e,t){return Jb()}function Ny(e,t,n){return Xb()}var Ry=class{},fr=class{},co=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>eS()}return e})();function eS(){let e=w(),t=le$2(),n=nt$2(t.index,e);return (tn$1(n)?n:e)[$$1]}var Ay=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>null})}return e})();function xy(e){return e.debugInfo?.className||e.type.name||null}var Ca={},xa=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Ca,r);return o!==Ca||n===Ca?o:this.parentInjector.get(t,n,r)}};function lf(e,t,n){return e[t]=n}function tS(e,t){return e[t]}function ze$2(e,t,n){if(n===me$2)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function Oa(e,t,n,r){let o=ze$2(e,t,n);return ze$2(e,t+1,r)||o}function Oy(e,t,n,r,o,i){let s=Oa(e,t,n,r);return Oa(e,t+2,o,i)||s}function ur(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&JI(o,i);let s=nn$1(e)?nt$2(e.index,t):t;uf(s,5);let a=t[oe$1],c=Zg(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Zg(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Zg(e,t,n,r){let o=C$1(null);try{return V(F$3.OutputStart,t,n),n(r)!==!1}catch(i){return Mb(e,i),false}finally{V(F$3.OutputEnd,t,n),C$1(o);}}function df(e,t,n,r,o,i,s,a){let c=zr(e),u=false,l=null;if(!r&&c&&(l=rS(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=tt$1(e,n),f=r?r(d):d;r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!nS(i)){let g=r?v=>r(et$1(v[e.index])):e.index;ky(g,t,n,i,a,h,false);}}return u}function nS(e){return e.startsWith("animation")||e.startsWith("transition")}function rS(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[Vr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function ky(e,t,n,r,o,i,s){let a=t.firstCreatePass?bl(t):null,c=Cl(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function Yg(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 f=l[d];if(f>=s&&f<=a)c=true,ka$1(e,t,f,l[d+1],r,o);else if(f>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ka$1(e,t,i,r,r,o)),c}function ka$1(e,t,n,r,o,i){let s=t[n],a=t[I$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);ky(e.index,a,t,o,i,d,true);}function oS(){iS();}function iS(){let e=w(),t=G$3(),n=le$2();if(t.firstCreatePass&&cS(t,n),n.controlDirectiveIndex===-1)return;it$1("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Pa(e,t,n));}function sS(){aS();}function aS(){let e=w(),t=G$3(),n=Yr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Pa(e,t,n));}var Pa=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 tt$1(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Yg(this.tNode,this.lView,r,t,ur(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Yg(this.tNode,this.lView,r,n,ur(this.tNode,this.lView,t));}listenToDom(t,n){df(this.tNode,this.tView,this.lView,void 0,this.lView[$$1],t,n,ur(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];dr(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];dr(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";Nb(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=Qg(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=Qg(i.directive);s!==null&&r.push(...s);}}}return n}};function Qg(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function cS(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}uS(e,t);}function uS(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(Kg(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Kg(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[f,h,g]=d;if(c>=h&&c<=g)return t.flags|=o,t.customControlIndex=f,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Kg(e,t){return lS(e,t)&&dS(e,t+"Change")}function lS(e,t){return t in e.inputs}function dS(e,t){return t in e.outputs}var md=Symbol("BINDING");var mr=new D$1("");function La(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=Gs(o,a);else if(i==2){let c=a,u=t[++s];r=Gs(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function se(e,t=0){let n=w();if(n===null)return b(e,t);let r=le$2();return Tm(r,n,De$3(e),t)}function Ii$2(){let e="invalid";throw new Error(e)}function Py(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}pS(e,t,n,a,i,c,u);}i!==null&&r!==null&&fS(n,r,i);}function fS(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 y$3(-301,false);r.push(t[o],i);}}function hS(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function pS(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&Ot$2(h)&&(c=h,hS(e,n,f)),ed(Ma(n,t),e,h.type);}ES(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h);}let u=false,l=false,d=dy(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=eo(n.mergedAttrs,h.hostAttrs),mS(e,n,t,d,h),DS(d,h,o),s!==null&&s.has(h)){let[v,E]=s.get(h);n.directiveToIndex.set(h.type,[d,v+n.directiveStart,E+n.directiveStart]);}else (i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}gS(e,n,i);}function gS(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Jg(0,t,o,r),Jg(1,t,o,r),em(t,r,false);else {let i=n.get(o);Xg(0,t,i,r),Xg(1,t,i,r),em(t,r,true);}}}function Jg(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),Ly(t,i);}}function Xg(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),Ly(t,s);}}function Ly(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function em(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Wd(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 mS(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=wn$2(o.type)),s=new lr(i,Ot$2(o),se,null);e.blueprint[r]=s,n[r]=s,yS(e,t,r,dy(e,n,o.hostVars,me$2),o);}function yS(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;vS(s)!=a&&s.push(a),s.push(n,r,i);}}function vS(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function DS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ot$2(t)&&(n[""]=e);}}function ES(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ff(e,t,n,r,o,i,s,a){let c=t[I$1],u=c.consts,l=$e$1(u,s),d=ao(c,e,n,r,l);return Py(c,t,d,$e$1(u,a),o),d.mergedAttrs=eo(d.mergedAttrs,d.attrs),d.attrs!==null&&La(d,d.attrs,false),d.mergedAttrs!==null&&La(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function hf(e,t){ym(e,t),yl(t)&&e.queries.elementEnd(t);}function wS(e,t,n,r,o,i){let s=t.consts,a=$e$1(s,o),c=ao(t,e,n,r,a);if(c.mergedAttrs=eo(c.mergedAttrs,c.attrs),i!=null){let u=$e$1(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&La(c,c.attrs,false),c.mergedAttrs!==null&&La(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Fy=typeof ShadowRoot<"u",IS=typeof Document<"u";function CS(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&tc.SignalBased)!==0};return o&&(i.transform=o),i})}function bS(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function SS(e,t,n){let r=t instanceof ee$2?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new xa(n,r):n}function TS(e){let t=e.get(fr,null);if(t===null)throw new y$3(407,false);let n=e.get(Ay,null),r=e.get(dt$2,null),o=e.get(Ut$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function _S(e,t){let n=jy(e);return Ym(t,n,n==="svg"?vl:n==="math"?Kp:null)}function MS(e){if(e?.toLowerCase()==="script")throw new y$3(905,false)}function jy(e){return (e.selectors[0][0]||"div").toLowerCase()}var hr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=CS(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=bS(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=VC(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V(F$3.DynamicComponentStart);let a=C$1(null);try{let c=this.componentDef,u=SS(c,o||this.ngModule,t),l=TS(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(xy(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{C$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=NS(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?yb(u,o,a.encapsulation,n):_S(a,u);MS(l?.tagName);let d=n.get(mr,null),f=RS(l,()=>n.get(Q$3,null)??Ld());d&&d.addHost(f);let h=s?.some(tm)||i?.some(E=>typeof E!="function"&&E.bindings.some(tm)),g=tf(null,c,null,512|ly(a),null,null,t,u,n,null,Bm(l,n,true));d&&Fy&&f instanceof ShadowRoot&&oa(g,()=>{d.removeHost(f);}),g[X]=l,ua(g);let v=null;try{let E=ff(X,g,2,"#host",()=>c.directiveRegistry,!0,0);Jm(u,l,E),to(l,g),nc(c,g,E),jd(c,E,g),hf(c,E),r!==void 0&&xS(E,this.ngContentSelectors,r),v=nt$2(E.index,g),g[oe$1]=v[oe$1],cf(c,g,null);}catch(E){throw v!==null&&nd(v),nd(g),E}finally{V(F$3.DynamicComponentEnd),la();}return new Fa(this.componentType,g,!!h)}};function NS(e,t,n,r){let o=e?["ng-version","22.0.8"]:$C(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[md].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 f of d.bindings){a+=f[md].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=sl(d);c.push(f);}return ef(0,null,AS(i,s),1,a,c,null,null,null,[o],null)}function RS(e,t){let n=e.getRootNode?.();return IS&&n instanceof Document?n.head:n&&Fy&&n instanceof ShadowRoot?n:t().head}function AS(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 tm(e){let t=e[md].kind;return t==="input"||t==="twoWay"}var Fa=class extends Ry{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ea(n[I$1],X),this.location=so(this._tNode,n),this.instance=nt$2(this._tNode.index,n)[oe$1],this.hostView=this.changeDetectorRef=new An$2(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;af(r,o[I$1],o,t,n);this.previousInputValues.set(t,n);let s=nt$2(r.index,o);uf(s,1);}get injector(){return new Nn$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function xS(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 On$2=(()=>{class e{static __NG_ELEMENT_ID__=OS}return e})();function OS(){let e=le$2();return Uy(e,w())}var yd=class e extends On$2{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return so(this._hostTNode,this._hostLView)}get injector(){return new Nn$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Od(this._hostTNode,this._hostLView);if(Em(t)){let n=Ta(t,this._hostLView),r=Sa(t),o=n[I$1].data[r+8];return new Nn$2(o,n)}else return new Nn$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=nm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-te$2}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Aa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,no(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 hr(Xt$1(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let M=this.parentInjector.get(ee$2,null);M&&(i=M);}let f=Xt$1(l.componentType??{}),h=Aa(this._lContainer,f?.id??null),g=null,v=l.create(d,o,g,i,s,a);return this.insertImpl(v.hostView,c,no(this._hostTNode,h)),v}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Xp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[pe$3],u=new e(c,c[Te$2],c[pe$3]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return wi$1(s,o,i,r),t.attachToViewContainerRef(),ul(zl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=nm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=fi$2(this._lContainer,n);r&&(Wo(zl(this._lContainer),n),Xa(r[I$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=fi$2(this._lContainer,n);return r&&Wo(zl(this._lContainer),n)!=null?new An$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function nm(e){return e[Yo]}function zl(e){return e[Yo]||(e[Yo]=[])}function Uy(e,t){let n,r=t[e.index];return Xe(r)?n=r:(n=Sy(r,t,null,e),t[e.index]=n,nf(t,n)),PS(n,t,e,r),new yd(n,e,t)}function kS(e,t){let n=e[$$1],r=n.createComment(""),o=tt$1(t,e),i=n.parentNode(o);return Ra(n,i,r,n.nextSibling(o),false),r}var PS=jS;function jS(e,t,n,r){if(e[Tn$2])return;let o;n.type&8?o=et$1(r):o=kS(t,n),e[Tn$2]=o;}var vd=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},Dd=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++)gf(t,n).matches!==null&&this.queries[n].setDirty();}},ja=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=$S(t):this.predicate=t;}},Ed=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);}},wd=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,US(n,i)),this.matchTNodeWithReadOption(t,n,Ia(n,t,i,false,false));}else r===ro?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ia(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ft$1||o===On$2||o===ro&&n.type&4)this.addMatch(n.index,-2);else {let i=Ia(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 US(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 BS(e,t){return e.type&11?so(e,t):e.type&4?rc(e,t):null}function HS(e,t,n,r){return n===-1?BS(t,e):n===-2?VS(e,t,r):ui$2(e,e[I$1],n,t)}function VS(e,t,n){if(n===Ft$1)return so(t,e);if(n===ro)return rc(t,e);if(n===On$2)return Uy(t,e)}function By(e,t,n,r){let o=t[Rt$1].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(HS(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function Id(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=By(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=te$2;d<l.length;d++){let f=l[d];f[Sn$2]===f[pe$3]&&Id(f[I$1],f,u,r);}if(l[sr]!==null){let d=l[sr];for(let f=0;f<d.length;f++){let h=d[f];Id(h[I$1],h,u,r);}}}}}return r}function pf(e,t){return e[Rt$1].queries[t].queryList}function Hy(e,t,n){let r=new Na((n&4)===4);return ng(e,t,r,r.destroy),(t[Rt$1]??=new Dd).queries.push(new vd(r))-1}function Vy(e,t,n){let r=G$3();return r.firstCreatePass&&(zy(r,new ja(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Hy(r,w(),t)}function $y(e,t,n,r){let o=G$3();if(o.firstCreatePass){let i=le$2();zy(o,new ja(t,n,r),i.index),zS(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Hy(o,w(),n)}function $S(e){return e.split(",").map(t=>t.trim())}function zy(e,t,n){e.queries===null&&(e.queries=new Ed),e.queries.track(new wd(t,n));}function zS(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 gf(e,t){return e.queries.getByIndex(t)}function Gy(e,t){let n=e[I$1],r=gf(n,t);return r.crossesNgTemplate?Id(n,e,t,[]):By(n,e,r,t)}function mf(e,t,n){let r,o=Fo(()=>{r._dirtyCounter();let i=GS(r,e);if(t&&i===void 0)throw new y$3(-951,false);return i});return r=o[re$2],r._dirtyCounter=ie(0),r._flatValue=void 0,o}function yf(e){return mf(true,false)}function vf(e){return mf(true,true)}function Wy(e){return mf(false,false)}function qy(e,t){let n=e[re$2];n._lView=w(),n._queryIndex=t,n._queryList=pf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function GS(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[N$2]&4)return t?void 0:be$3;let o=pf(n,r),i=Gy(n,r);return o.reset(i,Rm),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function yr(e){return !!e&&typeof e.then=="function"}function oc(e){return !!e&&typeof e.subscribe=="function"}var pr=class{},ic=class{};var Ua=class extends pr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Pp(t);this._bootstrapComponents=AC(i.bootstrap),this._r3Injector=Ll(t,n,[{provide:pr,useValue:this},...r],zo(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);}},Ba=class extends ic{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Ua(this.moduleType,t,[])}};var hi$2=class hi extends pr{injector;instance=null;constructor(t){super();let n=new er([...t.providers,{provide:pr,useValue:this}],t.parent||Hr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function uo(e,t,n=null){return new hi$2({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var WS=(()=>{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=dl(false,n.type),o=r.length>0?uo([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=R$2({token:e,providedIn:"environment",factory:()=>new e(b(ee$2))})}return e})();function Df(e){return gi$2(()=>{let t=Zy(e),n=x$2(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==kd.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(WS).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||yt$1.Emulated,styles:e.styles||be$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&it$1("NgStandalone"),Yy(n);let r=e.dependencies;return n.directiveDefs=rm(r,qS),n.pipeDefs=rm(r,Lp),n.id=QS(n),n})}function qS(e){return Xt$1(e)||sl(e)}function lo(e){return gi$2(()=>({type:e.type,bootstrap:e.bootstrap||be$3,declarations:e.declarations||be$3,imports:e.imports||be$3,exports:e.exports||be$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ZS(e,t){if(e==null)return Cn$2;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=tc.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function YS(e){if(e==null)return Cn$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kn$2(e){return gi$2(()=>{let t=Zy(e);return Yy(t),t})}function vr(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 Zy(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||Cn$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||be$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:ZS(e.inputs,t),outputs:YS(e.outputs),debugInfo:null}}function Yy(e){e.features?.forEach(t=>t(e));}function rm(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 QS(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 Ef=new D$1("");function sc(e){return ft$2([{provide:Ef,multi:true,useValue:e}])}var wf=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=p(Ef,{optional:true})??[];injector=p(Ee$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ge$3(this.injector,o);if(yr(i))n.push(i);else if(oc(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=Z$2({token:e,factory:e.\u0275fac})}return e})();function KS(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function JS(e){return Object.getPrototypeOf(e.prototype).constructor}function Qy(e){let t=JS(e.type),n=true,r=[e];for(;t;){let o;if(Ot$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new y$3(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Gl(e.inputs),s.declaredInputs=Gl(e.declaredInputs),s.outputs=Gl(e.outputs);let a=o.hostBindings;a&&rT(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&tT(e,c),u&&nT(e,u),XS(e,o),kp(e.outputs,o.outputs),Ot$2(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===Qy&&(n=false);}}t=Object.getPrototypeOf(t);}eT(r);}function XS(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 eT(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=eo(o.hostAttrs,n=eo(n,o.hostAttrs));}}function Gl(e){return e===Cn$2?{}:e===be$3?[]:e}function tT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function nT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function rT(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Ky(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=eo(e.mergedAttrs,e.attrs);let l=e.tView=ef(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),Wr(e,false);let c=iT(n,t);da()&&Jd(n,t,c,e),to(c,t);let u=Sy(c,t,c,e);t[r+X]=u,nf(t,u);}function oT(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;return t.firstCreatePass?(f=ao(t,d,4,s||null,a||null),Py(t,e,f,$e$1(t.consts,u),rf),ym(t,f)):f=t.data[d],Ky(f,e,t,n,r,o,i,c),zr(f)&&nc(t,e,f),u!=null&&Di$2(e,f,l),f}function oo(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;if(t.firstCreatePass){if(f=ao(t,d,4,s||null,a||null),u!=null){let h=$e$1(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1);}}else f=t.data[d];return Ky(f,e,t,n,r,o,i,c),u!=null&&Di$2(e,f,l),f}function Jy(e,t,n,r,o,i,s,a){let c=w(),u=G$3(),l=$e$1(u.consts,i);return oT(c,u,e,t,n,r,o,l,void 0,s,a),Jy}function Xy(e,t,n,r,o,i,s,a){let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,void 0,s,a),Xy}var iT=sT;function sT(e,t,n,r){return Jo(true),t[$$1].createComment("")}var ac=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var If=new D$1("");var fo=new D$1("");function ev(){Pu(()=>{let e="";throw new y$3(600,e)});}var aT=10;var sn$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=p(ke$2);afterRenderManager=p(Qa);zonelessEnabled=p(Kr);rootEffectScheduler=p(pa);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ne$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(kt$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(j$4(n=>!n))}constructor(){p(Ut$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=p(ee$2);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ee$3.NULL){return this._injector.get(J$3).run(()=>{if(V(F$3.BootstrapComponentStart),!this._injector.get(wf).done){let M="";throw new y$3(405,M)}let a=Xt$1(n),c=this._injector.get(pr),u=new hr(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:f}=cT(r),h=l||u.selector,g=u.create(o,[],h,c.injector,d,f),v=g.location.nativeElement,E=g.injector.get(If,null);return E?.registerApplication(v),g.onDestroy(()=>{this.detachView(g.hostView),ci$2(this.components,g),E?.unregisterApplication(v);}),this._loadComponent(g),V(F$3.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V(F$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ya.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V(F$3.ChangeDetectionEnd),new y$3(101,false);let n=C$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,C$1(n),this.afterTick.next(),V(F$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(fr,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<aT;){V(F$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V(F$3.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&&!Qo(o))continue;let i=r&&!this.zonelessEnabled?0:1;wy(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})=>Qo(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;ci$2(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(fo,[]).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),()=>ci$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y$3(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=Z$2({token:e,factory:e.\u0275fac})}return e})();function cT(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function ci$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function cc(e,t,n,r){let o=w(),i=_n$1();if(ze$2(o,i,t)){G$3();let a=Yr();Sb(a,o,e,t,n,r);}return cc}function uT(){return w()[_e$2][oe$1]}var Cd=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 Wl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function lT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){C$1(r);let u=t.length-1;for(C$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Wl(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],v=Wl(a,h,u,g,n);if(v!==0){v<0&&e.updateValue(a,g),a--,u--;continue}let E=n(s,l),M=n(a,h),z=n(s,d);if(Object.is(z,M)){let ue=n(u,g);Object.is(ue,E)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ha,i??=im(e,s,a,n),bd(e,o,s,z))e.updateValue(s,d),s++,a++;else if(i.has(z))o.set(E,e.detach(s)),a--;else {let ue=e.create(s,t[s]);e.attach(s,ue),s++,a++;}}for(;s<=u;)om(e,o,n,s,t[s]),s++;}else if(t!=null){C$1(r);let u=t[Symbol.iterator]();C$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=Wl(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else {o??=new Ha,i??=im(e,s,a,n);let g=n(s,f);if(bd(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else {let v=n(s,d);o.set(v,e.detach(s)),a--;}}}for(;!l.done;)om(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 bd(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function om(e,t,n,r,o){if(bd(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function im(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 Ha=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 dT(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,256,s,a),Cf}function Cf(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,512,s,a),Cf}function fT(e,t){it$1("NgControlFlow");let n=w(),r=_n$1(),o=n[r]!==me$2?n[r]:-1,i=o!==-1?Va(n,X+o):void 0,s=0;if(ze$2(n,r,e)){let a=C$1(null);try{if(i!==void 0&&_y(i,s),e!==-1){let c=X+e,u=Va(n,c),l=Md(n[I$1],c),d=Ny(u,l,n),f=Ei$2(n,l,t,{dehydratedView:d});wi$1(u,f,s,no(l,d));}}finally{C$1(a);}}else if(i!==void 0){let a=Ty(i,s);a!==void 0&&(a[oe$1]=t);}}var Sd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-te$2}};function hT(e){return e}function pT(e,t){return t}var Td=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function gT(e,t,n,r,o,i,s,a,c,u,l,d,f){it$1("NgControlFlow");let h=w(),g=G$3(),v=c!==void 0,E=w(),M=a?s.bind(E[_e$2][oe$1]):s,z=new Td(v,M);E[X+e]=z,oo(h,g,e+1,t,n,r,o,$e$1(g.consts,i),256),v&&oo(h,g,e+2,c,u,l,d,$e$1(g.consts,f),512);}var _d=class extends Cd{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-te$2}at(t){return this.getLView(t)[oe$1].$implicit}attach(t,n){let r=n[rr];this.needsIndexUpdate||=t!==this.length,wi$1(this.lContainer,n,t,no(this.templateTNode,r)),yT(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,vT(this.lContainer,t),DT(this.lContainer,t)}create(t,n){let r=Aa(this.lContainer,this.templateTNode.tView.ssrId);return Ei$2(this.hostLView,this.templateTNode,new Sd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Xa(t[I$1],t);}updateValue(t,n){this.getLView(t)[oe$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[oe$1].$index=t;}getLView(t){return ET(this.lContainer,t)}};function mT(e){let t=C$1(null),n=rt$1();try{let r=w(),o=r[I$1],i=r[n],s=n+1,a=Va(r,s);if(i.liveCollection===void 0){let u=Md(o,s);i.liveCollection=new _d(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(lT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=_n$1(),l=c.length===0;if(ze$2(r,u,l)){let d=n+2,f=Va(r,d);if(l){let h=Md(o,d),g=Ny(f,h,r),v=Ei$2(r,h,void 0,{dehydratedView:g});wi$1(f,v,0,no(h,g));}else o.firstUpdatePass&&Qb(f),_y(f,0);}}}finally{C$1(t);}}function Va(e,t){return e[t]}function yT(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n],o=r?r[xt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Nt$2];QC(i,o),Rn$2.delete(r[At$2]),o.detachedLeaveAnimationFns=void 0;}}function vT(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n],o=r?r[xt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function DT(e,t){return fi$2(e,t)}function ET(e,t){return Ty(e,t)}function Md(e,t){return ea(e,t)}function tv(e,t,n){let r=w(),o=_n$1();if(ze$2(r,o,t)){G$3();let s=Yr();py(s,r,e,t,r[$$1],n);}return tv}function Nd(e,t,n,r,o){af(t,e,n,o?"class":"style",r);}function $a(e,t,n,r){let o=w(),i=o[I$1],s=e+X,a=i.firstCreatePass?ff(s,o,2,t,rf,ia(),n,r):i.data[s];if(nn$1(a)){let c=o[pt$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(xy(u),()=>(sm(e,t,o,a,r),$a))}}return sm(e,t,o,a,r),$a}function sm(e,t,n,r,o){if(of(r,n,e,t,rv),zr(r)){let i=n[I$1];nc(i,n,r),jd(i,r,n);}o!=null&&Di$2(n,r);}function bf(){let e=G$3(),t=le$2(),n=sf(t);return e.firstCreatePass&&hf(e,n),_l(n)&&Ml(),Sl(),n.classesWithoutHost!=null&&kI(n)&&Nd(e,n,w(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&PI(n)&&Nd(e,n,w(),n.stylesWithoutHost,false),bf}function uc(e,t,n,r){return $a(e,t,n,r),bf(),uc}function Sf(e,t,n,r){let o=w(),i=o[I$1],s=e+X,a=i.firstCreatePass?wS(s,i,2,t,n,r):i.data[s];return of(a,o,e,t,rv),r!=null&&Di$2(o,a),Sf}function Tf(){let e=le$2(),t=sf(e);return _l(t)&&Ml(),Sl(),Tf}function nv(e,t,n,r){return Sf(e,t,n,r),Tf(),nv}var rv=(e,t,n,r,o)=>(Jo(true),Ym(t[$$1],r,Pl()));function _f(e,t,n){let r=w(),o=r[I$1],i=e+X,s=o.firstCreatePass?ff(i,r,8,"ng-container",rf,ia(),t,n):o.data[i];if(of(s,r,e,"ng-container",wT),zr(s)){let a=r[I$1];nc(a,r,s),jd(a,s,r);}return n!=null&&Di$2(r,s),_f}function Mf(){let e=G$3(),t=le$2(),n=sf(t);return e.firstCreatePass&&hf(e,n),Mf}function ov(e,t,n){return _f(e,t,n),Mf(),ov}var wT=(e,t,n,r,o)=>(Jo(true),SC(t[$$1],""));function IT(){return w()}function iv(e,t,n){let r=w(),o=_n$1();if(ze$2(r,o,t)){G$3();let s=Yr();gy(s,r,e,t,r[$$1],n);}return iv}var ii$2=void 0;function CT(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var bT=["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"]],ii$2,[["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"]],ii$2,[["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}",ii$2,ii$2,ii$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",CT],ql=Object.create(null);function Fe$3(e){let t=ST(e),n=am(t);if(n)return n;let r=t.split("-")[0];if(n=am(r),n)return n;if(r==="en")return bT;throw new y$3(701,false)}function am(e){if(!(e in ql)){let t=Ke$1.ng&&Ke$1.ng.common&&Ke$1.ng.common.locales&&Ke$1.ng.common.locales[e];return t!==void 0&&(ql[e]=t),t}return ql[e]}var ce$2={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function ST(e){return e.toLowerCase().replace(/_/g,"-")}var Ci$2="en-US";function sv(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function lc(e,t,n){let r=w(),o=G$3(),i=le$2();return cv(o,r,r[$$1],i,e,t,n),lc}function av(e,t,n){let r=w(),o=G$3(),i=le$2();return (i.type&3||n)&&df(i,o,r,n,r[$$1],e,t,ur(i,r,t)),av}function cv(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=ur(r,t,i),df(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 f=l[d],h=l[d+1];c??=ur(r,t,i),ka$1(r,t,f,h,o,c);}if(u&&u.length)for(let d of u)c??=ur(r,t,i),ka$1(r,t,d,o,o,c);}}function _T(e=1){return yg(e)}function MT(e,t){let n=null,r=FC(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ny(e,i,true):BC(r,i))return o}return n}function NT(e){let t=w()[_e$2][Te$2];if(!t.projection){let n=e?e.length:1,r=t.projection=Vp(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?MT(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function RT(e,t=0,n,r,o,i){let s=w(),a=G$3(),c=null;let u=ao(a,X+e,16,null,null);u.projection===null&&(u.projection=t),Al();let d=!s[rr]||Tl();s[_e$2][Te$2].projection[u.projection]===null&&c!==null?AT(s,a,c):d&&!Wa(u)&&lb(a,s,u);}function AT(e,t,n){let r=X+n,o=t.data[r],i=e[r],s=Aa(i,o.tView.ssrId),a=Ei$2(e,o,void 0,{dehydratedView:s});wi$1(i,a,0,no(o,s));}function dc(e,t,n,r){return $y(e,t,n,r),dc}function uv(e,t,n){return Vy(e,t,n),uv}function Nf(e){let t=w(),n=G$3(),r=ca();Ko(r+1);let o=gf(n,r);if(e.dirty&&Jp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Gy(t,r);e.reset(i,Rm),e.notifyOnChanges();}return true}return false}function Rf(){return pf(w(),ca())}function lv(e,t,n,r,o){return qy(t,$y(e,n,r,o)),lv}function dv(e,t,n,r){return qy(e,Vy(t,n,r)),dv}function xT(e=1){Ko(ca()+e);}function OT(e){let t=cg();return ta(t,X+e)}function Da(e,t){return e<<17|t<<2}function gr(e){return e>>17&32767}function kT(e){return (e&2)==2}function PT(e,t){return e&131071|t<<17}function Rd(e){return e|2}function io(e){return (e&131068)>>2}function Zl(e,t){return e&-131069|t<<2}function LT(e){return (e&1)===1}function Ad(e){return e|1}function FT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=gr(s),c=io(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Br(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let f=gr(e[a+1]);e[r+1]=Da(f,a),f!==0&&(e[f+1]=Zl(e[f+1],r)),e[a+1]=PT(e[a+1],r);}else e[r+1]=Da(a,0),a!==0&&(e[a+1]=Zl(e[a+1],r)),a=r;else e[r+1]=Da(c,0),a===0?a=r:e[c+1]=Zl(e[c+1],r),c=r;u&&(e[r+1]=Rd(e[r+1])),cm(e,l,r,true),cm(e,l,r,false),jT(t,l,e,r,i),s=Da(a,c),i?t.classBindings=s:t.styleBindings=s;}function jT(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Br(i,t)>=0&&(n[r+1]=Ad(n[r+1]));}function cm(e,t,n,r){let o=e[n+1],i=t===null,s=r?gr(o):io(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];UT(c,t)&&(a=true,e[s+1]=r?Ad(u):Rd(u)),s=r?gr(u):io(u);}a&&(e[n+1]=r?Rd(o):Ad(o));}function UT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Br(e,t)>=0:false}var mt$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function BT(e){return e.substring(mt$2.key,mt$2.keyEnd)}function HT(e){return VT(e),fv(e,hv(e,0,mt$2.textEnd))}function fv(e,t){let n=mt$2.textEnd;return n===t?-1:(t=mt$2.keyEnd=$T(e,mt$2.key=t,n),hv(e,t,n))}function VT(e){mt$2.key=0,mt$2.keyEnd=0,mt$2.value=0,mt$2.valueEnd=0,mt$2.textEnd=e.length;}function hv(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function $T(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function pv(e,t,n){return mv(e,t,n,false),pv}function gv(e,t){return mv(e,t,null,true),gv}function zT(e){WT(JT,GT,e,true);}function GT(e,t){for(let n=HT(t);n>=0;n=fv(t,n))Ks(e,BT(t),true);}function mv(e,t,n,r){let o=w(),i=G$3(),s=Zr(2);if(i.firstUpdatePass&&vv(i,e,s,r),t!==me$2&&ze$2(o,s,t)){let a=i.data[rt$1()];Dv(i,a,o,o[$$1],e,o[s+1]=e_(t,n),r,s);}}function WT(e,t,n,r){let o=G$3(),i=Zr(2);o.firstUpdatePass&&vv(o,null,i,r);let s=w();if(n!==me$2&&ze$2(s,i,n)){let a=o.data[rt$1()];if(Ev(a,r)&&!yv(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Gs(c,n||"")),Nd(o,a,s,n,r);}else XT(o,a,s,s[$$1],s[i+1],s[i+1]=KT(e,t,n),r,i);}}function yv(e,t){return t>=e.expandoStartIndex}function vv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[rt$1()],s=yv(e,n);Ev(i,r)&&t===null&&!s&&(t=false),t=qT(o,i,t,r),FT(o,i,t,n,s,r);}}function qT(e,t,n,r){let o=hg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Yl(null,e,t,n,r),n=pi$2(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Yl(o,e,t,n,r),i===null){let c=ZT(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Yl(null,e,t,c[1],r),c=pi$2(c,t.attrs,r),YT(e,t,r,c));}else i=QT(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function ZT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(io(r)!==0)return e[gr(r)]}function YT(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[gr(o)]=r;}function QT(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=pi$2(r,s,n);}return pi$2(r,t.attrs,n)}function Yl(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=pi$2(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function pi$2(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]),Ks(e,s,n?true:t[++i]));}return e===void 0?null:e}function KT(e,t,n){if(n==null||n==="")return be$3;let r=[],o=Ge(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 JT(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ks(e,r,n);}function XT(e,t,n,r,o,i,s,a){o===me$2&&(o=be$3);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 f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,v;l===d?(c+=2,u+=2,f!==h&&(g=d,v=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,v=h),g!==null&&Dv(e,t,n,r,g,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Dv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=LT(u)?um(c,t,n,o,io(u),s):void 0;if(!za(l)){za(i)||kT(u)&&(i=um(c,null,n,o,a,s));let d=Dl(rt$1(),n);fb(r,s,d,o,i);}}function um(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,f=n[o+1];f===me$2&&(f=d?be$3:void 0);let h=d?Js(f,r):l===r?f:void 0;if(u&&!za(h)&&(h=Js(c,r)),za(h)&&(a=h,s))return a;let g=e[o+1];o=s?gr(g):io(g);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Js(c,r));}return a}function za(e){return e!==void 0}function e_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=zo(Ge(e)))),e}function Ev(e,t){return (e.flags&(t?8:16))!==0}function t_(e,t=""){let n=w(),r=G$3(),o=e+X,i=r.firstCreatePass?ao(r,o,1,t,null):r.data[o],s=n_(r,n,i,t);n[o]=s,da()&&Jd(r,n,s,i),Wr(i,false);}var n_=(e,t,n,r)=>(Jo(true),CC(t[$$1],r));function wv(e,t,n,r=""){return ze$2(e,_n$1(),n)?t+Se$4(n)+r:me$2}function r_(e,t,n,r,o,i=""){let s=sa(),a=Oa(e,s,n,o);return Zr(2),a?t+Se$4(n)+r+Se$4(o)+i:me$2}function o_(e,t,n,r,o,i,s,a,c,u=""){let l=sa(),d=Oy(e,l,n,o,s,c);return Zr(4),d?t+Se$4(n)+r+Se$4(o)+i+Se$4(s)+a+Se$4(c)+u:me$2}function i_(e,t,n,r,o,i,s,a,c,u,l,d=""){let f=sa(),h=Oy(e,f,n,o,s,c);return h=ze$2(e,f+4,l)||h,Zr(5),h?t+Se$4(n)+r+Se$4(o)+i+Se$4(s)+a+Se$4(c)+u+Se$4(l)+d:me$2}function Iv(e){return Af("",e),Iv}function Af(e,t,n){let r=w(),o=wv(r,e,t,n);return o!==me$2&&fc(r,rt$1(),o),Af}function Cv(e,t,n,r,o){let i=w(),s=r_(i,e,t,n,r,o);return s!==me$2&&fc(i,rt$1(),s),Cv}function bv(e,t,n,r,o,i,s,a,c){let u=w(),l=o_(u,e,t,n,r,o,i,s,a,c);return l!==me$2&&fc(u,rt$1(),l),bv}function Sv(e,t,n,r,o,i,s,a,c,u,l){let d=w(),f=i_(d,e,t,n,r,o,i,s,a,c,u,l);return f!==me$2&&fc(d,rt$1(),f),Sv}function fc(e,t,n){let r=Dl(t,e);bC(e[$$1],r,n);}function Tv(e,t,n){ga(t)&&(t=t());let r=w(),o=_n$1();if(ze$2(r,o,t)){G$3();let s=Yr();py(s,r,e,t,r[$$1],n);}return Tv}function s_(e,t){let n=ga(e);return n&&e.set(t),n}function _v(e,t){let n=w(),r=G$3(),o=le$2();return cv(r,n,n[$$1],o,e,t),_v}function a_(e,t,n=""){return wv(w(),e,t,n)}function lm(e,t,n){let r=G$3();r.firstCreatePass&&Mv(t,r.data,r.blueprint,Ot$2(e),n);}function Mv(e,t,n,r,o){if(e=De$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)Mv(e[i],t,n,r,o);else {let i=G$3(),s=w(),a=le$2(),c=Xn$2(e)?e:De$3(e.provide),u=hl(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Xn$2(e)||!e.multi){let h=new lr(u,o,se,null),g=Kl(c,t,l+f,d);g===-1?(ed(Ma(a,s),i,c),Ql(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(h),s.push(h)):(n[g]=h,s[g]=h);}else {let h=Kl(c,t,l+f,d),g=Kl(c,t,l,l+f),v=h>=0&&n[h],E=g>=0&&n[g];if(!v){ed(Ma(a,s),i,c);let M=l_(c_,n.length,o,r,u);E&&(n[g].providerFactory=M),Ql(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(M),s.push(M);}else {let M=Nv(n[h],u,r);Ql(i,e,h>-1?h:g,M);}r&&E&&n[g].componentProviders++;}}}function Ql(e,t,n,r){let o=Xn$2(t),i=Zp(t);if(o||i){let c=(i?De$3(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 Nv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function c_(e,t,n,r,o){return xd(this.multi,[])}function xd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function l_(e,t,n,r,o,i){let s=new lr(e,n,se,null);return s.multi=[],s.index=t,s.componentProviders=0,Nv(s,o,r&&!n),s}function d_(e,t){return n=>{n.providersResolver=(r,o)=>lm(r,o?o(e):e,false);}}function f_(e,t){let n=qr()+e,r=w();return r[n]===me$2?lf(r,n,t()):tS(r,n)}function h_(e,t,n){return Av(w(),qr(),e,t,n)}function p_(e,t,n,r){return xv(w(),qr(),e,t,n,r)}function Rv(e,t){let n=e[t];return n===me$2?void 0:n}function Av(e,t,n,r,o,i){let s=t+n;return ze$2(e,s,o)?lf(e,s+1,i?r.call(i,o):r(o)):Rv(e,s+1)}function xv(e,t,n,r,o,i,s){let a=t+n;return Oa(e,a,o,i)?lf(e,a+2,s?r.call(s,o,i):r(o,i)):Rv(e,a+2)}function g_(e,t){let n=G$3(),r,o=e+X;n.firstCreatePass?(r=m_(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=wn$2(r.type)),a=Oe$3(se);try{let c=_a(!1),u=i();return _a(c),El(n,w(),o,u),u}finally{Oe$3(a);}}function m_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function y_(e,t,n){let r=e+X,o=w(),i=ta(o,r);return Ov(o,r)?Av(o,qr(),t,i.transform,n,i):i.transform(n)}function v_(e,t,n,r){let o=e+X,i=w(),s=ta(i,o);return Ov(i,o)?xv(i,qr(),t,s.transform,n,r,s):s.transform(n,r)}function Ov(e,t){return e[I$1].data[t].pure}function D_(e,t){return rc(e,t)}var kv=(()=>{class e{applicationErrorHandler=p(ke$2);appRef=p(sn$1);taskService=p(kt$1);ngZone=p(J$3);zonelessEnabled=p(Kr);tracing=p(Ut$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ae$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ha,{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?Ig:jl;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(Vo+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=Z$2({token:e,factory:e.\u0275fac})}return e})();function Pv(){return [{provide:dt$2,useExisting:kv},{provide:J$3,useClass:$o},{provide:Kr,useValue:true}]}var xf=(()=>{class e{compileModuleSync(n){return new Ba(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function E_(){return typeof $localize<"u"&&$localize.locale||Ci$2}var ho=new D$1("",{factory:()=>p(ho,{optional:true,skipSelf:true})||E_()});var bi$2=class bi{destroyed=false;listeners=null;errorHandler=p(Ye,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=p(Me$4);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new y$3(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(Qe$1(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=C$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&&w_(this.listeners)),C$1(n),this.isEmitting=false;}}};function w_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function Si$2(e,t){return Fo(e,t?.equal)}function W$3(e){return Np(e)}var I_=e=>e;function Of(e,t){if(typeof e=="function"){let n=Bu(e,I_,t?.equal);return Lv(n)}else {let n=Bu(e.source,e.computation,e.equal);return Lv(n,e.debugName)}}function Lv(e,t){let n=e[re$2],r=e;return r.set=o=>_p(n,o),r.update=o=>Mp(n,o),r.asReadonly=Xo.bind(e),r}var gc=Symbol("InputSignalNode#UNSET"),zv=x$2(w$1({},jo),{transformFn:void 0,applyValueToInputSignal(e,t){En$2(e,t);}});function Gv(e,t){let n=Object.create(zv);n.value=e,n.transformFn=t?.transform;function r(){if(Yt$1(n),n.value===gc){let o=null;throw new y$3(-950,o)}return n.value}return r[re$2]=n,r}var pc=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>mi$2(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function Ff(e){return L_(e)?e.default:e}function L_(e){return e&&typeof e=="object"&&"default"in e}function M$(e){return new bi$2}function Fv(e,t){return Gv(e,t)}function F_(e){return Gv(gc,e)}var mc=(Fv.required=F_,Fv);function Wv(e,t){let n=Object.create(zv),r=new bi$2;n.value=e;function o(){return Yt$1(n),jv(n.value),n.value}return o[re$2]=n,o.asReadonly=Xo.bind(o),o.set=i=>{n.equal(n.value,i)||(En$2(n,i),r.emit(i));},o.update=i=>{jv(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function jv(e){if(e===gc)throw new y$3(952,false)}function Uv(e,t){return Wv(e)}function j_(e){return Wv(gc)}var N$=(Uv.required=j_,Uv);function Bv(e,t){return yf()}function U_(e,t){return vf()}var R$=(Bv.required=U_,Bv);function A$(e,t){return Wy()}function Hv(e,t){return yf()}function B_(e,t){return vf()}var x$=(Hv.required=B_,Hv);var Dr=(()=>{class e{static __NG_ELEMENT_ID__=V_}return e})();function V_(e){return $_(le$2(),w(),(e&16)===16)}function $_(e,t,n){if(nn$1(e)&&!n){let r=nt$2(e.index,t);return new An$2(r,r)}else if(e.type&175){let r=t[_e$2];return new An$2(r,t)}return null}var z_=(()=>{class e{zone=p(J$3);changeDetectionScheduler=p(dt$2);applicationRef=p(sn$1);applicationErrorHandler=p(ke$2);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),G_=new D$1("",{factory:()=>false});function W_({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new J$3(x$2(w$1({},qv()),{scheduleInRootZone:t})),[{provide:Kr,useValue:false},{provide:J$3,useFactory:e},{provide:en$1,multi:true,useFactory:()=>{let n=p(z_,{optional:true});return ()=>n.initialize()}},{provide:en$1,multi:true,useFactory:()=>{let n=p(q_);return ()=>{n.initialize();}}},{provide:ha,useValue:t??Fl}]}function k$(e){let t=e?.scheduleInRootZone,n=W_({ngZoneFactory:()=>{let r=qv(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&it$1("NgZone_CoalesceEvent"),new J$3(r)},scheduleInRootZone:t});return ft$2([{provide:G_,useValue:true},n])}function qv(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var q_=(()=>{class e{subscription=new ae$2;initialized=false;zone=p(J$3);pendingTasks=p(kt$1);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{J$3.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{J$3.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var Pf=new D$1(""),Z_=new D$1("");function Ti$2(e){return !e.moduleRef}function Y_(e){let t=Ti$2(e)?e.r3Injector:e.moduleRef.injector,n=t.get(J$3);return n.run(()=>{Ti$2(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ke$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Ti$2(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Pf);s.add(i),e.moduleRef.onDestroy(()=>{ci$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return K_(r,n,()=>{let i=t.get(kt$1),s=i.add(),a=t.get(wf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(ho,Ci$2);if(sv(c||Ci$2),!t.get(Z_,!0))return Ti$2(e)?t.get(sn$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ti$2(e)){let l=t.get(sn$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Q_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var Q_;function K_(e,t,n){try{let r=n();return yr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var hc=null;function J_(e=[],t){return Ee$3.create({name:t,providers:[{provide:Zo,useValue:"platform"},{provide:Pf,useValue:new Set([()=>hc=null])},...e]})}function X_(e=[]){if(hc)return hc;let t=J_(e);return hc=t,ev(),eM(t),t}function eM(e){let t=e.get(fa,null);ge$3(e,()=>{t?.forEach(n=>n());});}function Zv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V(F$3.BootstrapApplicationStart);try{let i=o?.injector??X_(r),s=[Pv(),bg,...n||[]],a=new hi$2({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Y_({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V(F$3.BootstrapApplicationEnd);}}function _i$2(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function tM(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var kf=Symbol("NOT_SET"),Yv=new Set,nM=x$2(w$1({},jo),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:kf,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!==kf&&!Pr$1(this))return this.signal;try{for(let o of this.cleanup??Yv)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Qt$1(this),r;try{r=this.userFn.apply(null,t);}finally{vn$2(this,n);}return (this.value===kf||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Lf=class extends li$1{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(Me$4),s),this.scheduler=o;for(let a of Zd){let c=n[a];if(c===void 0)continue;let u=Object.create(nM);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Yt$1(u),u.value),u.signal[re$2]=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??Yv)n();}finally{Dn$2(t);}}};function P$(e,t){let n=p(Ee$3),r=n.get(dt$2),o=n.get(Qa),i=n.get(Ut$1,null,{optional:true});o.impl??=n.get(Yd);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Qr,null,{optional:true}),c=new Lf(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function L$(e,t){let n=Xt$1(e),r=t.elementInjector||Hr();return new hr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Qv(e){let t=Xt$1(e);if(!t)return null;let n=new hr(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 Kv=null;function cn$1(){return Kv}function jf(e){Kv??=e;}var Mi$2=class Mi{},un$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:()=>p(Jv),providedIn:"platform"})}return e})(),Uf=new D$1(""),Jv=(()=>{class e extends un$1{_location;_history;_doc=p(Q$3);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return cn$1().getBaseHref(this._doc)}onPopState(n){let r=cn$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=cn$1().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=R$2({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function yc(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Xv(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function vt$1(e){return e&&e[0]!=="?"?`?${e}`:e}var Dt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:()=>p(Dc),providedIn:"root"})}return e})(),vc=new D$1(""),Dc=(()=>{class e extends Dt$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Q$3).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 yc(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+vt$1(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(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)(b(un$1),b(vc,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Pn$2=(()=>{class e{_subject=new ne$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=iM(Xv(eD(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+vt$1(r))}normalize(n){return e.stripTrailingSlash(oM(this._basePath,eD(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+vt$1(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vt$1(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=vt$1;static joinWithSlash=yc;static stripTrailingSlash=Xv;static \u0275fac=function(r){return new(r||e)(b(Dt$1))};static \u0275prov=R$2({token:e,factory:()=>rM(),providedIn:"root"})}return e})();function rM(){return new Pn$2(b(Dt$1))}function oM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function eD(e){return e.replace(/\/index\.html$/,"")}function iM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var qf=(()=>{class e extends Dt$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}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}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=yc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;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)(b(un$1),b(vc,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();var Zf=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Zf||{});var Ne$3=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ne$3||{}),q=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(q||{}),je$2=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(je$2||{}),Ue$2={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function rD(e){return Fe$3(e)[ce$2.LocaleId]}function oD(e,t,n){let r=Fe$3(e),o=[r[ce$2.DayPeriodsFormat],r[ce$2.DayPeriodsStandalone]],i=st$1(o,t);return st$1(i,n)}function iD(e,t,n){let r=Fe$3(e),o=[r[ce$2.DaysFormat],r[ce$2.DaysStandalone]],i=st$1(o,t);return st$1(i,n)}function sD(e,t,n){let r=Fe$3(e),o=[r[ce$2.MonthsFormat],r[ce$2.MonthsStandalone]],i=st$1(o,t);return st$1(i,n)}function aD(e,t){let r=Fe$3(e)[ce$2.Eras];return st$1(r,t)}function Ni$2(e,t){let n=Fe$3(e);return st$1(n[ce$2.DateFormat],t)}function Ri$2(e,t){let n=Fe$3(e);return st$1(n[ce$2.TimeFormat],t)}function Ai$2(e,t){let r=Fe$3(e)[ce$2.DateTimeFormat];return st$1(r,t)}function Bt$1(e,t){let n=Fe$3(e),r=n[ce$2.NumberSymbols][t];if(typeof r>"u"){if(t===Ue$2.CurrencyDecimal)return n[ce$2.NumberSymbols][Ue$2.Decimal];if(t===Ue$2.CurrencyGroup)return n[ce$2.NumberSymbols][Ue$2.Group]}return r}function cD(e,t){return Fe$3(e)[ce$2.NumberFormats][t]}function uD(e){if(!e[ce$2.ExtraData])throw new y$3(2303,false)}function lD(e){let t=Fe$3(e);return uD(t),(t[ce$2.ExtraData][2]||[]).map(r=>typeof r=="string"?Bf(r):[Bf(r[0]),Bf(r[1])])}function dD(e,t,n){let r=Fe$3(e);uD(r);let o=[r[ce$2.ExtraData][0],r[ce$2.ExtraData][1]],i=st$1(o,t)||[];return st$1(i,n)||[]}function st$1(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y$3(2304,false)}function Bf(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var sM=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ec=Object.create(null),aM=/((?:[^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]*)/,cM=256;function fD(e,t,n,r){let o=vM(e);uM(t),t=ln$1(n,t)||t;let s=[],a;for(;t;)if(a=aM.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=pD(r,c),o=yM(o,r));let u="";return s.forEach(l=>{let d=gM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function uM(e){if(e.length>cM)throw new y$3(2300,false)}function Sc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ln$1(e,t){let n=rD(e);if(Ec[n]??=Object.create(null),Ec[n][t])return Ec[n][t];let r="";switch(t){case "shortDate":r=Ni$2(e,je$2.Short);break;case "mediumDate":r=Ni$2(e,je$2.Medium);break;case "longDate":r=Ni$2(e,je$2.Long);break;case "fullDate":r=Ni$2(e,je$2.Full);break;case "shortTime":r=Ri$2(e,je$2.Short);break;case "mediumTime":r=Ri$2(e,je$2.Medium);break;case "longTime":r=Ri$2(e,je$2.Long);break;case "fullTime":r=Ri$2(e,je$2.Full);break;case "short":let o=ln$1(e,"shortTime"),i=ln$1(e,"shortDate");r=wc(Ai$2(e,je$2.Short),[o,i]);break;case "medium":let s=ln$1(e,"mediumTime"),a=ln$1(e,"mediumDate");r=wc(Ai$2(e,je$2.Medium),[s,a]);break;case "long":let c=ln$1(e,"longTime"),u=ln$1(e,"longDate");r=wc(Ai$2(e,je$2.Long),[c,u]);break;case "full":let l=ln$1(e,"fullTime"),d=ln$1(e,"fullDate");r=wc(Ai$2(e,je$2.Full),[l,d]);break}return r&&(Ec[n][t]=r),r}function wc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Et$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 lM(e,t){return Et$2(e,3).substring(0,t)}function de$1(e,t,n=0,r=false,o=false){return function(i,s){let a=dM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return lM(a,t);let c=Bt$1(s,Ue$2.MinusSign);return Et$2(a,t,c,r,o)}}function dM(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 y$3(2301,false)}}function K$2(e,t,n=Ne$3.Format,r=false){return function(o,i){return fM(o,i,e,t,n,r)}}function fM(e,t,n,r,o,i){switch(n){case 2:return sD(t,o,r)[e.getMonth()];case 1:return iD(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=lD(t),l=dD(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,v=s>=h.hours&&a>=h.minutes,E=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(v&&E)return true}else if(v||E)return true}else if(f.hours===s&&f.minutes===a)return true;return false});if(d!==-1)return l[d]}return oD(t,o,r)[s<12?0:1];case 3:return aD(t,r)[e.getFullYear()<=0?0:1];default:throw new y$3(2302,false)}}function Ic(e){return function(t,n,r){let o=-1*r,i=Bt$1(n,Ue$2.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+Et$2(s,2,i)+Et$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+Et$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);default:throw new y$3(2310,false)}}}var hM=0,bc=4;function pM(e){let t=Sc(e,hM,1).getDay();return Sc(e,0,1+(t<=bc?bc:bc+7)-t)}function hD(e){let t=e.getDay(),n=t===0?-3:bc-t;return Sc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Hf(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=hD(n),s=pM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Et$2(o,e,Bt$1(r,Ue$2.MinusSign))}}function Cc(e,t=false){return function(n,r){let i=hD(n).getFullYear();return Et$2(i,e,Bt$1(r,Ue$2.MinusSign),t)}}var Vf=Object.create(null);function gM(e){if(Vf[e])return Vf[e];let t;switch(e){case "G":case "GG":case "GGG":t=K$2(3,q.Abbreviated);break;case "GGGG":t=K$2(3,q.Wide);break;case "GGGGG":t=K$2(3,q.Narrow);break;case "y":t=de$1(0,1,0,false,true);break;case "yy":t=de$1(0,2,0,true,true);break;case "yyy":t=de$1(0,3,0,false,true);break;case "yyyy":t=de$1(0,4,0,false,true);break;case "Y":t=Cc(1);break;case "YY":t=Cc(2,true);break;case "YYY":t=Cc(3);break;case "YYYY":t=Cc(4);break;case "M":case "L":t=de$1(1,1,1);break;case "MM":case "LL":t=de$1(1,2,1);break;case "MMM":t=K$2(2,q.Abbreviated);break;case "MMMM":t=K$2(2,q.Wide);break;case "MMMMM":t=K$2(2,q.Narrow);break;case "LLL":t=K$2(2,q.Abbreviated,Ne$3.Standalone);break;case "LLLL":t=K$2(2,q.Wide,Ne$3.Standalone);break;case "LLLLL":t=K$2(2,q.Narrow,Ne$3.Standalone);break;case "w":t=Hf(1);break;case "ww":t=Hf(2);break;case "W":t=Hf(1,true);break;case "d":t=de$1(2,1);break;case "dd":t=de$1(2,2);break;case "c":case "cc":t=de$1(7,1);break;case "ccc":t=K$2(1,q.Abbreviated,Ne$3.Standalone);break;case "cccc":t=K$2(1,q.Wide,Ne$3.Standalone);break;case "ccccc":t=K$2(1,q.Narrow,Ne$3.Standalone);break;case "cccccc":t=K$2(1,q.Short,Ne$3.Standalone);break;case "E":case "EE":case "EEE":t=K$2(1,q.Abbreviated);break;case "EEEE":t=K$2(1,q.Wide);break;case "EEEEE":t=K$2(1,q.Narrow);break;case "EEEEEE":t=K$2(1,q.Short);break;case "a":case "aa":case "aaa":t=K$2(0,q.Abbreviated);break;case "aaaa":t=K$2(0,q.Wide);break;case "aaaaa":t=K$2(0,q.Narrow);break;case "b":case "bb":case "bbb":t=K$2(0,q.Abbreviated,Ne$3.Standalone,true);break;case "bbbb":t=K$2(0,q.Wide,Ne$3.Standalone,true);break;case "bbbbb":t=K$2(0,q.Narrow,Ne$3.Standalone,true);break;case "B":case "BB":case "BBB":t=K$2(0,q.Abbreviated,Ne$3.Format,true);break;case "BBBB":t=K$2(0,q.Wide,Ne$3.Format,true);break;case "BBBBB":t=K$2(0,q.Narrow,Ne$3.Format,true);break;case "h":t=de$1(3,1,-12);break;case "hh":t=de$1(3,2,-12);break;case "H":t=de$1(3,1);break;case "HH":t=de$1(3,2);break;case "m":t=de$1(4,1);break;case "mm":t=de$1(4,2);break;case "s":t=de$1(5,1);break;case "ss":t=de$1(5,2);break;case "S":t=de$1(6,1);break;case "SS":t=de$1(6,2);break;case "SSS":t=de$1(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ic(0);break;case "ZZZZZ":t=Ic(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ic(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ic(2);break;default:return null}return Vf[e]=t,t}function pD(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function mM(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function yM(e,t,n){let o=e.getTimezoneOffset(),i=pD(t,o);return mM(e,-1*(i-o))}function vM(e){if(tD(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 Sc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(sM))return DM(r)}let t=new Date(e);if(!tD(t))throw new y$3(2311,false);return t}function DM(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 tD(e){return e instanceof Date&&!isNaN(e.valueOf())}var EM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,nD=22,Tc=".",xi$2="0",wM=";",IM=",",$f="#";function CM(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=Bt$1(n,Ue$2.Infinity);else {let u=TM(e);s&&(u=SM(u));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(i){let z=i.match(EM);if(z===null)throw new y$3(2306,false);let ue=z[1],Ct=z[3],gn=z[5];ue!=null&&(l=zf(ue)),Ct!=null&&(d=zf(Ct)),gn!=null?f=zf(gn):Ct!=null&&d>f&&(f=d);let ct=100;if(l>ct||d>ct||f>ct)throw new y$3(2306,false)}_M(u,d,f);let h=u.digits,g=u.integerLen,v=u.exponent,E=[];for(c=h.every(z=>!z);g<l;g++)h.unshift(0);for(;g<0;g++)h.unshift(0);g>0?E=h.splice(g,h.length):(E=h,h=[0]);let M=[];for(h.length>=t.lgSize&&M.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)M.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&M.unshift(h.join("")),a=M.join(Bt$1(n,r)),E.length&&(a+=Bt$1(n,o)+E.join("")),v&&(a+=Bt$1(n,Ue$2.Exponential)+"+"+v);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function gD(e,t,n){let r=cD(t,Zf.Decimal),o=bM(r,Bt$1(t,Ue$2.MinusSign));return CM(e,o,t,Ue$2.Group,Ue$2.Decimal,n)}function bM(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(wM),o=r[0],i=r[1],s=o.indexOf(Tc)!==-1?o.split(Tc):[o.substring(0,o.lastIndexOf(xi$2)+1),o.substring(o.lastIndexOf(xi$2)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf($f));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===xi$2?n.minFrac=n.maxFrac=l+1:d===$f?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(IM);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf($f);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function SM(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function TM(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Tc))>-1&&(t=t.replace(Tc,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===xi$2;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===xi$2;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>nD&&(r=r.splice(0,nD-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function _M(e,t,n){if(t>n)throw new y$3(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,f,h,g){return f=f+d,g[h]=f<10?f:f-10,c&&(g[h]===0&&h>=u?g.pop():c=false),f>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function zf(e){let t=parseInt(e);if(isNaN(t))throw new y$3(2305,false);return t}var MM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Ee$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)(se(On$2))};static \u0275dir=kn$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[xn$2]})}return e})();function _c(e,t){return new y$3(2100,false)}var Gf=class{createSubscription(t,n,r){return W$3(()=>t.subscribe({next:n,error:r}))}dispose(t){W$3(()=>t.unsubscribe());}},Wf=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},NM=new Wf,RM=new Gf,AM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(ke$2);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(yr(n))return NM;if(oc(n))return RM;throw _c()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(se(Dr,16))};static \u0275pipe=vr({name:"async",type:e,pure:false})}return e})(),xM=(()=>{class e{transform(n){return n==null?null:(OM(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=vr({name:"lowercase",type:e,pure:true})}return e})();function OM(e,t){if(typeof t!="string")throw _c()}var kM="mediumDate",mD=new D$1(""),yD=new D$1(""),PM=(()=>{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??kM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return fD(n,s,i||this.locale,a)}catch(s){throw _c(e,s.message)}}static \u0275fac=function(r){return new(r||e)(se(ho,16),se(mD,24),se(yD,24))};static \u0275pipe=vr({name:"date",type:e,pure:true})}return e})();var LM=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=vr({name:"json",type:e,pure:false})}return e})();var FM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!jM(n))return null;o||=this._locale;try{let i=UM(n);return gD(i,o,r)}catch(i){throw _c(e,i.message)}}static \u0275fac=function(r){return new(r||e)(se(ho,16))};static \u0275pipe=vr({name:"number",type:e,pure:true})}return e})();function jM(e){return !(e==null||e===""||e!==e)}function UM(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y$3(2309,false);return e}function Oi$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}var Qf="browser";function iz(e){return e===Qf}var Kf=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new Yf(p(Q$3),window)})}return e})(),Yf=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$2(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=$M(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Qe$1(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$2(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function $M(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}var ki$2=class ki{_doc;constructor(t){this._doc=t;}manager},Mc=(()=>{class e extends ki$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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Ac=new D$1(""),th=(()=>{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 Mc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Mc);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 y$3(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b(Ac),b(J$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Jf="ng-app-id";function vD(e){for(let t of e)t.remove();}function DD(e,t){let n=t.createElement("style");return n.textContent=e,n}function GM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Jf}="${t}"],link[${Jf}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Jf),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 eh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var nh=(()=>{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,GM(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,DD);r?.forEach(o=>this.addUsage(o,this.external,eh));}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&&(vD(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])vD(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,DD(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,eh(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)(b(Q$3),b(ei$2),b(ni$2,8),b(ti$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Xf={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"},rh=/%COMP%/g;var wD="%COMP%",WM=`_nghost-${wD}`,qM=`_ngcontent-${wD}`,ZM=true,YM=new D$1("",{factory:()=>ZM});function QM(e){return qM.replace(rh,e)}function KM(e){return WM.replace(rh,e)}function ID(e,t){return t.map(n=>n.replace(rh,e))}var oh=(()=>{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 Pi$2(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Rc?o.applyToHost(n):o instanceof Li$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 yt$1.Emulated:i=new Rc(c,u,r,this.appId,l,s,a,d);break;case yt$1.ShadowDom:return new Nc(c,n,r,s,a,this.nonce,d,u);case yt$1.ExperimentalIsolatedShadowDom:return new Nc(c,n,r,s,a,this.nonce,d);default:i=new Li$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)(b(th),b(mr),b(ei$2),b(YM),b(Q$3),b(J$3),b(ni$2),b(Ut$1,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Pi$2=class Pi{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(Xf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ED(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(ED(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 y$3(-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=Xf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Xf[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&(Lt$1.DashCase|Lt$1.Important)?t.style.setProperty(n,r,o&Lt$1.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Lt$1.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=cn$1().getGlobalEventTarget(this.doc,t),!t))throw new y$3(-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 ED(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Nc=class extends Pi$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=ID(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=eh(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}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);}},Li$2=class Li extends Pi$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?ID(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Rn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Rc=class extends Li$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=QM(u),this.hostAttr=KM(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 xc=class e extends Mi$2{supportsDOMEvents=true;static makeCurrent(){jf(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=JM();return n==null?null:XM(n)}resetBaseElement(){Fi$2=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Oi$2(document.cookie,t)}},Fi$2=null;function JM(){return Fi$2=Fi$2||document.head.querySelector("base"),Fi$2?Fi$2.getAttribute("href"):null}function XM(e){return new URL(e,document.baseURI).pathname}var CD=["alt","control","meta","shift"],eN={"\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"},tN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},bD=(()=>{class e extends ki$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(()=>cn$1().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."),CD.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=eN[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"),CD.forEach(s=>{if(s!==o){let a=tN[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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();function nN(e,t,n){return B$1(this,null,function*(){let r=w$1({rootComponent:e},rN(t,n));return Zv(r)})}function rN(e,t){return {platformRef:t?.platformRef,appProviders:[...cN,...e?.providers??[]],platformProviders:aN}}function oN(){xc.makeCurrent();}function iN(){return new Ye}function sN(){return Pd(document),document}var aN=[{provide:ti$2,useValue:Qf},{provide:fa,useValue:oN,multi:true},{provide:Q$3,useFactory:sN}];var cN=[{provide:Zo,useValue:"root"},{provide:Ye,useFactory:iN},{provide:Ac,useClass:Mc,multi:true},{provide:Ac,useClass:bD,multi:true},oh,{provide:mr,useClass:nh},{provide:nh,useExisting:mr},th,{provide:fr,useExisting:oh},[]];var fn=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 kc=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()}},Pc=class{encodeKey(t){return SD(t)}encodeValue(t){return SD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function uN(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 lN=/%(\d[a-f0-9])/gi,dN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function SD(e){return encodeURIComponent(e).replace(lN,(t,n)=>dN[n]??t)}function Oc(e){return `${e}`}var dn$1=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new y$3(2805,false);this.map=uN(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(Oc):[Oc(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(Oc(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(Oc(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 fN(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function TD(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function _D(e){return typeof Blob<"u"&&e instanceof Blob}function MD(e){return typeof FormData<"u"&&e instanceof FormData}function hN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ih="Content-Type",ND="Accept",AD="text/plain",xD="application/json",pN=`${xD}, ${AD}, */*`,po=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(fN(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 y$3(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 fn,this.context??=new kc,!this.params)this.params=new dn$1,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"||TD(this.body)||_D(this.body)||MD(this.body)||hN(this.body)?this.body:this.body instanceof dn$1?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||MD(this.body)?null:_D(this.body)?this.body.type||null:TD(this.body)?null:typeof this.body=="string"?AD:this.body instanceof dn$1?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?xD: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,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,v=t.timeout??this.timeout,E=t.body!==void 0?t.body:this.body,M=t.withCredentials??this.withCredentials,z=t.reportProgress??this.reportProgress,ue=t.reportUploadProgress??this.reportUploadProgress,Ct=t.reportDownloadProgress??this.reportDownloadProgress,gn=t.headers||this.headers,ct=t.params||this.params,ns=t.context??this.context;return t.setHeaders!==void 0&&(gn=Object.keys(t.setHeaders).reduce((_r,Hn)=>_r.set(Hn,t.setHeaders[Hn]),gn)),t.setParams&&(ct=Object.keys(t.setParams).reduce((_r,Hn)=>_r.set(Hn,t.setParams[Hn]),ct)),new e(n,r,E,{params:ct,headers:gn,context:ns,reportProgress:z,reportUploadProgress:ue,reportDownloadProgress:Ct,responseType:o,withCredentials:M,transferCache:g,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},go=(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})(go||{}),mo=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new fn,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;}},Lc=class e extends mo{constructor(t={}){super(t);}type=go.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})}},ji$2=class e extends mo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=go.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})}},Er=class extends mo{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;}},gN=200;var mN=/^\)\]\}',?\n/,OD=new D$1("",{factory:()=>null}),Fc=(()=>{class e{fetchImpl=p(ah,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(J$3);destroyRef=p(Me$4);maxResponseSize=p(OD);handle(n){return new k$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(ch,s=>r.error(new Er({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();}})}doRequest(n,r,o){return B$1(this,null,function*(){let i=this.createRequestInit(n),s;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));yN(E),o.next({type:go.Sent}),s=yield E;}catch(E){o.error(new Er({error:E,status:E.status??0,statusText:E.statusText,url:n.urlWithParams,headers:E.headers}));return}let a=new fn(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,f=n.reportProgress||n.reportDownloadProgress;if(f&&o.next(new Lc({headers:a,status:l,statusText:c,url:u})),s.body){let E=s.headers.get("content-length"),M=E!==null?Number(E):NaN;this.maxResponseSize!==null&&Number.isFinite(M)&&M>this.maxResponseSize&&RD(this.maxResponseSize);let z=[],ue=s.body.getReader(),Ct=0,gn,ct,ns=typeof Zone<"u"&&Zone.current,_r=false;if(yield this.ngZone.runOutsideAngular(()=>B$1(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield ue.cancel(),_r=true;break}let{done:No,value:gu}=yield ue.read();if(No)break;if(z.push(gu),Ct+=gu.length,this.maxResponseSize!==null&&Ct>this.maxResponseSize&&(yield ue.cancel(),RD(this.maxResponseSize)),f){ct=n.responseType==="text"?(ct??"")+(gn??=new TextDecoder).decode(gu,{stream:true}):void 0;let $h=()=>o.next({type:go.DownloadProgress,total:Number.isFinite(M)?M:void 0,loaded:Ct,partialText:ct});ns?ns.run($h):$h();}}})),_r){o.complete();return}let Hn=this.concatChunks(z,Ct);try{let No=s.headers.get(ih)??"";d=this.parseBody(n,Hn,No,l);}catch(No){o.error(new Er({error:No,headers:new fn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?gN:0);let h=l>=200&&l<300,g=s.redirected,v=s.type;h?(o.next(new ji$2({body:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v})),o.complete()):o.error(new Er({error:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(mN,"");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 y$3(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(ND)||(r[ND]=pN),!n.headers.has(ih)){let i=n.detectContentTypeHeader();i!==null&&(r[ih]=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=Z$2({token:e,factory:e.\u0275fac})}return e})(),ah=class{};function ch(){}function yN(e){e.then(ch,ch);}function RD(e){throw new y$3(-2825,false)}function vN(e,t){return t(e)}function DN(e,t,n){return (r,o)=>ge$3(n,()=>t(r,i=>e(i,o)))}var kD=new D$1("",{factory:()=>[]}),PD=new D$1(""),LD=new D$1("",{factory:()=>true});var uh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(Fc),o},providedIn:"root"})}return e})();var jc=(()=>{class e{backend;injector;chain=null;pendingTasks=p(oi$2);contributeToStability=p(LD);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(kD),...this.injector.get(PD,[])]));this.chain=o.reduceRight((i,s)=>DN(i,s,this.injector),vN);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return W$3(()=>r(n,i=>this.backend.handle(i))).pipe(xr(o))}else return W$3(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b(uh),b(ee$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(jc),o},providedIn:"root"})}return e})();function sh(e,t){return w$1({body:t},e)}var FD=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof po)i=n;else {let c;o.headers instanceof fn?c=o.headers:c=new fn(o.headers);let u;o.params&&(o.params instanceof dn$1?u=o.params:u=new dn$1({fromObject:o.params})),i=new po(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=_$3(i).pipe(qt$1(c=>this.handler.handle(c)));if(n instanceof po||o.observe==="events")return s;let a=s.pipe(Ie$4(c=>c instanceof ji$2));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(j$4(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y$3(2806,false);return c.body}));case "blob":return a.pipe(j$4(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y$3(2807,false);return c.body}));case "text":return a.pipe(j$4(c=>{if(c.body!==null&&typeof c.body!="string")throw new y$3(2808,false);return c.body}));default:return a.pipe(j$4(c=>c.body))}case "response":return a;default:throw new y$3(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 dn$1().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,sh(o,r))}post(n,r,o={}){return this.request("POST",n,sh(o,r))}put(n,r,o={}){return this.request("PUT",n,sh(o,r))}static \u0275fac=function(r){return new(r||e)(b(lh))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var EN=new D$1("",{factory:()=>true}),wN="XSRF-TOKEN",IN=new D$1("",{factory:()=>wN}),CN="X-XSRF-TOKEN",bN=new D$1("",{factory:()=>CN}),SN=(()=>{class e{cookieName=p(IN);doc=p(Q$3);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Oi$2(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),jD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(SN),o},providedIn:"root"})}return e})();function TN(e,t){if(!p(EN)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(un$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=p(jD).getToken(),r=p(bN);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function _N(...e){let t=[FD,Fc,jc,{provide:lh,useExisting:jc},{provide:uh,useFactory:()=>p(Fc)},{provide:kD,useValue:TN,multi:true}];for(let n of e)t.push(...n.\u0275providers);return ft$2(t)}var UD=(()=>{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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var MN=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(NN),o},providedIn:"root"})}return e})(),NN=(()=>{class e extends MN{_doc=p(Q$3);sanitize(n,r){if(r==null)return null;switch(n){case ot$1.NONE:return r;case ot$1.HTML:return jt$1(r,"HTML")?Ge(r):Za(this._doc,String(r)).toString();case ot$1.STYLE:return jt$1(r,"Style")?Ge(r):r;case ot$1.SCRIPT:if(jt$1(r,"Script"))return Ge(r);throw new y$3(5200,false);case ot$1.URL:return jt$1(r,"URL")?Ge(r):yi$2(String(r));case ot$1.RESOURCE_URL:if(jt$1(r,"ResourceURL"))return Ge(r);throw new y$3(-5201,false);default:throw new y$3(5202,false)}}bypassSecurityTrustHtml(n){return Ud(n)}bypassSecurityTrustStyle(n){return Bd(n)}bypassSecurityTrustScript(n){return Hd(n)}bypassSecurityTrustUrl(n){return Vd(n)}bypassSecurityTrustResourceUrl(n){return $d(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var A$1="primary",Ki$1=Symbol("RouteTitle"),gh=class{params;constructor(t){this.params=t||{};}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return []}get keys(){return Object.keys(this.params)}};function Ir(e){return new gh(e)}function dh(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return false}return true}function qD(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return dh(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return !dh(i,e.slice(0,i.length),a)||!dh(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function zc(e){return new Promise((t,n)=>{e.pipe(Zt$1()).subscribe({next:r=>t(r),error:r=>n(r)});})}function AN(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;++n)if(!Ht$1(e[n],t[n]))return false;return true}function Ht$1(e,t){let n=e?mh(e):void 0,r=t?mh(t):void 0;if(!n||!r||n.length!=r.length)return false;let o;for(let i=0;i<n.length;i++)if(o=n[i],!ZD(e[o],t[o]))return false;return true}function mh(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function ZD(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return false;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function xN(e){return e.length>0?e[e.length-1]:null}function br(e){return As$1(e)?e:yr(e)?Y$1(Promise.resolve(e)):_$3(e)}function YD(e){return As$1(e)?zc(e):Promise.resolve(e)}var ON={exact:KD,subset:JD},QD={exact:kN,subset:PN,ignored:()=>true},Rh={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$i$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ah(e,t,n){let r=e instanceof Pe$3?e:t.parseUrl(e);return Si$2(()=>yh(t.lastSuccessfulNavigation()?.finalUrl??new Pe$3,r,w$1(w$1({},$i$1),n)))}function yh(e,t,n){return ON[n.paths](e.root,t.root,n.matrixParams)&&QD[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function kN(e,t){return Ht$1(e,t)}function KD(e,t,n){if(!wr(e.segments,t.segments)||!Hc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return false;for(let r in t.children)if(!e.children[r]||!KD(e.children[r],t.children[r],n))return false;return true}function PN(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ZD(e[n],t[n]))}function JD(e,t,n){return XD(e,t,t.segments,n)}function XD(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return !(!wr(o,n)||t.hasChildren()||!Hc(o,n,r))}else if(e.segments.length===n.length){if(!wr(e.segments,n)||!Hc(e.segments,n,r))return false;for(let o in t.children)if(!e.children[o]||!JD(e.children[o],t.children[o],r))return false;return true}else {let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return !wr(e.segments,o)||!Hc(e.segments,o,r)||!e.children[A$1]?false:XD(e.children[A$1],t,i,r)}}function Hc(e,t,n){return t.every((r,o)=>QD[n](e[o].parameters,r.parameters))}var Pe$3=class Pe{root;queryParams;fragment;_queryParamMap;constructor(t=new U$4([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=Ir(this.queryParams),this._queryParamMap}toString(){return jN.serialize(this)}},U$4=class U{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vc(this)}},Ln$2=class Ln{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n;}get parameterMap(){return this._parameterMap??=Ir(this.parameters),this._parameterMap}toString(){return tE(this)}};function LN(e,t){return wr(e,t)&&e.every((n,r)=>Ht$1(n.parameters,t[r].parameters))}function wr(e,t){return e.length!==t.length?false:e.every((n,r)=>n.path===t[r].path)}function FN(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===A$1&&(n=n.concat(t(o,r)));}),Object.entries(e.children).forEach(([r,o])=>{r!==A$1&&(n=n.concat(t(o,r)));}),n}var Un$2=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>new pn$1})}return e})(),pn$1=class pn{parse(t){let n=new Dh(t);return new Pe$3(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ui$2(t.root,true)}`,r=HN(t.queryParams),o=typeof t.fragment=="string"?`#${UN(t.fragment)}`:"";return `${n}${r}${o}`}},jN=new pn$1;function Vc(e){return e.segments.map(t=>tE(t)).join("/")}function Ui$2(e,t){if(!e.hasChildren())return Vc(e);if(t){let n=e.children[A$1]?Ui$2(e.children[A$1],false):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==A$1&&r.push(`${o}:${Ui$2(i,false)}`);}),r.length>0?`${n}(${r.join("//")})`:n}else {let n=FN(e,(r,o)=>o===A$1?[Ui$2(e.children[A$1],false)]:[`${o}:${Ui$2(r,false)}`]);return Object.keys(e.children).length===1&&e.children[A$1]!=null?`${Vc(e)}/${n[0]}`:`${Vc(e)}/(${n.join("//")})`}}function eE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uc(e){return eE(e).replace(/%3B/gi,";")}function UN(e){return encodeURI(e)}function vh(e){return eE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $c(e){return decodeURIComponent(e)}function BD(e){return $c(e.replace(/\+/g,"%20"))}function tE(e){return `${vh(e.path)}${BN(e.parameters)}`}function BN(e){return Object.entries(e).map(([t,n])=>`;${vh(t)}=${vh(n)}`).join("")}function HN(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Uc(n)}=${Uc(o)}`).join("&"):`${Uc(n)}=${Uc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var VN=/^[^\/()?;#]+/;function fh(e){let t=e.match(VN);return t?t[0]:""}var $N=/^[^\/()?;=#]+/;function zN(e){let t=e.match($N);return t?t[0]:""}var GN=/^[^=?&#]+/;function WN(e){let t=e.match(GN);return t?t[0]:""}var qN=/^[^&#]+/;function ZN(e){let t=e.match(qN);return t?t[0]:""}var Dh=class{url;remaining;constructor(t){this.url=t,this.remaining=t;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U$4([],{}):new U$4([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new y$3(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(false,t)),(n.length>0||Object.keys(r).length>0)&&(o[A$1]=new U$4(n,r)),o}parseSegment(){let t=fh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y$3(4009,false);return this.capture(t),new Ln$2($c(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=zN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=fh(this.remaining);o&&(r=o,this.capture(r));}t[$c(n)]=$c(r);}parseQueryParam(t){let n=WN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ZN(this.remaining);s&&(r=s,this.capture(r));}let o=BD(n),i=BD(r);if(Object.hasOwn(t,o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i);}else t[o]=i;}parseParens(t,n){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=fh(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new y$3(4010,false);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=A$1);let a=this.parseChildren(n+1);r[s??A$1]=Object.keys(a).length===1&&a[A$1]?a[A$1]:new U$4([],a),this.consumeOptional("//");}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),true):false}capture(t){if(!this.consumeOptional(t))throw new y$3(4011,false)}};function nE(e){return e.segments.length>0?new U$4([],{[A$1]:e}):e}function rE(e){let t=Object.create(null);for(let[r,o]of Object.entries(e.children)){let i=rE(o);if(r===A$1&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else (i.segments.length>0||i.hasChildren())&&(t[r]=i);}let n=new U$4(e.segments,t);return YN(n)}function YN(e){if(e.numberOfChildren===1&&e.children[A$1]){let t=e.children[A$1];return new U$4(e.segments.concat(t.segments),t.children)}return e}function Fn$1(e){return e instanceof Pe$3}function oE(e,t,n=null,r=null,o=new pn$1){let i=iE(e);return sE(i,t,n,r,o)}function iE(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u;}let a=new U$4(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=nE(r);return t??o}function sE(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return hh(i,i,i,n,r,o);let s=QN(t);if(s.toRoot())return hh(i,i,new U$4([],{}),n,r,o);let a=KN(s,i,e),c=a.processChildren?Hi$2(a.segmentGroup,a.index,s.commands):cE(a.segmentGroup,a.index,s.commands);return hh(i,a.segmentGroup,c,n,r,o)}function Gc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zi$1(e){return typeof e=="object"&&e!=null&&e.outlets}function HD(e,t,n){e||="\u0275";let r=new Pe$3;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function hh(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>HD(u,d,i)):HD(u,l,i);let a;e===t?a=n:a=aE(e,t,n);let c=nE(rE(a));return new Pe$3(c,s,o)}function aE(e,t,n){let r=Object.create(null);return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=aE(i,t,n);}),new U$4(e.segments,r)}var Wc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gc(r[0]))throw new y$3(4003,false);let o=r.find(zi$1);if(o&&o!==xN(r))throw new y$3(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function QN(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wc(true,0,e);let t=0,n=false,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u;}),[...o,{outlets:a}]}if(i.segmentPath)return [...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=true:a===".."?t++:a!=""&&o.push(a));}),o):[...o,i]},[]);return new Wc(n,t,r)}var vo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r;}};function KN(e,t,n){if(e.isAbsolute)return new vo(t,true,0);if(!n)return new vo(t,false,NaN);if(n.parent===null)return new vo(n,true,0);let r=Gc(e.commands[0])?0:1,o=n.segments.length-1+r;return JN(n,o,e.numberOfDoubleDots)}function JN(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y$3(4005,false);o=r.segments.length;}return new vo(r,false,o-i)}function XN(e){return zi$1(e[0])?e[0].outlets:{[A$1]:e}}function cE(e,t,n){if(e??=new U$4([],{}),e.segments.length===0&&e.hasChildren())return Hi$2(e,t,n);let r=eR(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U$4(e.segments.slice(0,r.pathIndex),{});return i.children[A$1]=new U$4(e.segments.slice(r.pathIndex),e.children),Hi$2(i,0,o)}else return r.match&&o.length===0?new U$4(e.segments,{}):r.match&&!e.hasChildren()?Eh(e,t,n):r.match?Hi$2(e,0,o):Eh(e,t,n)}function Hi$2(e,t,n){if(n.length===0)return new U$4(e.segments,{});{let r=XN(n),o=Object.create(null);if(Object.keys(r).some(i=>i!==A$1)&&e.children[A$1]&&e.numberOfChildren===1&&e.children[A$1].segments.length===0){let i=Hi$2(e.children[A$1],t,n);return new U$4(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=cE(e.children[i],t,s));}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s);}),new U$4(e.segments,o)}}function eR(e,t,n){let r=0,o=t,i={match:false,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(zi$1(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!$D(c,u,s))return i;r+=2;}else {if(!$D(c,{},s))return i;r++;}o++;}return {match:true,pathIndex:o,commandIndex:r}}function Eh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(zi$1(i)){let c=tR(i.outlets);return new U$4(r,c)}if(o===0&&Gc(n[0])){let c=e.segments[t];r.push(new Ln$2(c.path,VD(n[0]))),o++;continue}let s=zi$1(i)?i.outlets[A$1]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Gc(a)?(r.push(new Ln$2(s,VD(a))),o+=2):(r.push(new Ln$2(s,{})),o++);}return new U$4(r,{})}function tR(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Eh(new U$4([],{}),0,r));}),t}function VD(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function $D(e,t,n){return e==n.path&&Ht$1(t,n.parameters)}var Do="imperative",ye$3=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(ye$3||{}),qe$2=class qe{id;url;constructor(t,n){this.id=t,this.url=n;}},jn$2=class jn extends qe$2{type=ye$3.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ze=class extends qe$2{urlAfterRedirects;type=ye$3.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Re$4=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Re$4||{}),wo=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(wo||{}),at$1=class at extends qe$2{reason;code;type=ye$3.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function uE(e){return e instanceof at$1&&(e.code===Re$4.Redirect||e.code===Re$4.SupersededByNewNavigation)}var Vt$1=class Vt extends qe$2{reason;code;type=ye$3.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}},Cr=class extends qe$2{error;target;type=ye$3.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gi$1=class Gi extends qe$2{urlAfterRedirects;state;type=ye$3.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qc=class extends qe$2{urlAfterRedirects;state;type=ye$3.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zc=class extends qe$2{urlAfterRedirects;state;shouldActivate;type=ye$3.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Yc=class extends qe$2{urlAfterRedirects;state;type=ye$3.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qc=class extends qe$2{urlAfterRedirects;state;type=ye$3.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kc=class{route;type=ye$3.RouteConfigLoadStart;constructor(t){this.route=t;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Jc=class{route;type=ye$3.RouteConfigLoadEnd;constructor(t){this.route=t;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},Xc$1=class Xc{snapshot;type=ye$3.ChildActivationStart;constructor(t){this.snapshot=t;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},eu=class{snapshot;type=ye$3.ChildActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tu=class{snapshot;type=ye$3.ActivationStart;constructor(t){this.snapshot=t;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nu=class{snapshot;type=ye$3.ActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Io=class{routerEvent;position;anchor;scrollBehavior;type=ye$3.Scroll;constructor(t,n,r,o){this.routerEvent=t,this.position=n,this.anchor=r,this.scrollBehavior=o;}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${t}')`}},Co=class{},Wi$2=class Wi{},bo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n;}};function nR(e){return !(e instanceof Co)&&!(e instanceof bo)&&!(e instanceof Wi$2)}var ru=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Sr(this.rootInjector);}},Sr=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n;}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o);}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n;}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new ru(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(b(ee$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ou=class{_root;constructor(t){this._root=t;}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=wh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=wh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ih(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ih(t,this._root).map(n=>n.value)}};function wh(e,t){if(e===t.value)return t;for(let n of t.children){let r=wh(e,n);if(r)return r}return null}function Ih(e,t){if(e===t.value)return [t];for(let n of t.children){let r=Ih(e,n);if(r.length)return r.unshift(t),r}return []}var We=class{value;children;constructor(t,n){this.value=t,this.children=n;}toString(){return `TreeNode(${this.value})`}};function yo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var qi$1=class qi extends ou{snapshot;constructor(t,n){super(t),this.snapshot=n,Oh(this,t);}toString(){return this.snapshot.toString()}};function lE(e,t){let n=rR(e,t),r=new ve$2([new Ln$2("",{})]),o=new ve$2({}),i=new ve$2({}),s=new ve$2({}),a=new ve$2(""),c=new $t$1(r,o,s,a,i,A$1,e,n.root);return c.snapshot=n.root,new qi$1(new We(c,[]),n)}function rR(e,t){let n={},r={},o={},s=new So([],n,o,"",r,A$1,e,null,{},t);return new Zi$1("",new We(s,[]))}var $t$1=class $t{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j$4(u=>u[Ki$1]))??_$3(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i;}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(j$4(t=>Ir(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j$4(t=>Ir(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},oR="always";function xh(e,t,n){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:w$1(w$1({},t.params),e.params),data:w$1(w$1({},t.data),e.data),resolve:w$1(w$1(w$1(w$1({},e.data),t.data),o?.data),e._resolvedData)}:r={params:w$1({},e.params),data:w$1({},e.data),resolve:w$1(w$1({},e.data),e._resolvedData??{})},o&&fE(o)&&(r.resolve[Ki$1]=o.title),r}var So=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ki$1]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l;}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??=Ir(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ir(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${t}', path:'${n}')`}},Zi$1=class Zi extends ou{url;constructor(t,n){super(n),this.url=t,Oh(this,n);}toString(){return dE(this._root)}};function Oh(e,t){t.value._routerState=e,t.children.forEach(n=>Oh(e,n));}function dE(e){let t=e.children.length>0?` { ${e.children.map(dE).join(", ")} } `:"";return `${e.value}${t}`}function ph(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ht$1(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ht$1(t.params,n.params)||e.paramsSubject.next(n.params),AN(t.url,n.url)||e.urlSubject.next(n.url),Ht$1(t.data,n.data)||e.dataSubject.next(n.data);}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data);}function Ch(e,t){let n=Ht$1(e.params,t.params)&&LN(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ch(e.parent,t.parent))}function fE(e){return typeof e.title=="string"||e.title===null}var hE=new D$1(""),kh=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=A$1;activateEvents=new Ce$4;deactivateEvents=new Ce$4;attachEvents=new Ce$4;detachEvents=new Ce$4;routerOutletData=mc();parentContexts=p(Sr);location=p(On$2);changeDetector=p(Dr);inputBinder=p(Ji$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new y$3(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y$3(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y$3(4012,false);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance);}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n);}}activateWith(n,r){if(this.isActivated)throw new y$3(4013,false);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new bh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||e)};static \u0275dir=kn$2({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xn$2]})}return e})(),bh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o;}get(t,n){return t===$t$1?this.route:t===Sr?this.childContexts:t===hE?this.outletData:this.parent.get(t,n)}},Ji$1=new D$1(""),pE=(()=>{class e{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(n){this.options=n,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n);}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n),this.outletSeenKeys.delete(n);}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Ss$1([this.options.queryParams?r.queryParams:_$3({}),r.params,r.data]).pipe(Ae$4(([i,s,a],c)=>(a=w$1(w$1(w$1({},i),s),a),c===0?_$3(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Qv(r.component);if(!s){this.unsubscribeFromRouteData(n);return}let a=this.outletSeenKeys.get(n);a||(a=new Set,this.outletSeenKeys.set(n,a));for(let u of Object.keys(i))a.add(u);let c=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of s.inputs){let l=i[u];(l!==void 0||c==="alwaysUndefined"||a.has(u))&&n.activatedComponentRef.setInput(u,l);}});this.outletDataSubscriptions.set(n,o);}static \u0275fac=function(r){Ii$2();};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Ph=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Df({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&uc(0,"router-outlet");},dependencies:[kh],encapsulation:2,changeDetection:1})}return e})();function Lh(e){let t=e.children&&e.children.map(Lh),n=t?x$2(w$1({},e),{children:t}):w$1({},e);return !n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==A$1&&(n.component=Ph),n}function iR(e,t,n){let r=new Set,o=Yi$2(e,t._root,n?n._root:void 0,r);return {newlyCreatedRoutes:r,state:new qi$1(o,t)}}function Yi$2(e,t,n,r){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let o=n.value;o._futureSnapshot=t.value;let i=sR(e,t,n,r);return new We(o,i)}else {if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(c=>Yi$2(e,c,void 0,r)),a}}let o=aR(t.value);r.add(o);let i=t.children.map(s=>Yi$2(e,s,void 0,r));return new We(o,i)}}function sR(e,t,n,r){return t.children.map(o=>{for(let i of n.children)if(e.shouldReuseRoute(o.value,i.value.snapshot))return Yi$2(e,o,i,r);return Yi$2(e,o,void 0,r)})}function aR(e){return new $t$1(new ve$2(e.url),new ve$2(e.params),new ve$2(e.queryParams),new ve$2(e.fragment),new ve$2(e.data),e.outlet,e.component,e)}var To=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n;}},gE="ngNavigationCancelingError";function iu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Fn$1(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=mE(false,Re$4.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function mE(e,t){let n=new Error(`NavigationCancelingError: ${""}`);return n[gE]=true,n.cancellationCode=t,n}function cR(e){return yE(e)&&Fn$1(e.url)}function yE(e){return !!e&&e[gE]}var Sh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i;}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),ph(this.futureState.root),this.activateChildRoutes(n,r,t);}deactivateChildRoutes(t,n,r){let o=yo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s];}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r);});}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children);}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r);}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n);}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a});}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),t.value._localInjector?.destroy();}activateChildRoutes(t,n,r){let o=yo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new nu(i.value.snapshot));}),t.children.length&&this.forwardEvent(new eu(t.value.snapshot));}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(ph(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children);}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ph(a.route.value),this.activateChildRoutes(t,null,s.children);}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children);}else this.activateChildRoutes(t,null,r);}},su=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1];}},Eo$1=class Eo{component;route;constructor(t,n){this.component=t,this.route=n;}};function uR(e,t,n){let r=e._root,o=t?t._root:null;return Bi$2(r,o,n,[r.value])}function lR(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return !t||t.length===0?null:{node:e,guards:t}}function Mo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!el(e)?e:t.get(e):r}function Bi$2(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=yo(t);return e.children.forEach(s=>{dR(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet];}),Object.entries(i).forEach(([s,a])=>Vi$2(a,n.getContext(s),o)),o}function dR(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=fR(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new su(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Bi$2(e,t,a?a.children:null,r,o):Bi$2(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Eo$1(a.outlet.component,s));}else s&&Vi$2(t,a,o),o.canActivateChecks.push(new su(r)),i.component?Bi$2(e,null,a?a.children:null,r,o):Bi$2(e,null,n,r,o);return o}function fR(e,t,n){if(typeof n=="function")return ge$3(t._environmentInjector,()=>n(e,t));switch(n){case "pathParamsChange":return !wr(e.url,t.url);case "pathParamsOrQueryParamsChange":return !wr(e.url,t.url)||!Ht$1(e.queryParams,t.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Ch(e,t)||!Ht$1(e.queryParams,t.queryParams);default:return !Ch(e,t)}}function Vi$2(e,t,n){let r=yo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Vi$2(s,t.children.getContext(i),n):Vi$2(s,null,n):Vi$2(s,t,n);}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Eo$1(t.outlet.component,o)):n.canDeactivateChecks.push(new Eo$1(null,o)):n.canDeactivateChecks.push(new Eo$1(null,o));}function Xi$1(e){return typeof e=="function"}function hR(e){return typeof e=="boolean"}function pR(e){return e&&Xi$1(e.canLoad)}function gR(e){return e&&Xi$1(e.canActivate)}function mR(e){return e&&Xi$1(e.canActivateChild)}function yR(e){return e&&Xi$1(e.canDeactivate)}function vR(e){return e&&Xi$1(e.canMatch)}function vE(e){return e instanceof Gt$1||e?.name==="EmptyError"}var Bc=Symbol("INITIAL_VALUE");function _o(){return Ae$4(e=>Ss$1(e.map(t=>t.pipe(He(1),Rs$1(Bc)))).pipe(j$4(t=>{for(let n of t)if(n!==true){if(n===Bc)return Bc;if(n===false||DR(n))return n}return true}),Ie$4(t=>t!==Bc),He(1)))}function DR(e){return Fn$1(e)||e instanceof To}function DE(e){return e.aborted?_$3(void 0).pipe(He(1)):new k$1(t=>{let n=()=>{t.next(),t.complete();};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function EE(e){return Or(DE(e))}function ER(e){return he$3(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?_$3(x$2(w$1({},t),{guardsResult:true})):wR(i,n,r).pipe(he$3(s=>s&&hR(s)?IR(n,o,e):_$3(s)),j$4(s=>x$2(w$1({},t),{guardsResult:s})))})}function wR(e,t,n){return Y$1(e).pipe(he$3(r=>_R(r.component,r.route,n,t)),Zt$1(r=>r!==true,true))}function IR(e,t,n){return Y$1(t).pipe(qt$1(r=>Tt$2(bR(r.route.parent,n),CR(r.route,n),TR(e,r.path),SR(e,r.route))),Zt$1(r=>r!==true,true))}function CR(e,t){return e!==null&&t&&t(new tu(e)),_$3(true)}function bR(e,t){return e!==null&&t&&t(new Xc$1(e)),_$3(true)}function SR(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return _$3(true);let r=n.map(o=>Oo(()=>{let i=t._environmentInjector,s=Mo(o,i),a=gR(s)?s.canActivate(t,e):ge$3(i,()=>s(t,e));return br(a).pipe(Zt$1())}));return _$3(r).pipe(_o())}function TR(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>lR(i)).filter(i=>i!==null).map(i=>Oo(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Mo(a,c),l=mR(u)?u.canActivateChild(n,e):ge$3(c,()=>u(n,e));return br(l).pipe(Zt$1())});return _$3(s).pipe(_o())}));return _$3(o).pipe(_o())}function _R(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return _$3(true);let i=o.map(s=>{let a=t._environmentInjector,c=Mo(s,a),u=yR(c)?c.canDeactivate(e,t,n,r):ge$3(a,()=>c(e,t,n,r));return br(u).pipe(Zt$1())});return _$3(i).pipe(_o())}function MR(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return _$3(true);let s=i.map(a=>{let c=Mo(a,e),u=pR(c)?c.canLoad(t,n):ge$3(e,()=>c(t,n)),l=br(u);return o?l.pipe(EE(o)):l});return _$3(s).pipe(_o(),wE(r))}function wE(e){return wu(Le$2(t=>{if(typeof t!="boolean")throw iu(e,t)}),j$4(t=>t===true))}function NR(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return _$3(true);let a=s.map(c=>{let u=Mo(c,e),l=vR(u)?u.canMatch(t,n,o):ge$3(e,()=>u(t,n,o));return br(l).pipe(EE(i))});return _$3(a).pipe(_o(),wE(r))}var hn$1=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype);}},Qi$1=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype);}};function RR(e){throw new y$3(4e3,false)}function AR(e){throw mE(false,Re$4.GuardRejected)}var Th=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n;}lineralizeSegments(t,n){return B$1(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[A$1])throw RR(`${t.redirectTo}`);o=o.children[A$1];}})}applyRedirectCommands(t,n,r,o,i){return B$1(this,null,function*(){let s=yield xR(n,o,i);if(s instanceof Pe$3)throw new Qi$1(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new Qi$1(a);return a})}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Pe$3(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a];}else r[o]=i;}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s=Object.create(null);return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o);}),new U$4(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new y$3(4001,false);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++;}return t}};function xR(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return zc(br(ge$3(n,()=>r(t))))}function OR(e,t){return e.providers&&!e._injector&&(e._injector=uo(e.providers,t,`Route: ${e.path}`)),e._injector??t}function wt$1(e){return e.outlet||A$1}function kR(e,t){let n=e.filter(r=>wt$1(r)===t);return n.push(...e.filter(r=>wt$1(r)!==t)),n}var _h={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function IE(e){return {routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function PR(e,t,n,r,o,i,s){let a=CE(e,t,n);if(!a.matched)return _$3(a);let c=IE(i(a));return r=OR(t,r),NR(r,t,n,o,c,s).pipe(j$4(u=>u===true?a:w$1({},_h)))}function CE(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?w$1({},_h):{matched:true,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||qD)(n,e,t);if(!o)return w$1({},_h);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path;});let s=o.consumed.length>0?w$1(w$1({},i),o.consumed[o.consumed.length-1].parameters):i;return {matched:true,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function zD(e,t,n,r,o){return n.length>0&&jR(e,n,r,o)?{segmentGroup:new U$4(t,FR(r,new U$4(n,e.children))),slicedSegments:[]}:n.length===0&&UR(e,n,r)?{segmentGroup:new U$4(e.segments,LR(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U$4(e.segments,e.children),slicedSegments:n}}function LR(e,t,n,r){let o={};for(let i of n)if(cu(e,t,i)&&!r[wt$1(i)]){let s=new U$4([],{});o[wt$1(i)]=s;}return w$1(w$1({},r),o)}function FR(e,t){let n={};n[A$1]=t;for(let r of e)if(r.path===""&&wt$1(r)!==A$1){let o=new U$4([],{});n[wt$1(r)]=o;}return n}function jR(e,t,n,r){return n.some(o=>!cu(e,t,o)||!(wt$1(o)!==A$1)?false:!(r!==void 0&&wt$1(o)===r))}function UR(e,t,n){return n.some(r=>cu(e,t,r))}function cu(e,t,n){return (e.hasChildren()||t.length>0)&&n.pathMatch==="full"?false:n.path===""}function BR(e,t,n){return t.length===0&&!e.children[n]}var Mh=class{};function HR(e,t,n,r,o,i,s,a){return B$1(this,null,function*(){return new Nh(e,t,n,r,o,s,i,a).recognize()})}var VR=31,Nh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Th(this.urlSerializer,this.urlTree);}noMatchError(t){return new y$3(4002,`'${t.segmentGroup}'`)}recognize(){return B$1(this,null,function*(){let t=zD(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(t),o=new We(r,n),i=new Zi$1("",o),s=oE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}})}match(t){return B$1(this,null,function*(){let n=new So([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A$1,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,t,A$1,n),rootSnapshot:n}}catch(r){if(r instanceof Qi$1)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof hn$1?this.noMatchError(r):r}})}processSegmentGroup(t,n,r,o,i){return B$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=yield this.processSegment(t,n,r,r.segments,o,true,i);return s instanceof We?[s]:[]})}processChildren(t,n,r,o){return B$1(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=kR(n,c),d=yield this.processSegmentGroup(t,l,u,c,o);s.push(...d);}let a=bE(s);return $R(a),a})}processSegment(t,n,r,o,i,s,a){return B$1(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof hn$1||vE(u))continue;throw u}if(BR(r,o,i))return new Mh;throw new hn$1(r)})}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return B$1(this,null,function*(){if(wt$1(r)!==s&&(s===A$1||!cu(o,i,r)))throw new hn$1(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new hn$1(o)})}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){return B$1(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=CE(n,o,i);if(!c)throw new hn$1(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>VR&&(this.allowRedirects=false));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,IE(h),t),v=yield this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,v.concat(f),s,false,a)})}createSnapshot(t,n,r,o,i){let s=new So(r,o,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,GR(n),wt$1(n),n.component??n._loadedComponent??null,n,WR(n),t),a=xh(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(t,n,r,o,i,s){return B$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=ue=>this.createSnapshot(t,r,ue.consumedSegments,ue.parameters,s),c=yield zc(PR(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new hn$1(n);t=r._injector??t;let{routes:u}=yield this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:v,slicedSegments:E}=zD(n,f,h,u,i);if(E.length===0&&v.hasChildren()){let ue=yield this.processChildren(l,u,v,g);return new We(g,ue)}if(u.length===0&&E.length===0)return new We(g,[]);let M=wt$1(r)===i,z=yield this.processSegment(l,u,v,E,M?A$1:i,true,g);return new We(g,z instanceof We?[z]:[])})}getChildConfig(t,n,r){return B$1(this,null,function*(){if(n.children)return {routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield zc(MR(t,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw AR()}return {routes:[],injector:t}})}};function $R(e){e.sort((t,n)=>t.value.outlet===A$1?-1:n.value.outlet===A$1?1:t.value.outlet.localeCompare(n.value.outlet));}function zR(e){let t=e.value.routeConfig;return t&&t.path===""}function bE(e){let t=[],n=new Set;for(let r of e){if(!zR(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r);}for(let r of n){let o=bE(r.children);t.push(new We(r.value,o));}return t.filter(r=>!n.has(r))}function GR(e){return e.data||{}}function WR(e){return e.resolve||{}}function qR(e,t,n,r,o,i,s){return he$3(a=>B$1(null,null,function*(){let{state:c,tree:u}=yield HR(e,t,n,r,a.extractedUrl,o,i,s);return x$2(w$1({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function ZR(e){return he$3(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return _$3(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of SE(a))i.add(c);let s=0;return Y$1(i).pipe(qt$1(a=>o.has(a)?YR(a,n,e):(a.data=xh(a,a.parent,e).resolve,_$3(void 0))),Le$2(()=>s++),Os$1(1),he$3(a=>s===i.size?_$3(t):fe$2))})}function SE(e){let t=e.children.map(n=>SE(n)).flat();return [e,...t]}function YR(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!fE(r)&&(o[Ki$1]=r.title),Oo(()=>(e.data=xh(e,e.parent,n).resolve,QR(o,e,t).pipe(j$4(i=>(e._resolvedData=i,e.data=w$1(w$1({},e.data),i),null)))))}function QR(e,t,n){let r=mh(e);if(r.length===0)return _$3({});let o={};return Y$1(r).pipe(he$3(i=>KR(e[i],t,n).pipe(Zt$1(),Le$2(s=>{if(s instanceof To)throw iu(new pn$1,s);o[i]=s;}))),Os$1(1),j$4(()=>o),Wn$2(i=>vE(i)?fe$2:_u(i)))}function KR(e,t,n){let r=t._environmentInjector,o=Mo(e,r),i=o.resolve?o.resolve(t,n):ge$3(r,()=>o(t,n));return br(i)}function GD(e){return Ae$4(t=>{let n=e(t);return n?Y$1(n).pipe(j$4(()=>t)):_$3(t)})}var Fh=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===A$1);return r}getResolvedTitleForRoute(n){return n.data[Ki$1]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(TE)})}return e})(),TE=(()=>{class e extends Fh{title;constructor(n){super(),this.title=n;}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||e)(b(UD))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bn$2=new D$1("",{factory:()=>({})}),Tr=new D$1(""),uu=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(xf);loadComponent(n,r){return B$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=B$1(this,null,function*(){try{let i=yield YD(ge$3(n,()=>r.loadComponent())),s=yield ME(Ff(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,o),o})}loadChildren(n,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 o=B$1(this,null,function*(){try{let i=yield _E(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function _E(e,t,n,r){return B$1(this,null,function*(){let o=yield YD(ge$3(n,()=>e.loadChildren())),i=yield ME(Ff(o)),s;i instanceof ic||Array.isArray(i)?s=i:s=yield t.compileModuleAsync(i),r&&r(e);let a,c,l;return Array.isArray(s)?(c=s,true):(a=s.create(n).injector,l=s,c=a.get(Tr,[],{optional:true,self:true}).flat()),{routes:c.map(Lh),injector:a,factory:l}})}function ME(e){return B$1(this,null,function*(){return e})}var lu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(JR)})}return e})(),JR=(()=>{class e{shouldProcessUrl(n){return true}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),jh=new D$1(""),Uh=new D$1("");function NE(e,t,n){let r=e.get(Uh),o=e.get(Q$3);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u;}),a=o.startViewTransition(()=>(i(),XR(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&ge$3(e,()=>c({transition:a,from:t,to:n})),s}function XR(e){return new Promise(t=>{Ka({read:()=>setTimeout(t)},{injector:e});})}var RE=new D$1(""),eA=()=>{},Bh=new D$1(""),du=(()=>{class e{currentNavigation=ie(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=ie(null);events=new ne$1;transitionAbortWithErrorSubject=new ne$1;configLoader=p(uu);environmentInjector=p(ee$2);destroyRef=p(Me$4);urlSerializer=p(Un$2);rootContexts=p(Sr);location=p(Pn$2);inputBindingEnabled=p(Ji$1,{optional:true})!==null;titleStrategy=p(Fh);options=p(Bn$2,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||oR;urlHandlingStrategy=p(lu);createViewTransition=p(jh,{optional:true});navigationErrorHandler=p(Bh,{optional:true});activatedRouteInjectorFeature=p(RE,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>_$3(void 0);rootComponentType=null;destroyed=false;constructor(){let n=o=>this.events.next(new Kc(o)),r=o=>this.events.next(new Jc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(n){let r=++this.navigationId;W$3(()=>{this.transitions?.next(x$2(w$1({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(n){return this.transitions=new ve$2(null),this.transitions.pipe(Ie$4(r=>r!==null),Ae$4(r=>{let o=true,i=false,s=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return _$3(r).pipe(Ae$4(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),fe$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:c.routesRecognizeHandler,beforeActivateHandler:c.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.rawUrl),"",wo.IgnoredSameUrlNavigation)),c.resolve(false),fe$2;if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return _$3(c).pipe(Ae$4(f=>(this.events.next(new jn$2(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?fe$2:Promise.resolve(f))),qR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),Le$2(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=f.urlAfterRedirects,h)),this.events.next(new Wi$2);}),Ae$4(f=>Y$1(r.routesRecognizeHandler.deferredHandle??_$3(void 0)).pipe(j$4(()=>f))),Le$2(()=>{let f=new Gi$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:v,extras:E}=c,M=new jn$2(f,this.urlSerializer.serialize(h),g,v);this.events.next(M);let z=lE(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},c),{targetSnapshot:z,urlAfterRedirects:h,extras:x$2(w$1({},E),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ue=>(ue.finalUrl=h,ue)),_$3(r)}else return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.extractedUrl),"",wo.IgnoredByUrlHandlingStrategy)),c.resolve(false),fe$2}),j$4(c=>{let u=new qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},c),{guards:uR(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r}),ER(c=>this.events.next(c)),Ae$4(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw iu(this.urlSerializer,c.guardsResult);let u=new Zc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);if(this.events.next(u),!a())return fe$2;if(!c.guardsResult)return this.cancelNavigationTransition(c,"",Re$4.GuardRejected),fe$2;if(c.guards.canActivateChecks.length===0)return _$3(c);let l=new Yc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);if(this.events.next(l),!a())return fe$2;let d=false;return _$3(c).pipe(ZR(this.paramsInheritanceStrategy),Le$2({next:()=>{d=true;let f=new Qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);},complete:()=>{d||this.cancelNavigationTransition(c,"",Re$4.NoDataFromResolver);}}))}),GD(c=>{let u=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let h=d._environmentInjector;f.push(this.configLoader.loadComponent(h,d.routeConfig).then(g=>{d.component=g;}));}for(let h of d.children)f.push(...u(h));return f},l=u(c.targetSnapshot.root);return l.length===0?_$3(c):Y$1(Promise.all(l).then(()=>c))}),Ae$4(c=>{let{newlyCreatedRoutes:u,state:l}=iR(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=c=x$2(w$1({},c),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),_$3(c)}),this.activatedRouteInjectorFeature?.operator()??(c=>c),GD(()=>this.afterPreactivation()),Ae$4(()=>{let{currentSnapshot:c,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?Y$1(l).pipe(j$4(()=>r)):_$3(r)}),He(1),Ae$4(c=>{o=false,this.events.next(new Co);let u=r.beforeActivateHandler.deferredHandle;return u?Y$1(u.then(()=>c)):_$3(c)}),Le$2(c=>{new Sh(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),c.newlyCreatedRoutes?.clear(),a()&&(i=true,this.currentNavigation.update(u=>(u.abort=eA,u)),this.lastSuccessfulNavigation.set(W$3(this.currentNavigation)),this.events.next(new Ze(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(true));}),Or(DE(s.signal).pipe(Ie$4(()=>!i&&o),Le$2(()=>{this.cancelNavigationTransition(r,s.signal.reason+"",Re$4.Aborted);}))),Le$2({complete:()=>{i=true;}}),Or(this.transitionAbortWithErrorSubject.pipe(Le$2(c=>{throw c}))),xr(()=>{s.abort(),i||this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Wn$2(c=>{if(i=true,WD(r),this.destroyed)return r.resolve(false),fe$2;if(yE(c))this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),cR(c)?this.events.next(new bo(c.url,c.navigationBehaviorOptions)):r.resolve(false);else {let u=new Cr(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let l=ge$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof To){let{message:d,cancellationCode:f}=iu(this.urlSerializer,l);this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new bo(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(l);}}return fe$2}))}))}cancelNavigationTransition(n,r,o){WD(n);let i=new at$1(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=W$3(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function tA(e){return e!==Do}function WD(e){if(e.newlyCreatedRoutes)for(let t of e.newlyCreatedRoutes)t._localInjector?.destroy();}var AE=new D$1("");var xE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(nA)})}return e})(),au=class{shouldDetach(t){return false}store(t,n){}shouldAttach(t){return false}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return true}},nA=(()=>{class e extends au{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),fu=(()=>{class e{urlSerializer=p(Un$2);options=p(Bn$2,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Pn$2);urlHandlingStrategy=p(lu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Pe$3;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Pe$3?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o;}routerState=lE(null,p(ee$2));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||e)};static \u0275prov=Z$2({token:e,factory:()=>p(rA)})}return e})(),rA=(()=>{class e extends fu{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(n,r){n instanceof jn$2?this.updateStateMemento():n instanceof Vt$1?this.commitTransition(r):n instanceof Gi$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Co?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof at$1&&!uE(n)?this.restoreHistory(r):n instanceof Cr?this.restoreHistory(r,true):n instanceof Ze&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId);}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=w$1(w$1({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u);}else {let c=w$1(w$1({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c);}}restoreHistory(n,r=false){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?w$1({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):w$1({navigationId:n},this.routerUrlState(o))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function hu(e,t){e.events.pipe(Ie$4(n=>n instanceof Ze||n instanceof at$1||n instanceof Cr||n instanceof Vt$1),j$4(n=>n instanceof Ze||n instanceof Vt$1?0:(n instanceof at$1?n.code===Re$4.Redirect||n.code===Re$4.SupersededByNewNavigation:false)?2:1),Ie$4(n=>n!==2),He(1)).subscribe(()=>{t();});}var It$1=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=p(ac);stateManager=p(fu);options=p(Bn$2,{optional:true})||{};pendingTasks=p(kt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(du);urlSerializer=p(Un$2);location=p(Pn$2);urlHandlingStrategy=p(lu);injector=p(ee$2);_events=new ne$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=p(xE);injectorCleanup=p(AE,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Tr,{optional:true})?.flat()??[];componentInputBindingEnabled=!!p(Ji$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ae$2;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=W$3(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof at$1&&r.code!==Re$4.Redirect&&r.code!==Re$4.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ze)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof bo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=w$1({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||tA(o.source)},s);this.scheduleNavigation(a,Do,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise});}}nR(r)&&this._events.next(r);}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o);}});this.eventsSubscription.add(n);}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Do,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i);});}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=x$2(w$1({},i),{browserUrl:n})),o){let u=w$1({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u);}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(ke$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return W$3(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Lh),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(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case "merge":l=w$1(w$1({},this.currentUrlTree.queryParams),i);break;case "preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null;}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=iE(f);}catch(f){(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root;}return sE(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:false}){let o=Fn$1(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Do,null,r)}navigate(n,r={skipLocationChange:false}){return oA(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch(r){return this.console.warn(Qe$1(4018,false)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===true?o=w$1({},Rh):r===false?o=w$1({},$i$1):o=w$1(w$1({},$i$1),r),Fn$1(n))return yh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return yh(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(false);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f;});let l=this.pendingTasks.add();return hu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function oA(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new y$3(4008,false)}var iA=(()=>{class e{router=p(It$1);stateManager=p(fu);fragment=ie("");queryParams=ie({});path=ie("");serializer=p(Un$2);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Ze&&this.updateState();});}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Pe$3(r)));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),pu=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new pc("href"),{optional:true});reactiveHref=Of(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return W$3(this.reactiveHref)}set href(n){this.reactiveHref.set(n);}set target(n){this._target.set(n);}get target(){return W$3(this._target)}_target=ie(void 0);set queryParams(n){this._queryParams.set(n);}get queryParams(){return W$3(this._queryParams)}_queryParams=ie(void 0,{equal:()=>false});set fragment(n){this._fragment.set(n);}get fragment(){return W$3(this._fragment)}_fragment=ie(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n);}get queryParamsHandling(){return W$3(this._queryParamsHandling)}_queryParamsHandling=ie(void 0);set state(n){this._state.set(n);}get state(){return W$3(this._state)}_state=ie(void 0,{equal:()=>false});set info(n){this._info.set(n);}get info(){return W$3(this._info)}_info=ie(void 0,{equal:()=>false});set relativeTo(n){this._relativeTo.set(n);}get relativeTo(){return W$3(this._relativeTo)}_relativeTo=ie(void 0);set preserveFragment(n){this._preserveFragment.set(n);}get preserveFragment(){return W$3(this._preserveFragment)}_preserveFragment=ie(false);set skipLocationChange(n){this._skipLocationChange.set(n);}get skipLocationChange(){return W$3(this._skipLocationChange)}_skipLocationChange=ie(false);set replaceUrl(n){this._replaceUrl.set(n);}get replaceUrl(){return W$3(this._replaceUrl)}_replaceUrl=ie(false);browserUrl=mc(void 0);isAnchorElement;onChanges=new ne$1;applicationErrorHandler=p(ke$2);options=p(Bn$2,{optional:true});reactiveRouterState=p(iA);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n);}ngOnChanges(n){this.onChanges.next(this);}routerLinkInput=ie(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fn$1(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return true;let c=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},c!==void 0&&{browserUrl:c});return this.router.navigateByUrl(a,u)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n);}_urlTree=Si$2(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Fn$1(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:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return W$3(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(se(It$1),se($t$1),mi$2("tabindex"),se(co),se(Ft$1),se(Dt$1))};static \u0275dir=kn$2({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&lc("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&cc("href",o.reactiveHref(),zd)("target",o._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_i$2],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_i$2],replaceUrl:[2,"replaceUrl","replaceUrl",_i$2],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[xn$2]})}return e})(),sA=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Ce$4;link=p(pu,{optional:true});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof Ze&&this.update();});}ngAfterContentInit(){_$3(this.links.changes,_$3(null)).pipe(St$1()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Y$1(n).pipe(St$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o);}ngOnChanges(n){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n));});}isLinkActive(n){let r=aA(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rh):w$1({},$i$1);return o=>{let i=o.urlTree;return i?W$3(Ah(i,n,r)):false}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(se(It$1),se(Ft$1),se(co),se(Dr))};static \u0275dir=kn$2({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&dc(i,pu,5),r&2){let s;Nf(s=Rf())&&(o.links=s);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xn$2]})}return e})();function aA(e){let t=e;return !!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var es$1=class es{};var OE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i){this.router=n,this.injector=r,this.preloadingStrategy=o,this.loader=i;}setUpPreloading(){this.subscription=this.router.events.pipe(Ie$4(n=>n instanceof Ze),qt$1(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=uo(i.providers,n,""));let s=i._injector??n;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes));}return Y$1(o).pipe(St$1())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{if(n.destroyed)return _$3(null);let o;r.loadChildren&&r.canLoad===void 0?o=Y$1(this.loader.loadChildren(n,r)):o=_$3(null);let i=o.pipe(he$3(s=>s===null?_$3(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(n,r);return Y$1([i,s]).pipe(St$1())}else return i})}static \u0275fac=function(r){return new(r||e)(b(It$1),b(ee$2),b(es$1),b(uu))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kE=new D$1(""),cA=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Do;restoredId=0;store={};isHydrating=p(Fd,{optional:true})??false;urlSerializer=p(Un$2);zone=p(J$3);viewportScroller=p(Kf);transitions=p(du);constructor(n){this.options=n,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(sn$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof jn$2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ze?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Vt$1&&n.code===wo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{if(!(n instanceof Io)||n.scrollBehavior==="manual")return;let r={behavior:"instant"};n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position,r):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(n,r){if(this.isHydrating)return;let o=W$3(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$1(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i);}),this.zone.run(()=>{this.transitions.events.next(new Io(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){Ii$2();};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();function uA(e,...t){return ft$2([{provide:Tr,multi:true,useValue:e},{provide:$t$1,useFactory:PE},{provide:fo,multi:true,useFactory:LE},t.map(n=>n.\u0275providers)])}function PE(){return p(It$1).routerState.root}function ts$1(e,t){return {\u0275kind:e,\u0275providers:t}}function LE(){let e=p(Ee$3);return t=>{let n=e.get(sn$1);if(t!==n.components[0])return;let r=e.get(It$1),o=e.get(FE);e.get(Vh)===1&&r.initialNavigation(),e.get(BE,null,{optional:true})?.setUpPreloading(),e.get(kE,null,{optional:true})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe());}}var FE=new D$1("",{factory:()=>new ne$1}),Vh=new D$1("",{factory:()=>1});function jE(){let e=[{provide:Ga,useValue:true},{provide:Vh,useValue:0},sc(()=>{let t=p(Ee$3);return t.get(Uf,Promise.resolve()).then(()=>new Promise(r=>{let o=t.get(It$1),i=t.get(FE);hu(o,()=>{r(true);}),t.get(du).afterPreactivation=()=>(r(true),i.closed?_$3(void 0):i),o.initialNavigation();}))})];return ts$1(2,e)}function UE(){let e=[sc(()=>{p(It$1).setUpLocationChangeListener();}),{provide:Vh,useValue:2}];return ts$1(3,e)}var BE=new D$1("");function HE(e){return ts$1(0,[{provide:BE,useExisting:OE},{provide:es$1,useExisting:e}])}function VE(e={}){return ts$1(8,[{provide:Ji$1,useFactory:()=>new pE(e)}])}function $E(e){it$1("NgRouterViewTransitions");let t=[{provide:jh,useValue:NE},{provide:Uh,useValue:w$1({skipNextTransition:false},e)}];return ts$1(9,t)}var zE=[Pn$2,{provide:Un$2,useClass:pn$1},It$1,Sr,{provide:$t$1,useFactory:PE},uu],lA=(()=>{class e{constructor(){}static forRoot(n,r){return {ngModule:e,providers:[zE,[],{provide:Tr,multi:true,useValue:n},[],r?.errorHandler?{provide:Bh,useValue:r.errorHandler}:[],{provide:Bn$2,useValue:r||{}},r?.useHash?fA():hA(),dA(),r?.preloadingStrategy?HE(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?pA(r):[],r?.bindToComponentInputs?VE(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?$E().\u0275providers:[],gA()]}}static forChild(n){return {ngModule:e,providers:[{provide:Tr,multi:true,useValue:n}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=lo({type:e});static \u0275inj=tr({})}return e})();function dA(){return {provide:kE,useFactory:()=>{let e=p(Kf),t=p(Bn$2);return t.scrollOffset&&e.setOffset(t.scrollOffset),new cA(t)}}}function fA(){return {provide:Dt$1,useClass:qf}}function hA(){return {provide:Dt$1,useClass:Dc}}function pA(e){return [e.initialNavigation==="disabled"?UE().\u0275providers:[],e.initialNavigation==="enabledBlocking"?jE().\u0275providers:[]]}var Hh=new D$1("");function gA(){return [{provide:Hh,useFactory:LE},{provide:fo,multi:true,useExisting:Hh}]}
|
|
6
|
-
var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new dn$1;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=R$2({token:a,factory:a.\u0275fac,providedIn:"root"})};var E=["email","providers","folder","progress"],C=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,T$2=1500,j$3=8,O$1=2e4,l=(a,e,t)=>({key:a,label:e,state:t.state,percent:t.percent,message:t.message??(a==="java"?t.version:void 0)}),P$1=(a,e)=>{if(a instanceof Er){let t=a.error;if(t&&typeof t=="object"&&t.error)return t.error;if(a.status===0)return "Cannot reach the Coday server."}return e},R$1=class a{api=p(y$2);destroyRef=p(Me$4);status=ie(null);statusError=ie(null);step=ie("email");email=ie("");providers=ie([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=ie("");mode=ie("wizard");factoryGraceElapsed=ie(false);factoryGraceTimer=null;busy=ie(false);error=ie(null);emailValid=Si$2(()=>C.test(this.email().trim()));enabledProviders=Si$2(()=>this.providers().filter(e=>e.enabled));providersValid=Si$2(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=j$3)});folderValid=Si$2(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=Si$2(()=>E.indexOf(this.step()));checklist=Si$2(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS and the Factory",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),l("providers","Configuring your AI providers",e.providers),l("models","Registering the models",e.models),l("namespace","Creating your personal workspace",e.namespace),l("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=Si$2(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS and the Factory",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),l("factory","Starting the Factory",e.factory)]:[]});loadingReady=Si$2(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"?false:e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed()});javaBlocked=Si$2(()=>this.status()?.steps.java.state==="blocked");ready=Si$2(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=Si$2(()=>this.status()?.apply.status==="error");emailLocked=Si$2(()=>(this.status()?.apply.status??"idle")!=="idle");namespaceId=Si$2(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1));}refreshStatus(){return B$1(this,null,function*(){try{let e=yield ow(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(P$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=ko(0,T$2).pipe(Au(()=>this.api.getStatus().pipe(Wn$2(()=>_$3(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(){return B$1(this,null,function*(){let e=yield this.refreshStatus();if(e){if(e.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(e.defaults.sharedExchangePath),e.identity&&!this.email()&&this.email.set(e.identity.email),this.startPolling(),!(e.mode==="laptop"&&e.setupEnabled&&!e.setupDone)){this.mode.set("loading"),this.step.set("progress");return}(e.apply.status==="running"||e.apply.status==="error"||e.apply.status==="done")&&this.step.set("progress");}})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(E[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$1(this,null,function*(){if(!(!this.emailValid()||this.busy())){this.busy.set(true),this.error.set(null);try{yield ow(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(P$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(i=>i.id===e);if(!r)return t;let s=t.map(i=>i.id===e?x$2(w$1({},i),{enabled:!i.enabled}):i);if(!r.enabled){let i=s.find(p=>p.id===e);return [...s.filter(p=>p.id!==e),i]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$2(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(n=>n.enabled),i=s.findIndex(n=>n.id===e),p=i+t;if(i<0||p<0||p>=s.length)return r;let u=[...s],[f]=u.splice(i,1);return u.splice(p,0,f),[...u,...r.filter(n=>!n.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(n=>n.enabled),i=s.findIndex(n=>n.id===e),p=s.findIndex(n=>n.id===t);if(i<0||p<0)return r;let u=[...s],[f]=u.splice(i,1);return u.splice(p,0,f),[...u,...r.filter(n=>!n.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return ow(this.api.browse(e,t))}mkdir(e,t){return ow(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$1(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){this.busy.set(true),this.error.set(null);try{yield ow(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(P$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$1(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){let e=this.namespaceId();return {path:"/home",queryParams:e?{ns:e}:{}}}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||a)};static \u0275prov=R$2({token:a,factory:a.\u0275fac,providedIn:"root"})};function lt$1(i){return i.buttons===0||i.detail===0}function ct$1(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var he$2;function Je(){if(he$2==null){let i=typeof document<"u"?document.head:null;he$2=!!(i&&(i.createShadowRoot||i.attachShadow));}return he$2}function pe$2(i){if(Je()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ri$1(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function A(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}var fe$1;try{fe$1=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){fe$1=false;}var _$2=(()=>{class i{_platformId=p(ti$2);isBrowser=this._platformId?iz(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||fe$1)&&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(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var dt$1;function tn(){if(dt$1==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dt$1=!0}));}finally{dt$1=dt$1||false;}return dt$1}function Q$2(i){return tn()?i:!!i.capture}function en(i,e=0){return nn(i)?Number(i):arguments.length===2?e:0}function nn(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function L$2(i){return i instanceof Ft$1?i.nativeElement:i}var on=new D$1("cdk-input-modality-detector-options"),rn={ignoreKeys:[18,17,224,91,16]},sn=650,be$2={passive:true,capture:true},an=(()=>{class i{_platform=p(_$2);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ve$2(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=A(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<sn||(this._modality.next(lt$1(t)?"keyboard":"mouse"),this._mostRecentTarget=A(t));};_onTouchstart=t=>{if(ct$1(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=A(t);};constructor(){let t=p(J$3),n=p(Q$3),o=p(on,{optional:true});if(this._options=w$1(w$1({},rn),o),this.modalityDetected=this._modality.pipe(fp(1)),this.modalityChanged=this.modalityDetected.pipe(yp()),this._platform.isBrowser){let r=p(fr).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,be$2),r.listen(n,"mousedown",this._onMousedown,be$2),r.listen(n,"touchstart",this._onTouchstart,be$2)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ut$1=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(ut$1||{}),ln=new D$1("cdk-focus-monitor-default-options"),Ot$1=Q$2({passive:true,capture:true}),_e$1=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_inputModalityDetector=p(an);_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=p(Q$3);_stopInputModalityDetector=new ne$1;constructor(){let t=p(ln,{optional:true});this._detectionMode=t?.detectionMode||ut$1.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=A(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=L$2(t);if(!this._platform.isBrowser||o.nodeType!==1)return _$3();let r=pe$2(o)||this._document,s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=true),s.subject;let l={checkChildren:n,subject:new ne$1,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=L$2(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=L$2(t),s=this._document.activeElement;r===s?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ut$1.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(t,n=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===ut$1.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?sn:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=A(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot$1);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Or(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot$1),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot$1),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let s=0;s<r.length;s++)if(r[s].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var At$1=new WeakMap,I=(()=>{class i{_appRef;_injector=p(Ee$3);_environmentInjector=p(ee$2);load(t){let n=this._appRef=this._appRef||this._injector.get(sn$1),o=At$1.get(n);o||(o={loaders:new Set,refs:[]},At$1.set(n,o),n.onDestroy(()=>{At$1.get(n)?.refs.forEach(r=>r.destroy()),At$1.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(L$(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var It=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Df({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Vn$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ce$2=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$1(r))try{r();}catch(i){t=i instanceof ss$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Gh(i);}catch(s){t=t??[],s instanceof ss$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new ss$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Gh(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)&&Vn$2(n,t);}remove(t){let{_finalizers:n}=this;n&&Vn$2(n,t),t instanceof e&&t._removeParent(this);}};ce$2.EMPTY=(()=>{let e=new ce$2;return e.closed=true,e})();var mu=ce$2.EMPTY;function as$1(e){return e instanceof ce$2||e&&"closed"in e&&x$1(e.remove)&&x$1(e.add)&&x$1(e.unsubscribe)}function Gh(e){x$1(e)?e():e.unsubscribe();}var ut$2={Promise:void 0};var Nr={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function cs$1(e){Nr.setTimeout(()=>{throw e});}function zt$1(){}function Rr(e){e();}var zn$2=class zn extends ce$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,as$1(t)&&t.add(this)):this.destination=ZE;}static create(t,n,r){return new lt$2(t,n,r)}next(t){this.isStopped?Du():this._next(t);}error(t){this.isStopped?Du():(this.isStopped=true,this._error(t));}complete(){this.isStopped?Du():(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 Eu=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){us$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){us$1(r);}else us$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){us$1(n);}}},lt$2=class lt extends zn$2{constructor(t,n,r){super();let o;if(x$1(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Eu(o);}};function us$1(e){cs$1(e);}function qE(e){throw e}function Du(e,t){}var ZE={closed:true,next:zt$1,error:qE,complete:zt$1};var Ar=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Be$3(e){return e}function wu(...e){return Iu(e)}function Iu(e){return e.length===0?Be$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=QE(n)?n:new lt$2(n,r,o);return Rr(()=>{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=Qh(r),new r((o,i)=>{let s=new lt$2({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)}[Ar](){return this}pipe(...n){return Iu(n)(this)}toPromise(n){return n=Qh(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 Qh(e){var t;return (t=e??ut$2.Promise)!==null&&t!==void 0?t:Promise}function YE(e){return e&&x$1(e.next)&&x$1(e.error)&&x$1(e.complete)}function QE(e){return e&&e instanceof zn$2||YE(e)&&as$1(e)}var Kh=mn$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ne$1=(()=>{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 ls$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Kh}next(n){Rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Rr(()=>{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(){Rr(()=>{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?mu:(this.currentObservers=null,i.push(n),new ce$2(()=>{this.currentObservers=null,Vn$2(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 ls$1(t,n),e})(),ls$1=class ls extends ne$1{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:mu}};var De$3=class De extends ne$1{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 pe$3=new k$1(e=>e.complete());function ds$1(e){return e&&x$1(e.schedule)}function Cu(e){return e[e.length-1]}function fs$1(e){return x$1(Cu(e))?e.pop():void 0}function bt$2(e){return ds$1(Cu(e))?e.pop():void 0}function Jh(e,t){return typeof Cu(e)=="number"?e.pop():t}function ep(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 Xh(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 Gn$2(e){return this instanceof Gn$2?(this.v=e,this):new Gn$2(e)}function tp(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(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(v){return new Promise(function(E,M){i.push([h,v,E,M])>1||c(h,v);})},g&&(o[h]=g(o[h])));}function c(h,g){try{u(r[h](g));}catch(v){f(i[0][3],v);}}function u(h){h.value instanceof Gn$2?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h);}function l(h){c("next",h);}function d(h){c("throw",h);}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function np(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 Xh=="function"?Xh(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 hs$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function ps$1(e){return x$1(e?.then)}function gs$1(e){return x$1(e[Ar])}function ms$2(e){return Symbol.asyncIterator&&x$1(e?.[Symbol.asyncIterator])}function ys$1(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 KE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vs$1=KE();function Ds$1(e){return x$1(e?.[vs$1])}function Es(e){return tp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Gn$2(n.read());if(o)return yield Gn$2(void 0);yield yield Gn$2(r);}}finally{n.releaseLock();}})}function ws$1(e){return x$1(e?.getReader)}function L$3(e){if(e instanceof k$1)return e;if(e!=null){if(gs$1(e))return JE(e);if(hs$1(e))return XE(e);if(ps$1(e))return ew(e);if(ms$2(e))return rp(e);if(Ds$1(e))return tw(e);if(ws$1(e))return nw(e)}throw ys$1(e)}function JE(e){return new k$1(t=>{let n=e[Ar]();if(x$1(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function XE(e){return new k$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function ew(e){return new k$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,cs$1);})}function tw(e){return new k$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function rp(e){return new k$1(t=>{rw(e,t).catch(n=>t.error(n));})}function nw(e){return rp(Es(e))}function rw(e,t){var n,r,o,i;return ep(this,void 0,void 0,function*(){try{for(n=np(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function Ie$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 ow(e){return x$1(e?.lift)}function S(e){return t=>{if(ow(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 T$3(e,t,n,r,o){return new bu(e,t,n,r,o)}var bu=class extends zn$2{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 Is(e,t=0){return S((n,r)=>{n.subscribe(T$3(r,o=>Ie$4(r,e,()=>r.next(o),t),()=>Ie$4(r,e,()=>r.complete(),t),o=>Ie$4(r,e,()=>r.error(o),t)));})}function Cs$1(e,t=0){return S((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function op(e,t){return L$3(e).pipe(Cs$1(t),Is(t))}function ip(e,t){return L$3(e).pipe(Cs$1(t),Is(t))}function sp(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 ap(e,t){return new k$1(n=>{let r;return Ie$4(n,t,()=>{r=e[vs$1](),Ie$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$1(r?.return)&&r.return()})}function bs$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new k$1(n=>{Ie$4(n,t,()=>{let r=e[Symbol.asyncIterator]();Ie$4(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function cp(e,t){return bs$1(Es(e),t)}function up(e,t){if(e!=null){if(gs$1(e))return op(e,t);if(hs$1(e))return sp(e,t);if(ps$1(e))return ip(e,t);if(ms$2(e))return bs$1(e,t);if(Ds$1(e))return ap(e,t);if(ws$1(e))return cp(e,t)}throw ys$1(e)}function Y$1(e,t){return t?up(e,t):L$3(e)}function _$3(...e){let t=bt$2(e);return Y$1(e,t)}var Gt$1=mn$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function iw(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new lt$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new Gt$1);}});e.subscribe(i);})}function j$4(e,t){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:sw}=Array,{getPrototypeOf:aw,prototype:cw,keys:uw}=Object;function Ss$1(e){if(e.length===1){let t=e[0];if(sw(t))return {args:t,keys:null};if(lw(t)){let n=uw(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function lw(e){return e&&typeof e=="object"&&aw(e)===cw}var{isArray:dw}=Array;function fw(e,t){return dw(t)?e(...t):e(t)}function Ts$1(e){return j$4(t=>fw(e,t))}function _s$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ms$1(...e){let t=bt$2(e),n=fs$1(e),{args:r,keys:o}=Ss$1(e);if(r.length===0)return Y$1([],t);let i=new k$1(hw(r,t,o?s=>_s$1(o,s):Be$3));return n?i.pipe(Ts$1(n)):i}function hw(e,t,n=Be$3){return r=>{lp(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)lp(t,()=>{let u=Y$1(e[c],t),l=false;u.subscribe(T$3(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function lp(e,t,n){e?Ie$4(n,e,t):t();}function pw(...e){let t=fs$1(e),{args:n,keys:r}=Ss$1(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;L$3(n[l]).subscribe(T$3(i,f=>{d||(d=true,u--),a[l]=f;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?_s$1(r,a):a),i.complete());}));}});return t?o.pipe(Ts$1(t)):o}function Wn$2(e){return S((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$3(n,void 0,void 0,s=>{i=L$3(e(s,Wn$2(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var Ns$1=class Ns extends ce$2{constructor(t,n){super();}schedule(t,n=0){return this}};var Ro={setInterval(e,t,...n){let{delegate:r}=Ro;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Rs$1=class Rs extends Ns$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 Ro.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&&Ro.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,Vn$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Ao={now(){return (Ao.delegate||Date).now()},delegate:void 0};var xr=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)}};xr.now=Ao.now;var As$1=class As extends xr{constructor(t,n=xr.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 Wt$1=new As$1(Rs$1),dp=Wt$1;function fp(e,t=Wt$1){return S((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$3(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}var xo=class extends ne$1{constructor(t=1/0,n=1/0,r=Ao){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);}}};function Tu(e={}){let{connector:t=()=>new ne$1,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,f=()=>{a?.unsubscribe(),a=void 0;},h=()=>{f(),s=c=void 0,l=d=false;},g=()=>{let v=s;h(),v?.unsubscribe();};return S((v,E)=>{u++,!d&&!l&&f();let M=c=c??t();E.add(()=>{u--,u===0&&!d&&!l&&(a=Su(g,o));}),M.subscribe(E),!s&&u>0&&(s=new lt$2({next:z=>M.next(z),error:z=>{d=!0,f(),a=Su(h,n,z),M.error(z);},complete:()=>{l=!0,f(),a=Su(h,r),M.complete();}}),L$3(v).subscribe(s));})(i)}}function Su(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new lt$2({next:()=>{r.unsubscribe(),e();}});return L$3(t(...n)).subscribe(r)}function gw(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,Tu({connector:()=>new xo(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Ce$4(e,t){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>e.call(t,i,o++)&&r.next(i)));})}function hp(e){return Ce$4((t,n)=>e<=n)}function xs(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,f=()=>{d&&!c.length&&!u&&t.complete();},h=v=>u<r?g(v):c.push(v),g=v=>{i&&t.next(v),u++;let E=false;L$3(n(v,l++)).subscribe(T$3(t,M=>{i?h(M):t.next(M);},()=>{E=true;},void 0,()=>{if(E)try{for(u--;c.length&&u<r;){let M=c.shift();s?Ie$4(t,s,()=>g(M)):g(M);}f();}catch(M){t.error(M);}}));};return e.subscribe(T$3(t,h,()=>{d=true,f();})),()=>{}}function ge$3(e,t,n=1/0){return x$1(t)?ge$3((r,o)=>j$4((i,s)=>t(r,i,o,s))(L$3(e(r,o))),n):(typeof t=="number"&&(n=t),S((r,o)=>xs(r,o,e,n)))}function St$1(e=1/0){return ge$3(Be$3,e)}function pp(){return St$1(1)}function Tt$2(...e){return pp()(Y$1(e,bt$2(e)))}function Os$1(...e){let t=bt$2(e);return S((n,r)=>{(t?Tt$2(e,n,t):Tt$2(e,n)).subscribe(r);})}function Ae$4(e,t){return S((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$3(r,c=>{o?.unsubscribe();let u=0,l=i++;L$3(e(c,l)).subscribe(o=T$3(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Le$2(e,t,n){let r=x$1(e)||t||n?{next:e,error:t,complete:n}:e;return r?S((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$3(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);}));}):Be$3}function _u(e,t){let n=x$1(e)?e:()=>e,r=o=>o.error(n());return new k$1(r)}function ks$1(e){return !!e&&(e instanceof k$1||x$1(e.lift)&&x$1(e.subscribe))}function Ps$1(e){return e instanceof Date&&!isNaN(e)}var mw=mn$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function yw(e,t){let{first:n,each:r,with:o=vw,scheduler:i=Wt$1,meta:s=null}=Ps$1(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=g=>{l=Ie$4(c,i,()=>{try{u.unsubscribe(),L$3(o({meta:s,lastValue:d,seen:f})).subscribe(c);}catch(v){c.error(v);}},g);};u=a.subscribe(T$3(c,g=>{l?.unsubscribe(),f++,c.next(d=g),r>0&&h(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!f&&h(n!=null?typeof n=="number"?n:+n-i.now():r);})}function vw(e){throw new mw(e)}function Oo(e){return new k$1(t=>{L$3(e()).subscribe(t);})}function ko(e=0,t,n=dp){let r=-1;return t!=null&&(ds$1(t)?n=t:r=t),new k$1(o=>{let i=Ps$1(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 Dw(...e){let t=bt$2(e),n=Jh(e,1/0),r=e;return r.length?r.length===1?L$3(r[0]):St$1(n)(Y$1(r,t)):pe$3}function gp(e){return S((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$3(n,u=>{r=!0,o=u,i||L$3(e(u)).subscribe(i=T$3(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ew(e,t=Wt$1){return gp(()=>ko(e,t))}function mp(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$3(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function qt$1(e,t){return x$1(t)?ge$3(e,t,1):ge$3(e,1)}function yp(e){return S((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function He(e){return e<=0?()=>pe$3:S((t,n)=>{let r=0;t.subscribe(T$3(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Mu(){return S((e,t)=>{e.subscribe(T$3(t,zt$1));})}function Nu(e){return j$4(()=>e)}function Ru(e,t){return t?n=>Tt$2(t.pipe(He(1),Mu()),n.pipe(Ru(e))):ge$3((n,r)=>L$3(e(n,r)).pipe(He(1),Nu(n)))}function ww(e,t=Wt$1){let n=ko(e,t);return Ru(()=>n)}function Iw(e,t){return S((n,r)=>{let o=new Set;n.subscribe(T$3(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&L$3(t).subscribe(T$3(r,()=>o.clear(),zt$1));})}function vp(e,t=Be$3){return e=e??Cw,S((n,r)=>{let o,i=!0;n.subscribe(T$3(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Cw(e,t){return e===t}function Dp(e=bw){return S((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function bw(){return new Gt$1}function Sw(...e){return t=>Tt$2(t,_$3(...e))}function Au(e,t){return t?n=>n.pipe(Au((r,o)=>L$3(e(r,o)).pipe(j$4((i,s)=>t(r,i,o,s))))):S((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$3(r,a=>{i||(i=T$3(r,void 0,()=>{i=null,s&&r.complete();}),L$3(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function Tw(e,t=1/0,n){return t=(t||0)<1?1/0:t,S((r,o)=>xs(r,o,e,t,void 0,!0,n))}function Or(e){return S((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Zt$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ce$4((o,i)=>e(o,i,r)):Be$3,He(1),n?yp(t):Dp(()=>new Gt$1))}function Ls(e){return e<=0?()=>pe$3:S((t,n)=>{let r=[];t.subscribe(T$3(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 _w(e,t){return S(mp(e,t,arguments.length>=2,!0))}function kr(e){return S((t,n)=>{L$3(e).subscribe(T$3(n,()=>n.complete(),zt$1)),!n.closed&&t.subscribe(n);})}function Mw(e,t=false){return S((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var xe$2=null,Fs=false,qn$2=1,re$2=Symbol("SIGNAL");function C$1(e){let t=xe$2;return xe$2=e,t}function js(){return xe$2}var yn$1={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$1(e){if(Fs)throw new Error("");if(xe$2===null)return;xe$2.consumerOnSignalRead(e);let t=xe$2.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=xe$2.recomputing;if(r&&(n=t!==void 0?t.nextProducer:xe$2.producers,n!==void 0&&n.producer===e)){xe$2.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=qn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===xe$2&&(!r||o.knownValidAtEpoch===qn$2))return;let i=Fr(xe$2),s={producer:e,consumer:xe$2,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:qn$2,lastReadVersion:e.version,nextConsumer:void 0};xe$2.producersTail=s,t!==void 0?t.nextProducer=s:xe$2.producers=s,i&&Cp(e,s);}function Ep(){qn$2++;}function Qn$2(e){if(!(Fr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qn$2)){if(!e.producerMustRecompute(e)&&!Lr(e)){Pr$1(e);return}e.producerRecomputeValue(e),Pr$1(e);}}function xu(e){if(e.consumers===void 0)return;let t=Fs;Fs=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Rw(r);}}finally{Fs=t;}}function Ou(){return xe$2?.consumerAllowSignalWrites!==false}function Rw(e){e.dirty=true,xu(e),e.consumerMarkedDirty?.(e);}function Pr$1(e){e.dirty=false,e.lastCleanEpoch=qn$2;}function Qt$1(e){return e&&wp(e),C$1(e)}function wp(e){if(e.producersTail?.knownValidAtEpoch===qn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function vn$2(e,t){C$1(t),e&&Ip(e);}function Ip(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Fr(e))do n=ku(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Lr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Qn$2(n),r!==n.version))return true}return false}function Dn$2(e){if(Fr(e)){let t=e.producers;for(;t!==void 0;)t=ku(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Cp(e,t){let n=e.consumersTail,r=Fr(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)Cp(o.producer,o);}function ku(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,!Fr(t)){let i=t.producers;for(;i!==void 0;)i=ku(i);}return n}function Fr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Lo(e,t){return Object.is(e,t)}function Fo(e,t){let n=Object.create(Aw);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Qn$2(n),Yt$1(n),n.value===_t$2)throw n.error;return n.value};return r[re$2]=n,r}var Zn$2=Symbol("UNSET"),Yn$2=Symbol("COMPUTING"),_t$2=Symbol("ERRORED"),Aw=x$2(w$1({},yn$1),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"computed",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{r=e.computation(),C$1(null),o=t!==Zn$2&&t!==_t$2&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function xw(){throw new Error}var bp=xw;function Sp(e){bp(e);}function Pu(e){bp=e;}function Lu(e,t){let n=Object.create(jo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Tp(n);return r[re$2]=n,[r,s=>En$2(n,s),s=>Us(n,s)]}function Tp(e){return Yt$1(e),e.value}function En$2(e,t){Ou()||Sp(e),e.equal(e.value,t)||(e.value=t,kw(e));}function Us(e,t){Ou()||Sp(e),En$2(e,t(e.value));}var jo=x$2(w$1({},yn$1),{equal:Lo,value:void 0,kind:"signal"});function kw(e){e.version++,Ep(),xu(e);}var Fu=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ju(e){if(e.dirty=false,e.version>0&&!Lr(e))return;e.version++;let t=Qt$1(e);try{e.cleanup(),e.fn();}finally{vn$2(e,t);}}var Uu;function Bs(){return Uu}function Mt$2(e){let t=Uu;return Uu=e,t}var _p=Symbol("NotFound");function jr(e){return e===_p||e?.name==="\u0275NotFound"}function Bu(e,t,n){let r=Object.create(Pw);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Qn$2(r),Yt$1(r),r.value===_t$2)throw r.error;return r.value};return i[re$2]=r,i}function Mp(e,t){Qn$2(e),En$2(e,t),Pr$1(e);}function Np(e,t){if(Qn$2(e),e.value===_t$2)throw e.error;Us(e,t),Pr$1(e);}var Pw=x$2(w$1({},yn$1),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{let i=e.source(),s=t!==Zn$2&&t!==_t$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,C$1(null),o=s&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Rp(e){let t=C$1(null);try{return e()}finally{C$1(t);}}var qs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y$3=class y extends Error{code;constructor(t,n){super(Ke$1(t,n)),this.code=t;}};function Lw(e){return `NG0${Math.abs(e)}`}function Ke$1(e,t){return `${Lw(e)}${t?": "+t:""}`}function H$2(e){for(let t in e)if(e[t]===H$2)return t;throw Error("")}function Pp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function zo(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(zo).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Zs(e,t){return e?t?`${e} ${t}`:e:t||""}var Fw=H$2({__forward_ref__:H$2});function Ys(e){return e.__forward_ref__=Ys,e}function Ee$3(e){return Xu(e)?e():e}function Xu(e){return typeof e=="function"&&e.hasOwnProperty(Fw)&&e.__forward_ref__===Ys}function R$2(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tr(e){return {providers:e.providers||[],imports:e.imports||[]}}function Go(e){return jw(e,Qs)}function el(e){return Go(e)!==null}function jw(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Uw(e){let t=e?.[Qs]??null;return t||null}function Vu(e){return e&&e.hasOwnProperty(Vs)?e[Vs]:null}var Qs=H$2({\u0275prov:H$2}),Vs=H$2({\u0275inj:H$2}),D$1=class D{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=R$2({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function tl(e){return e&&!!e.\u0275providers}var nl=H$2({\u0275cmp:H$2}),rl=H$2({\u0275dir:H$2}),ol=H$2({\u0275pipe:H$2}),il=H$2({\u0275mod:H$2}),Bo=H$2({\u0275fac:H$2}),nr=H$2({__NG_ELEMENT_ID__:H$2}),Ap=H$2({__NG_ENV_ID__:H$2});function Lp(e){return Ks(e),e[il]||null}function Xt$1(e){return Ks(e),e[nl]||null}function sl(e){return Ks(e),e[rl]||null}function Fp(e){return Ks(e),e[ol]||null}function Ks(e,t){if(e==null)throw new y$3(-919,false)}function oe$1(e){return typeof e=="string"?e:e==null?"":String(e)}var jp=H$2({ngErrorCode:H$2}),Bw=H$2({ngErrorMessage:H$2});H$2({ngTokenPath:H$2});function al(e,t){return Up("",-200)}function Js(e,t){throw new y$3(-201,false)}function Up(e,t,n){let r=new y$3(t,e);return r[jp]=t,r[Bw]=e,r}function Vw(e){return e[jp]}var $u;function Bp(){return $u}function Oe$3(e){let t=$u;return $u=e,t}function cl(e,t,n){let r=Go(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;Js();}var Je$1=globalThis;var $w={},Kn$2=$w,zw="__NG_DI_FLAG__",zu=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Jn$2(n)||0;try{return this.injector.get(t,r&8?null:Kn$2,r)}catch(o){if(jr(o))return o;throw o}}};function Gw(e,t=0){let n=Bs();if(n===void 0)throw new y$3(-203,false);if(n===null)return cl(e,void 0,t);{let r=Ww(t),o=n.retrieve(e,r);if(jr(o)){if(r.optional)return null;throw o}return o}}function b(e,t=0){return (Bp()||Gw)(Ee$3(e),t)}function p(e,t){return b(e,Jn$2(t))}function Jn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ww(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Gu(e){let t=[];for(let n=0;n<e.length;n++){let r=Ee$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y$3(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=qw(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b(o,i));}else t.push(b(r));}return t}function qw(e){return e[zw]}function wn$2(e,t){let n=e.hasOwnProperty(Bo);return n?e[Bo]:null}function Hp(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 Vp(e){return e.flat(Number.POSITIVE_INFINITY)}function Xs(e,t){e.forEach(n=>Array.isArray(n)?Xs(n,t):t(n));}function ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $p(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function zp(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 ea(e,t,n){let r=Hr(e,t);return r>=0?e[r|1]=n:(r=~r,zp(e,r,t,n)),r}function ta(e,t){let n=Hr(e,t);if(n>=0)return e[n|1]}function Hr(e,t){return Zw(e,t,1)}function Zw(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 Cn$2={},Se$4=[],en$1=new D$1(""),qo=new D$1("",-1),ll=new D$1(""),Br=class{get(t,n=Kn$2){if(n===Kn$2){let o=Up("",-201);throw o.name="\u0275NotFound",o}return n}};function ft$2(e){return {\u0275providers:e}}function Gp(e){return ft$2([{provide:en$1,multi:true,useValue:e}])}function Wp(...e){return {\u0275providers:dl(true,e),\u0275fromNgModule:true}}function dl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Xs(t,s=>{let a=s;$s(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&qp(o,i),n}function qp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];fl(o,i=>{t(i,r);});}}function $s(e,t,n,r){if(e=Ee$3(e),!e)return false;let o=null,i=Vu(e),s=!i&&Xt$1(e);if(!i&&!s){let c=e.ngModule;if(i=Vu(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)$s(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Xs(i.imports,l=>{$s(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&qp(u,t);}if(!a){let u=wn$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:Se$4},o),t({provide:ll,useValue:o,multi:true},o),t({provide:en$1,useValue:()=>b(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;fl(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function fl(e,t){for(let n of e)tl(n)&&(n=n.\u0275providers),Array.isArray(n)?fl(n,t):t(n);}var Yw=H$2({provide:String,useValue:H$2});function Zp(e){return e!==null&&typeof e=="object"&&Yw in e}function Qw(e){return !!(e&&e.useExisting)}function Kw(e){return !!(e&&e.useFactory)}function Xn$2(e){return typeof e=="function"}function Yp(e){return !!e.useClass}var Zo=new D$1(""),Hs={},xp={},Hu;function Vr(){return Hu===void 0&&(Hu=new Br),Hu}var ee$2=class ee{},er=class extends ee$2{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,qu(t,s=>this.processProvider(s)),this.records.set(qo,Ur(void 0,this)),o.has("environment")&&this.records.set(ee$2,Ur(void 0,this));let i=this.records.get(Zo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ll,Se$4,{self:true}));}retrieve(t,n){let r=Jn$2(n)||0;try{return this.get(t,Kn$2,r)}catch(o){if(jr(o))return o;throw o}}destroy(){Uo(this),this._destroyed=true;let t=C$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(),C$1(t);}}onDestroy(t){return Uo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Uo(this);let n=Mt$2(this),r=Oe$3(void 0);try{return t()}finally{Mt$2(n),Oe$3(r);}}get(t,n=Kn$2,r){if(Uo(this),t.hasOwnProperty(Ap))return t[Ap](this);let o=Jn$2(r),s=Mt$2(this),a=Oe$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=nI(t)&&Go(t);l&&this.injectableDefInScope(l)?u=Ur(Wu(t),Hs):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Vr():this.parent;return n=o&8&&n===Kn$2?null:n,c.get(t,n)}catch(c){let u=Vw(c);throw u===-200||u===-201?new y$3(u,null):c}finally{Oe$3(a),Mt$2(s);}}resolveInjectorInitializers(){let t=C$1(null),n=Mt$2(this),r=Oe$3(void 0);try{let i=this.get(en$1,Se$4,{self:!0});for(let s of i)s();}finally{Mt$2(n),Oe$3(r),C$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=Ee$3(t);let n=Xn$2(t)?t:Ee$3(t&&t.provide),r=Xw(t);if(!Xn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Ur(void 0,Hs,true),o.factory=()=>Gu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=C$1(null);try{if(n.value===xp)throw al("");return n.value===Hs&&(n.value=xp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&tI(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=Ee$3(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 Wu(e){let t=Go(e),n=t!==null?t.factory:wn$2(e);if(n!==null)return n;if(e instanceof D$1)throw new y$3(-204,false);if(e instanceof Function)return Jw(e);throw new y$3(-204,false)}function Jw(e){if(e.length>0)throw new y$3(-204,false);let n=Uw(e);return n!==null?()=>n.factory(e):()=>new e}function Xw(e){if(Zp(e))return Ur(void 0,e.useValue);{let t=hl(e);return Ur(t,Hs)}}function hl(e,t,n){let r;if(Xn$2(e)){let o=Ee$3(e);return wn$2(o)||Wu(o)}else if(Zp(e))r=()=>Ee$3(e.useValue);else if(Kw(e))r=()=>e.useFactory(...Gu(e.deps||[]));else if(Qw(e))r=(o,i)=>b(Ee$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=Ee$3(e&&(e.useClass||e.provide));if(eI(e))r=()=>new o(...Gu(e.deps));else return wn$2(o)||Wu(o)}return r}function Uo(e){if(e.destroyed)throw new y$3(-205,false)}function Ur(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function eI(e){return !!e.deps}function tI(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function nI(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function qu(e,t){for(let n of e)Array.isArray(n)?qu(n,t):n&&tl(n)?qu(n.\u0275providers,t):t(n);}function ye$3(e,t){let n;e instanceof er?(Uo(e),n=e):n=new zu(e);let o=Mt$2(n),i=Oe$3(void 0);try{return t()}finally{Mt$2(o),Oe$3(i);}}function Qp(){return Bp()!==void 0||Bs()!=null}var ht$2=0,I$1=1,N$2=2,me$2=3,Xe=4,Te$2=5,rr=6,$r=7,ie=8,Nt$2=9,pt$2=10,$$1=11,zr=12,pl=13,bn$2=14,_e$2=15,Sn$2=16,or=17,Rt$1=18,At$2=19,gl=20,Kt$1=21,na=22,In$2=23,Ve$3=24,ir=25,xt=26,X=27,Kp=1,ml=6,Tn$2=7,Yo=8,sr=9,te$2=10;function tn$1(e){return Array.isArray(e)&&typeof e[Kp]=="object"}function et$1(e){return Array.isArray(e)&&e[Kp]===true}function yl(e){return (e.flags&4)!==0}function nn$1(e){return e.componentOffset>-1}function Gr(e){return (e.flags&1)===1}function Ot$2(e){return !!e.template}function Wr(e){return (e[N$2]&512)!==0}function ar(e){return (e[N$2]&256)===256}var vl="svg",Jp="math";function tt$1(e){for(;Array.isArray(e);)e=e[ht$2];return e}function Dl(e,t){return tt$1(t[e])}function nt$2(e,t){return tt$1(t[e.index])}function ra(e,t){return e.data[t]}function oa(e,t){return e[t]}function El(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function rt$1(e,t){let n=t[e];return tn$1(n)?n:n[ht$2]}function Xp(e){return (e[N$2]&4)===4}function ia(e){return (e[N$2]&128)===128}function eg(e){return et$1(e[me$2])}function $e$1(e,t){return t==null?null:e[t]}function wl(e){e[or]=0;}function Il(e){e[N$2]&1024||(e[N$2]|=1024,ia(e)&&cr(e));}function tg(e,t){for(;e>0;)t=t[bn$2],e--;return t}function Qo(e){return !!(e[N$2]&9216||e[Ve$3]?.dirty)}function sa(e){e[pt$2].changeDetectionScheduler?.notify(8),e[N$2]&64&&(e[N$2]|=1024),Qo(e)&&cr(e);}function cr(e){e[pt$2].changeDetectionScheduler?.notify(0);let t=Jt(e);for(;t!==null&&!(t[N$2]&8192||(t[N$2]|=8192,!ia(t)));)t=Jt(t);}function aa(e,t){if(ar(e))throw new y$3(911,false);e[Kt$1]===null&&(e[Kt$1]=[]),e[Kt$1].push(t);}function ng(e,t){if(e[Kt$1]===null)return;let n=e[Kt$1].indexOf(t);n!==-1&&e[Kt$1].splice(n,1);}function Jt(e){let t=e[me$2];return et$1(t)?t[me$2]:t}function Cl(e){return e[$r]??=[]}function bl(e){return e.cleanup??=[]}function rg(e,t,n,r){let o=Cl(t);o.push(n),e.firstCreatePass&&bl(e).push(r,o.length-1);}var O$2={lFrame:mg(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Zu=false;function og(){return O$2.lFrame.elementDepthCount}function ig(){O$2.lFrame.elementDepthCount++;}function Sl(){O$2.lFrame.elementDepthCount--;}function ca(){return O$2.bindingsEnabled}function Tl(){return O$2.skipHydrationRootTNode!==null}function _l(e){return O$2.skipHydrationRootTNode===e}function Ml(){O$2.skipHydrationRootTNode=null;}function w(){return O$2.lFrame.lView}function G$3(){return O$2.lFrame.tView}function sg(e){return O$2.lFrame.contextLView=e,e[ie]}function ag(e){return O$2.lFrame.contextLView=null,e}function fe$2(){let e=Nl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Nl(){return O$2.lFrame.currentTNode}function cg(){let e=O$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function qr(e,t){let n=O$2.lFrame;n.currentTNode=e,n.isParent=t;}function Rl(){return O$2.lFrame.isParent}function Al(){O$2.lFrame.isParent=false;}function ug(){return O$2.lFrame.contextLView}function xl(){return Zu}function Ho(e){let t=Zu;return Zu=e,t}function Zr(){let e=O$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ko(){return O$2.lFrame.bindingIndex}function lg(e){return O$2.lFrame.bindingIndex=e}function _n$1(){return O$2.lFrame.bindingIndex++}function ur(e){let t=O$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dg(){return O$2.lFrame.inI18n}function fg(e,t){let n=O$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,ua(t);}function hg(){return O$2.lFrame.currentDirectiveIndex}function ua(e){O$2.lFrame.currentDirectiveIndex=e;}function pg(e){let t=O$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function la(){return O$2.lFrame.currentQueryIndex}function Jo(e){O$2.lFrame.currentQueryIndex=e;}function rI(e){let t=e[I$1];return t.type===2?t.declTNode:t.type===1?e[Te$2]:null}function Ol(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=rI(i),o===null||(i=i[bn$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=O$2.lFrame=gg();return r.currentTNode=t,r.lView=e,true}function da(e){let t=gg(),n=e[I$1];O$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function gg(){let e=O$2.lFrame,t=e===null?null:e.child;return t===null?mg(e):t}function mg(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 yg(){let e=O$2.lFrame;return O$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kl=yg;function fa(){let e=yg();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 vg(e){return (O$2.lFrame.contextLView=tg(e,O$2.lFrame.contextLView))[ie]}function ze$2(){return O$2.lFrame.selectedIndex}function Mn$2(e){O$2.lFrame.selectedIndex=e;}function Yr(){let e=O$2.lFrame;return ra(e.tView,e.selectedIndex)}function Dg(){O$2.lFrame.currentNamespace=vl;}function Eg(){oI();}function oI(){O$2.lFrame.currentNamespace=null;}function Pl(){return O$2.lFrame.currentNamespace}var wg=true;function ha(){return wg}function Xo(e){wg=e;}function Yu(e,t=null,n=null,r){let o=Ll(e,t,n);return o.resolveInjectorInitializers(),o}function Ll(e,t=null,n=null,r,o=new Set){let i=[n||Se$4,Wp(e)];return new er(i,t||Vr(),null,o)}var we$2=class e{static THROW_IF_NOT_FOUND=Kn$2;static NULL=new Br;static create(t,n){if(Array.isArray(t))return Yu({name:""},n,t);{let r=t.name??"";return Yu({name:r},t.parent,t.providers)}}static \u0275prov=R$2({token:e,providedIn:"any",factory:()=>b(qo)});static __NG_ELEMENT_ID__=-1},Q$3=new D$1(""),Me$4=(()=>{class e{static __NG_ELEMENT_ID__=iI;static __NG_ENV_ID__=n=>n}return e})(),zs$1=class zs extends Me$4{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return ar(this._lView)}onDestroy(t){let n=this._lView;return aa(n,t),()=>ng(n,t)}};function iI(){return new zs$1(w())}var Fl=false,Ig=new D$1(""),kt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new De$3(false);debugTaskTracker=p(Ig,{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=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Qu=class extends ne$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Qp()&&(this.destroyRef=p(Me$4,{optional:true})??void 0,this.pendingTasks=p(kt$1,{optional:true})??void 0);}emit(t){let n=C$1(null);try{super.next(t);}finally{C$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 ce$2&&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);}});}}},be$3=Qu;function Gs(...e){}function jl(e){let t,n;function r(){e=Gs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Cg(e){return queueMicrotask(()=>e()),()=>{e=Gs;}}var Ul="isAngularZone",Vo=Ul+"_ID",sI=0,J$3=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new be$3(false);onMicrotaskEmpty=new be$3(false);onStable=new be$3(false);onError=new be$3(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Fl}=t;if(typeof Zone>"u")throw new y$3(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,uI(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ul)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new y$3(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y$3(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,aI,Gs,Gs);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)}},aI={};function Bl(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 cI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){jl(()=>{e.callbackScheduled=false,Ku(e),e.isCheckStableRunning=true,Bl(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Ku(e);}function uI(e){let t=()=>{cI(e);},n=sI++;e._inner=e._inner.fork({name:"angular",properties:{[Ul]:true,[Vo]:n,[Vo+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(lI(c))return r.invokeTask(i,s,a,c);try{return Op(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),kp(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Op(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!dI(c)&&t(),kp(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ku(e),Bl(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 Ku(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Op(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function kp(e){e._nesting--,Bl(e);}var $o=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new be$3;onMicrotaskEmpty=new be$3;onStable=new be$3;onError=new be$3;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 lI(e){return bg(e,"__ignore_ng_zone__")}function dI(e){return bg(e,"__scheduler_tick__")}function bg(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Qe$1=class Qe{_console=console;handleError(t){this._console.error("ERROR",t);}},ke$2=new D$1("",{factory:()=>{let e=p(J$3),t=p(ee$2),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Qe$1),n.handleError(r));});}}}),Sg={provide:en$1,useValue:()=>{p(Qe$1,{optional:true});},multi:true},fI=new D$1("",{factory:()=>{let e=p(Q$3).defaultView;if(!e)return;let t=p(ke$2),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),p(Me$4).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function hI(){return ft$2([Gp(()=>{p(fI);})])}function se(e,t){let [n,r,o]=Lu(e,t?.equal),i=n;i[re$2];return i.set=r,i.update=o,i.asReadonly=ei$2.bind(i),i}function ei$2(){let e=this[re$2];if(e.readonlyFn===void 0){let t=()=>this();t[re$2]=e,e.readonlyFn=t;}return e.readonlyFn}var ti$2=new D$1("",{factory:()=>pI}),pI="ng";var pa=new D$1(""),ni$2=new D$1("",{providedIn:"platform",factory:()=>"unknown"}),gI=new D$1(""),ri$2=new D$1("",{factory:()=>p(Q$3).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=mI}return e})();function mI(){return new Qr(w(),fe$2())}var dt$2=class dt{},Kr=new D$1("",{factory:()=>true});var ga=new D$1(""),ma=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new Ju})}return e})(),Ju=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}},Ws=class{[re$2];constructor(t){this[re$2]=t;}destroy(){this[re$2].destroy();}};function Tg(e,t){let n=t?.injector??p(we$2),r=t?.manualCleanup!==true?n.get(Me$4):null,o,i=n.get(Qr,null,{optional:true}),s=n.get(dt$2);return i!==null?(o=DI(i.view,s,e),r instanceof zs$1&&r._lView===i.view&&(r=null)):o=EI(e,n.get(ma),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ws(o)}var _g=x$2(w$1({},Fu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ho(false);try{ju(this);}finally{Ho(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=C$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],C$1(e);}}}),yI=x$2(w$1({},_g),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),vI=x$2(w$1({},_g),{consumerMarkedDirty(){this.view[N$2]|=8192,cr(this.view),this.notifier.notify(13);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[In$2]?.delete(this);}});function DI(e,t,n){let r=Object.create(vI);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Mg(r,n),e[In$2]??=new Set,e[In$2].add(r),r.consumerMarkedDirty(r),r}function EI(e,t,n){let r=Object.create(yI);return r.fn=Mg(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 Mg(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function oi$2(e){return typeof e=="function"&&e[re$2]!==void 0}function ya(e){return oi$2(e)&&typeof e.set=="function"}var ii$2=(()=>{class e{internalPendingTasks=p(kt$1);scheduler=p(dt$2);errorHandler=p(ke$2);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=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})();function yi$2(e){return {toString:e}.toString()}var F$3=(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})(F$3||{}),Ta=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function gm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var mm=null,xn$2=(()=>{mm=Ng;let e=()=>Ng;return e.ngInherit=true,e})();function NI(){return mm}function Ng(e){return e.type.prototype.ngOnChanges&&(e.setInput=AI),RI}function RI(){let e=ym(this),t=e?.current;if(t){let n=e.previous;if(n===Cn$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function AI(e,t,n,r,o){let i=this.declaredInputs[r],s=ym(e)||xI(e,{previous:Cn$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ta(u&&u.currentValue,n,c===Cn$2),gm(e,t,o,n);}var Jl="__ngSimpleChanges__";function ym(e){return Object.hasOwn(e,Jl)&&e[Jl]||null}function xI(e,t){return e[Jl]=t}var Rg=[];var V=function(e,t=null,n){for(let r=0;r<Rg.length;r++){let o=Rg[r];o(e,t,n);}};function OI(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=NI()(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 vm(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 Ia(e,t,n){Dm(e,t,3,n);}function Ca(e,t,n,r){(e[N$2]&3)===n&&Dm(e,t,n,r);}function Hl(e,t){let n=e[N$2];(n&3)===t&&(n&=16383,n+=1,e[N$2]=n);}function Dm(e,t,n,r){let o=r!==void 0?e[or]&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[or]+=65536),(a<i||i==-1)&&(kI(e,n,t,c),e[or]=(e[or]&4294901760)+c+2),c++;}function Ag(e,t){V(F$3.LifecycleHookStart,e,t);let n=C$1(null);try{t.call(e);}finally{C$1(n),V(F$3.LifecycleHookEnd,e,t);}}function kI(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[N$2]>>14<e[or]>>16&&(e[N$2]&3)===t&&(e[N$2]+=16384,Ag(a,i)):Ag(a,i);}var Xr=-1,dr=class{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 PI(e){return (e.flags&8)!==0}function LI(e){return (e.flags&16)!==0}function FI(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];jI(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Em(e){return e===3||e===4||e===6}function jI(e){return e.charCodeAt(0)===64}function eo(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?xg(e,n,o,null,t[++r]):xg(e,n,o,null,null));}}return e}function xg(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 wm(e){return e!==Xr}function _a(e){return e&32767}function UI(e){return e>>16}function Ma(e,t){let n=UI(e),r=t;for(;n>0;)r=r[bn$2],n--;return r}var Xl=true;function Na(e){let t=Xl;return Xl=e,t}var BI=256,Im=BI-1,Cm=5,HI=0,Pt$2={};function VI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=HI++);let o=r&Im,i=1<<o;t.data[e+(o>>Cm)]|=i;}function Ra(e,t){let n=bm(e,t);if(n!==-1)return n;let r=t[I$1];r.firstCreatePass&&(e.injectorIndex=t.length,Vl(r.data,e),Vl(t,null),Vl(r.blueprint,null));let o=Od(e,t),i=e.injectorIndex;if(wm(o)){let s=_a(o),a=Ma(o,t),c=a[I$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 Vl(e,t){e.push(0,0,0,0,0,0,0,0,t);}function bm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Od(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=Rm(o),r===null)return Xr;if(n++,o=o[bn$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Xr}function ed(e,t,n){VI(e,t,n);}function $I(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(Em(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 Sm(e,t,n){if(n&8||e!==void 0)return e;Js();}function Tm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Nt$2],i=Oe$3(void 0);try{return o?o.get(t,r,n&8):cl(t,r,n&8)}finally{Oe$3(i);}}return Sm(r,t,n)}function _m(e,t,n,r=0,o){if(e!==null){if(t[N$2]&2048&&!(r&2)){let s=qI(e,t,n,r,Pt$2);if(s!==Pt$2)return s}let i=Mm(e,t,n,r,Pt$2);if(i!==Pt$2)return i}return Tm(t,n,r,o)}function Mm(e,t,n,r,o){let i=GI(n);if(typeof i=="function"){if(!Ol(t,e,r))return r&1?Sm(o,n,r):Tm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Js(n);else return s}finally{kl();}}else if(typeof i=="number"){let s=null,a=bm(e,t),c=Xr,u=r&1?t[_e$2][Te$2]:null;for((a===-1||r&4)&&(c=a===-1?Od(e,t):t[a+8],c===Xr||!kg(r,false)?a=-1:(s=t[I$1],a=_a(c),t=Ma(c,t)));a!==-1;){let l=t[I$1];if(Og(i,a,l.data)){let d=zI(a,t,n,s,r,u);if(d!==Pt$2)return d}c=t[a+8],c!==Xr&&kg(r,t[I$1].data[a+8]===u)&&Og(i,a,t)?(s=l,a=_a(c),t=Ma(c,t)):a=-1;}}return o}function zI(e,t,n,r,o,i){let s=t[I$1],a=s.data[e+8],c=r==null?nn$1(a)&&Xl:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ba(a,s,n,c,u);return l!==null?li$1(t,s,l,a,o):Pt$2}function ba(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,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&Ot$2(h)&&h.type===n)return c}return null}function li$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof dr){let a=i;if(a.resolving)throw al();let c=Na(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?Oe$3(a.injectImpl):null;Ol(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&OI(n,s[n],t);}finally{d!==null&&Oe$3(d),Na(c),a.resolving=false,kl();}}return i}function GI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&Im:WI:t}function Og(e,t,n){let r=1<<e;return !!(n[t+(e>>Cm)]&r)}function kg(e,t){return !(e&2)&&!(e&1&&t)}var Nn$2=class Nn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return _m(this._tNode,this._lView,t,Jn$2(r),n)}};function WI(){return new Nn$2(fe$2(),w())}function Nm(e){return yi$2(()=>{let t=e.prototype.constructor,n=t[Bo]||td(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Bo]||td(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function td(e){return Xu(e)?()=>{let t=td(Ee$3(e));return t&&t()}:wn$2(e)}function qI(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[N$2]&2048&&!Wr(s);){let a=Mm(i,s,n,r|2,Pt$2);if(a!==Pt$2)return a;let c=i.parent;if(!c){let u=s[gl];if(u){let l=u.get(n,Pt$2,r&-5);if(l!==Pt$2)return l}c=Rm(s),s=s[bn$2];}i=c;}return o}function Rm(e){let t=e[I$1],n=t.type;return n===2?t.declTNode:n===1?e[Te$2]:null}function vi$2(e){return $I(fe$2(),e)}function Z$2(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function ZI(){return so(fe$2(),w())}function so(e,t){return new Ft$1(nt$2(e,t))}var Ft$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=ZI}return e})();function Am(e){return e instanceof Ft$1?e.nativeElement:e}function YI(){return this._results[Symbol.iterator]()}var Aa=class{_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 ne$1}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=Vp(t);(this._changesDetected=!Hp(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]=YI};function xm(e){return (e.flags&128)===128}var kd=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(kd||{}),Om=new Map,QI=0;function KI(){return QI++}function JI(e){Om.set(e[At$2],e);}function nd(e){Om.delete(e[At$2]);}var Pg="__ngContext__";function to(e,t){tn$1(t)?(e[Pg]=t[At$2],JI(t)):e[Pg]=t;}function km(e){return Lm(e[zr])}function Pm(e){return Lm(e[Xe])}function Lm(e){for(;e!==null&&!et$1(e);)e=e[Xe];return e}var rd;function Pd(e){rd=e;}function Ld(){if(rd!==void 0)return rd;if(typeof document<"u")return document;throw new y$3(210,false)}var Fm="r";var jm="di";var Fd=new D$1(""),Um=false,Bm=new D$1("",{factory:()=>Um});var Wa=new D$1("");var Lg=new WeakMap;function XI(e,t){if(e==null||typeof e!="object")return;let n=Lg.get(e);n||(n=new WeakSet,Lg.set(e,n)),n.add(t);}function qa(e){return (e.flags&32)===32}var nC=()=>null;function Hm(e,t,n=false){return nC()}function Vm(e,t){let n=e.contentQueries;if(n!==null){let r=C$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];Jo(i),a.contentQueries(2,t[s],s);}}}finally{C$1(r);}}}function od(e,t,n){Jo(0);let r=C$1(null);try{t(e,n);}finally{C$1(r);}}function jd(e,t,n){if(yl(t)){let r=C$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{C$1(r);}}}var yt$1=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(yt$1||{});var va;function rC(){if(va===void 0&&(va=null,Je$1.trustedTypes))try{va=Je$1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return va}function Za(e){return rC()?.createHTML(e)||e}var Da;function $m(){if(Da===void 0&&(Da=null,Je$1.trustedTypes))try{Da=Je$1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Da}function Fg(e){return $m()?.createHTML(e)||e}function jg(e){return $m()?.createScriptURL(e)||e}var rn$1=class rn{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qs})`}},id=class extends rn$1{getTypeName(){return "HTML"}},sd=class extends rn$1{getTypeName(){return "Style"}},ad=class extends rn$1{getTypeName(){return "Script"}},cd=class extends rn$1{getTypeName(){return "URL"}},ud=class extends rn$1{getTypeName(){return "ResourceURL"}};function We(e){return e instanceof rn$1?e.changingThisBreaksApplicationSecurity:e}function jt$1(e,t){let n=zm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${qs})`)}return n===t}function zm(e){return e instanceof rn$1&&e.getTypeName()||null}function Ud(e){return new id(e)}function Bd(e){return new sd(e)}function Hd(e){return new ad(e)}function Vd(e){return new cd(e)}function $d(e){return new ud(e)}function oC(e){let t=new dd(e);return iC()?new ld(t):t}var ld=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Za(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},dd=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=Za(t),n}};function iC(){try{return !!new window.DOMParser().parseFromString(Za(""),"text/html")}catch(e){return false}}var sC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Di$2(e){return e=String(e),e.match(sC)?e:"unsafe:"+e}function on$1(e){let t={};for(let n of e.split(","))t[n]=true;return t}function Ei$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Gm=on$1("area,br,col,hr,img,wbr"),Wm=on$1("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qm=on$1("rp,rt"),aC=Ei$2(qm,Wm),cC=Ei$2(Wm,on$1("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")),uC=Ei$2(qm,on$1("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")),Ug=Ei$2(Gm,cC,uC,aC),Zm=on$1("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lC=on$1("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"),dC=on$1("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"),fC=Ei$2(Zm,lC,dC),hC=on$1("script,style,template"),fd=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=mC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=gC(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Bg(t).toLowerCase();if(!Ug.hasOwnProperty(n))return this.sanitizedSomething=true,!hC.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(!fC.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Zm[a]&&(c=Di$2(c)),this.buf.push(" ",s,'="',Hg(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Bg(t).toLowerCase();Ug.hasOwnProperty(n)&&!Gm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Hg(t));}};function pC(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function gC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Ym(t);return t}function mC(e){let t=e.firstChild;if(t&&pC(e,t))throw Ym(t);return t}function Bg(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Ym(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var yC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vC=/([^\#-~ |!])/g;function Hg(e){return e.replace(/&/g,"&").replace(yC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(vC,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ea;function Ya(e,t){let n=null;try{Ea=Ea||oC(e);let r=t?String(t):"";n=Ea.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=Ea.getInertBodyElement(r);}while(r!==i);let a=new fd().sanitizeChildren(Vg(n)||n);return Za(a)}finally{if(n){let r=Vg(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Vg(e){return "content"in e&&DC(e)?e.content:null}function DC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var EC=/^>|^->|<!--|-->|--!>|<!-$/g,wC=/(<|>)/g,IC="\u200B$1\u200B";function CC(e){return e.replace(EC,t=>t.replace(wC,IC))}function bC(e,t){return e.createText(t)}function SC(e,t,n){e.setValue(t,n);}function TC(e,t){return e.createComment(CC(t))}function Qm(e,t,n){return e.createElement(t,n)}function xa(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Km(e,t,n){e.appendChild(t,n);}function $g(e,t,n,r,o){r!==null?xa(e,t,n,r,o):Km(e,t,n);}function Jm(e,t,n,r){e.removeChild(null,t,n,r);}function _C(e,t,n){e.setAttribute(t,"style",n);}function MC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Xm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&FI(e,t,r),o!==null&&MC(e,t,o),i!==null&&_C(e,t,i);}var ot$1=(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})(ot$1||{});function NC(e){let t=Gd();return t?Fg(t.sanitize(ot$1.HTML,e)||""):jt$1(e,"HTML")?Fg(We(e)):Ya(Ld(),oe$1(e))}function ey(e){let t=Gd();return t?t.sanitize(ot$1.URL,e)||"":jt$1(e,"URL")?We(e):Di$2(oe$1(e))}function ty(e){let t=Gd();if(t)return jg(t.sanitize(ot$1.RESOURCE_URL,e)||"");if(jt$1(e,"ResourceURL"))return jg(We(e));throw new y$3(904,false)}var RC={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function AC(e,t){return RC[e.toLowerCase()]?.[t.toLowerCase()]===true?ty:ey}function zd(e,t,n){return AC(t,n)(e)}function Gd(){let e=w();return e&&e[pt$2].sanitizer}function xC(e){return e instanceof Function?e():e}function OC(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 ny="ng-template";function kC(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&OC(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Wd(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 Wd(e){return e.type===4&&e.value!==ny}function PC(e,t,n){let r=e.type===4&&!n?ny:e.value;return t===r}function LC(e,t,n){let r=4,o=e.attrs,i=o!==null?UC(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!gt$2(r)&&!gt$2(c))return false;if(s&>$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!PC(e,c,n)||c===""&&t.length===1){if(gt$2(r))return false;s=true;}}else if(r&8){if(o===null||!kC(e,o,c,n)){if(gt$2(r))return false;s=true;}}else {let u=t[++a],l=FC(c,o,Wd(e),n);if(l===-1){if(gt$2(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt$2(r))return false;s=true;}}}}return gt$2(r)||s}function gt$2(e){return (e&1)===0}function FC(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 BC(t,e)}function ry(e,t,n=false){for(let r=0;r<t.length;r++)if(LC(e,t[r],n))return true;return false}function jC(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function UC(e){for(let t=0;t<e.length;t++){let n=e[t];if(Em(n))return t}return e.length}function BC(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 HC(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 zg(e,t){return e?":not("+t.trim()+")":t}function VC(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!==""&&!gt$2(s)&&(t+=zg(i,o),o=""),r=s,i=i||!gt$2(r);n++;}return o!==""&&(t+=zg(i,o)),t}function $C(e){return e.map(VC).join(",")}function zC(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(!gt$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var ue={},Lt$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Lt$1||{}),GC;function qd(e,t){return GC(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var hd=new WeakMap;function oy(e){return e?e[bn$2]??e:null}var ai$2=new WeakSet;function WC(e,t,n){let r=hd.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=oy(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),ai$2.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 qC(e,t,n){let r=oy(n),o=hd.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):hd.set(e,[{el:t,declarationView:r}]);}var Rn$2=new Set,Qa=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Qa||{}),Ut$1=new D$1(""),Gg=new Set;function it$1(e){Gg.has(e)||(Gg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ka=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Zd=[0,1,2,3],Yd=(()=>{class e{ngZone=p(J$3);scheduler=p(dt$2);errorHandler=p(Qe$1,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){p(Ut$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&V(F$3.AfterRenderHooksStart),this.executing=true;for(let r of Zd)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(F$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[ir]??=[]).push(n),cr(r),r[N$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(Qa.AFTER_NEXT_RENDER,n):n()}static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),di$2=class di{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?.[ir];t&&(this.view[ir]=t.filter(n=>n!==this));}};function Ja(e,t){let n=t?.injector??p(we$2);return it$1("NgAfterNextRender"),YC(e,n,t,true)}function ZC(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function YC(e,t,n,r){let o=t.get(Ka);o.impl??=t.get(Yd);let i=t.get(Ut$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Me$4):null,a=t.get(Qr,null,{optional:true}),c=new di$2(o.impl,ZC(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Qd=new D$1("",{factory:()=>{let e=p(ee$2),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function iy(e,t,n){let r=e.get(Qd);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 QC(e,t){let n=e.get(Qd);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function KC(e,t){let n=e.get(Qd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function JC(e,t){for(let[n,r]of t)iy(e,r.animateFns);}function Wg(e,t,n,r){let o=e?.[xt]?.enter;t!==null&&o&&o.has(n.index)&&JC(r,o);}function qg(e,t,n,r){try{n.get(qo);}catch(s){return r(false)}let o=e?.[xt];o?.enter?.has(t.index)&&QC(n,o.enter.get(t.index).animateFns);let i=XC(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Xa(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Rn$2.add(e[At$2]),iy(n,()=>eb(e,t,o||void 0,i,r),o||void 0);}function XC(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[I$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function eb(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&&Xa(e,t,i),i.length>0){let s=n||e?.[xt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),nb(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Rn$2.delete(e[At$2]),o(true);});}else e&&Rn$2.delete(e[At$2]),o(false);}function Xa(e,t,n){if(t.type&12){let o=e[t.index];if(et$1(o))for(let i=te$2;i<o.length;i++){let s=o[i];s[I$1].type===2&&tb(s,n);}}let r=t.child;for(;r;)Xa(e,r,n),r=r.next;}function tb(e,t){let n=e[xt];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[I$1].firstChild;for(;r;)Xa(e,r,t),r=r.next;}function nb(e,t,n){t.then(()=>{e[xt]?.running===t&&(e[xt].running=void 0,Rn$2.delete(e[At$2])),n(true);});}function Jr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;et$1(o)?c=o:tn$1(o)&&(u=true,o=o[ht$2]);let l=tt$1(o);e===0&&r!==null?(Wg(a,r,i,n),s==null?Km(t,r,l):xa(t,r,l,s||null,true)):e===1&&r!==null?(Wg(a,r,i,n),xa(t,r,l,s||null,true),WC(i,l,a)):e===2?(a?.[xt]?.leave?.has(i.index)&&qC(i,l,a),ai$2.delete(l),qg(a,i,n,d=>{if(ai$2.has(l)){ai$2.delete(l);return}Jm(t,l,u,d);})):e===3&&(ai$2.delete(l),qg(a,i,n,()=>{t.destroyNode(l);})),c!=null&&fb(t,e,n,c,i,r,s);}}function rb(e,t){sy(e,t),t[ht$2]=null,t[Te$2]=null;}function ob(e,t,n,r,o,i){r[ht$2]=o,r[Te$2]=t,tc(e,r,n,1,o,i);}function sy(e,t){t[pt$2].changeDetectionScheduler?.notify(9),tc(e,t,t[$$1],2,null,null);}function ib(e){let t=e[zr];if(!t)return $l(e[I$1],e);for(;t;){let n=null;if(tn$1(t))n=t[zr];else {let r=t[te$2];r&&(n=r);}if(!n){for(;t&&!t[Xe]&&t!==e;)tn$1(t)&&$l(t[I$1],t),t=t[me$2];t===null&&(t=e),tn$1(t)&&$l(t[I$1],t),n=t&&t[Xe];}t=n;}}function Kd(e,t){let n=e[sr],r=n.indexOf(t);n.splice(r,1);}function ec(e,t){if(ar(t))return;let n=t[$$1];n.destroyNode&&tc(e,t,n,3,null,null),ib(t);}function $l(e,t){if(ar(t))return;let n=C$1(null);try{t[N$2]&=-129,t[N$2]|=256,t[Ve$3]&&Dn$2(t[Ve$3]),ab(e,t),sb(e,t),t[I$1].type===1&&t[$$1].destroy();let r=t[Sn$2];if(r!==null&&et$1(t[me$2])){r!==t[me$2]&&Kd(r,t);let o=t[Rt$1];o!==null&&o.detachView(e);}nd(t);}finally{C$1(n);}}function sb(e,t){let n=e.cleanup,r=t[$r];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[$r]=null);let o=t[Kt$1];if(o!==null){t[Kt$1]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[In$2];if(i!==null){t[In$2]=null;for(let s of i)s.destroy();}}function ab(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 dr)){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(F$3.LifecycleHookStart,a,c);try{c.call(a);}finally{V(F$3.LifecycleHookEnd,a,c);}}else {V(F$3.LifecycleHookStart,o,i);try{i.call(o);}finally{V(F$3.LifecycleHookEnd,o,i);}}}}}function ay(e,t,n){return cb(e,t.parent,n)}function cb(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ht$2];if(nn$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===yt$1.None||o===yt$1.Emulated)return null}return nt$2(r,n)}function cy(e,t,n){return lb(e,t,n)}function ub(e,t,n){return e.type&40?nt$2(e,n):null}var lb=ub;function Jd(e,t,n,r){let o=ay(e,r,t),i=t[$$1],s=r.parent||t[Te$2],a=cy(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)$g(i,o,n[c],a,false);else $g(i,o,n,a,false);}function ci$2(e,t){if(t!==null){let n=t.type;if(n&3)return nt$2(t,e);if(n&4)return pd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ci$2(e,r);{let o=e[t.index];return et$1(o)?pd(-1,o):tt$1(o)}}else {if(n&128)return ci$2(e,t.next);if(n&32)return qd(t,e)()||tt$1(e[t.index]);{let r=uy(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Jt(e[_e$2]);return ci$2(o,r)}else return ci$2(e,t.next)}}}return null}function uy(e,t){if(t!==null){let r=e[_e$2][Te$2],o=t.projection;return r.projection[o]}return null}function pd(e,t){let n=te$2+e+1;if(n<t.length){let r=t[n],o=r[I$1].firstChild;if(o!==null)return ci$2(r,o)}return t[Tn$2]}function Xd(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Nt$2];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&to(tt$1(c),r),n.flags|=2),!qa(n))if(u&8)Xd(e,t,n.child,r,o,i,false),Jr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=qd(n,r),d;for(;d=l();)Jr$1(t,e,a,o,d,n,i,r);Jr$1(t,e,a,o,c,n,i,r);}else u&16?ly(e,t,r,n,o,i):Jr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function tc(e,t,n,r,o,i){Xd(n,r,e.firstChild,t,o,i,false);}function db(e,t,n){let r=t[$$1],o=ay(e,n,t),i=n.parent||t[Te$2],s=cy(i,n,t);ly(r,0,t,n,o,s);}function ly(e,t,n,r,o,i){let s=n[_e$2],c=s[Te$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Jr$1(t,e,n[Nt$2],o,l,r,i,n);}else {let u=c,l=s[me$2];xm(r)&&(u.flags|=128),Xd(e,t,u,l,o,i,true);}}function fb(e,t,n,r,o,i,s){let a=r[Tn$2],c=tt$1(r);a!==c&&Jr$1(t,e,n,i,a,o,s);for(let u=te$2;u<r.length;u++){let l=r[u];tc(l[I$1],l,e,t,i,a);}}function hb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Lt$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Lt$1.Important),e.setStyle(n,r,o,i));}}function ef(e,t,n,r,o,i,s,a,c,u,l){let d=X+r,f=d+o,h=pb(d,f),g=typeof u=="function"?u():u;return h[I$1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:g,incompleteFirstPass:false,ssrId:l}}function pb(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ue);return n}function gb(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ef(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function tf(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ht$2]=o,d[N$2]=r|4|128|8|64|1024,(u!==null||e&&e[N$2]&2048)&&(d[N$2]|=2048),wl(d),d[me$2]=d[bn$2]=e,d[ie]=n,d[pt$2]=s||e&&e[pt$2],d[$$1]=a||e&&e[$$1],d[Nt$2]=c||e&&e[Nt$2]||null,d[Te$2]=i,d[At$2]=KI(),d[rr]=l,d[gl]=u,d[_e$2]=t.type==2?e[_e$2]:d,d}function mb(e,t,n){let r=nt$2(t,e),o=gb(n),i=e[pt$2].rendererFactory,s=nf(e,tf(e,o,null,dy(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function dy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function fy(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 nf(e,t){return e[zr]?e[pl][Xe]=t:e[zr]=t,e[pl]=t,t}function yb(e=1){hy(G$3(),w(),ze$2()+e);}function hy(e,t,n,r){if((t[N$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ia(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ca(t,i,0,n);}Mn$2(n);}var nc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(nc||{});function fr(e,t,n,r){let o=C$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&nc.SignalBased)!==0&&(c=t[i][re$2]),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):gm(t,c,i,r);}finally{C$1(o);}}function py(e,t,n,r,o){let i=ze$2(),s=r&2;try{Mn$2(-1),s&&t.length>X&&hy(e,t,X,!1);let a=s?F$3.TemplateUpdateStart:F$3.TemplateCreateStart;V(a,o,n),n(r,o);}finally{Mn$2(i);let a=s?F$3.TemplateUpdateEnd:F$3.TemplateCreateEnd;V(a,o,n);}}function rc(e,t,n){Cb(e,t,n),(n.flags&64)===64&&bb(e,t,n);}function wi$1(e,t,n=nt$2){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 vb(e,t,n,r){let i=r.get(Bm,Um)||n===yt$1.ShadowDom||n===yt$1.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function wb(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function gy(e,t,n,r,o,i){let s=t[I$1];if(af(e,s,t,n,r)){nn$1(e)&&Ib(t,e.index);return}e.type&3&&(n=wb(n)),my(e,t,n,r,o,i);}function my(e,t,n,r,o,i){if(e.type&3){let s=nt$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Ib(e,t){let n=rt$1(t,e);n[N$2]&16||(n[N$2]|=64);}function Cb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;nn$1(n)&&mb(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ra(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=li$1(t,e,s,n);if(to(c,t),i!==null&&Mb(t,s-r,c,a,n,i),Ot$2(a)){let u=rt$1(n.index,t);u[ie]=li$1(t,e,s,n);}}}function bb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=hg();try{Mn$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ua(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Sb(c,u);}}finally{Mn$2(-1),ua(s);}}function Sb(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function rf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ry(t,i.selectors,false)&&(r??=[],Ot$2(i)?r.unshift(i):r.push(i));}return r}function Tb(e,t,n,r,o,i){let s=nt$2(e,t);_b(t[$$1],s,i,e.value,n,r,o);}function _b(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?oe$1(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function Mb(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];fr(r,n,c,u);}}function of(e,t,n,r,o){let i=X+n,s=t[I$1],a=o(s,t,e,r,n);t[i]=a,qr(e,true);let c=e.type===2;return c?(Xm(t[$$1],a,e),(og()===0||Gr(e))&&to(a,t),ig()):to(a,t),ha()&&(!c||!qa(e))&&Jd(s,t,a,e),e}function sf(e){let t=e;return Rl()?Al():(t=t.parent,qr(t,false)),t}function Nb(e,t){let n=e[Nt$2];if(!n)return;let r;try{r=n.get(ke$2,null);}catch(o){r=null;}r?.(t);}function af(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];fr(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];fr(l,u,r,o),a=true;}return a}function Rb(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 f=0;f<d.length;f+=2){let h=d[f];if(h>=a&&h<=c){let g=t.data[h],v=d[f+1];fr(g,n[h],v,i),u=true;}else if(h>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(fr(r,n[s],o,i),u=true),u}function Ab(e,t){let n=rt$1(t,e),r=n[I$1];xb(r,n);let o=n[ht$2];o!==null&&n[rr]===null&&(n[rr]=Hm(o,n[Nt$2])),V(F$3.ComponentStart);try{cf(r,n,n[ie]);}finally{V(F$3.ComponentEnd,n[ie]);}}function xb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function cf(e,t,n){da(t);try{let r=e.viewQuery;r!==null&&od(1,r,n);let o=e.template;o!==null&&py(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Rt$1]?.finishViewCreation(e),e.staticContentQueries&&Vm(e,t),e.staticViewQueries&&od(2,e.viewQuery,n);let i=e.components;i!==null&&Ob(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[N$2]&=-5,fa();}}function Ob(e,t){for(let n=0;n<t.length;n++)Ab(e,t[n]);}function Ii$2(e,t,n,r){let o=C$1(null);try{let i=t.tView,a=e[N$2]&4096?4096:16,c=tf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Sn$2]=u;let l=e[Rt$1];return l!==null&&(c[Rt$1]=l.createEmbeddedView(i)),cf(i,c,n),c}finally{C$1(o);}}function no(e,t){return !t||t.firstChild===null||xm(e)}function fi$2(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(tt$1(i)),et$1(i)&&yy(i,r);let s=n.type;if(s&8)fi$2(e,t,n.child,r);else if(s&32){let a=qd(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=uy(t,n);if(Array.isArray(a))r.push(...a);else {let c=Jt(t[_e$2]);fi$2(c[I$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function yy(e,t){for(let n=te$2;n<e.length;n++){let r=e[n],o=r[I$1].firstChild;o!==null&&fi$2(r[I$1],r,o,t);}e[Tn$2]!==e[ht$2]&&t.push(e[Tn$2]);}function vy(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0;}}var Dy=[];function kb(e){return e[Ve$3]??Pb(e)}function Pb(e){let t=Dy.pop()??Object.create(Fb);return t.lView=e,t}function Lb(e){e.lView[Ve$3]!==e&&(e.lView=null,Dy.push(e));}var Fb=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{cr(e.lView);},consumerOnSignalRead(){this.lView[Ve$3]=this;}});function jb(e){let t=e[Ve$3]??Object.create(Ub);return t.lView=e,t}var Ub=x$2(w$1({},yn$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Jt(e.lView);for(;t&&!Ey(t[I$1]);)t=Jt(t);t&&Il(t);},consumerOnSignalRead(){this.lView[Ve$3]=this;}});function Ey(e){return e.type!==2}function wy(e){if(e[In$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[In$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[N$2]&8192);}}var Bb=100;function Iy(e,t=0){let r=e[pt$2].rendererFactory;r.begin?.();try{Hb(e,t);}finally{r.end?.();}}function Hb(e,t){let n=xl();try{Ho(!0),gd(e,t);let r=0;for(;Qo(e);){if(r===Bb)throw new y$3(103,!1);r++,gd(e,1);}}finally{Ho(n);}}function Vb(e,t,n,r){if(ar(t))return;let o=t[N$2],i=false,s=false;da(t);let a=true,c=null,u=null;(Ey(e)?(u=kb(t),c=Qt$1(u)):js()===null?(a=false,u=jb(t),c=Qt$1(u)):t[Ve$3]&&(Dn$2(t[Ve$3]),t[Ve$3]=null));try{wl(t),lg(e.bindingStartIndex),n!==null&&py(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Ia(t,h,null);}else {let h=e.preOrderHooks;h!==null&&Ca(t,h,0,null),Hl(t,0);}if(s||$b(t),wy(t),Cy(t,0),e.contentQueries!==null&&Vm(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Ia(t,h);}else {let h=e.contentHooks;h!==null&&Ca(t,h,1),Hl(t,1);}Gb(e,t);let d=e.components;d!==null&&Sy(t,d,0);let f=e.viewQuery;if(f!==null&&od(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Ia(t,h);}else {let h=e.viewHooks;h!==null&&Ca(t,h,2),Hl(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[na]){for(let h of t[na])h();t[na]=null;}i||(vy(t),t[N$2]&=-73);}catch(l){throw cr(t),l}finally{u!==null&&(vn$2(u,c),a&&Lb(u)),fa();}}function Cy(e,t){for(let n=km(e);n!==null;n=Pm(n))for(let r=te$2;r<n.length;r++){let o=n[r];by(o,t);}}function $b(e){for(let t=km(e);t!==null;t=Pm(t)){if(!(t[N$2]&2))continue;let n=t[sr];for(let r=0;r<n.length;r++){let o=n[r];Il(o);}}}function zb(e,t,n){V(F$3.ComponentStart);let r=rt$1(t,e);try{by(r,n);}finally{V(F$3.ComponentEnd,r[ie]);}}function by(e,t){ia(e)&&gd(e,t);}function gd(e,t){let r=e[I$1],o=e[N$2],i=e[Ve$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Lr(i)),s||=false,i&&(i.dirty=false),e[N$2]&=-9217,s)Vb(r,e,r.template,e[ie]);else if(o&8192){let a=C$1(null);try{wy(e),Cy(e,1);let c=r.components;c!==null&&Sy(e,c,1),vy(e);}finally{C$1(a);}}}function Sy(e,t,n){for(let r=0;r<t.length;r++)zb(e,t[r],n);}function Gb(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)Mn$2(~o);else {let i=o,s=n[++r],a=n[++r];fg(s,i);let c=t[i];V(F$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{V(F$3.HostBindingsUpdateEnd,c);}}}}finally{Mn$2(-1);}}function uf(e,t){let n=xl()?64:1088;for(e[pt$2].changeDetectionScheduler?.notify(t);e;){e[N$2]|=n;let r=Jt(e);if(Wr(e)&&!r)return e;e=r;}return null}function Ty(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function _y(e,t){let n=te$2+t;if(n<e.length)return e[n]}function Ci$2(e,t,n,r=true){let o=t[I$1];if(Wb(o,t,e,n),r){let s=pd(n,e),a=t[$$1],c=a.parentNode(e[Tn$2]);c!==null&&ob(o,e[Te$2],a,t,c,s);}let i=t[rr];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function My(e,t){let n=hi$2(e,t);return n!==void 0&&ec(n[I$1],n),n}function hi$2(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n];if(r){let o=r[Sn$2];o!==null&&o!==e&&Kd(o,r),t>0&&(e[n-1][Xe]=r[Xe]);let i=Wo(e,te$2+t);rb(r[I$1],r);let s=i[Rt$1];s!==null&&s.detachView(i[I$1]),r[me$2]=null,r[Xe]=null,r[N$2]&=-129;}return r}function Wb(e,t,n,r){let o=te$2+r,i=n.length;r>0&&(n[o-1][Xe]=t),r<i-te$2?(t[Xe]=n[o],ul(n,te$2+r,t)):(n.push(t),t[Xe]=null),t[me$2]=n;let s=t[Sn$2];s!==null&&n!==s&&Ny(s,t);let a=t[Rt$1];a!==null&&a.insertView(e),sa(t),t[N$2]|=128;}function Ny(e,t){let n=e[sr],r=t[me$2];if(tn$1(r))e[N$2]|=2;else {let o=r[me$2][_e$2];t[_e$2]!==o&&(e[N$2]|=2);}n===null?e[sr]=[t]:n.push(t);}var An$2=class An{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[I$1];return fi$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[ie]}set context(t){this._lView[ie]=t;}get destroyed(){return ar(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[me$2];if(et$1(t)){let n=t[Yo],r=n?n.indexOf(this):-1;r>-1&&(hi$2(t,r),Wo(n,r));}this._attachedToViewContainer=false;}ec(this._lView[I$1],this._lView);}onDestroy(t){aa(this._lView,t);}markForCheck(){uf(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[N$2]&=-129;}reattach(){sa(this._lView),this._lView[N$2]|=128;}detectChanges(){this._lView[N$2]|=1024,Iy(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y$3(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Wr(this._lView),n=this._lView[Sn$2];n!==null&&!t&&Kd(n,this._lView),sy(this._lView[I$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new y$3(902,false);this._appRef=t;let n=Wr(this._lView),r=this._lView[Sn$2];r!==null&&!n&&Ny(r,this._lView),sa(this._lView);}};var ro=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qb;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$2(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new An$2(i)}}return e})();function qb(){return oc(fe$2(),w())}function oc(e,t){return e.type&4?new ro(t,e,so(e,t)):null}function ao(e,t,n,r,o){let i=e.data[t];if(i===null)i=Zb(e,t,n,r,o),dg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=cg();i.injectorIndex=s===null?-1:s.injectorIndex;}return qr(i,true),i}function Zb(e,t,n,r,o){let i=Nl(),s=Rl(),a=s?i:i&&i.parent,c=e.data[t]=Qb(e,a,n,t,r,o);return Yb(e,c,i,s),c}function Yb(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 Qb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tl()&&(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:Pl(),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 Kb(e){let t=e[ml]??[],r=e[me$2][$$1],o=[];for(let i of t)i.data[jm]!==void 0?o.push(i):Jb(i,r);e[ml]=o;}function Jb(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Fm];for(;n<o;){let i=r.nextSibling;Jm(t,r,false),r=i,n++;}}}var Xb=()=>null,eS=()=>null;function Oa(e,t){return Xb()}function Ry(e,t,n){return eS()}var Ay=class{},hr=class{},co=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>tS()}return e})();function tS(){let e=w(),t=fe$2(),n=rt$1(t.index,e);return (tn$1(n)?n:e)[$$1]}var xy=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>null})}return e})();function Oy(e){return e.debugInfo?.className||e.type.name||null}var Sa={},ka$1=class ka{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Sa,r);return o!==Sa||n===Sa?o:this.parentInjector.get(t,n,r)}};function lf(e,t,n){return e[t]=n}function nS(e,t){return e[t]}function Ge(e,t,n){if(n===ue)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function pi$2(e,t,n,r){let o=Ge(e,t,n);return Ge(e,t+1,r)||o}function df(e,t,n,r,o,i){let s=pi$2(e,t,n,r);return pi$2(e,t+2,o,i)||s}function lr(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&XI(o,i);let s=nn$1(e)?rt$1(e.index,t):t;uf(s,5);let a=t[ie],c=Yg(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Yg(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Yg(e,t,n,r){let o=C$1(null);try{return V(F$3.OutputStart,t,n),n(r)!==!1}catch(i){return Nb(e,i),false}finally{V(F$3.OutputEnd,t,n),C$1(o);}}function ff(e,t,n,r,o,i,s,a){let c=Gr(e),u=false,l=null;if(!r&&c&&(l=oS(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=nt$2(e,n),f=r?r(d):d;r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!rS(i)){let g=r?v=>r(tt$1(v[e.index])):e.index;ky(g,t,n,i,a,h,false);}}return u}function rS(e){return e.startsWith("animation")||e.startsWith("transition")}function oS(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[$r],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function ky(e,t,n,r,o,i,s){let a=t.firstCreatePass?bl(t):null,c=Cl(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function Qg(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 f=l[d];if(f>=s&&f<=a)c=true,Pa(e,t,f,l[d+1],r,o);else if(f>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Pa(e,t,i,r,r,o)),c}function Pa(e,t,n,r,o,i){let s=t[n],a=t[I$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);ky(e.index,a,t,o,i,d,true);}function iS(){sS();}function sS(){let e=w(),t=G$3(),n=fe$2();if(t.firstCreatePass&&uS(t,n),n.controlDirectiveIndex===-1)return;it$1("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new La(e,t,n));}function aS(){cS();}function cS(){let e=w(),t=G$3(),n=Yr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new La(e,t,n));}var La=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 nt$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Qg(this.tNode,this.lView,r,t,lr(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Qg(this.tNode,this.lView,r,n,lr(this.tNode,this.lView,t));}listenToDom(t,n){ff(this.tNode,this.tView,this.lView,void 0,this.lView[$$1],t,n,lr(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];fr(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];fr(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";Rb(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=Kg(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=Kg(i.directive);s!==null&&r.push(...s);}}}return n}};function Kg(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function uS(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}lS(e,t);}function lS(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(Jg(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Jg(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[f,h,g]=d;if(c>=h&&c<=g)return t.flags|=o,t.customControlIndex=f,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Jg(e,t){return dS(e,t)&&fS(e,t+"Change")}function dS(e,t){return t in e.inputs}function fS(e,t){return t in e.outputs}var md=Symbol("BINDING");var yr=new D$1("");function Fa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Zs(o,a);else if(i==2){let c=a,u=t[++s];r=Zs(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ae$2(e,t=0){let n=w();if(n===null)return b(e,t);let r=fe$2();return _m(r,n,Ee$3(e),t)}function bi$2(){let e="invalid";throw new Error(e)}function Py(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}gS(e,t,n,a,i,c,u);}i!==null&&r!==null&&hS(n,r,i);}function hS(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 y$3(-301,false);r.push(t[o],i);}}function pS(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function gS(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&Ot$2(h)&&(c=h,pS(e,n,f)),ed(Ra(n,t),e,h.type);}wS(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h);}let u=false,l=false,d=fy(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=eo(n.mergedAttrs,h.hostAttrs),yS(e,n,t,d,h),ES(d,h,o),s!==null&&s.has(h)){let[v,E]=s.get(h);n.directiveToIndex.set(h.type,[d,v+n.directiveStart,E+n.directiveStart]);}else (i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}mS(e,n,i);}function mS(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Xg(0,t,o,r),Xg(1,t,o,r),tm(t,r,false);else {let i=n.get(o);em(0,t,i,r),em(1,t,i,r),tm(t,r,true);}}}function Xg(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),Ly(t,i);}}function em(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),Ly(t,s);}}function Ly(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function tm(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Wd(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 yS(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=wn$2(o.type)),s=new dr(i,Ot$2(o),ae$2,null);e.blueprint[r]=s,n[r]=s,vS(e,t,r,fy(e,n,o.hostVars,ue),o);}function vS(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;DS(s)!=a&&s.push(a),s.push(n,r,i);}}function DS(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function ES(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ot$2(t)&&(n[""]=e);}}function wS(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function hf(e,t,n,r,o,i,s,a){let c=t[I$1],u=c.consts,l=$e$1(u,s),d=ao(c,e,n,r,l);return Py(c,t,d,$e$1(u,a),o),d.mergedAttrs=eo(d.mergedAttrs,d.attrs),d.attrs!==null&&Fa(d,d.attrs,false),d.mergedAttrs!==null&&Fa(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function pf(e,t){vm(e,t),yl(t)&&e.queries.elementEnd(t);}function IS(e,t,n,r,o,i){let s=t.consts,a=$e$1(s,o),c=ao(t,e,n,r,a);if(c.mergedAttrs=eo(c.mergedAttrs,c.attrs),i!=null){let u=$e$1(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Fa(c,c.attrs,false),c.mergedAttrs!==null&&Fa(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Fy=typeof ShadowRoot<"u",CS=typeof Document<"u";function bS(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&nc.SignalBased)!==0};return o&&(i.transform=o),i})}function SS(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function TS(e,t,n){let r=t instanceof ee$2?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ka$1(n,r):n}function _S(e){let t=e.get(hr,null);if(t===null)throw new y$3(407,false);let n=e.get(xy,null),r=e.get(dt$2,null),o=e.get(Ut$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function MS(e,t){let n=jy(e);return Qm(t,n,n==="svg"?vl:n==="math"?Jp:null)}function NS(e){if(e?.toLowerCase()==="script")throw new y$3(905,false)}function jy(e){return (e.selectors[0][0]||"div").toLowerCase()}var pr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=bS(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=SS(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=$C(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V(F$3.DynamicComponentStart);let a=C$1(null);try{let c=this.componentDef,u=TS(c,o||this.ngModule,t),l=_S(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Oy(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{C$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=RS(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?vb(u,o,a.encapsulation,n):MS(a,u);NS(l?.tagName);let d=n.get(yr,null),f=AS(l,()=>n.get(Q$3,null)??Ld());d&&d.addHost(f);let h=s?.some(nm)||i?.some(E=>typeof E!="function"&&E.bindings.some(nm)),g=tf(null,c,null,512|dy(a),null,null,t,u,n,null,Hm(l,n,true));d&&Fy&&f instanceof ShadowRoot&&aa(g,()=>{d.removeHost(f);}),g[X]=l,da(g);let v=null;try{let E=hf(X,g,2,"#host",()=>c.directiveRegistry,!0,0);Xm(u,l,E),to(l,g),rc(c,g,E),jd(c,E,g),pf(c,E),r!==void 0&&OS(E,this.ngContentSelectors,r),v=rt$1(E.index,g),g[ie]=v[ie],cf(c,g,null);}catch(E){throw v!==null&&nd(v),nd(g),E}finally{V(F$3.DynamicComponentEnd),fa();}return new ja(this.componentType,g,!!h)}};function RS(e,t,n,r){let o=e?["ng-version","22.0.8"]:zC(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[md].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 f of d.bindings){a+=f[md].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=sl(d);c.push(f);}return ef(0,null,xS(i,s),1,a,c,null,null,null,[o],null)}function AS(e,t){let n=e.getRootNode?.();return CS&&n instanceof Document?n.head:n&&Fy&&n instanceof ShadowRoot?n:t().head}function xS(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 nm(e){let t=e[md].kind;return t==="input"||t==="twoWay"}var ja=class extends Ay{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ra(n[I$1],X),this.location=so(this._tNode,n),this.instance=rt$1(this._tNode.index,n)[ie],this.hostView=this.changeDetectorRef=new An$2(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;af(r,o[I$1],o,t,n);this.previousInputValues.set(t,n);let s=rt$1(r.index,o);uf(s,1);}get injector(){return new Nn$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function OS(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 On$2=(()=>{class e{static __NG_ELEMENT_ID__=kS}return e})();function kS(){let e=fe$2();return Uy(e,w())}var yd=class e extends On$2{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return so(this._hostTNode,this._hostLView)}get injector(){return new Nn$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Od(this._hostTNode,this._hostLView);if(wm(t)){let n=Ma(t,this._hostLView),r=_a(t),o=n[I$1].data[r+8];return new Nn$2(o,n)}else return new Nn$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=rm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-te$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,no(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 pr(Xt$1(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let M=this.parentInjector.get(ee$2,null);M&&(i=M);}let f=Xt$1(l.componentType??{}),h=Oa(this._lContainer,f?.id??null),g=null,v=l.create(d,o,g,i,s,a);return this.insertImpl(v.hostView,c,no(this._hostTNode,h)),v}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(eg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[me$2],u=new e(c,c[Te$2],c[me$2]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Ci$2(s,o,i,r),t.attachToViewContainerRef(),ul(zl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=rm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=hi$2(this._lContainer,n);r&&(Wo(zl(this._lContainer),n),ec(r[I$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=hi$2(this._lContainer,n);return r&&Wo(zl(this._lContainer),n)!=null?new An$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function rm(e){return e[Yo]}function zl(e){return e[Yo]||(e[Yo]=[])}function Uy(e,t){let n,r=t[e.index];return et$1(r)?n=r:(n=Ty(r,t,null,e),t[e.index]=n,nf(t,n)),LS(n,t,e,r),new yd(n,e,t)}function PS(e,t){let n=e[$$1],r=n.createComment(""),o=nt$2(t,e),i=n.parentNode(o);return xa(n,i,r,n.nextSibling(o),false),r}var LS=US;function US(e,t,n,r){if(e[Tn$2])return;let o;n.type&8?o=tt$1(r):o=PS(t,n),e[Tn$2]=o;}var vd=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},Dd=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++)mf(t,n).matches!==null&&this.queries[n].setDirty();}},Ua=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=zS(t):this.predicate=t;}},Ed=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);}},wd=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,BS(n,i)),this.matchTNodeWithReadOption(t,n,ba(n,t,i,false,false));}else r===ro?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ba(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ft$1||o===On$2||o===ro&&n.type&4)this.addMatch(n.index,-2);else {let i=ba(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 BS(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 HS(e,t){return e.type&11?so(e,t):e.type&4?oc(e,t):null}function VS(e,t,n,r){return n===-1?HS(t,e):n===-2?$S(e,t,r):li$1(e,e[I$1],n,t)}function $S(e,t,n){if(n===Ft$1)return so(t,e);if(n===ro)return oc(t,e);if(n===On$2)return Uy(t,e)}function By(e,t,n,r){let o=t[Rt$1].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(VS(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function Id(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=By(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=te$2;d<l.length;d++){let f=l[d];f[Sn$2]===f[me$2]&&Id(f[I$1],f,u,r);}if(l[sr]!==null){let d=l[sr];for(let f=0;f<d.length;f++){let h=d[f];Id(h[I$1],h,u,r);}}}}}return r}function gf(e,t){return e[Rt$1].queries[t].queryList}function Hy(e,t,n){let r=new Aa((n&4)===4);return rg(e,t,r,r.destroy),(t[Rt$1]??=new Dd).queries.push(new vd(r))-1}function Vy(e,t,n){let r=G$3();return r.firstCreatePass&&(zy(r,new Ua(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Hy(r,w(),t)}function $y(e,t,n,r){let o=G$3();if(o.firstCreatePass){let i=fe$2();zy(o,new Ua(t,n,r),i.index),GS(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Hy(o,w(),n)}function zS(e){return e.split(",").map(t=>t.trim())}function zy(e,t,n){e.queries===null&&(e.queries=new Ed),e.queries.track(new wd(t,n));}function GS(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 mf(e,t){return e.queries.getByIndex(t)}function Gy(e,t){let n=e[I$1],r=mf(n,t);return r.crossesNgTemplate?Id(n,e,t,[]):By(n,e,r,t)}function yf(e,t,n){let r,o=Fo(()=>{r._dirtyCounter();let i=WS(r,e);if(t&&i===void 0)throw new y$3(-951,false);return i});return r=o[re$2],r._dirtyCounter=se(0),r._flatValue=void 0,o}function vf(e){return yf(true,false)}function Df(e){return yf(true,true)}function Wy(e){return yf(false,false)}function qy(e,t){let n=e[re$2];n._lView=w(),n._queryIndex=t,n._queryList=gf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function WS(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[N$2]&4)return t?void 0:Se$4;let o=gf(n,r),i=Gy(n,r);return o.reset(i,Am),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function vr(e){return !!e&&typeof e.then=="function"}function ic(e){return !!e&&typeof e.subscribe=="function"}var gr=class{},sc=class{};var Ba=class extends gr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Lp(t);this._bootstrapComponents=xC(i.bootstrap),this._r3Injector=Ll(t,n,[{provide:gr,useValue:this},...r],zo(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);}},Ha=class extends sc{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Ba(this.moduleType,t,[])}};var gi$2=class gi extends gr{injector;instance=null;constructor(t){super();let n=new er([...t.providers,{provide:gr,useValue:this}],t.parent||Vr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function uo(e,t,n=null){return new gi$2({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var qS=(()=>{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=dl(false,n.type),o=r.length>0?uo([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=R$2({token:e,providedIn:"environment",factory:()=>new e(b(ee$2))})}return e})();function Ef(e){return yi$2(()=>{let t=Zy(e),n=x$2(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==kd.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(qS).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||yt$1.Emulated,styles:e.styles||Se$4,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&it$1("NgStandalone"),Yy(n);let r=e.dependencies;return n.directiveDefs=om(r,ZS),n.pipeDefs=om(r,Fp),n.id=KS(n),n})}function ZS(e){return Xt$1(e)||sl(e)}function lo(e){return yi$2(()=>({type:e.type,bootstrap:e.bootstrap||Se$4,declarations:e.declarations||Se$4,imports:e.imports||Se$4,exports:e.exports||Se$4,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function YS(e,t){if(e==null)return Cn$2;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=nc.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function QS(e){if(e==null)return Cn$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kn$2(e){return yi$2(()=>{let t=Zy(e);return Yy(t),t})}function Dr(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 Zy(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||Cn$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||Se$4,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:YS(e.inputs,t),outputs:QS(e.outputs),debugInfo:null}}function Yy(e){e.features?.forEach(t=>t(e));}function om(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 KS(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 wf=new D$1("");function ac(e){return ft$2([{provide:wf,multi:true,useValue:e}])}var If=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=p(wf,{optional:true})??[];injector=p(we$2);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ye$3(this.injector,o);if(vr(i))n.push(i);else if(ic(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=Z$2({token:e,factory:e.\u0275fac})}return e})();function JS(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function XS(e){return Object.getPrototypeOf(e.prototype).constructor}function Qy(e){let t=XS(e.type),n=true,r=[e];for(;t;){let o;if(Ot$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new y$3(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Gl(e.inputs),s.declaredInputs=Gl(e.declaredInputs),s.outputs=Gl(e.outputs);let a=o.hostBindings;a&&oT(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&nT(e,c),u&&rT(e,u),eT(e,o),Pp(e.outputs,o.outputs),Ot$2(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===Qy&&(n=false);}}t=Object.getPrototypeOf(t);}tT(r);}function eT(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 tT(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=eo(o.hostAttrs,n=eo(n,o.hostAttrs));}}function Gl(e){return e===Cn$2?{}:e===Se$4?[]:e}function nT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function rT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function oT(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Ky(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=eo(e.mergedAttrs,e.attrs);let l=e.tView=ef(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),qr(e,false);let c=sT(n,t);ha()&&Jd(n,t,c,e),to(c,t);let u=Ty(c,t,c,e);t[r+X]=u,nf(t,u);}function iT(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;return t.firstCreatePass?(f=ao(t,d,4,s||null,a||null),Py(t,e,f,$e$1(t.consts,u),rf),vm(t,f)):f=t.data[d],Ky(f,e,t,n,r,o,i,c),Gr(f)&&rc(t,e,f),u!=null&&wi$1(e,f,l),f}function oo(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;if(t.firstCreatePass){if(f=ao(t,d,4,s||null,a||null),u!=null){let h=$e$1(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1);}}else f=t.data[d];return Ky(f,e,t,n,r,o,i,c),u!=null&&wi$1(e,f,l),f}function Jy(e,t,n,r,o,i,s,a){let c=w(),u=G$3(),l=$e$1(u.consts,i);return iT(c,u,e,t,n,r,o,l,void 0,s,a),Jy}function Xy(e,t,n,r,o,i,s,a){let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,void 0,s,a),Xy}var sT=aT;function aT(e,t,n,r){return Xo(true),t[$$1].createComment("")}var cc=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Cf=new D$1("");var fo=new D$1("");function ev(){Pu(()=>{let e="";throw new y$3(600,e)});}var cT=10;var sn$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=p(ke$2);afterRenderManager=p(Ka);zonelessEnabled=p(Kr);rootEffectScheduler=p(ma);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ne$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(kt$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(j$4(n=>!n))}constructor(){p(Ut$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=p(ee$2);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=we$2.NULL){return this._injector.get(J$3).run(()=>{if(V(F$3.BootstrapComponentStart),!this._injector.get(If).done){let M="";throw new y$3(405,M)}let a=Xt$1(n),c=this._injector.get(gr),u=new pr(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:f}=uT(r),h=l||u.selector,g=u.create(o,[],h,c.injector,d,f),v=g.location.nativeElement,E=g.injector.get(Cf,null);return E?.registerApplication(v),g.onDestroy(()=>{this.detachView(g.hostView),ui$2(this.components,g),E?.unregisterApplication(v);}),this._loadComponent(g),V(F$3.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V(F$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Qa.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V(F$3.ChangeDetectionEnd),new y$3(101,false);let n=C$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,C$1(n),this.afterTick.next(),V(F$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(hr,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<cT;){V(F$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V(F$3.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&&!Qo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Iy(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})=>Qo(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;ui$2(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(fo,[]).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),()=>ui$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y$3(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=Z$2({token:e,factory:e.\u0275fac})}return e})();function uT(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function ui$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function uc(e,t,n,r){let o=w(),i=_n$1();if(Ge(o,i,t)){G$3();let a=Yr();Tb(a,o,e,t,n,r);}return uc}function lT(){return w()[_e$2][ie]}var Cd=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 Wl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function dT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){C$1(r);let u=t.length-1;for(C$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Wl(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],v=Wl(a,h,u,g,n);if(v!==0){v<0&&e.updateValue(a,g),a--,u--;continue}let E=n(s,l),M=n(a,h),z=n(s,d);if(Object.is(z,M)){let de=n(u,g);Object.is(de,E)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Va,i??=sm(e,s,a,n),bd(e,o,s,z))e.updateValue(s,d),s++,a++;else if(i.has(z))o.set(E,e.detach(s)),a--;else {let de=e.create(s,t[s]);e.attach(s,de),s++,a++;}}for(;s<=u;)im(e,o,n,s,t[s]),s++;}else if(t!=null){C$1(r);let u=t[Symbol.iterator]();C$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=Wl(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else {o??=new Va,i??=sm(e,s,a,n);let g=n(s,f);if(bd(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else {let v=n(s,d);o.set(v,e.detach(s)),a--;}}}for(;!l.done;)im(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 bd(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function im(e,t,n,r,o){if(bd(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function sm(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 Va=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 fT(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,256,s,a),bf}function bf(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$3(),l=$e$1(u.consts,i);return oo(c,u,e,t,n,r,o,l,512,s,a),bf}function hT(e,t){it$1("NgControlFlow");let n=w(),r=_n$1(),o=n[r]!==ue?n[r]:-1,i=o!==-1?$a(n,X+o):void 0,s=0;if(Ge(n,r,e)){let a=C$1(null);try{if(i!==void 0&&My(i,s),e!==-1){let c=X+e,u=$a(n,c),l=Md(n[I$1],c),d=Ry(u,l,n),f=Ii$2(n,l,t,{dehydratedView:d});Ci$2(u,f,s,no(l,d));}}finally{C$1(a);}}else if(i!==void 0){let a=_y(i,s);a!==void 0&&(a[ie]=t);}}var Sd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-te$2}};function pT(e){return e}function gT(e,t){return t}var Td=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function mT(e,t,n,r,o,i,s,a,c,u,l,d,f){it$1("NgControlFlow");let h=w(),g=G$3(),v=c!==void 0,E=w(),M=a?s.bind(E[_e$2][ie]):s,z=new Td(v,M);E[X+e]=z,oo(h,g,e+1,t,n,r,o,$e$1(g.consts,i),256),v&&oo(h,g,e+2,c,u,l,d,$e$1(g.consts,f),512);}var _d=class extends Cd{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-te$2}at(t){return this.getLView(t)[ie].$implicit}attach(t,n){let r=n[rr];this.needsIndexUpdate||=t!==this.length,Ci$2(this.lContainer,n,t,no(this.templateTNode,r)),vT(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,DT(this.lContainer,t),ET(this.lContainer,t)}create(t,n){let r=Oa(this.lContainer,this.templateTNode.tView.ssrId);return Ii$2(this.hostLView,this.templateTNode,new Sd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ec(t[I$1],t);}updateValue(t,n){this.getLView(t)[ie].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ie].$index=t;}getLView(t){return wT(this.lContainer,t)}};function yT(e){let t=C$1(null),n=ze$2();try{let r=w(),o=r[I$1],i=r[n],s=n+1,a=$a(r,s);if(i.liveCollection===void 0){let u=Md(o,s);i.liveCollection=new _d(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(dT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=_n$1(),l=c.length===0;if(Ge(r,u,l)){let d=n+2,f=$a(r,d);if(l){let h=Md(o,d),g=Ry(f,h,r),v=Ii$2(r,h,void 0,{dehydratedView:g});Ci$2(f,v,0,no(h,g));}else o.firstUpdatePass&&Kb(f),My(f,0);}}}finally{C$1(t);}}function $a(e,t){return e[t]}function vT(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n],o=r?r[xt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Nt$2];KC(i,o),Rn$2.delete(r[At$2]),o.detachedLeaveAnimationFns=void 0;}}function DT(e,t){if(e.length<=te$2)return;let n=te$2+t,r=e[n],o=r?r[xt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function ET(e,t){return hi$2(e,t)}function wT(e,t){return _y(e,t)}function Md(e,t){return ra(e,t)}function tv(e,t,n){let r=w(),o=_n$1();if(Ge(r,o,t)){G$3();let s=Yr();gy(s,r,e,t,r[$$1],n);}return tv}function Nd(e,t,n,r,o){af(t,e,n,o?"class":"style",r);}function za(e,t,n,r){let o=w(),i=o[I$1],s=e+X,a=i.firstCreatePass?hf(s,o,2,t,rf,ca(),n,r):i.data[s];if(nn$1(a)){let c=o[pt$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Oy(u),()=>(am(e,t,o,a,r),za))}}return am(e,t,o,a,r),za}function am(e,t,n,r,o){if(of(r,n,e,t,rv),Gr(r)){let i=n[I$1];rc(i,n,r),jd(i,r,n);}o!=null&&wi$1(n,r);}function Sf(){let e=G$3(),t=fe$2(),n=sf(t);return e.firstCreatePass&&pf(e,n),_l(n)&&Ml(),Sl(),n.classesWithoutHost!=null&&PI(n)&&Nd(e,n,w(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&LI(n)&&Nd(e,n,w(),n.stylesWithoutHost,false),Sf}function lc(e,t,n,r){return za(e,t,n,r),Sf(),lc}function Tf(e,t,n,r){let o=w(),i=o[I$1],s=e+X,a=i.firstCreatePass?IS(s,i,2,t,n,r):i.data[s];return of(a,o,e,t,rv),r!=null&&wi$1(o,a),Tf}function _f(){let e=fe$2(),t=sf(e);return _l(t)&&Ml(),Sl(),_f}function nv(e,t,n,r){return Tf(e,t,n,r),_f(),nv}var rv=(e,t,n,r,o)=>(Xo(true),Qm(t[$$1],r,Pl()));function Mf(e,t,n){let r=w(),o=r[I$1],i=e+X,s=o.firstCreatePass?hf(i,r,8,"ng-container",rf,ca(),t,n):o.data[i];if(of(s,r,e,"ng-container",IT),Gr(s)){let a=r[I$1];rc(a,r,s),jd(a,s,r);}return n!=null&&wi$1(r,s),Mf}function Nf(){let e=G$3(),t=fe$2(),n=sf(t);return e.firstCreatePass&&pf(e,n),Nf}function ov(e,t,n){return Mf(e,t,n),Nf(),ov}var IT=(e,t,n,r,o)=>(Xo(true),TC(t[$$1],""));function CT(){return w()}function iv(e,t,n){let r=w(),o=_n$1();if(Ge(r,o,t)){G$3();let s=Yr();my(s,r,e,t,r[$$1],n);}return iv}var si$2=void 0;function bT(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var ST=["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"]],si$2,[["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"]],si$2,[["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}",si$2,si$2,si$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",bT],ql=Object.create(null);function Fe$3(e){let t=TT(e),n=cm(t);if(n)return n;let r=t.split("-")[0];if(n=cm(r),n)return n;if(r==="en")return ST;throw new y$3(701,false)}function cm(e){if(!(e in ql)){let t=Je$1.ng&&Je$1.ng.common&&Je$1.ng.common.locales&&Je$1.ng.common.locales[e];return t!==void 0&&(ql[e]=t),t}return ql[e]}var le$2={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function TT(e){return e.toLowerCase().replace(/_/g,"-")}var Si$2="en-US";function sv(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function dc(e,t,n){let r=w(),o=G$3(),i=fe$2();return cv(o,r,r[$$1],i,e,t,n),dc}function av(e,t,n){let r=w(),o=G$3(),i=fe$2();return (i.type&3||n)&&ff(i,o,r,n,r[$$1],e,t,lr(i,r,t)),av}function cv(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=lr(r,t,i),ff(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 f=l[d],h=l[d+1];c??=lr(r,t,i),Pa(r,t,f,h,o,c);}if(u&&u.length)for(let d of u)c??=lr(r,t,i),Pa(r,t,d,o,o,c);}}function MT(e=1){return vg(e)}function NT(e,t){let n=null,r=jC(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ry(e,i,true):HC(r,i))return o}return n}function RT(e){let t=w()[_e$2][Te$2];if(!t.projection){let n=e?e.length:1,r=t.projection=$p(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?NT(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function AT(e,t=0,n,r,o,i){let s=w(),a=G$3(),c=null;let u=ao(a,X+e,16,null,null);u.projection===null&&(u.projection=t),Al();let d=!s[rr]||Tl();s[_e$2][Te$2].projection[u.projection]===null&&c!==null?xT(s,a,c):d&&!qa(u)&&db(a,s,u);}function xT(e,t,n){let r=X+n,o=t.data[r],i=e[r],s=Oa(i,o.tView.ssrId),a=Ii$2(e,o,void 0,{dehydratedView:s});Ci$2(i,a,0,no(o,s));}function fc(e,t,n,r){return $y(e,t,n,r),fc}function uv(e,t,n){return Vy(e,t,n),uv}function Rf(e){let t=w(),n=G$3(),r=la();Jo(r+1);let o=mf(n,r);if(e.dirty&&Xp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Gy(t,r);e.reset(i,Am),e.notifyOnChanges();}return true}return false}function Af(){return gf(w(),la())}function lv(e,t,n,r,o){return qy(t,$y(e,n,r,o)),lv}function dv(e,t,n,r){return qy(e,Vy(t,n,r)),dv}function OT(e=1){Jo(la()+e);}function kT(e){let t=ug();return oa(t,X+e)}function wa(e,t){return e<<17|t<<2}function mr(e){return e>>17&32767}function PT(e){return (e&2)==2}function LT(e,t){return e&131071|t<<17}function Rd(e){return e|2}function io(e){return (e&131068)>>2}function Zl(e,t){return e&-131069|t<<2}function FT(e){return (e&1)===1}function Ad(e){return e|1}function jT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mr(s),c=io(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Hr(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let f=mr(e[a+1]);e[r+1]=wa(f,a),f!==0&&(e[f+1]=Zl(e[f+1],r)),e[a+1]=LT(e[a+1],r);}else e[r+1]=wa(a,0),a!==0&&(e[a+1]=Zl(e[a+1],r)),a=r;else e[r+1]=wa(c,0),a===0?a=r:e[c+1]=Zl(e[c+1],r),c=r;u&&(e[r+1]=Rd(e[r+1])),um(e,l,r,true),um(e,l,r,false),UT(t,l,e,r,i),s=wa(a,c),i?t.classBindings=s:t.styleBindings=s;}function UT(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Hr(i,t)>=0&&(n[r+1]=Ad(n[r+1]));}function um(e,t,n,r){let o=e[n+1],i=t===null,s=r?mr(o):io(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];BT(c,t)&&(a=true,e[s+1]=r?Ad(u):Rd(u)),s=r?mr(u):io(u);}a&&(e[n+1]=r?Rd(o):Ad(o));}function BT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Hr(e,t)>=0:false}var mt$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HT(e){return e.substring(mt$2.key,mt$2.keyEnd)}function VT(e){return $T(e),fv(e,hv(e,0,mt$2.textEnd))}function fv(e,t){let n=mt$2.textEnd;return n===t?-1:(t=mt$2.keyEnd=zT(e,mt$2.key=t,n),hv(e,t,n))}function $T(e){mt$2.key=0,mt$2.keyEnd=0,mt$2.value=0,mt$2.valueEnd=0,mt$2.textEnd=e.length;}function hv(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function zT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function pv(e,t,n){return mv(e,t,n,false),pv}function gv(e,t){return mv(e,t,null,true),gv}function GT(e){qT(XT,WT,e,true);}function WT(e,t){for(let n=VT(t);n>=0;n=fv(t,n))ea(e,HT(t),true);}function mv(e,t,n,r){let o=w(),i=G$3(),s=ur(2);if(i.firstUpdatePass&&vv(i,e,s,r),t!==ue&&Ge(o,s,t)){let a=i.data[ze$2()];Dv(i,a,o,o[$$1],e,o[s+1]=t_(t,n),r,s);}}function qT(e,t,n,r){let o=G$3(),i=ur(2);o.firstUpdatePass&&vv(o,null,i,r);let s=w();if(n!==ue&&Ge(s,i,n)){let a=o.data[ze$2()];if(Ev(a,r)&&!yv(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Zs(c,n||"")),Nd(o,a,s,n,r);}else e_(o,a,s,s[$$1],s[i+1],s[i+1]=JT(e,t,n),r,i);}}function yv(e,t){return t>=e.expandoStartIndex}function vv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ze$2()],s=yv(e,n);Ev(i,r)&&t===null&&!s&&(t=false),t=ZT(o,i,t,r),jT(o,i,t,n,s,r);}}function ZT(e,t,n,r){let o=pg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Yl(null,e,t,n,r),n=mi$2(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Yl(o,e,t,n,r),i===null){let c=YT(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Yl(null,e,t,c[1],r),c=mi$2(c,t.attrs,r),QT(e,t,r,c));}else i=KT(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function YT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(io(r)!==0)return e[mr(r)]}function QT(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mr(o)]=r;}function KT(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=mi$2(r,s,n);}return mi$2(r,t.attrs,n)}function Yl(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=mi$2(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function mi$2(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]),ea(e,s,n?true:t[++i]));}return e===void 0?null:e}function JT(e,t,n){if(n==null||n==="")return Se$4;let r=[],o=We(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 XT(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ea(e,r,n);}function e_(e,t,n,r,o,i,s,a){o===ue&&(o=Se$4);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 f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,v;l===d?(c+=2,u+=2,f!==h&&(g=d,v=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,v=h),g!==null&&Dv(e,t,n,r,g,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Dv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=FT(u)?lm(c,t,n,o,io(u),s):void 0;if(!Ga(l)){Ga(i)||PT(u)&&(i=lm(c,null,n,o,a,s));let d=Dl(ze$2(),n);hb(r,s,d,o,i);}}function lm(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,f=n[o+1];f===ue&&(f=d?Se$4:void 0);let h=d?ta(f,r):l===r?f:void 0;if(u&&!Ga(h)&&(h=ta(c,r)),Ga(h)&&(a=h,s))return a;let g=e[o+1];o=s?mr(g):io(g);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ta(c,r));}return a}function Ga(e){return e!==void 0}function t_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=zo(We(e)))),e}function Ev(e,t){return (e.flags&(t?8:16))!==0}function n_(e,t=""){let n=w(),r=G$3(),o=e+X,i=r.firstCreatePass?ao(r,o,1,t,null):r.data[o],s=r_(r,n,i,t);n[o]=s,ha()&&Jd(r,n,s,i),qr(i,false);}var r_=(e,t,n,r)=>(Xo(true),bC(t[$$1],r));function wv(e,t,n,r=""){return Ge(e,_n$1(),n)?t+oe$1(n)+r:ue}function o_(e,t,n,r,o,i=""){let s=Ko(),a=pi$2(e,s,n,o);return ur(2),a?t+oe$1(n)+r+oe$1(o)+i:ue}function i_(e,t,n,r,o,i,s,a,c,u=""){let l=Ko(),d=df(e,l,n,o,s,c);return ur(4),d?t+oe$1(n)+r+oe$1(o)+i+oe$1(s)+a+oe$1(c)+u:ue}function s_(e,t,n,r,o,i,s,a,c,u,l,d=""){let f=Ko(),h=df(e,f,n,o,s,c);return h=Ge(e,f+4,l)||h,ur(5),h?t+oe$1(n)+r+oe$1(o)+i+oe$1(s)+a+oe$1(c)+u+oe$1(l)+d:ue}function a_(e,t,n,r,o,i,s,a,c,u,l,d,f,h=""){let g=Ko(),v=df(e,g,n,o,s,c);return v=pi$2(e,g+4,l,f)||v,ur(6),v?t+oe$1(n)+r+oe$1(o)+i+oe$1(s)+a+oe$1(c)+u+oe$1(l)+d+oe$1(f)+h:ue}function Iv(e){return xf("",e),Iv}function xf(e,t,n){let r=w(),o=wv(r,e,t,n);return o!==ue&&Ti$2(r,ze$2(),o),xf}function Cv(e,t,n,r,o){let i=w(),s=o_(i,e,t,n,r,o);return s!==ue&&Ti$2(i,ze$2(),s),Cv}function bv(e,t,n,r,o,i,s,a,c){let u=w(),l=i_(u,e,t,n,r,o,i,s,a,c);return l!==ue&&Ti$2(u,ze$2(),l),bv}function Sv(e,t,n,r,o,i,s,a,c,u,l){let d=w(),f=s_(d,e,t,n,r,o,i,s,a,c,u,l);return f!==ue&&Ti$2(d,ze$2(),f),Sv}function Tv(e,t,n,r,o,i,s,a,c,u,l,d,f){let h=w(),g=a_(h,e,t,n,r,o,i,s,a,c,u,l,d,f);return g!==ue&&Ti$2(h,ze$2(),g),Tv}function Ti$2(e,t,n){let r=Dl(t,e);SC(e[$$1],r,n);}function _v(e,t,n){ya(t)&&(t=t());let r=w(),o=_n$1();if(Ge(r,o,t)){G$3();let s=Yr();gy(s,r,e,t,r[$$1],n);}return _v}function c_(e,t){let n=ya(e);return n&&e.set(t),n}function Mv(e,t){let n=w(),r=G$3(),o=fe$2();return cv(r,n,n[$$1],o,e,t),Mv}function u_(e,t,n=""){return wv(w(),e,t,n)}function dm(e,t,n){let r=G$3();r.firstCreatePass&&Nv(t,r.data,r.blueprint,Ot$2(e),n);}function Nv(e,t,n,r,o){if(e=Ee$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)Nv(e[i],t,n,r,o);else {let i=G$3(),s=w(),a=fe$2(),c=Xn$2(e)?e:Ee$3(e.provide),u=hl(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Xn$2(e)||!e.multi){let h=new dr(u,o,ae$2,null),g=Kl(c,t,l+f,d);g===-1?(ed(Ra(a,s),i,c),Ql(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(h),s.push(h)):(n[g]=h,s[g]=h);}else {let h=Kl(c,t,l+f,d),g=Kl(c,t,l,l+f),v=h>=0&&n[h],E=g>=0&&n[g];if(!v){ed(Ra(a,s),i,c);let M=f_(l_,n.length,o,r,u);E&&(n[g].providerFactory=M),Ql(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(M),s.push(M);}else {let M=Rv(n[h],u,r);Ql(i,e,h>-1?h:g,M);}r&&E&&n[g].componentProviders++;}}}function Ql(e,t,n,r){let o=Xn$2(t),i=Yp(t);if(o||i){let c=(i?Ee$3(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 Rv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function l_(e,t,n,r,o){return xd(this.multi,[])}function xd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function f_(e,t,n,r,o,i){let s=new dr(e,n,ae$2,null);return s.multi=[],s.index=t,s.componentProviders=0,Rv(s,o,r&&!n),s}function h_(e,t){return n=>{n.providersResolver=(r,o)=>dm(r,o?o(e):e,false);}}function p_(e,t){let n=Zr()+e,r=w();return r[n]===ue?lf(r,n,t()):nS(r,n)}function g_(e,t,n){return xv(w(),Zr(),e,t,n)}function m_(e,t,n,r){return Ov(w(),Zr(),e,t,n,r)}function Av(e,t){let n=e[t];return n===ue?void 0:n}function xv(e,t,n,r,o,i){let s=t+n;return Ge(e,s,o)?lf(e,s+1,i?r.call(i,o):r(o)):Av(e,s+1)}function Ov(e,t,n,r,o,i,s){let a=t+n;return pi$2(e,a,o,i)?lf(e,a+2,s?r.call(s,o,i):r(o,i)):Av(e,a+2)}function y_(e,t){let n=G$3(),r,o=e+X;n.firstCreatePass?(r=v_(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=wn$2(r.type)),a=Oe$3(ae$2);try{let c=Na(!1),u=i();return Na(c),El(n,w(),o,u),u}finally{Oe$3(a);}}function v_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function D_(e,t,n){let r=e+X,o=w(),i=oa(o,r);return kv(o,r)?xv(o,Zr(),t,i.transform,n,i):i.transform(n)}function E_(e,t,n,r){let o=e+X,i=w(),s=oa(i,o);return kv(i,o)?Ov(i,Zr(),t,s.transform,n,r,s):s.transform(n,r)}function kv(e,t){return e[I$1].data[t].pure}function w_(e,t){return oc(e,t)}var Pv=(()=>{class e{applicationErrorHandler=p(ke$2);appRef=p(sn$1);taskService=p(kt$1);ngZone=p(J$3);zonelessEnabled=p(Kr);tracing=p(Ut$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ce$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ga,{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?Cg:jl;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(Vo+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=Z$2({token:e,factory:e.\u0275fac})}return e})();function Lv(){return [{provide:dt$2,useExisting:Pv},{provide:J$3,useClass:$o},{provide:Kr,useValue:true}]}var Of=(()=>{class e{compileModuleSync(n){return new Ha(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function I_(){return typeof $localize<"u"&&$localize.locale||Si$2}var ho=new D$1("",{factory:()=>p(ho,{optional:true,skipSelf:true})||I_()});var _i$2=class _i{destroyed=false;listeners=null;errorHandler=p(Qe$1,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=p(Me$4);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new y$3(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(Ke$1(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=C$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&&C_(this.listeners)),C$1(n),this.isEmitting=false;}}};function C_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function Mi$2(e,t){return Fo(e,t?.equal)}function W$3(e){return Rp(e)}var b_=e=>e;function kf(e,t){if(typeof e=="function"){let n=Bu(e,b_,t?.equal);return Fv(n)}else {let n=Bu(e.source,e.computation,e.equal);return Fv(n,e.debugName)}}function Fv(e,t){let n=e[re$2],r=e;return r.set=o=>Mp(n,o),r.update=o=>Np(n,o),r.asReadonly=ei$2.bind(e),r}var gc=Symbol("InputSignalNode#UNSET"),Gv=x$2(w$1({},jo),{transformFn:void 0,applyValueToInputSignal(e,t){En$2(e,t);}});function Wv(e,t){let n=Object.create(Gv);n.value=e,n.transformFn=t?.transform;function r(){if(Yt$1(n),n.value===gc){let o=null;throw new y$3(-950,o)}return n.value}return r[re$2]=n,r}var pc=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>vi$2(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function jf(e){return j_(e)?e.default:e}function j_(e){return e&&typeof e=="object"&&"default"in e}function N$(e){return new _i$2}function jv(e,t){return Wv(e,t)}function U_(e){return Wv(gc,e)}var mc=(jv.required=U_,jv);function qv(e,t){let n=Object.create(Gv),r=new _i$2;n.value=e;function o(){return Yt$1(n),Uv(n.value),n.value}return o[re$2]=n,o.asReadonly=ei$2.bind(o),o.set=i=>{n.equal(n.value,i)||(En$2(n,i),r.emit(i));},o.update=i=>{Uv(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Uv(e){if(e===gc)throw new y$3(952,false)}function Bv(e,t){return qv(e)}function B_(e){return qv(gc)}var R$=(Bv.required=B_,Bv);function Hv(e,t){return vf()}function H_(e,t){return Df()}var A$=(Hv.required=H_,Hv);function x$(e,t){return Wy()}function Vv(e,t){return vf()}function V_(e,t){return Df()}var O$=(Vv.required=V_,Vv);var Er=(()=>{class e{static __NG_ELEMENT_ID__=z_}return e})();function z_(e){return G_(fe$2(),w(),(e&16)===16)}function G_(e,t,n){if(nn$1(e)&&!n){let r=rt$1(e.index,t);return new An$2(r,r)}else if(e.type&175){let r=t[_e$2];return new An$2(r,t)}return null}var W_=(()=>{class e{zone=p(J$3);changeDetectionScheduler=p(dt$2);applicationRef=p(sn$1);applicationErrorHandler=p(ke$2);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),q_=new D$1("",{factory:()=>false});function Z_({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new J$3(x$2(w$1({},Zv()),{scheduleInRootZone:t})),[{provide:Kr,useValue:false},{provide:J$3,useFactory:e},{provide:en$1,multi:true,useFactory:()=>{let n=p(W_,{optional:true});return ()=>n.initialize()}},{provide:en$1,multi:true,useFactory:()=>{let n=p(Y_);return ()=>{n.initialize();}}},{provide:ga,useValue:t??Fl}]}function P$(e){let t=e?.scheduleInRootZone,n=Z_({ngZoneFactory:()=>{let r=Zv(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&it$1("NgZone_CoalesceEvent"),new J$3(r)},scheduleInRootZone:t});return ft$2([{provide:q_,useValue:true},n])}function Zv(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var Y_=(()=>{class e{subscription=new ce$2;initialized=false;zone=p(J$3);pendingTasks=p(kt$1);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{J$3.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{J$3.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var Lf=new D$1(""),Q_=new D$1("");function Ni$2(e){return !e.moduleRef}function K_(e){let t=Ni$2(e)?e.r3Injector:e.moduleRef.injector,n=t.get(J$3);return n.run(()=>{Ni$2(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ke$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Ni$2(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Lf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Lf);s.add(i),e.moduleRef.onDestroy(()=>{ui$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return X_(r,n,()=>{let i=t.get(kt$1),s=i.add(),a=t.get(If);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(ho,Si$2);if(sv(c||Si$2),!t.get(Q_,!0))return Ni$2(e)?t.get(sn$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ni$2(e)){let l=t.get(sn$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return J_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var J_;function X_(e,t,n){try{let r=n();return vr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var hc=null;function eM(e=[],t){return we$2.create({name:t,providers:[{provide:Zo,useValue:"platform"},{provide:Lf,useValue:new Set([()=>hc=null])},...e]})}function tM(e=[]){if(hc)return hc;let t=eM(e);return hc=t,ev(),nM(t),t}function nM(e){let t=e.get(pa,null);ye$3(e,()=>{t?.forEach(n=>n());});}function Yv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V(F$3.BootstrapApplicationStart);try{let i=o?.injector??tM(r),s=[Lv(),Sg,...n||[]],a=new gi$2({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return K_({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V(F$3.BootstrapApplicationEnd);}}function Ri$2(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function rM(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Pf=Symbol("NOT_SET"),Qv=new Set,oM=x$2(w$1({},jo),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Pf,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!==Pf&&!Lr(this))return this.signal;try{for(let o of this.cleanup??Qv)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Qt$1(this),r;try{r=this.userFn.apply(null,t);}finally{vn$2(this,n);}return (this.value===Pf||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Ff=class extends di$2{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(Me$4),s),this.scheduler=o;for(let a of Zd){let c=n[a];if(c===void 0)continue;let u=Object.create(oM);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Yt$1(u),u.value),u.signal[re$2]=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??Qv)n();}finally{Dn$2(t);}}};function L$(e,t){let n=p(we$2),r=n.get(dt$2),o=n.get(Ka),i=n.get(Ut$1,null,{optional:true});o.impl??=n.get(Yd);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Qr,null,{optional:true}),c=new Ff(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function F$(e,t){let n=Xt$1(e),r=t.elementInjector||Vr();return new pr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Kv(e){let t=Xt$1(e);if(!t)return null;let n=new pr(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 Jv=null;function cn$1(){return Jv}function Uf(e){Jv??=e;}var Ai$2=class Ai{},un$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:()=>p(Xv),providedIn:"platform"})}return e})(),Bf=new D$1(""),Xv=(()=>{class e extends un$1{_location;_history;_doc=p(Q$3);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return cn$1().getBaseHref(this._doc)}onPopState(n){let r=cn$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=cn$1().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=R$2({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function yc(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function eD(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function vt$1(e){return e&&e[0]!=="?"?`?${e}`:e}var Dt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:()=>p(Dc),providedIn:"root"})}return e})(),vc=new D$1(""),Dc=(()=>{class e extends Dt$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Q$3).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 yc(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+vt$1(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(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)(b(un$1),b(vc,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Pn$2=(()=>{class e{_subject=new ne$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=aM(eD(tD(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+vt$1(r))}normalize(n){return e.stripTrailingSlash(sM(this._basePath,tD(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+vt$1(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vt$1(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=vt$1;static joinWithSlash=yc;static stripTrailingSlash=eD;static \u0275fac=function(r){return new(r||e)(b(Dt$1))};static \u0275prov=R$2({token:e,factory:()=>iM(),providedIn:"root"})}return e})();function iM(){return new Pn$2(b(Dt$1))}function sM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function tD(e){return e.replace(/\/index\.html$/,"")}function aM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Zf=(()=>{class e extends Dt$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}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}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=yc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;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)(b(un$1),b(vc,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();var Yf=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Yf||{});var Ne$3=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ne$3||{}),q=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(q||{}),je$2=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(je$2||{}),Ue$2={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function oD(e){return Fe$3(e)[le$2.LocaleId]}function iD(e,t,n){let r=Fe$3(e),o=[r[le$2.DayPeriodsFormat],r[le$2.DayPeriodsStandalone]],i=st$1(o,t);return st$1(i,n)}function sD(e,t,n){let r=Fe$3(e),o=[r[le$2.DaysFormat],r[le$2.DaysStandalone]],i=st$1(o,t);return st$1(i,n)}function aD(e,t,n){let r=Fe$3(e),o=[r[le$2.MonthsFormat],r[le$2.MonthsStandalone]],i=st$1(o,t);return st$1(i,n)}function cD(e,t){let r=Fe$3(e)[le$2.Eras];return st$1(r,t)}function xi$2(e,t){let n=Fe$3(e);return st$1(n[le$2.DateFormat],t)}function Oi$2(e,t){let n=Fe$3(e);return st$1(n[le$2.TimeFormat],t)}function ki$2(e,t){let r=Fe$3(e)[le$2.DateTimeFormat];return st$1(r,t)}function Bt$1(e,t){let n=Fe$3(e),r=n[le$2.NumberSymbols][t];if(typeof r>"u"){if(t===Ue$2.CurrencyDecimal)return n[le$2.NumberSymbols][Ue$2.Decimal];if(t===Ue$2.CurrencyGroup)return n[le$2.NumberSymbols][Ue$2.Group]}return r}function uD(e,t){return Fe$3(e)[le$2.NumberFormats][t]}function lD(e){if(!e[le$2.ExtraData])throw new y$3(2303,false)}function dD(e){let t=Fe$3(e);return lD(t),(t[le$2.ExtraData][2]||[]).map(r=>typeof r=="string"?Hf(r):[Hf(r[0]),Hf(r[1])])}function fD(e,t,n){let r=Fe$3(e);lD(r);let o=[r[le$2.ExtraData][0],r[le$2.ExtraData][1]],i=st$1(o,t)||[];return st$1(i,n)||[]}function st$1(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y$3(2304,false)}function Hf(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var cM=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ec=Object.create(null),uM=/((?:[^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]*)/,lM=256;function hD(e,t,n,r){let o=EM(e);dM(t),t=ln$1(n,t)||t;let s=[],a;for(;t;)if(a=uM.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=gD(r,c),o=DM(o,r));let u="";return s.forEach(l=>{let d=yM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function dM(e){if(e.length>lM)throw new y$3(2300,false)}function Sc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ln$1(e,t){let n=oD(e);if(Ec[n]??=Object.create(null),Ec[n][t])return Ec[n][t];let r="";switch(t){case "shortDate":r=xi$2(e,je$2.Short);break;case "mediumDate":r=xi$2(e,je$2.Medium);break;case "longDate":r=xi$2(e,je$2.Long);break;case "fullDate":r=xi$2(e,je$2.Full);break;case "shortTime":r=Oi$2(e,je$2.Short);break;case "mediumTime":r=Oi$2(e,je$2.Medium);break;case "longTime":r=Oi$2(e,je$2.Long);break;case "fullTime":r=Oi$2(e,je$2.Full);break;case "short":let o=ln$1(e,"shortTime"),i=ln$1(e,"shortDate");r=wc(ki$2(e,je$2.Short),[o,i]);break;case "medium":let s=ln$1(e,"mediumTime"),a=ln$1(e,"mediumDate");r=wc(ki$2(e,je$2.Medium),[s,a]);break;case "long":let c=ln$1(e,"longTime"),u=ln$1(e,"longDate");r=wc(ki$2(e,je$2.Long),[c,u]);break;case "full":let l=ln$1(e,"fullTime"),d=ln$1(e,"fullDate");r=wc(ki$2(e,je$2.Full),[l,d]);break}return r&&(Ec[n][t]=r),r}function wc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Et$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 fM(e,t){return Et$2(e,3).substring(0,t)}function he$3(e,t,n=0,r=false,o=false){return function(i,s){let a=hM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return fM(a,t);let c=Bt$1(s,Ue$2.MinusSign);return Et$2(a,t,c,r,o)}}function hM(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 y$3(2301,false)}}function K$2(e,t,n=Ne$3.Format,r=false){return function(o,i){return pM(o,i,e,t,n,r)}}function pM(e,t,n,r,o,i){switch(n){case 2:return aD(t,o,r)[e.getMonth()];case 1:return sD(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=dD(t),l=fD(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,v=s>=h.hours&&a>=h.minutes,E=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(v&&E)return true}else if(v||E)return true}else if(f.hours===s&&f.minutes===a)return true;return false});if(d!==-1)return l[d]}return iD(t,o,r)[s<12?0:1];case 3:return cD(t,r)[e.getFullYear()<=0?0:1];default:throw new y$3(2302,false)}}function Ic(e){return function(t,n,r){let o=-1*r,i=Bt$1(n,Ue$2.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+Et$2(s,2,i)+Et$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+Et$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);default:throw new y$3(2310,false)}}}var gM=0,bc=4;function mM(e){let t=Sc(e,gM,1).getDay();return Sc(e,0,1+(t<=bc?bc:bc+7)-t)}function pD(e){let t=e.getDay(),n=t===0?-3:bc-t;return Sc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Vf(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=pD(n),s=mM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Et$2(o,e,Bt$1(r,Ue$2.MinusSign))}}function Cc(e,t=false){return function(n,r){let i=pD(n).getFullYear();return Et$2(i,e,Bt$1(r,Ue$2.MinusSign),t)}}var $f=Object.create(null);function yM(e){if($f[e])return $f[e];let t;switch(e){case "G":case "GG":case "GGG":t=K$2(3,q.Abbreviated);break;case "GGGG":t=K$2(3,q.Wide);break;case "GGGGG":t=K$2(3,q.Narrow);break;case "y":t=he$3(0,1,0,false,true);break;case "yy":t=he$3(0,2,0,true,true);break;case "yyy":t=he$3(0,3,0,false,true);break;case "yyyy":t=he$3(0,4,0,false,true);break;case "Y":t=Cc(1);break;case "YY":t=Cc(2,true);break;case "YYY":t=Cc(3);break;case "YYYY":t=Cc(4);break;case "M":case "L":t=he$3(1,1,1);break;case "MM":case "LL":t=he$3(1,2,1);break;case "MMM":t=K$2(2,q.Abbreviated);break;case "MMMM":t=K$2(2,q.Wide);break;case "MMMMM":t=K$2(2,q.Narrow);break;case "LLL":t=K$2(2,q.Abbreviated,Ne$3.Standalone);break;case "LLLL":t=K$2(2,q.Wide,Ne$3.Standalone);break;case "LLLLL":t=K$2(2,q.Narrow,Ne$3.Standalone);break;case "w":t=Vf(1);break;case "ww":t=Vf(2);break;case "W":t=Vf(1,true);break;case "d":t=he$3(2,1);break;case "dd":t=he$3(2,2);break;case "c":case "cc":t=he$3(7,1);break;case "ccc":t=K$2(1,q.Abbreviated,Ne$3.Standalone);break;case "cccc":t=K$2(1,q.Wide,Ne$3.Standalone);break;case "ccccc":t=K$2(1,q.Narrow,Ne$3.Standalone);break;case "cccccc":t=K$2(1,q.Short,Ne$3.Standalone);break;case "E":case "EE":case "EEE":t=K$2(1,q.Abbreviated);break;case "EEEE":t=K$2(1,q.Wide);break;case "EEEEE":t=K$2(1,q.Narrow);break;case "EEEEEE":t=K$2(1,q.Short);break;case "a":case "aa":case "aaa":t=K$2(0,q.Abbreviated);break;case "aaaa":t=K$2(0,q.Wide);break;case "aaaaa":t=K$2(0,q.Narrow);break;case "b":case "bb":case "bbb":t=K$2(0,q.Abbreviated,Ne$3.Standalone,true);break;case "bbbb":t=K$2(0,q.Wide,Ne$3.Standalone,true);break;case "bbbbb":t=K$2(0,q.Narrow,Ne$3.Standalone,true);break;case "B":case "BB":case "BBB":t=K$2(0,q.Abbreviated,Ne$3.Format,true);break;case "BBBB":t=K$2(0,q.Wide,Ne$3.Format,true);break;case "BBBBB":t=K$2(0,q.Narrow,Ne$3.Format,true);break;case "h":t=he$3(3,1,-12);break;case "hh":t=he$3(3,2,-12);break;case "H":t=he$3(3,1);break;case "HH":t=he$3(3,2);break;case "m":t=he$3(4,1);break;case "mm":t=he$3(4,2);break;case "s":t=he$3(5,1);break;case "ss":t=he$3(5,2);break;case "S":t=he$3(6,1);break;case "SS":t=he$3(6,2);break;case "SSS":t=he$3(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ic(0);break;case "ZZZZZ":t=Ic(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ic(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ic(2);break;default:return null}return $f[e]=t,t}function gD(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function vM(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function DM(e,t,n){let o=e.getTimezoneOffset(),i=gD(t,o);return vM(e,-1*(i-o))}function EM(e){if(nD(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 Sc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(cM))return wM(r)}let t=new Date(e);if(!nD(t))throw new y$3(2311,false);return t}function wM(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 nD(e){return e instanceof Date&&!isNaN(e.valueOf())}var IM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,rD=22,Tc=".",Pi$2="0",CM=";",bM=",",zf="#";function SM(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=Bt$1(n,Ue$2.Infinity);else {let u=MM(e);s&&(u=_M(u));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(i){let z=i.match(IM);if(z===null)throw new y$3(2306,false);let de=z[1],Ct=z[3],gn=z[5];de!=null&&(l=Gf(de)),Ct!=null&&(d=Gf(Ct)),gn!=null?f=Gf(gn):Ct!=null&&d>f&&(f=d);let ct=100;if(l>ct||d>ct||f>ct)throw new y$3(2306,false)}NM(u,d,f);let h=u.digits,g=u.integerLen,v=u.exponent,E=[];for(c=h.every(z=>!z);g<l;g++)h.unshift(0);for(;g<0;g++)h.unshift(0);g>0?E=h.splice(g,h.length):(E=h,h=[0]);let M=[];for(h.length>=t.lgSize&&M.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)M.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&M.unshift(h.join("")),a=M.join(Bt$1(n,r)),E.length&&(a+=Bt$1(n,o)+E.join("")),v&&(a+=Bt$1(n,Ue$2.Exponential)+"+"+v);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function mD(e,t,n){let r=uD(t,Yf.Decimal),o=TM(r,Bt$1(t,Ue$2.MinusSign));return SM(e,o,t,Ue$2.Group,Ue$2.Decimal,n)}function TM(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(CM),o=r[0],i=r[1],s=o.indexOf(Tc)!==-1?o.split(Tc):[o.substring(0,o.lastIndexOf(Pi$2)+1),o.substring(o.lastIndexOf(Pi$2)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(zf));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Pi$2?n.minFrac=n.maxFrac=l+1:d===zf?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(bM);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(zf);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function _M(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function MM(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Tc))>-1&&(t=t.replace(Tc,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Pi$2;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Pi$2;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>rD&&(r=r.splice(0,rD-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function NM(e,t,n){if(t>n)throw new y$3(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,f,h,g){return f=f+d,g[h]=f<10?f:f-10,c&&(g[h]===0&&h>=u?g.pop():c=false),f>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Gf(e){let t=parseInt(e);if(isNaN(t))throw new y$3(2305,false);return t}var RM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(we$2);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)(ae$2(On$2))};static \u0275dir=kn$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[xn$2]})}return e})();function _c(e,t){return new y$3(2100,false)}var Wf=class{createSubscription(t,n,r){return W$3(()=>t.subscribe({next:n,error:r}))}dispose(t){W$3(()=>t.unsubscribe());}},qf=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},AM=new qf,xM=new Wf,OM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(ke$2);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(vr(n))return AM;if(ic(n))return xM;throw _c()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(ae$2(Er,16))};static \u0275pipe=Dr({name:"async",type:e,pure:false})}return e})(),kM=(()=>{class e{transform(n){return n==null?null:(PM(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Dr({name:"lowercase",type:e,pure:true})}return e})();function PM(e,t){if(typeof t!="string")throw _c()}var LM="mediumDate",yD=new D$1(""),vD=new D$1(""),FM=(()=>{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??LM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return hD(n,s,i||this.locale,a)}catch(s){throw _c(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ae$2(ho,16),ae$2(yD,24),ae$2(vD,24))};static \u0275pipe=Dr({name:"date",type:e,pure:true})}return e})();var jM=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Dr({name:"json",type:e,pure:false})}return e})();var UM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!BM(n))return null;o||=this._locale;try{let i=HM(n);return mD(i,o,r)}catch(i){throw _c(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ae$2(ho,16))};static \u0275pipe=Dr({name:"number",type:e,pure:true})}return e})();function BM(e){return !(e==null||e===""||e!==e)}function HM(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y$3(2309,false);return e}function Li$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}var Kf="browser";function sz(e){return e===Kf}var Jf=(()=>{class e{static \u0275prov=R$2({token:e,providedIn:"root",factory:()=>new Qf(p(Q$3),window)})}return e})(),Qf=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$2(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=GM(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Ke$1(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$2(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function GM(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}var Fi$2=class Fi{_doc;constructor(t){this._doc=t;}manager},Mc=(()=>{class e extends Fi$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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Ac=new D$1(""),nh=(()=>{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 Mc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Mc);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 y$3(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b(Ac),b(J$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Xf="ng-app-id";function DD(e){for(let t of e)t.remove();}function ED(e,t){let n=t.createElement("style");return n.textContent=e,n}function qM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Xf}="${t}"],link[${Xf}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Xf),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 th(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var rh=(()=>{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,qM(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ED);r?.forEach(o=>this.addUsage(o,this.external,th));}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&&(DD(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])DD(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,ED(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,th(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)(b(Q$3),b(ti$2),b(ri$2,8),b(ni$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),eh={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"},oh=/%COMP%/g;var ID="%COMP%",ZM=`_nghost-${ID}`,YM=`_ngcontent-${ID}`,QM=true,KM=new D$1("",{factory:()=>QM});function JM(e){return YM.replace(oh,e)}function XM(e){return ZM.replace(oh,e)}function CD(e,t){return t.map(n=>n.replace(oh,e))}var ih=(()=>{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 ji$2(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Rc?o.applyToHost(n):o instanceof Ui$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 yt$1.Emulated:i=new Rc(c,u,r,this.appId,l,s,a,d);break;case yt$1.ShadowDom:return new Nc(c,n,r,s,a,this.nonce,d,u);case yt$1.ExperimentalIsolatedShadowDom:return new Nc(c,n,r,s,a,this.nonce,d);default:i=new Ui$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)(b(nh),b(yr),b(ti$2),b(KM),b(Q$3),b(J$3),b(ri$2),b(Ut$1,8))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),ji$2=class ji{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(eh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(wD(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(wD(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 y$3(-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=eh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=eh[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&(Lt$1.DashCase|Lt$1.Important)?t.style.setProperty(n,r,o&Lt$1.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Lt$1.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=cn$1().getGlobalEventTarget(this.doc,t),!t))throw new y$3(-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 wD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Nc=class extends ji$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=CD(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=th(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}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);}},Ui$2=class Ui extends ji$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?CD(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Rn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Rc=class extends Ui$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=JM(u),this.hostAttr=XM(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 xc=class e extends Ai$2{supportsDOMEvents=true;static makeCurrent(){Uf(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=eN();return n==null?null:tN(n)}resetBaseElement(){Bi$2=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Li$2(document.cookie,t)}},Bi$2=null;function eN(){return Bi$2=Bi$2||document.head.querySelector("base"),Bi$2?Bi$2.getAttribute("href"):null}function tN(e){return new URL(e,document.baseURI).pathname}var bD=["alt","control","meta","shift"],nN={"\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"},rN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},SD=(()=>{class e extends Fi$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(()=>cn$1().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."),bD.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=nN[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"),bD.forEach(s=>{if(s!==o){let a=rN[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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();function oN(e,t,n){return B$1(this,null,function*(){let r=w$1({rootComponent:e},iN(t,n));return Yv(r)})}function iN(e,t){return {platformRef:t?.platformRef,appProviders:[...lN,...e?.providers??[]],platformProviders:uN}}function sN(){xc.makeCurrent();}function aN(){return new Qe$1}function cN(){return Pd(document),document}var uN=[{provide:ni$2,useValue:Kf},{provide:pa,useValue:sN,multi:true},{provide:Q$3,useFactory:cN}];var lN=[{provide:Zo,useValue:"root"},{provide:Qe$1,useFactory:aN},{provide:Ac,useClass:Mc,multi:true},{provide:Ac,useClass:SD,multi:true},ih,{provide:yr,useClass:rh},{provide:rh,useExisting:yr},nh,{provide:hr,useExisting:ih},[]];var fn=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 kc=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()}},Pc=class{encodeKey(t){return TD(t)}encodeValue(t){return TD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function dN(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 fN=/%(\d[a-f0-9])/gi,hN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function TD(e){return encodeURIComponent(e).replace(fN,(t,n)=>hN[n]??t)}function Oc(e){return `${e}`}var dn$1=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new y$3(2805,false);this.map=dN(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(Oc):[Oc(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(Oc(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(Oc(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 pN(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function _D(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function MD(e){return typeof Blob<"u"&&e instanceof Blob}function ND(e){return typeof FormData<"u"&&e instanceof FormData}function gN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var sh="Content-Type",RD="Accept",xD="text/plain",OD="application/json",mN=`${OD}, ${xD}, */*`,po=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(pN(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 y$3(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 fn,this.context??=new kc,!this.params)this.params=new dn$1,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"||_D(this.body)||MD(this.body)||ND(this.body)||gN(this.body)?this.body:this.body instanceof dn$1?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||ND(this.body)?null:MD(this.body)?this.body.type||null:_D(this.body)?null:typeof this.body=="string"?xD:this.body instanceof dn$1?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?OD: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,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,v=t.timeout??this.timeout,E=t.body!==void 0?t.body:this.body,M=t.withCredentials??this.withCredentials,z=t.reportProgress??this.reportProgress,de=t.reportUploadProgress??this.reportUploadProgress,Ct=t.reportDownloadProgress??this.reportDownloadProgress,gn=t.headers||this.headers,ct=t.params||this.params,is=t.context??this.context;return t.setHeaders!==void 0&&(gn=Object.keys(t.setHeaders).reduce((Mr,Hn)=>Mr.set(Hn,t.setHeaders[Hn]),gn)),t.setParams&&(ct=Object.keys(t.setParams).reduce((Mr,Hn)=>Mr.set(Hn,t.setParams[Hn]),ct)),new e(n,r,E,{params:ct,headers:gn,context:is,reportProgress:z,reportUploadProgress:de,reportDownloadProgress:Ct,responseType:o,withCredentials:M,transferCache:g,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},go=(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})(go||{}),mo=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new fn,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;}},Lc=class e extends mo{constructor(t={}){super(t);}type=go.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})}},Hi$2=class e extends mo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=go.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})}},wr=class extends mo{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;}},yN=200;var vN=/^\)\]\}',?\n/,kD=new D$1("",{factory:()=>null}),Fc=(()=>{class e{fetchImpl=p(ch,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(J$3);destroyRef=p(Me$4);maxResponseSize=p(kD);handle(n){return new k$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(uh,s=>r.error(new wr({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();}})}doRequest(n,r,o){return B$1(this,null,function*(){let i=this.createRequestInit(n),s;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));DN(E),o.next({type:go.Sent}),s=yield E;}catch(E){o.error(new wr({error:E,status:E.status??0,statusText:E.statusText,url:n.urlWithParams,headers:E.headers}));return}let a=new fn(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,f=n.reportProgress||n.reportDownloadProgress;if(f&&o.next(new Lc({headers:a,status:l,statusText:c,url:u})),s.body){let E=s.headers.get("content-length"),M=E!==null?Number(E):NaN;this.maxResponseSize!==null&&Number.isFinite(M)&&M>this.maxResponseSize&&AD(this.maxResponseSize);let z=[],de=s.body.getReader(),Ct=0,gn,ct,is=typeof Zone<"u"&&Zone.current,Mr=false;if(yield this.ngZone.runOutsideAngular(()=>B$1(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield de.cancel(),Mr=true;break}let{done:No,value:gu}=yield de.read();if(No)break;if(z.push(gu),Ct+=gu.length,this.maxResponseSize!==null&&Ct>this.maxResponseSize&&(yield de.cancel(),AD(this.maxResponseSize)),f){ct=n.responseType==="text"?(ct??"")+(gn??=new TextDecoder).decode(gu,{stream:true}):void 0;let zh=()=>o.next({type:go.DownloadProgress,total:Number.isFinite(M)?M:void 0,loaded:Ct,partialText:ct});is?is.run(zh):zh();}}})),Mr){o.complete();return}let Hn=this.concatChunks(z,Ct);try{let No=s.headers.get(sh)??"";d=this.parseBody(n,Hn,No,l);}catch(No){o.error(new wr({error:No,headers:new fn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?yN:0);let h=l>=200&&l<300,g=s.redirected,v=s.type;h?(o.next(new Hi$2({body:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v})),o.complete()):o.error(new wr({error:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(vN,"");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 y$3(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(RD)||(r[RD]=mN),!n.headers.has(sh)){let i=n.detectContentTypeHeader();i!==null&&(r[sh]=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=Z$2({token:e,factory:e.\u0275fac})}return e})(),ch=class{};function uh(){}function DN(e){e.then(uh,uh);}function AD(e){throw new y$3(-2825,false)}function EN(e,t){return t(e)}function wN(e,t,n){return (r,o)=>ye$3(n,()=>t(r,i=>e(i,o)))}var PD=new D$1("",{factory:()=>[]}),LD=new D$1(""),FD=new D$1("",{factory:()=>true});var lh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(Fc),o},providedIn:"root"})}return e})();var jc=(()=>{class e{backend;injector;chain=null;pendingTasks=p(ii$2);contributeToStability=p(FD);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(PD),...this.injector.get(LD,[])]));this.chain=o.reduceRight((i,s)=>wN(i,s,this.injector),EN);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return W$3(()=>r(n,i=>this.backend.handle(i))).pipe(Or(o))}else return W$3(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b(lh),b(ee$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(jc),o},providedIn:"root"})}return e})();function ah(e,t){return w$1({body:t},e)}var jD=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof po)i=n;else {let c;o.headers instanceof fn?c=o.headers:c=new fn(o.headers);let u;o.params&&(o.params instanceof dn$1?u=o.params:u=new dn$1({fromObject:o.params})),i=new po(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=_$3(i).pipe(qt$1(c=>this.handler.handle(c)));if(n instanceof po||o.observe==="events")return s;let a=s.pipe(Ce$4(c=>c instanceof Hi$2));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(j$4(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y$3(2806,false);return c.body}));case "blob":return a.pipe(j$4(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y$3(2807,false);return c.body}));case "text":return a.pipe(j$4(c=>{if(c.body!==null&&typeof c.body!="string")throw new y$3(2808,false);return c.body}));default:return a.pipe(j$4(c=>c.body))}case "response":return a;default:throw new y$3(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 dn$1().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,ah(o,r))}post(n,r,o={}){return this.request("POST",n,ah(o,r))}put(n,r,o={}){return this.request("PUT",n,ah(o,r))}static \u0275fac=function(r){return new(r||e)(b(dh))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var IN=new D$1("",{factory:()=>true}),CN="XSRF-TOKEN",bN=new D$1("",{factory:()=>CN}),SN="X-XSRF-TOKEN",TN=new D$1("",{factory:()=>SN}),_N=(()=>{class e{cookieName=p(bN);doc=p(Q$3);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Li$2(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),UD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(_N),o},providedIn:"root"})}return e})();function MN(e,t){if(!p(IN)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(un$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=p(UD).getToken(),r=p(TN);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function NN(...e){let t=[jD,Fc,jc,{provide:dh,useExisting:jc},{provide:lh,useFactory:()=>p(Fc)},{provide:PD,useValue:MN,multi:true}];for(let n of e)t.push(...n.\u0275providers);return ft$2(t)}var BD=(()=>{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)(b(Q$3))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var RN=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(AN),o},providedIn:"root"})}return e})(),AN=(()=>{class e extends RN{_doc=p(Q$3);sanitize(n,r){if(r==null)return null;switch(n){case ot$1.NONE:return r;case ot$1.HTML:return jt$1(r,"HTML")?We(r):Ya(this._doc,String(r)).toString();case ot$1.STYLE:return jt$1(r,"Style")?We(r):r;case ot$1.SCRIPT:if(jt$1(r,"Script"))return We(r);throw new y$3(5200,false);case ot$1.URL:return jt$1(r,"URL")?We(r):Di$2(String(r));case ot$1.RESOURCE_URL:if(jt$1(r,"ResourceURL"))return We(r);throw new y$3(-5201,false);default:throw new y$3(5202,false)}}bypassSecurityTrustHtml(n){return Ud(n)}bypassSecurityTrustStyle(n){return Bd(n)}bypassSecurityTrustScript(n){return Hd(n)}bypassSecurityTrustUrl(n){return Vd(n)}bypassSecurityTrustResourceUrl(n){return $d(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var A$1="primary",es$1=Symbol("RouteTitle"),mh=class{params;constructor(t){this.params=t||{};}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return []}get keys(){return Object.keys(this.params)}};function Cr(e){return new mh(e)}function fh(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return false}return true}function ZD(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return fh(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return !fh(i,e.slice(0,i.length),a)||!fh(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function zc(e){return new Promise((t,n)=>{e.pipe(Zt$1()).subscribe({next:r=>t(r),error:r=>n(r)});})}function ON(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;++n)if(!Ht$1(e[n],t[n]))return false;return true}function Ht$1(e,t){let n=e?yh(e):void 0,r=t?yh(t):void 0;if(!n||!r||n.length!=r.length)return false;let o;for(let i=0;i<n.length;i++)if(o=n[i],!YD(e[o],t[o]))return false;return true}function yh(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function YD(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return false;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function kN(e){return e.length>0?e[e.length-1]:null}function Sr(e){return ks$1(e)?e:vr(e)?Y$1(Promise.resolve(e)):_$3(e)}function QD(e){return ks$1(e)?zc(e):Promise.resolve(e)}var PN={exact:JD,subset:XD},KD={exact:LN,subset:FN,ignored:()=>true},Ah={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi$2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function xh(e,t,n){let r=e instanceof Pe$3?e:t.parseUrl(e);return Mi$2(()=>vh(t.lastSuccessfulNavigation()?.finalUrl??new Pe$3,r,w$1(w$1({},Wi$2),n)))}function vh(e,t,n){return PN[n.paths](e.root,t.root,n.matrixParams)&&KD[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function LN(e,t){return Ht$1(e,t)}function JD(e,t,n){if(!Ir(e.segments,t.segments)||!Hc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return false;for(let r in t.children)if(!e.children[r]||!JD(e.children[r],t.children[r],n))return false;return true}function FN(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>YD(e[n],t[n]))}function XD(e,t,n){return eE(e,t,t.segments,n)}function eE(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return !(!Ir(o,n)||t.hasChildren()||!Hc(o,n,r))}else if(e.segments.length===n.length){if(!Ir(e.segments,n)||!Hc(e.segments,n,r))return false;for(let o in t.children)if(!e.children[o]||!XD(e.children[o],t.children[o],r))return false;return true}else {let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return !Ir(e.segments,o)||!Hc(e.segments,o,r)||!e.children[A$1]?false:eE(e.children[A$1],t,i,r)}}function Hc(e,t,n){return t.every((r,o)=>KD[n](e[o].parameters,r.parameters))}var Pe$3=class Pe{root;queryParams;fragment;_queryParamMap;constructor(t=new U$4([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=Cr(this.queryParams),this._queryParamMap}toString(){return BN.serialize(this)}},U$4=class U{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vc(this)}},Ln$2=class Ln{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n;}get parameterMap(){return this._parameterMap??=Cr(this.parameters),this._parameterMap}toString(){return nE(this)}};function jN(e,t){return Ir(e,t)&&e.every((n,r)=>Ht$1(n.parameters,t[r].parameters))}function Ir(e,t){return e.length!==t.length?false:e.every((n,r)=>n.path===t[r].path)}function UN(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===A$1&&(n=n.concat(t(o,r)));}),Object.entries(e.children).forEach(([r,o])=>{r!==A$1&&(n=n.concat(t(o,r)));}),n}var Un$2=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>new pn$1})}return e})(),pn$1=class pn{parse(t){let n=new Eh(t);return new Pe$3(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Vi$2(t.root,true)}`,r=$N(t.queryParams),o=typeof t.fragment=="string"?`#${HN(t.fragment)}`:"";return `${n}${r}${o}`}},BN=new pn$1;function Vc(e){return e.segments.map(t=>nE(t)).join("/")}function Vi$2(e,t){if(!e.hasChildren())return Vc(e);if(t){let n=e.children[A$1]?Vi$2(e.children[A$1],false):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==A$1&&r.push(`${o}:${Vi$2(i,false)}`);}),r.length>0?`${n}(${r.join("//")})`:n}else {let n=UN(e,(r,o)=>o===A$1?[Vi$2(e.children[A$1],false)]:[`${o}:${Vi$2(r,false)}`]);return Object.keys(e.children).length===1&&e.children[A$1]!=null?`${Vc(e)}/${n[0]}`:`${Vc(e)}/(${n.join("//")})`}}function tE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uc(e){return tE(e).replace(/%3B/gi,";")}function HN(e){return encodeURI(e)}function Dh(e){return tE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $c(e){return decodeURIComponent(e)}function HD(e){return $c(e.replace(/\+/g,"%20"))}function nE(e){return `${Dh(e.path)}${VN(e.parameters)}`}function VN(e){return Object.entries(e).map(([t,n])=>`;${Dh(t)}=${Dh(n)}`).join("")}function $N(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Uc(n)}=${Uc(o)}`).join("&"):`${Uc(n)}=${Uc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var zN=/^[^\/()?;#]+/;function hh(e){let t=e.match(zN);return t?t[0]:""}var GN=/^[^\/()?;=#]+/;function WN(e){let t=e.match(GN);return t?t[0]:""}var qN=/^[^=?&#]+/;function ZN(e){let t=e.match(qN);return t?t[0]:""}var YN=/^[^&#]+/;function QN(e){let t=e.match(YN);return t?t[0]:""}var Eh=class{url;remaining;constructor(t){this.url=t,this.remaining=t;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U$4([],{}):new U$4([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new y$3(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(false,t)),(n.length>0||Object.keys(r).length>0)&&(o[A$1]=new U$4(n,r)),o}parseSegment(){let t=hh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y$3(4009,false);return this.capture(t),new Ln$2($c(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=WN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=hh(this.remaining);o&&(r=o,this.capture(r));}t[$c(n)]=$c(r);}parseQueryParam(t){let n=ZN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=QN(this.remaining);s&&(r=s,this.capture(r));}let o=HD(n),i=HD(r);if(Object.hasOwn(t,o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i);}else t[o]=i;}parseParens(t,n){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=hh(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new y$3(4010,false);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=A$1);let a=this.parseChildren(n+1);r[s??A$1]=Object.keys(a).length===1&&a[A$1]?a[A$1]:new U$4([],a),this.consumeOptional("//");}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),true):false}capture(t){if(!this.consumeOptional(t))throw new y$3(4011,false)}};function rE(e){return e.segments.length>0?new U$4([],{[A$1]:e}):e}function oE(e){let t=Object.create(null);for(let[r,o]of Object.entries(e.children)){let i=oE(o);if(r===A$1&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else (i.segments.length>0||i.hasChildren())&&(t[r]=i);}let n=new U$4(e.segments,t);return KN(n)}function KN(e){if(e.numberOfChildren===1&&e.children[A$1]){let t=e.children[A$1];return new U$4(e.segments.concat(t.segments),t.children)}return e}function Fn$1(e){return e instanceof Pe$3}function iE(e,t,n=null,r=null,o=new pn$1){let i=sE(e);return aE(i,t,n,r,o)}function sE(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u;}let a=new U$4(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=rE(r);return t??o}function aE(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return ph(i,i,i,n,r,o);let s=JN(t);if(s.toRoot())return ph(i,i,new U$4([],{}),n,r,o);let a=XN(s,i,e),c=a.processChildren?zi$1(a.segmentGroup,a.index,s.commands):uE(a.segmentGroup,a.index,s.commands);return ph(i,a.segmentGroup,c,n,r,o)}function Gc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function qi$1(e){return typeof e=="object"&&e!=null&&e.outlets}function VD(e,t,n){e||="\u0275";let r=new Pe$3;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function ph(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>VD(u,d,i)):VD(u,l,i);let a;e===t?a=n:a=cE(e,t,n);let c=rE(oE(a));return new Pe$3(c,s,o)}function cE(e,t,n){let r=Object.create(null);return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=cE(i,t,n);}),new U$4(e.segments,r)}var Wc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gc(r[0]))throw new y$3(4003,false);let o=r.find(qi$1);if(o&&o!==kN(r))throw new y$3(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function JN(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wc(true,0,e);let t=0,n=false,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u;}),[...o,{outlets:a}]}if(i.segmentPath)return [...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=true:a===".."?t++:a!=""&&o.push(a));}),o):[...o,i]},[]);return new Wc(n,t,r)}var vo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r;}};function XN(e,t,n){if(e.isAbsolute)return new vo(t,true,0);if(!n)return new vo(t,false,NaN);if(n.parent===null)return new vo(n,true,0);let r=Gc(e.commands[0])?0:1,o=n.segments.length-1+r;return eR(n,o,e.numberOfDoubleDots)}function eR(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y$3(4005,false);o=r.segments.length;}return new vo(r,false,o-i)}function tR(e){return qi$1(e[0])?e[0].outlets:{[A$1]:e}}function uE(e,t,n){if(e??=new U$4([],{}),e.segments.length===0&&e.hasChildren())return zi$1(e,t,n);let r=nR(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U$4(e.segments.slice(0,r.pathIndex),{});return i.children[A$1]=new U$4(e.segments.slice(r.pathIndex),e.children),zi$1(i,0,o)}else return r.match&&o.length===0?new U$4(e.segments,{}):r.match&&!e.hasChildren()?wh(e,t,n):r.match?zi$1(e,0,o):wh(e,t,n)}function zi$1(e,t,n){if(n.length===0)return new U$4(e.segments,{});{let r=tR(n),o=Object.create(null);if(Object.keys(r).some(i=>i!==A$1)&&e.children[A$1]&&e.numberOfChildren===1&&e.children[A$1].segments.length===0){let i=zi$1(e.children[A$1],t,n);return new U$4(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=uE(e.children[i],t,s));}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s);}),new U$4(e.segments,o)}}function nR(e,t,n){let r=0,o=t,i={match:false,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(qi$1(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!zD(c,u,s))return i;r+=2;}else {if(!zD(c,{},s))return i;r++;}o++;}return {match:true,pathIndex:o,commandIndex:r}}function wh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(qi$1(i)){let c=rR(i.outlets);return new U$4(r,c)}if(o===0&&Gc(n[0])){let c=e.segments[t];r.push(new Ln$2(c.path,$D(n[0]))),o++;continue}let s=qi$1(i)?i.outlets[A$1]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Gc(a)?(r.push(new Ln$2(s,$D(a))),o+=2):(r.push(new Ln$2(s,{})),o++);}return new U$4(r,{})}function rR(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=wh(new U$4([],{}),0,r));}),t}function $D(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function zD(e,t,n){return e==n.path&&Ht$1(t,n.parameters)}var Do="imperative",ve$2=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(ve$2||{}),Ze=class{id;url;constructor(t,n){this.id=t,this.url=n;}},jn$2=class jn extends Ze{type=ve$2.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ye=class extends Ze{urlAfterRedirects;type=ve$2.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Re$4=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Re$4||{}),wo=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(wo||{}),at$1=class at extends Ze{reason;code;type=ve$2.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function lE(e){return e instanceof at$1&&(e.code===Re$4.Redirect||e.code===Re$4.SupersededByNewNavigation)}var Vt$1=class Vt extends Ze{reason;code;type=ve$2.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}},br=class extends Ze{error;target;type=ve$2.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zi$1=class Zi extends Ze{urlAfterRedirects;state;type=ve$2.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qc=class extends Ze{urlAfterRedirects;state;type=ve$2.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zc=class extends Ze{urlAfterRedirects;state;shouldActivate;type=ve$2.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Yc=class extends Ze{urlAfterRedirects;state;type=ve$2.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qc=class extends Ze{urlAfterRedirects;state;type=ve$2.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kc=class{route;type=ve$2.RouteConfigLoadStart;constructor(t){this.route=t;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Jc=class{route;type=ve$2.RouteConfigLoadEnd;constructor(t){this.route=t;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},Xc$1=class Xc{snapshot;type=ve$2.ChildActivationStart;constructor(t){this.snapshot=t;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},eu=class{snapshot;type=ve$2.ChildActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tu=class{snapshot;type=ve$2.ActivationStart;constructor(t){this.snapshot=t;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nu=class{snapshot;type=ve$2.ActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Io=class{routerEvent;position;anchor;scrollBehavior;type=ve$2.Scroll;constructor(t,n,r,o){this.routerEvent=t,this.position=n,this.anchor=r,this.scrollBehavior=o;}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${t}')`}},Co=class{},Yi$2=class Yi{},bo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n;}};function oR(e){return !(e instanceof Co)&&!(e instanceof bo)&&!(e instanceof Yi$2)}var ru=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Tr(this.rootInjector);}},Tr=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n;}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o);}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n;}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new ru(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(b(ee$2))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ou=class{_root;constructor(t){this._root=t;}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Ih(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Ih(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ch(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ch(t,this._root).map(n=>n.value)}};function Ih(e,t){if(e===t.value)return t;for(let n of t.children){let r=Ih(e,n);if(r)return r}return null}function Ch(e,t){if(e===t.value)return [t];for(let n of t.children){let r=Ch(e,n);if(r.length)return r.unshift(t),r}return []}var qe$2=class qe{value;children;constructor(t,n){this.value=t,this.children=n;}toString(){return `TreeNode(${this.value})`}};function yo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Qi$1=class Qi extends ou{snapshot;constructor(t,n){super(t),this.snapshot=n,kh(this,t);}toString(){return this.snapshot.toString()}};function dE(e,t){let n=iR(e,t),r=new De$3([new Ln$2("",{})]),o=new De$3({}),i=new De$3({}),s=new De$3({}),a=new De$3(""),c=new $t$1(r,o,s,a,i,A$1,e,n.root);return c.snapshot=n.root,new Qi$1(new qe$2(c,[]),n)}function iR(e,t){let n={},r={},o={},s=new So([],n,o,"",r,A$1,e,null,{},t);return new Ki$1("",new qe$2(s,[]))}var $t$1=class $t{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j$4(u=>u[es$1]))??_$3(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i;}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(j$4(t=>Cr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j$4(t=>Cr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},sR="always";function Oh(e,t,n){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:w$1(w$1({},t.params),e.params),data:w$1(w$1({},t.data),e.data),resolve:w$1(w$1(w$1(w$1({},e.data),t.data),o?.data),e._resolvedData)}:r={params:w$1({},e.params),data:w$1({},e.data),resolve:w$1(w$1({},e.data),e._resolvedData??{})},o&&hE(o)&&(r.resolve[es$1]=o.title),r}var So=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[es$1]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l;}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??=Cr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Cr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${t}', path:'${n}')`}},Ki$1=class Ki extends ou{url;constructor(t,n){super(n),this.url=t,kh(this,n);}toString(){return fE(this._root)}};function kh(e,t){t.value._routerState=e,t.children.forEach(n=>kh(e,n));}function fE(e){let t=e.children.length>0?` { ${e.children.map(fE).join(", ")} } `:"";return `${e.value}${t}`}function gh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ht$1(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ht$1(t.params,n.params)||e.paramsSubject.next(n.params),ON(t.url,n.url)||e.urlSubject.next(n.url),Ht$1(t.data,n.data)||e.dataSubject.next(n.data);}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data);}function bh(e,t){let n=Ht$1(e.params,t.params)&&jN(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||bh(e.parent,t.parent))}function hE(e){return typeof e.title=="string"||e.title===null}var pE=new D$1(""),Ph=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=A$1;activateEvents=new be$3;deactivateEvents=new be$3;attachEvents=new be$3;detachEvents=new be$3;routerOutletData=mc();parentContexts=p(Tr);location=p(On$2);changeDetector=p(Er);inputBinder=p(ts$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new y$3(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y$3(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y$3(4012,false);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance);}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n);}}activateWith(n,r){if(this.isActivated)throw new y$3(4013,false);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Sh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||e)};static \u0275dir=kn$2({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xn$2]})}return e})(),Sh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o;}get(t,n){return t===$t$1?this.route:t===Tr?this.childContexts:t===pE?this.outletData:this.parent.get(t,n)}},ts$1=new D$1(""),gE=(()=>{class e{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(n){this.options=n,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n);}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n),this.outletSeenKeys.delete(n);}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Ms$1([this.options.queryParams?r.queryParams:_$3({}),r.params,r.data]).pipe(Ae$4(([i,s,a],c)=>(a=w$1(w$1(w$1({},i),s),a),c===0?_$3(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Kv(r.component);if(!s){this.unsubscribeFromRouteData(n);return}let a=this.outletSeenKeys.get(n);a||(a=new Set,this.outletSeenKeys.set(n,a));for(let u of Object.keys(i))a.add(u);let c=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of s.inputs){let l=i[u];(l!==void 0||c==="alwaysUndefined"||a.has(u))&&n.activatedComponentRef.setInput(u,l);}});this.outletDataSubscriptions.set(n,o);}static \u0275fac=function(r){bi$2();};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})(),Lh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ef({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&lc(0,"router-outlet");},dependencies:[Ph],encapsulation:2,changeDetection:1})}return e})();function Fh(e){let t=e.children&&e.children.map(Fh),n=t?x$2(w$1({},e),{children:t}):w$1({},e);return !n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==A$1&&(n.component=Lh),n}function aR(e,t,n){let r=new Set,o=Ji$1(e,t._root,n?n._root:void 0,r);return {newlyCreatedRoutes:r,state:new Qi$1(o,t)}}function Ji$1(e,t,n,r){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let o=n.value;o._futureSnapshot=t.value;let i=cR(e,t,n,r);return new qe$2(o,i)}else {if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(c=>Ji$1(e,c,void 0,r)),a}}let o=uR(t.value);r.add(o);let i=t.children.map(s=>Ji$1(e,s,void 0,r));return new qe$2(o,i)}}function cR(e,t,n,r){return t.children.map(o=>{for(let i of n.children)if(e.shouldReuseRoute(o.value,i.value.snapshot))return Ji$1(e,o,i,r);return Ji$1(e,o,void 0,r)})}function uR(e){return new $t$1(new De$3(e.url),new De$3(e.params),new De$3(e.queryParams),new De$3(e.fragment),new De$3(e.data),e.outlet,e.component,e)}var To=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n;}},mE="ngNavigationCancelingError";function iu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Fn$1(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=yE(false,Re$4.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function yE(e,t){let n=new Error(`NavigationCancelingError: ${""}`);return n[mE]=true,n.cancellationCode=t,n}function lR(e){return vE(e)&&Fn$1(e.url)}function vE(e){return !!e&&e[mE]}var Th=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i;}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),gh(this.futureState.root),this.activateChildRoutes(n,r,t);}deactivateChildRoutes(t,n,r){let o=yo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s];}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r);});}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children);}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r);}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n);}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a});}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),t.value._localInjector?.destroy();}activateChildRoutes(t,n,r){let o=yo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new nu(i.value.snapshot));}),t.children.length&&this.forwardEvent(new eu(t.value.snapshot));}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(gh(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children);}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),gh(a.route.value),this.activateChildRoutes(t,null,s.children);}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children);}else this.activateChildRoutes(t,null,r);}},su=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1];}},Eo$1=class Eo{component;route;constructor(t,n){this.component=t,this.route=n;}};function dR(e,t,n){let r=e._root,o=t?t._root:null;return $i$1(r,o,n,[r.value])}function fR(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return !t||t.length===0?null:{node:e,guards:t}}function Mo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!el(e)?e:t.get(e):r}function $i$1(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=yo(t);return e.children.forEach(s=>{hR(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet];}),Object.entries(i).forEach(([s,a])=>Gi$1(a,n.getContext(s),o)),o}function hR(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=pR(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new su(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?$i$1(e,t,a?a.children:null,r,o):$i$1(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Eo$1(a.outlet.component,s));}else s&&Gi$1(t,a,o),o.canActivateChecks.push(new su(r)),i.component?$i$1(e,null,a?a.children:null,r,o):$i$1(e,null,n,r,o);return o}function pR(e,t,n){if(typeof n=="function")return ye$3(t._environmentInjector,()=>n(e,t));switch(n){case "pathParamsChange":return !Ir(e.url,t.url);case "pathParamsOrQueryParamsChange":return !Ir(e.url,t.url)||!Ht$1(e.queryParams,t.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !bh(e,t)||!Ht$1(e.queryParams,t.queryParams);default:return !bh(e,t)}}function Gi$1(e,t,n){let r=yo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Gi$1(s,t.children.getContext(i),n):Gi$1(s,null,n):Gi$1(s,t,n);}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Eo$1(t.outlet.component,o)):n.canDeactivateChecks.push(new Eo$1(null,o)):n.canDeactivateChecks.push(new Eo$1(null,o));}function ns$1(e){return typeof e=="function"}function gR(e){return typeof e=="boolean"}function mR(e){return e&&ns$1(e.canLoad)}function yR(e){return e&&ns$1(e.canActivate)}function vR(e){return e&&ns$1(e.canActivateChild)}function DR(e){return e&&ns$1(e.canDeactivate)}function ER(e){return e&&ns$1(e.canMatch)}function DE(e){return e instanceof Gt$1||e?.name==="EmptyError"}var Bc=Symbol("INITIAL_VALUE");function _o(){return Ae$4(e=>Ms$1(e.map(t=>t.pipe(He(1),Os$1(Bc)))).pipe(j$4(t=>{for(let n of t)if(n!==true){if(n===Bc)return Bc;if(n===false||wR(n))return n}return true}),Ce$4(t=>t!==Bc),He(1)))}function wR(e){return Fn$1(e)||e instanceof To}function EE(e){return e.aborted?_$3(void 0).pipe(He(1)):new k$1(t=>{let n=()=>{t.next(),t.complete();};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function wE(e){return kr(EE(e))}function IR(e){return ge$3(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?_$3(x$2(w$1({},t),{guardsResult:true})):CR(i,n,r).pipe(ge$3(s=>s&&gR(s)?bR(n,o,e):_$3(s)),j$4(s=>x$2(w$1({},t),{guardsResult:s})))})}function CR(e,t,n){return Y$1(e).pipe(ge$3(r=>NR(r.component,r.route,n,t)),Zt$1(r=>r!==true,true))}function bR(e,t,n){return Y$1(t).pipe(qt$1(r=>Tt$2(TR(r.route.parent,n),SR(r.route,n),MR(e,r.path),_R(e,r.route))),Zt$1(r=>r!==true,true))}function SR(e,t){return e!==null&&t&&t(new tu(e)),_$3(true)}function TR(e,t){return e!==null&&t&&t(new Xc$1(e)),_$3(true)}function _R(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return _$3(true);let r=n.map(o=>Oo(()=>{let i=t._environmentInjector,s=Mo(o,i),a=yR(s)?s.canActivate(t,e):ye$3(i,()=>s(t,e));return Sr(a).pipe(Zt$1())}));return _$3(r).pipe(_o())}function MR(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>fR(i)).filter(i=>i!==null).map(i=>Oo(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Mo(a,c),l=vR(u)?u.canActivateChild(n,e):ye$3(c,()=>u(n,e));return Sr(l).pipe(Zt$1())});return _$3(s).pipe(_o())}));return _$3(o).pipe(_o())}function NR(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return _$3(true);let i=o.map(s=>{let a=t._environmentInjector,c=Mo(s,a),u=DR(c)?c.canDeactivate(e,t,n,r):ye$3(a,()=>c(e,t,n,r));return Sr(u).pipe(Zt$1())});return _$3(i).pipe(_o())}function RR(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return _$3(true);let s=i.map(a=>{let c=Mo(a,e),u=mR(c)?c.canLoad(t,n):ye$3(e,()=>c(t,n)),l=Sr(u);return o?l.pipe(wE(o)):l});return _$3(s).pipe(_o(),IE(r))}function IE(e){return wu(Le$2(t=>{if(typeof t!="boolean")throw iu(e,t)}),j$4(t=>t===true))}function AR(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return _$3(true);let a=s.map(c=>{let u=Mo(c,e),l=ER(u)?u.canMatch(t,n,o):ye$3(e,()=>u(t,n,o));return Sr(l).pipe(wE(i))});return _$3(a).pipe(_o(),IE(r))}var hn$1=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype);}},Xi$1=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype);}};function xR(e){throw new y$3(4e3,false)}function OR(e){throw yE(false,Re$4.GuardRejected)}var _h=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n;}lineralizeSegments(t,n){return B$1(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[A$1])throw xR(`${t.redirectTo}`);o=o.children[A$1];}})}applyRedirectCommands(t,n,r,o,i){return B$1(this,null,function*(){let s=yield kR(n,o,i);if(s instanceof Pe$3)throw new Xi$1(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new Xi$1(a);return a})}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Pe$3(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a];}else r[o]=i;}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s=Object.create(null);return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o);}),new U$4(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new y$3(4001,false);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++;}return t}};function kR(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return zc(Sr(ye$3(n,()=>r(t))))}function PR(e,t){return e.providers&&!e._injector&&(e._injector=uo(e.providers,t,`Route: ${e.path}`)),e._injector??t}function wt$1(e){return e.outlet||A$1}function LR(e,t){let n=e.filter(r=>wt$1(r)===t);return n.push(...e.filter(r=>wt$1(r)!==t)),n}var Mh={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CE(e){return {routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function FR(e,t,n,r,o,i,s){let a=bE(e,t,n);if(!a.matched)return _$3(a);let c=CE(i(a));return r=PR(t,r),AR(r,t,n,o,c,s).pipe(j$4(u=>u===true?a:w$1({},Mh)))}function bE(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?w$1({},Mh):{matched:true,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||ZD)(n,e,t);if(!o)return w$1({},Mh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path;});let s=o.consumed.length>0?w$1(w$1({},i),o.consumed[o.consumed.length-1].parameters):i;return {matched:true,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function GD(e,t,n,r,o){return n.length>0&&BR(e,n,r,o)?{segmentGroup:new U$4(t,UR(r,new U$4(n,e.children))),slicedSegments:[]}:n.length===0&&HR(e,n,r)?{segmentGroup:new U$4(e.segments,jR(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U$4(e.segments,e.children),slicedSegments:n}}function jR(e,t,n,r){let o={};for(let i of n)if(cu(e,t,i)&&!r[wt$1(i)]){let s=new U$4([],{});o[wt$1(i)]=s;}return w$1(w$1({},r),o)}function UR(e,t){let n={};n[A$1]=t;for(let r of e)if(r.path===""&&wt$1(r)!==A$1){let o=new U$4([],{});n[wt$1(r)]=o;}return n}function BR(e,t,n,r){return n.some(o=>!cu(e,t,o)||!(wt$1(o)!==A$1)?false:!(r!==void 0&&wt$1(o)===r))}function HR(e,t,n){return n.some(r=>cu(e,t,r))}function cu(e,t,n){return (e.hasChildren()||t.length>0)&&n.pathMatch==="full"?false:n.path===""}function VR(e,t,n){return t.length===0&&!e.children[n]}var Nh=class{};function $R(e,t,n,r,o,i,s,a){return B$1(this,null,function*(){return new Rh(e,t,n,r,o,s,i,a).recognize()})}var zR=31,Rh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new _h(this.urlSerializer,this.urlTree);}noMatchError(t){return new y$3(4002,`'${t.segmentGroup}'`)}recognize(){return B$1(this,null,function*(){let t=GD(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(t),o=new qe$2(r,n),i=new Ki$1("",o),s=iE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}})}match(t){return B$1(this,null,function*(){let n=new So([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A$1,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,t,A$1,n),rootSnapshot:n}}catch(r){if(r instanceof Xi$1)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof hn$1?this.noMatchError(r):r}})}processSegmentGroup(t,n,r,o,i){return B$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=yield this.processSegment(t,n,r,r.segments,o,true,i);return s instanceof qe$2?[s]:[]})}processChildren(t,n,r,o){return B$1(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=LR(n,c),d=yield this.processSegmentGroup(t,l,u,c,o);s.push(...d);}let a=SE(s);return GR(a),a})}processSegment(t,n,r,o,i,s,a){return B$1(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof hn$1||DE(u))continue;throw u}if(VR(r,o,i))return new Nh;throw new hn$1(r)})}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return B$1(this,null,function*(){if(wt$1(r)!==s&&(s===A$1||!cu(o,i,r)))throw new hn$1(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new hn$1(o)})}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){return B$1(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=bE(n,o,i);if(!c)throw new hn$1(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>zR&&(this.allowRedirects=false));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,CE(h),t),v=yield this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,v.concat(f),s,false,a)})}createSnapshot(t,n,r,o,i){let s=new So(r,o,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,qR(n),wt$1(n),n.component??n._loadedComponent??null,n,ZR(n),t),a=Oh(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(t,n,r,o,i,s){return B$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=de=>this.createSnapshot(t,r,de.consumedSegments,de.parameters,s),c=yield zc(FR(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new hn$1(n);t=r._injector??t;let{routes:u}=yield this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:v,slicedSegments:E}=GD(n,f,h,u,i);if(E.length===0&&v.hasChildren()){let de=yield this.processChildren(l,u,v,g);return new qe$2(g,de)}if(u.length===0&&E.length===0)return new qe$2(g,[]);let M=wt$1(r)===i,z=yield this.processSegment(l,u,v,E,M?A$1:i,true,g);return new qe$2(g,z instanceof qe$2?[z]:[])})}getChildConfig(t,n,r){return B$1(this,null,function*(){if(n.children)return {routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield zc(RR(t,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw OR()}return {routes:[],injector:t}})}};function GR(e){e.sort((t,n)=>t.value.outlet===A$1?-1:n.value.outlet===A$1?1:t.value.outlet.localeCompare(n.value.outlet));}function WR(e){let t=e.value.routeConfig;return t&&t.path===""}function SE(e){let t=[],n=new Set;for(let r of e){if(!WR(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r);}for(let r of n){let o=SE(r.children);t.push(new qe$2(r.value,o));}return t.filter(r=>!n.has(r))}function qR(e){return e.data||{}}function ZR(e){return e.resolve||{}}function YR(e,t,n,r,o,i,s){return ge$3(a=>B$1(null,null,function*(){let{state:c,tree:u}=yield $R(e,t,n,r,a.extractedUrl,o,i,s);return x$2(w$1({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function QR(e){return ge$3(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return _$3(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of TE(a))i.add(c);let s=0;return Y$1(i).pipe(qt$1(a=>o.has(a)?KR(a,n,e):(a.data=Oh(a,a.parent,e).resolve,_$3(void 0))),Le$2(()=>s++),Ls(1),ge$3(a=>s===i.size?_$3(t):pe$3))})}function TE(e){let t=e.children.map(n=>TE(n)).flat();return [e,...t]}function KR(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!hE(r)&&(o[es$1]=r.title),Oo(()=>(e.data=Oh(e,e.parent,n).resolve,JR(o,e,t).pipe(j$4(i=>(e._resolvedData=i,e.data=w$1(w$1({},e.data),i),null)))))}function JR(e,t,n){let r=yh(e);if(r.length===0)return _$3({});let o={};return Y$1(r).pipe(ge$3(i=>XR(e[i],t,n).pipe(Zt$1(),Le$2(s=>{if(s instanceof To)throw iu(new pn$1,s);o[i]=s;}))),Ls(1),j$4(()=>o),Wn$2(i=>DE(i)?pe$3:_u(i)))}function XR(e,t,n){let r=t._environmentInjector,o=Mo(e,r),i=o.resolve?o.resolve(t,n):ye$3(r,()=>o(t,n));return Sr(i)}function WD(e){return Ae$4(t=>{let n=e(t);return n?Y$1(n).pipe(j$4(()=>t)):_$3(t)})}var jh=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===A$1);return r}getResolvedTitleForRoute(n){return n.data[es$1]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(_E)})}return e})(),_E=(()=>{class e extends jh{title;constructor(n){super(),this.title=n;}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||e)(b(BD))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bn$2=new D$1("",{factory:()=>({})}),_r=new D$1(""),uu=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Of);loadComponent(n,r){return B$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=B$1(this,null,function*(){try{let i=yield QD(ye$3(n,()=>r.loadComponent())),s=yield NE(jf(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,o),o})}loadChildren(n,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 o=B$1(this,null,function*(){try{let i=yield ME(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function ME(e,t,n,r){return B$1(this,null,function*(){let o=yield QD(ye$3(n,()=>e.loadChildren())),i=yield NE(jf(o)),s;i instanceof sc||Array.isArray(i)?s=i:s=yield t.compileModuleAsync(i),r&&r(e);let a,c,l;return Array.isArray(s)?(c=s,true):(a=s.create(n).injector,l=s,c=a.get(_r,[],{optional:true,self:true}).flat()),{routes:c.map(Fh),injector:a,factory:l}})}function NE(e){return B$1(this,null,function*(){return e})}var lu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(eA)})}return e})(),eA=(()=>{class e{shouldProcessUrl(n){return true}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),Uh=new D$1(""),Bh=new D$1("");function RE(e,t,n){let r=e.get(Bh),o=e.get(Q$3);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u;}),a=o.startViewTransition(()=>(i(),tA(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&ye$3(e,()=>c({transition:a,from:t,to:n})),s}function tA(e){return new Promise(t=>{Ja({read:()=>setTimeout(t)},{injector:e});})}var AE=new D$1(""),nA=()=>{},Hh=new D$1(""),du=(()=>{class e{currentNavigation=se(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=se(null);events=new ne$1;transitionAbortWithErrorSubject=new ne$1;configLoader=p(uu);environmentInjector=p(ee$2);destroyRef=p(Me$4);urlSerializer=p(Un$2);rootContexts=p(Tr);location=p(Pn$2);inputBindingEnabled=p(ts$1,{optional:true})!==null;titleStrategy=p(jh);options=p(Bn$2,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||sR;urlHandlingStrategy=p(lu);createViewTransition=p(Uh,{optional:true});navigationErrorHandler=p(Hh,{optional:true});activatedRouteInjectorFeature=p(AE,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>_$3(void 0);rootComponentType=null;destroyed=false;constructor(){let n=o=>this.events.next(new Kc(o)),r=o=>this.events.next(new Jc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(n){let r=++this.navigationId;W$3(()=>{this.transitions?.next(x$2(w$1({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(n){return this.transitions=new De$3(null),this.transitions.pipe(Ce$4(r=>r!==null),Ae$4(r=>{let o=true,i=false,s=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return _$3(r).pipe(Ae$4(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),pe$3;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:c.routesRecognizeHandler,beforeActivateHandler:c.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.rawUrl),"",wo.IgnoredSameUrlNavigation)),c.resolve(false),pe$3;if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return _$3(c).pipe(Ae$4(f=>(this.events.next(new jn$2(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?pe$3:Promise.resolve(f))),YR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),Le$2(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=f.urlAfterRedirects,h)),this.events.next(new Yi$2);}),Ae$4(f=>Y$1(r.routesRecognizeHandler.deferredHandle??_$3(void 0)).pipe(j$4(()=>f))),Le$2(()=>{let f=new Zi$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:v,extras:E}=c,M=new jn$2(f,this.urlSerializer.serialize(h),g,v);this.events.next(M);let z=dE(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},c),{targetSnapshot:z,urlAfterRedirects:h,extras:x$2(w$1({},E),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(de=>(de.finalUrl=h,de)),_$3(r)}else return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.extractedUrl),"",wo.IgnoredByUrlHandlingStrategy)),c.resolve(false),pe$3}),j$4(c=>{let u=new qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},c),{guards:dR(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r}),IR(c=>this.events.next(c)),Ae$4(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw iu(this.urlSerializer,c.guardsResult);let u=new Zc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);if(this.events.next(u),!a())return pe$3;if(!c.guardsResult)return this.cancelNavigationTransition(c,"",Re$4.GuardRejected),pe$3;if(c.guards.canActivateChecks.length===0)return _$3(c);let l=new Yc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);if(this.events.next(l),!a())return pe$3;let d=false;return _$3(c).pipe(QR(this.paramsInheritanceStrategy),Le$2({next:()=>{d=true;let f=new Qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);},complete:()=>{d||this.cancelNavigationTransition(c,"",Re$4.NoDataFromResolver);}}))}),WD(c=>{let u=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let h=d._environmentInjector;f.push(this.configLoader.loadComponent(h,d.routeConfig).then(g=>{d.component=g;}));}for(let h of d.children)f.push(...u(h));return f},l=u(c.targetSnapshot.root);return l.length===0?_$3(c):Y$1(Promise.all(l).then(()=>c))}),Ae$4(c=>{let{newlyCreatedRoutes:u,state:l}=aR(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=c=x$2(w$1({},c),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),_$3(c)}),this.activatedRouteInjectorFeature?.operator()??(c=>c),WD(()=>this.afterPreactivation()),Ae$4(()=>{let{currentSnapshot:c,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?Y$1(l).pipe(j$4(()=>r)):_$3(r)}),He(1),Ae$4(c=>{o=false,this.events.next(new Co);let u=r.beforeActivateHandler.deferredHandle;return u?Y$1(u.then(()=>c)):_$3(c)}),Le$2(c=>{new Th(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),c.newlyCreatedRoutes?.clear(),a()&&(i=true,this.currentNavigation.update(u=>(u.abort=nA,u)),this.lastSuccessfulNavigation.set(W$3(this.currentNavigation)),this.events.next(new Ye(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(true));}),kr(EE(s.signal).pipe(Ce$4(()=>!i&&o),Le$2(()=>{this.cancelNavigationTransition(r,s.signal.reason+"",Re$4.Aborted);}))),Le$2({complete:()=>{i=true;}}),kr(this.transitionAbortWithErrorSubject.pipe(Le$2(c=>{throw c}))),Or(()=>{s.abort(),i||this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Wn$2(c=>{if(i=true,qD(r),this.destroyed)return r.resolve(false),pe$3;if(vE(c))this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),lR(c)?this.events.next(new bo(c.url,c.navigationBehaviorOptions)):r.resolve(false);else {let u=new br(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let l=ye$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof To){let{message:d,cancellationCode:f}=iu(this.urlSerializer,l);this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new bo(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(l);}}return pe$3}))}))}cancelNavigationTransition(n,r,o){qD(n);let i=new at$1(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=W$3(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function rA(e){return e!==Do}function qD(e){if(e.newlyCreatedRoutes)for(let t of e.newlyCreatedRoutes)t._localInjector?.destroy();}var xE=new D$1("");var OE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(oA)})}return e})(),au=class{shouldDetach(t){return false}store(t,n){}shouldAttach(t){return false}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return true}},oA=(()=>{class e extends au{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),fu=(()=>{class e{urlSerializer=p(Un$2);options=p(Bn$2,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Pn$2);urlHandlingStrategy=p(lu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Pe$3;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Pe$3?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o;}routerState=dE(null,p(ee$2));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||e)};static \u0275prov=Z$2({token:e,factory:()=>p(iA)})}return e})(),iA=(()=>{class e extends fu{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(n,r){n instanceof jn$2?this.updateStateMemento():n instanceof Vt$1?this.commitTransition(r):n instanceof Zi$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Co?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof at$1&&!lE(n)?this.restoreHistory(r):n instanceof br?this.restoreHistory(r,true):n instanceof Ye&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId);}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=w$1(w$1({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u);}else {let c=w$1(w$1({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c);}}restoreHistory(n,r=false){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?w$1({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):w$1({navigationId:n},this.routerUrlState(o))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function hu(e,t){e.events.pipe(Ce$4(n=>n instanceof Ye||n instanceof at$1||n instanceof br||n instanceof Vt$1),j$4(n=>n instanceof Ye||n instanceof Vt$1?0:(n instanceof at$1?n.code===Re$4.Redirect||n.code===Re$4.SupersededByNewNavigation:false)?2:1),Ce$4(n=>n!==2),He(1)).subscribe(()=>{t();});}var It$1=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=p(cc);stateManager=p(fu);options=p(Bn$2,{optional:true})||{};pendingTasks=p(kt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(du);urlSerializer=p(Un$2);location=p(Pn$2);urlHandlingStrategy=p(lu);injector=p(ee$2);_events=new ne$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=p(OE);injectorCleanup=p(xE,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(_r,{optional:true})?.flat()??[];componentInputBindingEnabled=!!p(ts$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ce$2;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=W$3(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof at$1&&r.code!==Re$4.Redirect&&r.code!==Re$4.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ye)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof bo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=w$1({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||rA(o.source)},s);this.scheduleNavigation(a,Do,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise});}}oR(r)&&this._events.next(r);}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o);}});this.eventsSubscription.add(n);}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Do,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i);});}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=x$2(w$1({},i),{browserUrl:n})),o){let u=w$1({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u);}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(ke$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return W$3(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Fh),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(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case "merge":l=w$1(w$1({},this.currentUrlTree.queryParams),i);break;case "preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null;}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=sE(f);}catch(f){(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root;}return aE(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:false}){let o=Fn$1(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Do,null,r)}navigate(n,r={skipLocationChange:false}){return sA(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch(r){return this.console.warn(Ke$1(4018,false)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===true?o=w$1({},Ah):r===false?o=w$1({},Wi$2):o=w$1(w$1({},Wi$2),r),Fn$1(n))return vh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return vh(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(false);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f;});let l=this.pendingTasks.add();return hu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function sA(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new y$3(4008,false)}var aA=(()=>{class e{router=p(It$1);stateManager=p(fu);fragment=se("");queryParams=se({});path=se("");serializer=p(Un$2);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Ye&&this.updateState();});}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Pe$3(r)));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),pu=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new pc("href"),{optional:true});reactiveHref=kf(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return W$3(this.reactiveHref)}set href(n){this.reactiveHref.set(n);}set target(n){this._target.set(n);}get target(){return W$3(this._target)}_target=se(void 0);set queryParams(n){this._queryParams.set(n);}get queryParams(){return W$3(this._queryParams)}_queryParams=se(void 0,{equal:()=>false});set fragment(n){this._fragment.set(n);}get fragment(){return W$3(this._fragment)}_fragment=se(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n);}get queryParamsHandling(){return W$3(this._queryParamsHandling)}_queryParamsHandling=se(void 0);set state(n){this._state.set(n);}get state(){return W$3(this._state)}_state=se(void 0,{equal:()=>false});set info(n){this._info.set(n);}get info(){return W$3(this._info)}_info=se(void 0,{equal:()=>false});set relativeTo(n){this._relativeTo.set(n);}get relativeTo(){return W$3(this._relativeTo)}_relativeTo=se(void 0);set preserveFragment(n){this._preserveFragment.set(n);}get preserveFragment(){return W$3(this._preserveFragment)}_preserveFragment=se(false);set skipLocationChange(n){this._skipLocationChange.set(n);}get skipLocationChange(){return W$3(this._skipLocationChange)}_skipLocationChange=se(false);set replaceUrl(n){this._replaceUrl.set(n);}get replaceUrl(){return W$3(this._replaceUrl)}_replaceUrl=se(false);browserUrl=mc(void 0);isAnchorElement;onChanges=new ne$1;applicationErrorHandler=p(ke$2);options=p(Bn$2,{optional:true});reactiveRouterState=p(aA);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n);}ngOnChanges(n){this.onChanges.next(this);}routerLinkInput=se(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fn$1(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return true;let c=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},c!==void 0&&{browserUrl:c});return this.router.navigateByUrl(a,u)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n);}_urlTree=Mi$2(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Fn$1(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:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return W$3(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(ae$2(It$1),ae$2($t$1),vi$2("tabindex"),ae$2(co),ae$2(Ft$1),ae$2(Dt$1))};static \u0275dir=kn$2({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&dc("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&uc("href",o.reactiveHref(),zd)("target",o._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ri$2],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ri$2],replaceUrl:[2,"replaceUrl","replaceUrl",Ri$2],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[xn$2]})}return e})(),cA=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new be$3;link=p(pu,{optional:true});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof Ye&&this.update();});}ngAfterContentInit(){_$3(this.links.changes,_$3(null)).pipe(St$1()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Y$1(n).pipe(St$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o);}ngOnChanges(n){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n));});}isLinkActive(n){let r=uA(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Ah):w$1({},Wi$2);return o=>{let i=o.urlTree;return i?W$3(xh(i,n,r)):false}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(ae$2(It$1),ae$2(Ft$1),ae$2(co),ae$2(Er))};static \u0275dir=kn$2({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&fc(i,pu,5),r&2){let s;Rf(s=Af())&&(o.links=s);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xn$2]})}return e})();function uA(e){let t=e;return !!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var rs$1=class rs{};var kE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i){this.router=n,this.injector=r,this.preloadingStrategy=o,this.loader=i;}setUpPreloading(){this.subscription=this.router.events.pipe(Ce$4(n=>n instanceof Ye),qt$1(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=uo(i.providers,n,""));let s=i._injector??n;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes));}return Y$1(o).pipe(St$1())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{if(n.destroyed)return _$3(null);let o;r.loadChildren&&r.canLoad===void 0?o=Y$1(this.loader.loadChildren(n,r)):o=_$3(null);let i=o.pipe(ge$3(s=>s===null?_$3(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(n,r);return Y$1([i,s]).pipe(St$1())}else return i})}static \u0275fac=function(r){return new(r||e)(b(It$1),b(ee$2),b(rs$1),b(uu))};static \u0275prov=R$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),PE=new D$1(""),lA=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Do;restoredId=0;store={};isHydrating=p(Fd,{optional:true})??false;urlSerializer=p(Un$2);zone=p(J$3);viewportScroller=p(Jf);transitions=p(du);constructor(n){this.options=n,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(sn$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof jn$2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ye?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Vt$1&&n.code===wo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{if(!(n instanceof Io)||n.scrollBehavior==="manual")return;let r={behavior:"instant"};n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position,r):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(n,r){if(this.isHydrating)return;let o=W$3(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$1(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i);}),this.zone.run(()=>{this.transitions.events.next(new Io(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){bi$2();};static \u0275prov=R$2({token:e,factory:e.\u0275fac})}return e})();function dA(e,...t){return ft$2([{provide:_r,multi:true,useValue:e},{provide:$t$1,useFactory:LE},{provide:fo,multi:true,useFactory:FE},t.map(n=>n.\u0275providers)])}function LE(){return p(It$1).routerState.root}function os$1(e,t){return {\u0275kind:e,\u0275providers:t}}function FE(){let e=p(we$2);return t=>{let n=e.get(sn$1);if(t!==n.components[0])return;let r=e.get(It$1),o=e.get(jE);e.get($h)===1&&r.initialNavigation(),e.get(HE,null,{optional:true})?.setUpPreloading(),e.get(PE,null,{optional:true})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe());}}var jE=new D$1("",{factory:()=>new ne$1}),$h=new D$1("",{factory:()=>1});function UE(){let e=[{provide:Wa,useValue:true},{provide:$h,useValue:0},ac(()=>{let t=p(we$2);return t.get(Bf,Promise.resolve()).then(()=>new Promise(r=>{let o=t.get(It$1),i=t.get(jE);hu(o,()=>{r(true);}),t.get(du).afterPreactivation=()=>(r(true),i.closed?_$3(void 0):i),o.initialNavigation();}))})];return os$1(2,e)}function BE(){let e=[ac(()=>{p(It$1).setUpLocationChangeListener();}),{provide:$h,useValue:2}];return os$1(3,e)}var HE=new D$1("");function VE(e){return os$1(0,[{provide:HE,useExisting:kE},{provide:rs$1,useExisting:e}])}function $E(e={}){return os$1(8,[{provide:ts$1,useFactory:()=>new gE(e)}])}function zE(e){it$1("NgRouterViewTransitions");let t=[{provide:Uh,useValue:RE},{provide:Bh,useValue:w$1({skipNextTransition:false},e)}];return os$1(9,t)}var GE=[Pn$2,{provide:Un$2,useClass:pn$1},It$1,Tr,{provide:$t$1,useFactory:LE},uu],fA=(()=>{class e{constructor(){}static forRoot(n,r){return {ngModule:e,providers:[GE,[],{provide:_r,multi:true,useValue:n},[],r?.errorHandler?{provide:Hh,useValue:r.errorHandler}:[],{provide:Bn$2,useValue:r||{}},r?.useHash?pA():gA(),hA(),r?.preloadingStrategy?VE(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?mA(r):[],r?.bindToComponentInputs?$E(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?zE().\u0275providers:[],yA()]}}static forChild(n){return {ngModule:e,providers:[{provide:_r,multi:true,useValue:n}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=lo({type:e});static \u0275inj=tr({})}return e})();function hA(){return {provide:PE,useFactory:()=>{let e=p(Jf),t=p(Bn$2);return t.scrollOffset&&e.setOffset(t.scrollOffset),new lA(t)}}}function pA(){return {provide:Dt$1,useClass:Zf}}function gA(){return {provide:Dt$1,useClass:Dc}}function mA(e){return [e.initialNavigation==="disabled"?BE().\u0275providers:[],e.initialNavigation==="enabledBlocking"?UE().\u0275providers:[]]}var Vh=new D$1("");function yA(){return [{provide:Vh,useFactory:FE},{provide:fo,multi:true,useExisting:Vh}]}
|
|
6
|
+
var y$2=class a{http=p(jD);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new dn$1;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=R$2({token:a,factory:a.\u0275fac,providedIn:"root"})};var E=["email","providers","folder","progress"],C=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,T$2=1500,j$3=8,O$1=2e4,l=(a,e,t)=>({key:a,label:e,state:t.state,percent:t.percent,message:t.message??(a==="java"?t.version:void 0)}),P$1=(a,e)=>{if(a instanceof wr){let t=a.error;if(t&&typeof t=="object"&&t.error)return t.error;if(a.status===0)return "Cannot reach the Coday server."}return e},R$1=class a{api=p(y$2);destroyRef=p(Me$4);status=se(null);statusError=se(null);step=se("email");email=se("");providers=se([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=se("");mode=se("wizard");factoryGraceElapsed=se(false);factoryGraceTimer=null;busy=se(false);error=se(null);emailValid=Mi$2(()=>C.test(this.email().trim()));enabledProviders=Mi$2(()=>this.providers().filter(e=>e.enabled));providersValid=Mi$2(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=j$3)});folderValid=Mi$2(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=Mi$2(()=>E.indexOf(this.step()));checklist=Mi$2(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS and the Factory",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),l("providers","Configuring your AI providers",e.providers),l("models","Registering the models",e.models),l("namespace","Creating your personal workspace",e.namespace),l("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=Mi$2(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS and the Factory",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),l("factory","Starting the Factory",e.factory)]:[]});loadingReady=Mi$2(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"?false:e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed()});javaBlocked=Mi$2(()=>this.status()?.steps.java.state==="blocked");ready=Mi$2(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=Mi$2(()=>this.status()?.apply.status==="error");emailLocked=Mi$2(()=>(this.status()?.apply.status??"idle")!=="idle");namespaceId=Mi$2(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1));}refreshStatus(){return B$1(this,null,function*(){try{let e=yield iw(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(P$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=ko(0,T$2).pipe(Au(()=>this.api.getStatus().pipe(Wn$2(()=>_$3(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(){return B$1(this,null,function*(){let e=yield this.refreshStatus();if(e){if(e.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(e.defaults.sharedExchangePath),e.identity&&!this.email()&&this.email.set(e.identity.email),this.startPolling(),!(e.mode==="laptop"&&e.setupEnabled&&!e.setupDone)){this.mode.set("loading"),this.step.set("progress");return}(e.apply.status==="running"||e.apply.status==="error"||e.apply.status==="done")&&this.step.set("progress");}})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(E[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$1(this,null,function*(){if(!(!this.emailValid()||this.busy())){this.busy.set(true),this.error.set(null);try{yield iw(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(P$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(i=>i.id===e);if(!r)return t;let s=t.map(i=>i.id===e?x$2(w$1({},i),{enabled:!i.enabled}):i);if(!r.enabled){let i=s.find(p=>p.id===e);return [...s.filter(p=>p.id!==e),i]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$2(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(n=>n.enabled),i=s.findIndex(n=>n.id===e),p=i+t;if(i<0||p<0||p>=s.length)return r;let u=[...s],[f]=u.splice(i,1);return u.splice(p,0,f),[...u,...r.filter(n=>!n.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(n=>n.enabled),i=s.findIndex(n=>n.id===e),p=s.findIndex(n=>n.id===t);if(i<0||p<0)return r;let u=[...s],[f]=u.splice(i,1);return u.splice(p,0,f),[...u,...r.filter(n=>!n.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return iw(this.api.browse(e,t))}mkdir(e,t){return iw(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$1(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){this.busy.set(true),this.error.set(null);try{yield iw(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(P$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$1(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){let e=this.namespaceId();return {path:"/home",queryParams:e?{ns:e}:{}}}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||a)};static \u0275prov=R$2({token:a,factory:a.\u0275fac,providedIn:"root"})};function lt$1(i){return i.buttons===0||i.detail===0}function ct$1(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var he$2;function Je(){if(he$2==null){let i=typeof document<"u"?document.head:null;he$2=!!(i&&(i.createShadowRoot||i.attachShadow));}return he$2}function pe$2(i){if(Je()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ri$1(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function A(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}var fe$1;try{fe$1=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){fe$1=false;}var _$2=(()=>{class i{_platformId=p(ni$2);isBrowser=this._platformId?sz(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||fe$1)&&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(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var dt$1;function tn(){if(dt$1==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dt$1=!0}));}finally{dt$1=dt$1||false;}return dt$1}function Q$2(i){return tn()?i:!!i.capture}function en(i,e=0){return nn(i)?Number(i):arguments.length===2?e:0}function nn(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function L$2(i){return i instanceof Ft$1?i.nativeElement:i}var on=new D$1("cdk-input-modality-detector-options"),rn={ignoreKeys:[18,17,224,91,16]},sn=650,be$2={passive:true,capture:true},an=(()=>{class i{_platform=p(_$2);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new De$3(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=A(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<sn||(this._modality.next(lt$1(t)?"keyboard":"mouse"),this._mostRecentTarget=A(t));};_onTouchstart=t=>{if(ct$1(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=A(t);};constructor(){let t=p(J$3),n=p(Q$3),o=p(on,{optional:true});if(this._options=w$1(w$1({},rn),o),this.modalityDetected=this._modality.pipe(hp(1)),this.modalityChanged=this.modalityDetected.pipe(vp()),this._platform.isBrowser){let r=p(hr).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,be$2),r.listen(n,"mousedown",this._onMousedown,be$2),r.listen(n,"touchstart",this._onTouchstart,be$2)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ut$1=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(ut$1||{}),ln=new D$1("cdk-focus-monitor-default-options"),Ot$1=Q$2({passive:true,capture:true}),_e$1=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_inputModalityDetector=p(an);_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=p(Q$3);_stopInputModalityDetector=new ne$1;constructor(){let t=p(ln,{optional:true});this._detectionMode=t?.detectionMode||ut$1.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=A(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=L$2(t);if(!this._platform.isBrowser||o.nodeType!==1)return _$3();let r=pe$2(o)||this._document,s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=true),s.subject;let l={checkChildren:n,subject:new ne$1,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=L$2(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=L$2(t),s=this._document.activeElement;r===s?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ut$1.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(t,n=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===ut$1.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?sn:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=A(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot$1);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(kr(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot$1),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot$1),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let s=0;s<r.length;s++)if(r[s].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var At$1=new WeakMap,I=(()=>{class i{_appRef;_injector=p(we$2);_environmentInjector=p(ee$2);load(t){let n=this._appRef=this._appRef||this._injector.get(sn$1),o=At$1.get(n);o||(o={loaders:new Set,refs:[]},At$1.set(n,o),n.onDestroy(()=>{At$1.get(n)?.refs.forEach(r=>r.destroy()),At$1.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(F$(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var It=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Ef({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
|
|
7
7
|
border: 0;
|
|
8
8
|
clip: rect(0 0 0 0);
|
|
9
9
|
height: 1px;
|
|
@@ -22,7 +22,7 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
22
22
|
left: auto;
|
|
23
23
|
right: 0;
|
|
24
24
|
}
|
|
25
|
-
`],encapsulation:2})}return i})(),Mt$1;function si$1(){if(Mt$1===void 0&&(Mt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Mt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Mt$1}function Eo(i){return si$1()?.createHTML(i)||i}function J$2(i){return Array.isArray(i)?i:[i]}var cn=new Set,j$2,Tt$1=(()=>{class i{_platform=p(_$2);_nonce=p(ni$2,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):li;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&ai$1(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function ai$1(i,e){if(!cn.has(i))try{j$2||(j$2=document.createElement("style"),e&&j$2.setAttribute("nonce",e),j$2.setAttribute("type","text/css"),document.head.appendChild(j$2)),j$2.sheet&&(j$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),cn.add(i));}catch(t){console.error(t);}}function li(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var ge$2=(()=>{class i{_mediaMatcher=p(Tt$1);_zone=p(J$3);_queries=new Map;_destroySubject=new ne$1;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return dn(J$2(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=dn(J$2(t)).map(s=>this._registerQuery(s).observable),r=Ss$1(o);return r=Tt$2(r.pipe(He(1)),r.pipe(fp(1),dp(0))),r.pipe(j$4(s=>{let l={matches:false,breakpoints:{}};return s.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new k$1(s=>{let l=d=>this._zone.run(()=>s.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(Rs$1(n),j$4(({matches:s})=>({query:t,matches:s})),Or(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function dn(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var ci$1=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var un=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[ci$1]})}return i})();var bn$1=(()=>{class i{_platform=p(_$2);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ui$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=di$1(vi$1(t));if(n&&(mn(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=mn(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_i$1(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return gi$1(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function di$1(i){try{return i.frameElement}catch(e){return null}}function ui$1(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function mi$1(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function hi$1(i){return fi$1(i)&&i.type=="hidden"}function pi$1(i){return bi$1(i)&&i.hasAttribute("href")}function fi$1(i){return i.nodeName.toLowerCase()=="input"}function bi$1(i){return i.nodeName.toLowerCase()=="a"}function _n(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function mn(i){if(!_n(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function _i$1(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function gi$1(i){return hi$1(i)?false:mi$1(i)||pi$1(i)||i.hasAttribute("contenteditable")||_n(i)}function vi$1(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Pt$1=class Pt{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,s){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=s,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){Ka(e,{injector:this._injector});}},yi$1=(()=>{class i{_checker=p(bn$1);_ngZone=p(J$3);_document=p(Q$3);_injector=p(Ee$3);constructor(){p(I).load(It);}create(t,n=false){return new Pt$1(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var z$3=(function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i})(z$3||{}),hn="cdk-high-contrast-black-on-white",pn="cdk-high-contrast-white-on-black",ve$1="cdk-high-contrast-active",gn=(()=>{class i{_platform=p(_$2);_hasCheckedHighContrastMode=false;_document=p(Q$3);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ge$2).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return z$3.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return z$3.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return z$3.BLACK_ON_WHITE}return z$3.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(ve$1,hn,pn),this._hasCheckedHighContrastMode=true;let n=this.getHighContrastMode();n===z$3.BLACK_ON_WHITE?t.add(ve$1,hn):n===z$3.WHITE_ON_BLACK&&t.add(ve$1,pn);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),wi=(()=>{class i{constructor(){p(gn)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[un]})}return i})();var xi$1=200,Ft=class{_letterKeyStream=new ne$1;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ne$1;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:xi$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(Le$2(t=>this._pressedLetters.push(t)),dp(e),Ie$4(()=>this._pressedLetters.length>0),j$4(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};function vn$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nt$1=class Nt{_items;_activeItemIndex=ie(-1);_activeItem=ie(null);_wrap=false;_typeaheadSubscription=ae$2.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof Na?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):ri$2(e)&&(this._effectRef=Sg(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ne$1;change=new ne$1;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Ft(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){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 r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r<s?r:s-1,-1);break}else return;default:(o||vn$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.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(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return ri$2(this._items)?this._items():this._items instanceof Na?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var ye$2=class ye extends Nt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var yn=new Map,mt$1=class i{_appId=p(ei$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=yn.get(e);return n===void 0?n=0:n++,yn.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})};var xn$1=" ";function Ei$1(i,e,t){let n=Bt(i,e);t=t.trim(),!n.some(o=>o.trim()===t)&&(n.push(t),i.setAttribute(e,n.join(xn$1)));}function Ci$1(i,e,t){let n=Bt(i,e);t=t.trim();let o=n.filter(r=>r!==t);o.length?i.setAttribute(e,o.join(xn$1)):i.removeAttribute(e);}function Bt(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var En$1="cdk-describedby-message",Lt="cdk-describedby-host",xe$1=0,Pr=(()=>{class i{_platform=p(_$2);_document=p(Q$3);_messageRegistry=new Map;_messagesContainer=null;_id=`${xe$1++}`;constructor(){p(I).load(It),this._id=p(ei$2)+"-"+xe$1++;}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let r=we$1(n,o);typeof n!="string"?(wn$1(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r);}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let r=we$1(n,o);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),typeof n=="string"){let s=this._messageRegistry.get(r);s&&s.referenceCount===0&&this._deleteMessageElement(r);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${Lt}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(Lt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,n){let o=this._document.createElement("div");wn$1(o,this._id),o.textContent=t,n&&o.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(we$1(t,n),{messageElement:o,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let r=0;r<n.length;r++)n[r].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(t),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(t){let n=Bt(t,"aria-describedby").filter(o=>o.indexOf(En$1)!=0);t.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Ei$1(t,"aria-describedby",o.messageElement.id),t.setAttribute(Lt,this._id),o.referenceCount++;}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,Ci$1(t,"aria-describedby",o.messageElement.id),t.removeAttribute(Lt);}_isElementDescribedByMessage(t,n){let o=Bt(t,"aria-describedby"),r=this._messageRegistry.get(n),s=r&&r.messageElement.id;return !!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return false;if(n&&typeof n=="object")return true;let o=n==null?"":`${n}`.trim(),r=t.getAttribute("aria-label");return o?!r||r.trim()!==o:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function we$1(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function wn$1(i,e){i.id||(i.id=`${En$1}-${e}-${xe$1++}`);}var N$1=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(N$1||{}),zt,H$1;function Vt(){if(H$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return H$1=false,H$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)H$1=true;else {let i=Element.prototype.scrollTo;i?H$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):H$1=false;}}return H$1}function tt(){if(typeof document!="object"||!document)return N$1.NORMAL;if(zt==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),zt=N$1.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,zt=i.scrollLeft===0?N$1.NEGATED:N$1.INVERTED),i.remove();}return zt}function Ee$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Si$1=new D$1("MATERIAL_ANIMATIONS"),Cn$1=null;function ki$1(){return p(Si$1,{optional:true})?.animationsDisabled||p(pI,{optional:true})==="NoopAnimations"?"di-disabled":(Cn$1??=p(Tt$1).matchMedia("(prefers-reduced-motion)").matches,Cn$1?"reduced-motion":"enabled")}function et(){return ki$1()!=="enabled"}function g$1(i){return i==null?"":typeof i=="string"?i:`${i}px`}function Jr(i){return i!=null&&`${i}`!="false"}var T$1=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T$1||{}),Ce$3=class Ce{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$1.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Sn$1=Q$2({passive:true,capture:true}),Se$3=class Se{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let s=r.get(n);s?s.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Sn$1);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Sn$1)));}_delegateEventHandler=e=>{let t=A(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},ht$1={enterDuration:225,exitDuration:150},Ri$1=800,kn$1=Q$2({passive:true,capture:true}),Rn$1=["mousedown","touchstart"],Dn$1=["mouseup","mouseleave","touchend","touchcancel"],Di$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Df({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
|
|
25
|
+
`],encapsulation:2})}return i})(),Mt$1;function si$1(){if(Mt$1===void 0&&(Mt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Mt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Mt$1}function Eo(i){return si$1()?.createHTML(i)||i}function J$2(i){return Array.isArray(i)?i:[i]}var cn=new Set,j$2,Tt$1=(()=>{class i{_platform=p(_$2);_nonce=p(ri$2,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):li;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&ai$1(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function ai$1(i,e){if(!cn.has(i))try{j$2||(j$2=document.createElement("style"),e&&j$2.setAttribute("nonce",e),j$2.setAttribute("type","text/css"),document.head.appendChild(j$2)),j$2.sheet&&(j$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),cn.add(i));}catch(t){console.error(t);}}function li(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var ge$2=(()=>{class i{_mediaMatcher=p(Tt$1);_zone=p(J$3);_queries=new Map;_destroySubject=new ne$1;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return dn(J$2(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=dn(J$2(t)).map(s=>this._registerQuery(s).observable),r=Ms$1(o);return r=Tt$2(r.pipe(He(1)),r.pipe(hp(1),fp(0))),r.pipe(j$4(s=>{let l={matches:false,breakpoints:{}};return s.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new k$1(s=>{let l=d=>this._zone.run(()=>s.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(Os$1(n),j$4(({matches:s})=>({query:t,matches:s})),kr(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function dn(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var ci$1=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var un=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[ci$1]})}return i})();var bn$1=(()=>{class i{_platform=p(_$2);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ui$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=di$1(vi$1(t));if(n&&(mn(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=mn(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_i$1(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return gi$1(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function di$1(i){try{return i.frameElement}catch(e){return null}}function ui$1(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function mi$1(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function hi$1(i){return fi$1(i)&&i.type=="hidden"}function pi$1(i){return bi$1(i)&&i.hasAttribute("href")}function fi$1(i){return i.nodeName.toLowerCase()=="input"}function bi$1(i){return i.nodeName.toLowerCase()=="a"}function _n(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function mn(i){if(!_n(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function _i$1(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function gi$1(i){return hi$1(i)?false:mi$1(i)||pi$1(i)||i.hasAttribute("contenteditable")||_n(i)}function vi$1(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Pt$1=class Pt{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,s){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=s,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){Ja(e,{injector:this._injector});}},yi$1=(()=>{class i{_checker=p(bn$1);_ngZone=p(J$3);_document=p(Q$3);_injector=p(we$2);constructor(){p(I).load(It);}create(t,n=false){return new Pt$1(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var z$3=(function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i})(z$3||{}),hn="cdk-high-contrast-black-on-white",pn="cdk-high-contrast-white-on-black",ve$1="cdk-high-contrast-active",gn=(()=>{class i{_platform=p(_$2);_hasCheckedHighContrastMode=false;_document=p(Q$3);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ge$2).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return z$3.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return z$3.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return z$3.BLACK_ON_WHITE}return z$3.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(ve$1,hn,pn),this._hasCheckedHighContrastMode=true;let n=this.getHighContrastMode();n===z$3.BLACK_ON_WHITE?t.add(ve$1,hn):n===z$3.WHITE_ON_BLACK&&t.add(ve$1,pn);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),wi=(()=>{class i{constructor(){p(gn)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[un]})}return i})();var xi$1=200,Ft=class{_letterKeyStream=new ne$1;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ne$1;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:xi$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(Le$2(t=>this._pressedLetters.push(t)),fp(e),Ce$4(()=>this._pressedLetters.length>0),j$4(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};function vn$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nt$1=class Nt{_items;_activeItemIndex=se(-1);_activeItem=se(null);_wrap=false;_typeaheadSubscription=ce$2.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof Aa?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):oi$2(e)&&(this._effectRef=Tg(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ne$1;change=new ne$1;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Ft(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){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 r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r<s?r:s-1,-1);break}else return;default:(o||vn$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.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(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return oi$2(this._items)?this._items():this._items instanceof Aa?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var ye$2=class ye extends Nt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var yn=new Map,mt$1=class i{_appId=p(ti$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=yn.get(e);return n===void 0?n=0:n++,yn.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})};var xn$1=" ";function Ei$1(i,e,t){let n=Bt(i,e);t=t.trim(),!n.some(o=>o.trim()===t)&&(n.push(t),i.setAttribute(e,n.join(xn$1)));}function Ci$1(i,e,t){let n=Bt(i,e);t=t.trim();let o=n.filter(r=>r!==t);o.length?i.setAttribute(e,o.join(xn$1)):i.removeAttribute(e);}function Bt(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var En$1="cdk-describedby-message",Lt="cdk-describedby-host",xe$1=0,Pr=(()=>{class i{_platform=p(_$2);_document=p(Q$3);_messageRegistry=new Map;_messagesContainer=null;_id=`${xe$1++}`;constructor(){p(I).load(It),this._id=p(ti$2)+"-"+xe$1++;}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let r=we$1(n,o);typeof n!="string"?(wn$1(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r);}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let r=we$1(n,o);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),typeof n=="string"){let s=this._messageRegistry.get(r);s&&s.referenceCount===0&&this._deleteMessageElement(r);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${Lt}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(Lt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,n){let o=this._document.createElement("div");wn$1(o,this._id),o.textContent=t,n&&o.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(we$1(t,n),{messageElement:o,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let r=0;r<n.length;r++)n[r].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(t),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(t){let n=Bt(t,"aria-describedby").filter(o=>o.indexOf(En$1)!=0);t.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Ei$1(t,"aria-describedby",o.messageElement.id),t.setAttribute(Lt,this._id),o.referenceCount++;}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,Ci$1(t,"aria-describedby",o.messageElement.id),t.removeAttribute(Lt);}_isElementDescribedByMessage(t,n){let o=Bt(t,"aria-describedby"),r=this._messageRegistry.get(n),s=r&&r.messageElement.id;return !!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return false;if(n&&typeof n=="object")return true;let o=n==null?"":`${n}`.trim(),r=t.getAttribute("aria-label");return o?!r||r.trim()!==o:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function we$1(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function wn$1(i,e){i.id||(i.id=`${En$1}-${e}-${xe$1++}`);}var N$1=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(N$1||{}),zt,H$1;function Vt(){if(H$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return H$1=false,H$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)H$1=true;else {let i=Element.prototype.scrollTo;i?H$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):H$1=false;}}return H$1}function tt(){if(typeof document!="object"||!document)return N$1.NORMAL;if(zt==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),zt=N$1.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,zt=i.scrollLeft===0?N$1.NEGATED:N$1.INVERTED),i.remove();}return zt}function Ee$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Si$1=new D$1("MATERIAL_ANIMATIONS"),Cn$1=null;function ki$1(){return p(Si$1,{optional:true})?.animationsDisabled||p(gI,{optional:true})==="NoopAnimations"?"di-disabled":(Cn$1??=p(Tt$1).matchMedia("(prefers-reduced-motion)").matches,Cn$1?"reduced-motion":"enabled")}function et(){return ki$1()!=="enabled"}function g$1(i){return i==null?"":typeof i=="string"?i:`${i}px`}function Jr(i){return i!=null&&`${i}`!="false"}var T$1=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T$1||{}),Ce$3=class Ce{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$1.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Sn$1=Q$2({passive:true,capture:true}),Se$3=class Se{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let s=r.get(n);s?s.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Sn$1);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Sn$1)));}_delegateEventHandler=e=>{let t=A(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},ht$1={enterDuration:225,exitDuration:150},Ri$1=800,kn$1=Q$2({passive:true,capture:true}),Rn$1=["mousedown","touchstart"],Dn$1=["mouseup","mouseleave","touchend","touchcancel"],Di$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Ef({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
position: relative;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
50
50
|
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
|
|
51
51
|
display: none;
|
|
52
52
|
}
|
|
53
|
-
`],encapsulation:2})}return i})(),pt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Se$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=L$2(n)),r&&r.get(I).load(Di$1);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},ht$1),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let s=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-s}px`,c.style.top=`${d-s}px`,c.style.height=`${s*2}px`,c.style.width=`${s*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let h=window.getComputedStyle(c),E=h.transitionProperty,k=h.transitionDuration,x=E==="none"||k==="0s"||k==="0s, 0s"||o.width===0&&o.height===0,y=new Ce$3(this,c,n,x);c.style.transform="scale3d(1, 1, 1)",y.state=T$1.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !x&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ne=()=>{V&&(V.fallbackTimer=null),clearTimeout(Le),this._finishRippleTransition(y);},Jt=()=>this._destroyRipple(y),Le=setTimeout(Jt,u+100);c.addEventListener("transitionend",Ne),c.addEventListener("transitioncancel",Jt),V={onTransitionEnd:Ne,onTransitionCancel:Jt,fallbackTimer:Le};}),this._activeRipples.set(y,V),(x||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$1.FADING_OUT||e.state===T$1.HIDDEN)return;let t=e.element,n=w$1(w$1({},ht$1),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$1.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=L$2(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Rn$1.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Dn$1.forEach(t=>{this._triggerElement.addEventListener(t,this,kn$1);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$1.FADING_IN?this._startFadeOutTransition(e):e.state===T$1.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$1.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T$1.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=lt$1(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$1;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!ct$1(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T$1.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$1.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Rn$1.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Dn$1.forEach(t=>e.removeEventListener(t,this,kn$1)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var ke$1=new D$1("mat-ripple-global-options"),ms$1=(()=>{class i{_elementRef=p(Ft$1);_animationsDisabled=et();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=p(J$3),n=p(_$2),o=p(ke$1,{optional:true}),r=p(
|
|
53
|
+
`],encapsulation:2})}return i})(),pt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Se$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=L$2(n)),r&&r.get(I).load(Di$1);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},ht$1),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let s=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-s}px`,c.style.top=`${d-s}px`,c.style.height=`${s*2}px`,c.style.width=`${s*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let h=window.getComputedStyle(c),E=h.transitionProperty,k=h.transitionDuration,x=E==="none"||k==="0s"||k==="0s, 0s"||o.width===0&&o.height===0,y=new Ce$3(this,c,n,x);c.style.transform="scale3d(1, 1, 1)",y.state=T$1.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !x&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ne=()=>{V&&(V.fallbackTimer=null),clearTimeout(Le),this._finishRippleTransition(y);},Jt=()=>this._destroyRipple(y),Le=setTimeout(Jt,u+100);c.addEventListener("transitionend",Ne),c.addEventListener("transitioncancel",Jt),V={onTransitionEnd:Ne,onTransitionCancel:Jt,fallbackTimer:Le};}),this._activeRipples.set(y,V),(x||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$1.FADING_OUT||e.state===T$1.HIDDEN)return;let t=e.element,n=w$1(w$1({},ht$1),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$1.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=L$2(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Rn$1.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Dn$1.forEach(t=>{this._triggerElement.addEventListener(t,this,kn$1);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$1.FADING_IN?this._startFadeOutTransition(e):e.state===T$1.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$1.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T$1.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=lt$1(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$1;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!ct$1(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T$1.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$1.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Rn$1.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Dn$1.forEach(t=>e.removeEventListener(t,this,kn$1)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var ke$1=new D$1("mat-ripple-global-options"),ms$1=(()=>{class i{_elementRef=p(Ft$1);_animationsDisabled=et();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=p(J$3),n=p(_$2),o=p(ke$1,{optional:true}),r=p(we$2);this._globalOptions=o||{},this._rippleRenderer=new pt$1(this,t,this._elementRef,n,r);}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:w$1(w$1(w$1({},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(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,w$1(w$1({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w$1(w$1({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&gv("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 i})();var Ai$1={capture:true},Mi$1=["focus","mousedown","mouseenter","touchstart"],Re$3="mat-ripple-loader-uninitialized",De$2="mat-ripple-loader-class-name",On$1="mat-ripple-loader-centered",jt="mat-ripple-loader-disabled",An$1=(()=>{class i{_document=p(Q$3);_animationsDisabled=et();_globalRippleOptions=p(ke$1,{optional:true});_platform=p(_$2);_ngZone=p(J$3);_injector=p(we$2);_eventCleanups;_hosts=new Map;constructor(){let t=p(hr).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Mi$1.map(n=>t.listen(this._document,n,this._onInteraction,Ai$1)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(Re$3,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(De$2))&&t.setAttribute(De$2,n.className||""),n.centered&&t.setAttribute(On$1,""),n.disabled&&t.setAttribute(jt,"");}setDisabled(t,n){let o=this._hosts.get(t);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(t))):n?t.setAttribute(jt,""):t.removeAttribute(jt);}_onInteraction=t=>{let n=A(t);if(n instanceof HTMLElement){let o=n.closest(`[${Re$3}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(De$2)),t.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??ht$1.enterDuration,s=this._animationsDisabled?0:o?.animation?.exitDuration??ht$1.exitDuration,l={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(jt),rippleConfig:{centered:t.hasAttribute(On$1),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:s}}},d=new pt$1(l,this._ngZone,n,this._platform,this._injector),u=!l.rippleDisabled;u&&d.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:d,hasSetUpEvents:u}),t.removeAttribute(Re$3);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Mn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Ef({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator {
|
|
54
54
|
position: relative;
|
|
55
55
|
}
|
|
56
56
|
.mat-focus-indicator::before {
|
|
@@ -77,7 +77,7 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
77
77
|
--mat-focus-indicator-fallback-border-style: none;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
`],encapsulation:2})}return i})();var Ii$1=["*",[["","progressIndicator",""]]],Ti$1=["*","[progressIndicator]"];function Pi$1(i,e){i&1&&(
|
|
80
|
+
`],encapsulation:2})}return i})();var Ii$1=["*",[["","progressIndicator",""]]],Ti$1=["*","[progressIndicator]"];function Pi$1(i,e){i&1&&(Tf(0,"div",1),AT(1,1),_f());}var Fi$1=new D$1("MAT_BUTTON_CONFIG");function In$1(i){return i==null?void 0:rM(i)}var Tn$1=(()=>{class i{_elementRef=p(Ft$1);_ngZone=p(J$3);_animationsDisabled=et();_config=p(Fi$1,{optional:true});_focusMonitor=p(_e$1);_cleanupClick;_renderer=p(co);_rippleLoader=p(An$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=mc(false,{transform:Ri$2});constructor(){p(I).load(Mn$1);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,o){n&2&&(uc("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),GT(o.color?"mat-"+o.color:""),gv("mat-mdc-button-progress-indicator-shown",o.showProgress())("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ri$2],disabled:[2,"disabled","disabled",Ri$2],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ri$2],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ri$2],tabIndex:[2,"tabIndex","tabIndex",In$1],_tabindex:[2,"tabindex","_tabindex",In$1],showProgress:[1,"showProgress"]}})}return i})(),Ni$1=(()=>{class i extends Tn$1{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Ef({type:i,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Qy],ngContentSelectors:Ti$1,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(RT(Ii$1),nv(0,"span",0),AT(1),fT(2,Pi$1,2,0,"div",1),nv(3,"span",2)(4,"span",3)),n&2&&(yb(2),hT(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
|
|
81
81
|
-webkit-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
display: inline-block;
|
|
@@ -225,7 +225,7 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
225
225
|
outline: solid 1px;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
`],encapsulation:2})}return i})();var Li$1=new D$1("cdk-dir-doc",{providedIn:"root",factory:()=>p(Q$3)}),Bi$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Pn$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Bi$1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var ft$1=(()=>{class i{get value(){return this.valueSignal()}valueSignal=ie("ltr");change=new Ce$4;constructor(){let t=p(Li$1,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Pn$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var U$3=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var zs=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$3]})}return i})();var Vi$1=20,bt$1=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_renderer=p(fr).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ne$1;_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 n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Vi$1){return this._platform.isBrowser?new k$1(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Dw(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):_$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ie$4(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=L$2(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ji$1=(()=>{class i{elementRef=p(Ft$1);scrollDispatcher=p(bt$1);ngZone=p(J$3);dir=p(ft$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ne$1;_renderer=p(co);_cleanupScroll;_elementScrolled=new ne$1;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 n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&tt()!=N$1.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),tt()==N$1.INVERTED?t.left=t.right:tt()==N$1.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Vt()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&tt()==N$1.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&tt()==N$1.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),Hi$1=20,nt$1=(()=>{class i{_platform=p(_$2);_listeners;_viewportSize=null;_change=new ne$1;_document=p(Q$3);constructor(){let t=p(J$3),n=p(fr).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}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:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),s=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:s,left:l}}change(t=Hi$1){return t>0?this._change.pipe(Dw(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(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Oe$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})(),Ae$3=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$3,Oe$2,U$3,Oe$2]})}return i})();var _t$1=class _t{_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;}},Me$3=class Me extends _t$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,s){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=s||null;}},Ht=class extends _t$1{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}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()}},Ie$3=class Ie extends _t$1{element;constructor(e){super(),this.element=e instanceof Ft$1?e.nativeElement:e;}},Ut=class{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Me$3)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ht)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Ie$3)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);}},Wt=class extends Ut{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(pr,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||Ee$3.NULL,r=o.get(ee$2,n.injector);t=L$(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var ka=(()=>{class i extends Ut{_moduleRef=p(pr,{optional:true});_document=p(Q$3);_viewContainerRef=p(On$2);_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 Ce$4;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Mm(i)))(o||i)}})();static \u0275dir=kn$2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Qy]})}return i})(),Nn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var Ln$1=Vt();function Wn$1(i){return new Yt(i.get(nt$1),i.get(Q$3))}var Yt=class{_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=g$1(-this._previousScrollPosition.left),e.style.top=g$1(-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,n=e.style,o=t.style,r=n.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ln$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ln$1&&(n.scrollBehavior=r,o.scrollBehavior=s);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function Yn$1(i,e){return new Xt(i.get(bt$1),i.get(J$3),i.get(nt$1),e)}var Xt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ie$4(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 gt$1=class gt{enable(){}disable(){}attach(){}};function Te$1(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,s=i.left>t.right;return n||o||r||s})}function Bn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,s=i.right>t.right;return n||o||r||s})}function Xn$1(i,e){return new Kt(i.get(bt$1),i.get(nt$1),i.get(J$3),e)}var Kt=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}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:n,height:o}=this._viewportRuler.getViewportSize();Te$1(t,[{width:n,height:o,bottom:o,right:n,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;}},Kn$1=(()=>{class i{_injector=p(Ee$3);noop=()=>new gt$1;close=t=>Yn$1(this._injector,t);block=()=>Wn$1(this._injector);reposition=t=>Xn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Zt=class{positionStrategy;scrollStrategy=new gt$1;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 n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Gt=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Zn$1=(()=>{class i{_attachedOverlays=[];_document=p(Q$3);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Gn$1=(()=>{class i extends Zn$1{_ngZone=p(J$3);_renderer=p(fr).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 n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),$n$1=(()=>{class i extends Zn$1{_platform=p(_$2);_ngZone=p(J$3);_renderer=p(fr).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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=A(t);};_clickListener=t=>{let n=A(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let l=r[s],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(zn$1(l.overlayElement,n)||zn$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function zn$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var qn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Df({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
228
|
+
`],encapsulation:2})}return i})();var Li$1=new D$1("cdk-dir-doc",{providedIn:"root",factory:()=>p(Q$3)}),Bi$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Pn$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Bi$1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var ft$1=(()=>{class i{get value(){return this.valueSignal()}valueSignal=se("ltr");change=new be$3;constructor(){let t=p(Li$1,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Pn$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var U$3=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var zs=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$3]})}return i})();var Vi$1=20,bt$1=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_renderer=p(hr).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ne$1;_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 n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Vi$1){return this._platform.isBrowser?new k$1(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ew(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):_$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ce$4(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=L$2(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ji$1=(()=>{class i{elementRef=p(Ft$1);scrollDispatcher=p(bt$1);ngZone=p(J$3);dir=p(ft$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ne$1;_renderer=p(co);_cleanupScroll;_elementScrolled=new ne$1;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 n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&tt()!=N$1.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),tt()==N$1.INVERTED?t.left=t.right:tt()==N$1.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Vt()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&tt()==N$1.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&tt()==N$1.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),Hi$1=20,nt$1=(()=>{class i{_platform=p(_$2);_listeners;_viewportSize=null;_change=new ne$1;_document=p(Q$3);constructor(){let t=p(J$3),n=p(hr).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}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:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),s=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:s,left:l}}change(t=Hi$1){return t>0?this._change.pipe(Ew(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(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Oe$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})(),Ae$3=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$3,Oe$2,U$3,Oe$2]})}return i})();var _t$1=class _t{_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;}},Me$3=class Me extends _t$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,s){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=s||null;}},Ht=class extends _t$1{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}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()}},Ie$3=class Ie extends _t$1{element;constructor(e){super(),this.element=e instanceof Ft$1?e.nativeElement:e;}},Ut=class{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Me$3)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ht)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Ie$3)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);}},Wt=class extends Ut{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(gr,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||we$2.NULL,r=o.get(ee$2,n.injector);t=F$(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var ka=(()=>{class i extends Ut{_moduleRef=p(gr,{optional:true});_document=p(Q$3);_viewContainerRef=p(On$2);_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 be$3;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Nm(i)))(o||i)}})();static \u0275dir=kn$2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Qy]})}return i})(),Nn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var Ln$1=Vt();function Wn$1(i){return new Yt(i.get(nt$1),i.get(Q$3))}var Yt=class{_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=g$1(-this._previousScrollPosition.left),e.style.top=g$1(-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,n=e.style,o=t.style,r=n.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ln$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ln$1&&(n.scrollBehavior=r,o.scrollBehavior=s);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function Yn$1(i,e){return new Xt(i.get(bt$1),i.get(J$3),i.get(nt$1),e)}var Xt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ce$4(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 gt$1=class gt{enable(){}disable(){}attach(){}};function Te$1(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,s=i.left>t.right;return n||o||r||s})}function Bn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,s=i.right>t.right;return n||o||r||s})}function Xn$1(i,e){return new Kt(i.get(bt$1),i.get(nt$1),i.get(J$3),e)}var Kt=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}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:n,height:o}=this._viewportRuler.getViewportSize();Te$1(t,[{width:n,height:o,bottom:o,right:n,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;}},Kn$1=(()=>{class i{_injector=p(we$2);noop=()=>new gt$1;close=t=>Yn$1(this._injector,t);block=()=>Wn$1(this._injector);reposition=t=>Xn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Zt=class{positionStrategy;scrollStrategy=new gt$1;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 n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Gt=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Zn$1=(()=>{class i{_attachedOverlays=[];_document=p(Q$3);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Gn$1=(()=>{class i extends Zn$1{_ngZone=p(J$3);_renderer=p(hr).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 n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),$n$1=(()=>{class i extends Zn$1{_platform=p(_$2);_ngZone=p(J$3);_renderer=p(hr).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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=A(t);};_clickListener=t=>{let n=A(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let l=r[s],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(zn$1(l.overlayElement,n)||zn$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function zn$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var qn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Ef({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
229
229
|
pointer-events: none;
|
|
230
230
|
top: 0;
|
|
231
231
|
left: 0;
|
|
@@ -364,14 +364,14 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
364
364
|
position: fixed;
|
|
365
365
|
z-index: auto;
|
|
366
366
|
}
|
|
367
|
-
`],encapsulation:2})}return i})(),Qn$1=(()=>{class i{_platform=p(_$2);_containerElement;_document=p(Q$3);_styleLoader=p(I);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Ee$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),Ee$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(qn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Pe$2=class Pe{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}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 Fe$2(i){return i&&i.nodeType===1}var $t=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ne$1;_attachments=new ne$1;_detachments=new ne$1;_positionStrategy;_scrollStrategy;_locationChanges=ae$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ne$1;_outsidePointerEvents=new ne$1;_afterNextRenderRef;constructor(e,t,n,o,r,s,l,d,u,c=false,h,E){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=h,this._renderer=E,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.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=Ka(()=>{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=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$2(w$1({},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=g$1(this._config.width),e.height=g$1(this._config.height),e.minWidth=g$1(this._config.minWidth),e.minHeight=g$1(this._config.minHeight),e.maxWidth=g$1(this._config.maxWidth),e.maxHeight=g$1(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;Fe$2(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(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Pe$2(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,n){let o=J$2(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Ka(()=>{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?.();}},Vn$1="cdk-overlay-connected-position-bounding-box",Ui$1=/([A-Za-z%]+)$/;function Jn$1(i,e){return new qt(e,i.get(nt$1),i.get(Q$3),i.get(_$2),i.get(Qn$1))}var qt=class{_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 ne$1;_resizeSubscription=ae$2.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Vn$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,n=this._viewportRect,o=this._containerRect,r=[],s;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!s||s.overlayFit.visibleArea<c.visibleArea)&&(s={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&W$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Vn$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 Ft$1?this._origin.nativeElement:Fe$2(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let s=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?s:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=Hn$1(t),{x:s,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(s+=d),u&&(l+=u);let c=0-s,h=s+r.width-n.width,E=0-l,k=l+r.height-n.height,x=this._subtractOverflows(r.width,c,h),y=this._subtractOverflows(r.height,E,k),V=x*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:x==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,s=jn$1(this._overlayRef.getConfig().minHeight),l=jn$1(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||s!=null&&s<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Hn$1(t),r=this._viewportRect,s=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,h=0;return o.width<=r.width?c=u||-s:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?h=d||-l:h=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:h},{x:e.x+c,y:e.y+h}}_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 n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!Wi$1(this._lastScrollVisibility,n)){let o=new Gt(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,s,l;if(t.overlayY==="top")s=e.y,r=n.height-s+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let k=Math.min(n.bottom-e.y+n.top,e.y),x=this._lastBoundingBoxSize.height;r=k*2,s=e.y-k,r>x&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-x/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,h,E;if(u)E=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)h=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let k=Math.min(n.right-e.x+n.left,e.x),x=this._lastBoundingBoxSize.width;c=k*2,h=e.x-k,c>x&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.x-x/2);}return {top:s,left:h,bottom:l,right:E,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.width=g$1(n.width),o.height=g$1(n.height),o.top=g$1(n.top)||"auto",o.bottom=g$1(n.bottom)||"auto",o.left=g$1(n.left)||"auto",o.right=g$1(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=g$1(r)),s&&(o.maxWidth=g$1(s));}this._lastBoundingBoxSize=n,W$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){W$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){W$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();W$2(n,this._getExactOverlayY(t,e,c)),W$2(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),s.maxHeight&&(o?n.maxHeight=g$1(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(o?n.maxWidth=g$1(s.maxWidth):r&&(n.maxWidth="")),W$2(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(r.y+this._overlayRect.height)}px`;}else o.top=g$1(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=g$1(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Bn$1(e,n),isOriginOutsideView:Te$1(e,n),isOverlayClipped:Bn$1(t,n),isOverlayOutsideView:Te$1(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.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&&J$2(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 Ft$1)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function W$2(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function jn$1(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(Ui$1);return !t||t==="px"?parseFloat(e):null}return i||null}function Hn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function Wi$1(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var Un$1="cdk-global-overlay-wrapper";function ti$1(i){return new Qt}var Qt=class{_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(Un$1),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,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,h=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",k="",x="",y="";d?y="flex-start":c==="center"?(y="center",E?x=h:k=h):E?c==="left"||c==="end"?(y="flex-end",k=h):(c==="right"||c==="start")&&(y="flex-start",x=h):c==="left"||c==="start"?(y="flex-start",k=h):(c==="right"||c==="end")&&(y="flex-end",x=h),e.position=this._cssPosition,e.marginLeft=d?"0":k,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":x,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Un$1),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},ei$1=(()=>{class i{_injector=p(Ee$3);global(){return ti$1()}flexibleConnectedTo(t){return Jn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ni$1=new D$1("OVERLAY_DEFAULT_CONFIG");function ii$1(i,e){i.get(I).load(qn$1);let t=i.get(Qn$1),n=i.get(Q$3),o=i.get(mt$1),r=i.get(sn$1),s=i.get(ft$1),l=i.get(co,null,{optional:true})||i.get(fr).createRenderer(null,null),d=new Zt(e),u=i.get(ni$1,null,{optional:true})?.usePopover??true;d.direction=d.direction||s.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),h=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),h.appendChild(c),d.usePopover&&(h.setAttribute("popover","manual"),h.classList.add("cdk-overlay-popover"));let E=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return Fe$2(E)?E.after(h):E?.type==="parent"?E.element.appendChild(h):t.getContainerElement().appendChild(h),new $t(new Wt(c,r,i),h,c,d,i.get(J$3),i.get(Gn$1),n,i.get(Pn$2),i.get($n$1),e?.disableAnimations??i.get(pI,null,{optional:true})==="NoopAnimations",i.get(ee$2),l)}var oi$1=(()=>{class i{scrollStrategies=p(Kn$1);_positionBuilder=p(ei$1);_injector=p(Ee$3);create(t){return ii$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Yi$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[oi$1],imports:[U$3,Nn$1,Ae$3,Ae$3]})}return i})();function Se$2(n,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var H=(()=>{class n extends Ut{_elementRef=p(Ft$1);_focusTrapFactory=p(yi$1);_config;_interactivityChecker=p(bn$1);_ngZone=p(J$3);_focusMonitor=p(_e$1);_renderer=p(co);_changeDetectorRef=p(Dr);_injector=p(Ee$3);_platform=p(_$2);_document=p(Q$3);_portalOutlet;_focusTrapped=new ne$1;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=p(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",i),l=this._renderer.listen(e,"mousedown",i);})),e.focus(t);}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t);}_trapFocus(e){this._isDestroyed||Ka(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=ri$1(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=ri$1();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ri$1()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Df({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&uv(ka,7),t&2){let o;Nf(o=Rf())&&(i._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&cc("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null);},features:[Qy],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&Jy(0,Se$2,0,0,"ng-template",0);},dependencies:[ka],styles:[`.cdk-dialog-container {
|
|
367
|
+
`],encapsulation:2})}return i})(),Qn$1=(()=>{class i{_platform=p(_$2);_containerElement;_document=p(Q$3);_styleLoader=p(I);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Ee$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),Ee$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(qn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Pe$2=class Pe{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}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 Fe$2(i){return i&&i.nodeType===1}var $t=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ne$1;_attachments=new ne$1;_detachments=new ne$1;_positionStrategy;_scrollStrategy;_locationChanges=ce$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ne$1;_outsidePointerEvents=new ne$1;_afterNextRenderRef;constructor(e,t,n,o,r,s,l,d,u,c=false,h,E){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=h,this._renderer=E,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.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=Ja(()=>{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=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$2(w$1({},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=g$1(this._config.width),e.height=g$1(this._config.height),e.minWidth=g$1(this._config.minWidth),e.minHeight=g$1(this._config.minHeight),e.maxWidth=g$1(this._config.maxWidth),e.maxHeight=g$1(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;Fe$2(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(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Pe$2(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,n){let o=J$2(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Ja(()=>{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?.();}},Vn$1="cdk-overlay-connected-position-bounding-box",Ui$1=/([A-Za-z%]+)$/;function Jn$1(i,e){return new qt(e,i.get(nt$1),i.get(Q$3),i.get(_$2),i.get(Qn$1))}var qt=class{_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 ne$1;_resizeSubscription=ce$2.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Vn$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,n=this._viewportRect,o=this._containerRect,r=[],s;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!s||s.overlayFit.visibleArea<c.visibleArea)&&(s={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&W$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Vn$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 Ft$1?this._origin.nativeElement:Fe$2(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let s=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?s:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=Hn$1(t),{x:s,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(s+=d),u&&(l+=u);let c=0-s,h=s+r.width-n.width,E=0-l,k=l+r.height-n.height,x=this._subtractOverflows(r.width,c,h),y=this._subtractOverflows(r.height,E,k),V=x*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:x==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,s=jn$1(this._overlayRef.getConfig().minHeight),l=jn$1(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||s!=null&&s<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Hn$1(t),r=this._viewportRect,s=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,h=0;return o.width<=r.width?c=u||-s:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?h=d||-l:h=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:h},{x:e.x+c,y:e.y+h}}_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 n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!Wi$1(this._lastScrollVisibility,n)){let o=new Gt(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,s,l;if(t.overlayY==="top")s=e.y,r=n.height-s+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let k=Math.min(n.bottom-e.y+n.top,e.y),x=this._lastBoundingBoxSize.height;r=k*2,s=e.y-k,r>x&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-x/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,h,E;if(u)E=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)h=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let k=Math.min(n.right-e.x+n.left,e.x),x=this._lastBoundingBoxSize.width;c=k*2,h=e.x-k,c>x&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.x-x/2);}return {top:s,left:h,bottom:l,right:E,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.width=g$1(n.width),o.height=g$1(n.height),o.top=g$1(n.top)||"auto",o.bottom=g$1(n.bottom)||"auto",o.left=g$1(n.left)||"auto",o.right=g$1(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=g$1(r)),s&&(o.maxWidth=g$1(s));}this._lastBoundingBoxSize=n,W$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){W$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){W$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();W$2(n,this._getExactOverlayY(t,e,c)),W$2(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),s.maxHeight&&(o?n.maxHeight=g$1(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(o?n.maxWidth=g$1(s.maxWidth):r&&(n.maxWidth="")),W$2(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(r.y+this._overlayRect.height)}px`;}else o.top=g$1(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=g$1(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Bn$1(e,n),isOriginOutsideView:Te$1(e,n),isOverlayClipped:Bn$1(t,n),isOverlayOutsideView:Te$1(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.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&&J$2(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 Ft$1)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function W$2(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function jn$1(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(Ui$1);return !t||t==="px"?parseFloat(e):null}return i||null}function Hn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function Wi$1(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var Un$1="cdk-global-overlay-wrapper";function ti$1(i){return new Qt}var Qt=class{_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(Un$1),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,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,h=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",k="",x="",y="";d?y="flex-start":c==="center"?(y="center",E?x=h:k=h):E?c==="left"||c==="end"?(y="flex-end",k=h):(c==="right"||c==="start")&&(y="flex-start",x=h):c==="left"||c==="start"?(y="flex-start",k=h):(c==="right"||c==="end")&&(y="flex-end",x=h),e.position=this._cssPosition,e.marginLeft=d?"0":k,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":x,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Un$1),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},ei$1=(()=>{class i{_injector=p(we$2);global(){return ti$1()}flexibleConnectedTo(t){return Jn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ni$1=new D$1("OVERLAY_DEFAULT_CONFIG");function ii$1(i,e){i.get(I).load(qn$1);let t=i.get(Qn$1),n=i.get(Q$3),o=i.get(mt$1),r=i.get(sn$1),s=i.get(ft$1),l=i.get(co,null,{optional:true})||i.get(hr).createRenderer(null,null),d=new Zt(e),u=i.get(ni$1,null,{optional:true})?.usePopover??true;d.direction=d.direction||s.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),h=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),h.appendChild(c),d.usePopover&&(h.setAttribute("popover","manual"),h.classList.add("cdk-overlay-popover"));let E=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return Fe$2(E)?E.after(h):E?.type==="parent"?E.element.appendChild(h):t.getContainerElement().appendChild(h),new $t(new Wt(c,r,i),h,c,d,i.get(J$3),i.get(Gn$1),n,i.get(Pn$2),i.get($n$1),e?.disableAnimations??i.get(gI,null,{optional:true})==="NoopAnimations",i.get(ee$2),l)}var oi$1=(()=>{class i{scrollStrategies=p(Kn$1);_positionBuilder=p(ei$1);_injector=p(we$2);create(t){return ii$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Yi$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[oi$1],imports:[U$3,Nn$1,Ae$3,Ae$3]})}return i})();function Se$2(n,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var H=(()=>{class n extends Ut{_elementRef=p(Ft$1);_focusTrapFactory=p(yi$1);_config;_interactivityChecker=p(bn$1);_ngZone=p(J$3);_focusMonitor=p(_e$1);_renderer=p(co);_changeDetectorRef=p(Er);_injector=p(we$2);_platform=p(_$2);_document=p(Q$3);_portalOutlet;_focusTrapped=new ne$1;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=p(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",i),l=this._renderer.listen(e,"mousedown",i);})),e.focus(t);}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t);}_trapFocus(e){this._isDestroyed||Ja(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=ri$1(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=ri$1();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ri$1()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Ef({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&uv(ka,7),t&2){let o;Rf(o=Af())&&(i._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&uc("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null);},features:[Qy],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&Jy(0,Se$2,0,0,"ng-template",0);},dependencies:[ka],styles:[`.cdk-dialog-container {
|
|
368
368
|
display: block;
|
|
369
369
|
width: 100%;
|
|
370
370
|
height: 100%;
|
|
371
371
|
min-height: inherit;
|
|
372
372
|
max-height: inherit;
|
|
373
373
|
}
|
|
374
|
-
`],encapsulation:2,changeDetection:1})}return n})(),y$1=class y{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ne$1;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!vn$1(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},Ie$2=new D$1("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=p(Ee$3);return ()=>Wn$1(n)}}),Ee$1=new D$1("DialogData"),Fe$1=new D$1("DefaultDialogConfig");function Le$1(n){let a=ie(n),e=new Ce$4;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var be$1=(()=>{class n{_injector=p(Ee$3);_defaultOptions=p(Fe$1,{optional:true});_parentDialog=p(n,{optional:true,skipSelf:true});_overlayContainer=p(Qn$1);_idGenerator=p(mt$1);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;_ariaHiddenElements=new Map;_scrollStrategy=p(Ie$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rs$1(void 0)));open(e,t){let i=this._defaultOptions||new g;t=w$1(w$1({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=ii$1(this._injector,o),s=new y$1(l,t),d=this._attachContainer(l,s,t);if(s.containerInstance=d,!this.openDialogs.length){let R=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(He(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(R);}):this._hideNonDialogContentFromAssistiveTechnology(R);}return this._attachDialogContent(e,s,d,t),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,true)),this.afterOpened.next(s),s}closeAll(){z$2(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){z$2(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),z$2(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Zt({positionStrategy:e.positionStrategy||ti$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let o=i.injector||i.viewContainerRef?.injector,l=[{provide:g,useValue:i},{provide:y$1,useValue:t},{provide:$t,useValue:e}],s;i.container?typeof i.container=="function"?s=i.container:(s=i.container.type,l.push(...i.container.providers(i))):s=H;let d=new Me$3(s,i.viewContainerRef,Ee$3.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,i,o){if(e instanceof ro){let l=this._createInjector(o,t,i,void 0),s={$implicit:o.data,dialogRef:t};o.templateContext&&(s=w$1(w$1({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new Ht(e,null,s,l));}else {let l=this._createInjector(o,t,i,this._injector),s=i.attachComponentPortal(new Me$3(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=s,t.componentInstance=s.instance;}}_createInjector(e,t,i,o){let l=e.injector||e.viewContainerRef?.injector,s=[{provide:Ee$1,useValue:e.data},{provide:y$1,useValue:t}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(t,e,i)):s.push(...e.providers)),e.direction&&(!l||!l.get(ft$1,null,{optional:true}))&&s.push({provide:ft$1,useValue:Le$1(e.direction)}),Ee$3.create({parent:l||o,providers:s})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let o=t[i];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();function z$2(n,a){let e=n.length;for(;e--;)a(n[e]);}function Re$2(n,a){}var L$1=class L{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},G$2="mdc-dialog--open",ve="mdc-dialog--opening",De$1="mdc-dialog--closing",Pe$1=150,Me$2=75,Be$2=(()=>{class n extends H{_animationStateChanged=new Ce$4;_animationsEnabled=!et();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ae$2(this._config.enterAnimationDuration)??Pe$1:0;_exitAnimationDuration=this._animationsEnabled?Ae$2(this._config.exitAnimationDuration)??Me$2:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ve,G$2)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(G$2),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(G$2),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(De$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(ve,De$1);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Mm(n)))(i||n)}})();static \u0275cmp=Df({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(iv("id",i._config.id),cc("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),gv("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[Qy],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,i){t&1&&($a(0,"div",0)(1,"div",1),Jy(2,Re$2,0,0,"ng-template",2),bf()());},dependencies:[ka],styles:[`.mat-mdc-dialog-container {
|
|
374
|
+
`],encapsulation:2,changeDetection:1})}return n})(),y$1=class y{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ne$1;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!vn$1(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},Ie$2=new D$1("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=p(we$2);return ()=>Wn$1(n)}}),Ee$1=new D$1("DialogData"),Fe$1=new D$1("DefaultDialogConfig");function Le$1(n){let a=se(n),e=new be$3;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var be$1=(()=>{class n{_injector=p(we$2);_defaultOptions=p(Fe$1,{optional:true});_parentDialog=p(n,{optional:true,skipSelf:true});_overlayContainer=p(Qn$1);_idGenerator=p(mt$1);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;_ariaHiddenElements=new Map;_scrollStrategy=p(Ie$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Os$1(void 0)));open(e,t){let i=this._defaultOptions||new g;t=w$1(w$1({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=ii$1(this._injector,o),s=new y$1(l,t),d=this._attachContainer(l,s,t);if(s.containerInstance=d,!this.openDialogs.length){let R=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(He(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(R);}):this._hideNonDialogContentFromAssistiveTechnology(R);}return this._attachDialogContent(e,s,d,t),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,true)),this.afterOpened.next(s),s}closeAll(){z$2(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){z$2(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),z$2(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Zt({positionStrategy:e.positionStrategy||ti$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let o=i.injector||i.viewContainerRef?.injector,l=[{provide:g,useValue:i},{provide:y$1,useValue:t},{provide:$t,useValue:e}],s;i.container?typeof i.container=="function"?s=i.container:(s=i.container.type,l.push(...i.container.providers(i))):s=H;let d=new Me$3(s,i.viewContainerRef,we$2.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,i,o){if(e instanceof ro){let l=this._createInjector(o,t,i,void 0),s={$implicit:o.data,dialogRef:t};o.templateContext&&(s=w$1(w$1({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new Ht(e,null,s,l));}else {let l=this._createInjector(o,t,i,this._injector),s=i.attachComponentPortal(new Me$3(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=s,t.componentInstance=s.instance;}}_createInjector(e,t,i,o){let l=e.injector||e.viewContainerRef?.injector,s=[{provide:Ee$1,useValue:e.data},{provide:y$1,useValue:t}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(t,e,i)):s.push(...e.providers)),e.direction&&(!l||!l.get(ft$1,null,{optional:true}))&&s.push({provide:ft$1,useValue:Le$1(e.direction)}),we$2.create({parent:l||o,providers:s})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let o=t[i];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();function z$2(n,a){let e=n.length;for(;e--;)a(n[e]);}function Re$2(n,a){}var L$1=class L{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},G$2="mdc-dialog--open",ve="mdc-dialog--opening",De$1="mdc-dialog--closing",Pe$1=150,Me$2=75,Be$2=(()=>{class n extends H{_animationStateChanged=new be$3;_animationsEnabled=!et();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ae$2(this._config.enterAnimationDuration)??Pe$1:0;_exitAnimationDuration=this._animationsEnabled?Ae$2(this._config.exitAnimationDuration)??Me$2:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ve,G$2)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(G$2),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(G$2),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(De$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(ve,De$1);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Nm(n)))(i||n)}})();static \u0275cmp=Ef({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(iv("id",i._config.id),uc("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),gv("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[Qy],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,i){t&1&&(za(0,"div",0)(1,"div",1),Jy(2,Re$2,0,0,"ng-template",2),Sf()());},dependencies:[ka],styles:[`.mat-mdc-dialog-container {
|
|
375
375
|
width: 100%;
|
|
376
376
|
height: 100%;
|
|
377
377
|
display: block;
|
|
@@ -560,5 +560,5 @@ var y$2=class a{http=p(FD);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
560
560
|
.mat-mdc-dialog-component-host {
|
|
561
561
|
display: contents;
|
|
562
562
|
}
|
|
563
|
-
`],encapsulation:2,changeDetection:1})}return n})(),Ce$2="--mat-dialog-transition-duration";function Ae$2(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?en(n.substring(0,n.length-2)):n.endsWith("s")?en(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var F$2=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(F$2||{}),W$1=class W{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new xo(1);_beforeClosed=new xo(1);_result;_closeFallbackTimeout;_state=F$2.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ie$4(i=>i.state==="opened"),He(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ie$4(i=>i.state==="closed"),He(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),vw(this.backdropClick(),this.keydownEvents().pipe(Ie$4(i=>i.keyCode===27&&!this.disableClose&&!vn$1(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je$1(this,i.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Ie$4(t=>t.state==="closing"),He(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=F$2.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=F$2.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function je$1(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new D$1("MatMdcDialogData"),Ve$2=new D$1("mat-mdc-dialog-default-options"),ze$1=new D$1("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=p(Ee$3);return ()=>Wn$1(n)}}),Et$1=(()=>{class n{_defaultOptions=p(Ve$2,{optional:true});_scrollStrategy=p(ze$1);_parentDialog=p(n,{optional:true,skipSelf:true});_idGenerator=p(mt$1);_injector=p(Ee$3);_dialog=p(be$1);_animationsDisabled=et();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;dialogConfigClass=L$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rs$1(void 0)));constructor(){this._dialogRefConstructor=W$1,this._dialogContainerType=Be$2,this._dialogDataToken=Ne$2;}open(e,t){let i;t=w$1(w$1({},this._defaultOptions||new L$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,x$2(w$1({},t),{positionStrategy:ti$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(l,s,d)=>(i=new this._dialogRefConstructor(l,t,d),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=o.componentRef,i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();function U$2(n){n||(n=p(Me$4));let e=new k$1(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Or(e))}function T(n,e){let t=p(Ee$3),o=new xo(1),c=Sg(()=>{let r;try{r=n();}catch(i){W$3(()=>o.error(i));return}W$3(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Me$4).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(Me$4)??p(Me$4):null,c=h(e?.equal),r;e?.requireSync?r=ie({kind:0},{equal:c}):r=ie({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new y$3(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),Si$2(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new y$3(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:l,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,l){let o=this.lookupCredential(x);return o?r.set(n,(l??"")+o):r}addCredentialToQuery(x,n,r){let l=this.lookupCredential(x);return l?r.set(n,l):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P=new D$1("basePath");var M=class{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$1=class j{basePath="http://localhost:18124";defaultHeaders=new fn;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new M;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?r:void 0,l):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,l=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var $=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,l,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",l=false,o){let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}searchAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAiProvider(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var F=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;addMessageCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}createCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}interruptCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}killCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listMineByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}markCaseRead(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reopenCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setReasoningEffortCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}starCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unstarCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var D=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var W=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(l==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var we=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(we||{});var Te=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Te||{});var Ie$1=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ie$1||{});var Re$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Re$1||{});var L=class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y=class C{http=p(FD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var K$1=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K$1||{});var Q$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(Q$1||{});var Ee=K$1,Oe$1=Q$1;var Ve$1={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Se$1={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAuthSetting(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var Z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ee$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}diffCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}refreshCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}retryCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;applyConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(l==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$1({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$1({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var re$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ae$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;grantAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}grantMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}startPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deletePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}translateBatchPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}translatePrompt(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(l==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopCostRunRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var de=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var be=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listEffectiveSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}listPlatformSkill(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamEventsCaseEventSse(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listToolInvoke(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var he$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMeUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}getByIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateUserGroup(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(FD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(qe$1||{});var Me$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Me$1||{});var Be$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Be$1||{});var $e=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))($e||{}),Ue$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ue$1||{});var Ne$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Ne$1||{});function Xc(C){return ft$2([typeof C=="string"?{provide:P,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return l.addEventListener("case-event",o),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var me$1=class C{http=p(FD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$1=class C{http=p(FD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$1=class C{http=p(FD);config=p(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
564
|
-
var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),x="*";function Sn(s,e=null){return {type:_.Sequence,steps:s,options:e}}function nt(s){return {type:_.Style,styles:s,offset:null}}var Q=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},he="!";function vn(s){return new y$3(3e3,false)}function Ai(){return new y$3(3100,false)}function ki(){return new y$3(3101,false)}function Pi(s){return new y$3(3001,false)}function Ci(s){return new y$3(3003,false)}function Mi(s){return new y$3(3004,false)}function bn(s,e){return new y$3(3005,false)}function Tn(){return new y$3(3006,false)}function wn(){return new y$3(3007,false)}function An(s,e){return new y$3(3008,false)}function kn(s){return new y$3(3002,false)}function Pn(s,e,t,n,i){return new y$3(3010,false)}function Cn(){return new y$3(3011,false)}function Mn(){return new y$3(3012,false)}function Nn(){return new y$3(3200,false)}function Dn(){return new y$3(3202,false)}function Rn(){return new y$3(3013,false)}function On(s){return new y$3(3014,false)}function Fn(s){return new y$3(3015,false)}function In(s){return new y$3(3016,false)}function Ln(s,e){return new y$3(3404,false)}function Ni(s){return new y$3(3502,false)}function Bn(s){return new y$3(3503,false)}function xn(){return new y$3(3300,false)}function zn(s){return new y$3(3504,false)}function Kn(s){return new y$3(3301,false)}function qn(s,e){return new y$3(3302,false)}function Vn(s){return new y$3(3303,false)}function jn(s,e){return new y$3(3400,false)}function Qn(s){return new y$3(3401,false)}function Un(s){return new y$3(3402,false)}function $n(s,e){return new y$3(3505,false)}function U(s){switch(s.length){case 0:return new Q;case 1:return s[0];default:return new re(s)}}function at(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==a,u=d&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case he:g=t.get(y);break;case x:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),d||r.push(u),o=u,a=c;}),i.length)throw Ni();return r}function Ae(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&it(t,"start",s)));break;case "done":s.onDone(()=>n(t&&it(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&it(t,"destroy",s)));break}}function it(s,e,t){let n=t.totalTime,i=!!t.disabled,r=ke(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function ke(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function ot(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var Di=typeof document>"u"?null:document.documentElement;function Pe(s){let e=s.parentNode||s.host||null;return e===Di?null:e}function Ri(s){return s.substring(1,6)=="ebkit"}var Z=null,En=false;function Gn(s){Z||(Z=Oi()||{},En=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Ri(s)&&(e=s in Z.style,!e&&En&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function Oi(){return typeof document<"u"?document.body:null}function lt(s,e){for(;e;){if(e===s)return true;e=Pe(e);}return false}function ct(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var Fi=1e3,ut="{{",Ii="}}",dt="ng-enter",Ce="ng-leave",me="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function j(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:st(parseFloat(e[1]),e[2])}function st(s,e){return e==="s"?s*Fi:s}function pe(s,e,t){return s.hasOwnProperty("duration")?s:Bi(s,e,t)}var Li=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Bi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(Li);if(a===null)return e.push(vn()),{duration:0,delay:0,easing:""};n=st(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=st(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(Ai()),a=true),i<0&&(e.push(ki()),a=true),a&&e.splice(o,0,vn());}return {duration:n,delay:i,easing:r}}function Wn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ne(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function G(s,e){e.forEach((t,n)=>{let i=Ne(n);s.style[i]="";});}function ae(s){return Array.isArray(s)?s.length==1?s[0]:Sn(s):s}function Hn(s,e,t){let n=e.params||{},i=mt(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(Pi());});}var rt=new RegExp(`${ut}\\s*(.+?)\\s*${Ii}`,"g");function mt(s){let e=[];if(typeof s=="string"){let t;for(;t=rt.exec(s);)e.push(t[1]);rt.lastIndex=0;}return e}function oe(s,e,t){let n=`${s}`,i=n.replace(rt,(r,a)=>{let o=e[a];return o==null&&(t.push(Ci()),o=""),o.toString()});return i==n?s:i}var xi=/-+([a-z0-9])/g;function Ne(s){return s.replace(xi,(...e)=>e[1].toUpperCase())}function Yn(s,e){return s===0||e===0}function Xn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(s,o)));}}return e}function O(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw Mi(e.type)}}function De(s,e){return window.getComputedStyle(s)[e]}var Nt=(()=>{class s{validateStyleProperty(t){return Gn(t)}containsElement(t,n){return lt(t,n)}getParentElement(t){return Pe(t)}query(t,n,i){return ct(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new Q(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=R$2({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new Nt},te=class{};var zi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Le=class extends te{normalizePropertyName(e,t){return Ne(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(zi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(bn());}return a+r}};var Be="*";function Ki(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>qi(n,t,e)):t.push(s),t}function qi(s,e,t){if(s[0]==":"){let l=Vi(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Fn()),e;let i=n[1],r=n[2],a=n[3];e.push(Zn(i,a));let o=i==Be&&a==Be;r[0]=="<"&&!o&&e.push(Zn(a,i));}function Vi(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(In()),"* => *"}}var Re=new Set(["true","1"]),Oe=new Set(["false","0"]);function Zn(s,e){let t=Re.has(s)||Oe.has(s),n=Re.has(e)||Oe.has(e);return (i,r)=>{let a=s==Be||s==i,o=e==Be||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Re.has(s):Oe.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Re.has(e):Oe.has(e)),a&&o}}var ci=":self",ji=new RegExp(`s*${ci}s*,?`,"g");function ui(s,e,t,n){return new St(s).build(e,t,n)}var Jn="",St=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new vt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Jn,e.collectedStyles=new Map,e.collectedStyles.set(Jn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(wn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{mt(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(An(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=O(this,ae(e.animation),t),i=Ki(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>O(this,n,t)),options:J(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let n=Gi(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:nt({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=nt(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===x?n.push(o):t.errors.push(kn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=true;d&&(r!=i&&r>=d.startTime&&i<=d.endTime&&(t.errors.push(Pn(l,d.startTime,d.endTime)),u=false),r=d.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Hn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cn()),n;let i=1,r=0,a=[],o=false,l=false,c=0,d=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:$i(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(Mn()),o&&t.errors.push(Nn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(Dn()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return d.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:O(this,ae(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Qi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Rn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pe(e.timings,t.errors,true);return {type:_.Stagger,animation:O(this,ae(e.animation),t),timings:n,options:null}}};function Qi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==ci);return e&&(s=s.replace(ji,"")),s=s.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[s,e]}function Ui(s){return s?w$1({},s):null}var vt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function $i(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gi(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=pe(s,e).duration;return ft(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=pe(t,e);return ft(i.duration,i.delay,i.easing)}function J(s){return s?(s=w$1({},s),s.params&&(s.params=Ui(s.params))):s={},s}function ft(s,e,t){return {duration:s,delay:e,easing:t}}function Dt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ye=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Wi=1,Hi=":enter",Yi=new RegExp(Hi,"g"),Xi=":leave",Zi=new RegExp(Xi,"g");function di(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new Et().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var Et=class{buildKeyframes(e,t,n,i,r,a,o,l,c,d=[]){c=c||new ye;let u=new bt(e,t,c,i,r,d,[]);u.options=l;let S=l.delay?j(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:j(oe(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?j(n.duration):null,o=n.delay!=null?j(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),O(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xe);let a=j(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?j(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?oe(n,t.params,t.errors):n;return pe(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?j(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=xe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;O(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},xe={},bt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=xe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new ze(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=j(n.duration)),n.delay!=null&&(i.delay=j(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Yi,"."+this._enterClassName),e=e.replace(Zi,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),o.push(...c);}return !r&&o.length==0&&a.push(On()),o}},ze=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=Wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||x),this._currentKeyframe.set(t,x);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Ji(e,this._globalTimelineStyles);for(let[o,l]of a){let c=oe(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??x),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((d,u)=>{d===he?e.add(u):d===x&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return Dt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},Tt=class extends ze{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ei(o)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",ei(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function ei(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Ji(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,x);}else for(let[r,a]of i)t.set(r,a);}),t}function ti(s,e,t,n,i,r,a,o,l,c,d,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var pt={},Ke=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return es(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||pt,y=o&&o.params||pt,m=this.buildStyles(n,y,u),g=l&&l.params||pt,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",ne={params:hi(g,S),delay:this.ast.options?.delay},q=d?[]:di(e,t,this.ast.animation,r,a,m,b,ne,c,u),N=0;return q.forEach(D=>{N=Math.max(D.duration+D.delay,N);}),u.length?ti(t,this._triggerName,n,i,P,m,b,[],[],A,M,N,u):(q.forEach(D=>{let W=D.element,ie=R(A,W,new Set);D.preStyleProps.forEach(H=>ie.add(H));let Ft=R(M,W,new Set);D.postStyleProps.forEach(H=>Ft.add(H)),W!==t&&w.add(W);}),ti(t,this._triggerName,n,i,P,m,b,q,[...w.values()],A,M,N))}};function es(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function hi(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var wt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=hi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function ts(s,e,t){return new At(s,e,t)}var At=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new wt(i.style,r,n));}),ni(this.states,"true","1"),ni(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ke(e,i,this.states));}),this.fallbackTransition=ns(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function ns(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ke(s,r,e)}function ni(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var is=new ye,kt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=ui(this._driver,t,n,i);if(n.length)throw Bn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=at(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=di(this._driver,t,r,dt,Ce,new Map,new Map,n,is,i),a.forEach(d=>{let u=R(o,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(xn()),a=[]),i.length)throw zn();o.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,x));});});let l=a.map(d=>{let u=o.get(d.element);return this._buildPlayer(d,new Map,u)}),c=U(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kn();return t}listen(e,t,n,i){let r=ke(t,"","","");return Ae(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(n){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},ii="ng-animate-queued",ss=".ng-animate-queued",gt="ng-animate-disabled",rs=".ng-animate-disabled",as="ng-star-inserted",os=".ng-star-inserted",ls=[],mi={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},cs={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},K="__ng_removed",_e=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=ds(i),n){let r=e,{value:a}=r,o=y$4(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},ge="void",yt=new _e(ge),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,B(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw qn();if(n==null||n.length==0)throw Vn();if(!hs(n))throw jn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(B(e,me),B(e,me+"-"+t),o.set(t,yt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Qn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new Se(this.id,t,e),o=this._engine.statesByElement.get(e);o||(B(e,me),B(e,me+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new _e(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=yt),!(c.value===ge)&&l.value===c.value){if(!ps(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{G(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(B(e,ii),a.onStart(()=>{le(e,ii);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,fe,true);n.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ge,i);d&&o.push(d);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&U(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||yt,d=new _e(ge),u=new Se(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[K];(!r||r===mi)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){B(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=ke(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ae(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Ct=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Fe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),B(e,gt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,gt));}removeNode(e,t,n){if(Fe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Fe(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=mi,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(gt)&&this.markElementAsDisabled(e,false),this.driver.query(e,rs,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];B(i,as);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw Un()}_flushAnimations(e,t){let n=new ye,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,ss,true);for(let p=0;p<f.length;p++)d.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=ai(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((h,f)=>{let p=dt+g++;m.set(f,p),h.forEach(v=>B(v,p));});let b=[],w=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],p=f[K];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,os,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=ai(S,Array.from(w));P.forEach((h,f)=>{let p=Ce+g++;M.set(f,p),h.forEach(v=>B(v,p));}),e.push(()=>{y.forEach((h,f)=>{let p=m.get(f);h.forEach(v=>le(v,p));}),P.forEach((h,f)=>{let p=M.get(f);h.forEach(v=>le(v,p));}),b.forEach(h=>{this.processLeaveNode(h);});});let ne=[],q=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(ne.push(v),this.collectedEnterElements.length){let C=k[K];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let ve=L.get(p.triggerName);ve.value=Y,L.set(p.triggerName,ve);}}v.destroy();return}}let V=!u||!this.driver.containsElement(u,k),F=M.get(k),$=m.get(k),T=this._buildInstruction(p,n,$,F,V);if(T.errors&&T.errors.length){q.push(T);return}if(V){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Bt=[];T.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Bt.push(C);}),T.timelines=Bt,n.append(k,T.timelines);let wi={instruction:T,player:v,element:k};a.push(wi),T.queriedElements.forEach(C=>R(o,C,[]).push(v)),T.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));}}),T.postStyleProps.forEach((C,Y)=>{let L=c.get(Y);L||c.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));});});if(q.length){let h=[];q.forEach(f=>{h.push($n(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(h);}let N=new Map,D=new Map;a.forEach(h=>{let f=h.element;n.has(f)&&(D.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,N));}),i.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,false,h.namespaceId,h.triggerName,null).forEach(v=>{R(N,f,[]).push(v),v.destroy();});});let W=b.filter(h=>oi(h,l,c)),ie=new Map;ri(ie,this.driver,A,c,x).forEach(h=>{oi(h,l,c)&&W.push(h);});let H=new Map;y.forEach((h,f)=>{ri(H,this.driver,new Set(h),l,he);}),W.forEach(h=>{let f=ie.get(h),p=H.get(h);ie.set(h,new Map([...f?.entries()??[],...p?.entries()??[]]));});let $e=[],It=[],Lt={};a.forEach(h=>{let{element:f,player:p,instruction:v}=h;if(n.has(f)){if(d.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=Lt;if(D.size>1){let F=f,$=[];for(;F=F.parentNode;){let T=D.get(F);if(T){k=T;break}$.push(F);}$.forEach(T=>D.set(T,k));}let V=this._buildAnimation(p.namespaceId,v,N,r,H,ie);if(p.setRealPlayer(V),k===Lt)$e.push(p);else {let F=this.playersByElement.get(k);F&&F.length&&(p.parentPlayer=U(F)),i.push(p);}}else G(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),It.push(p),d.has(f)&&i.push(p);}),It.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let p=U(f);h.setRealPlayer(p);}}),i.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy();});for(let h=0;h<b.length;h++){let f=b[h],p=f[K];if(le(f,Ce),p&&p.hasAnimation)continue;let v=[];if(o.size){let V=o.get(f);V&&V.length&&v.push(...V);let F=this.driver.query(f,Me,true);for(let $=0;$<F.length;$++){let T=o.get(F[$]);T&&T.length&&v.push(...T);}}let k=v.filter(V=>!V.destroyed);k.length?ms(this,f,k):this.processLeaveNode(f);}return b.length=0,$e.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1);}),h.play();}),$e}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==ge;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,d=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,d,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}G(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;d.add(g);let b=g[K];if(b&&b.removedBeforeQueried)return new Q(m.duration,m.delay);let w=g!==l,A=fs((n.get(g)||ls).map(N=>N.getRealPlayer())).filter(N=>{let D=N;return D.element?D.element===g:false}),M=r.get(g),P=a.get(g),ne=at(this._normalizer,m.keyframes,M,P),q=this._buildPlayer(m,ne,A);if(m.subTimeline&&i&&u.add(g),w){let N=new Se(e,o,g);N.setRealPlayer(q),c.push(N);}return q});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>us(this.playersByQueriedElement,m.element,m));}),d.forEach(m=>B(m,ht));let y=U(S);return y.onDestroy(()=>{d.forEach(m=>le(m,ht)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Q(e.duration,e.delay)}},Se=class{namespaceId;triggerName;element;_player=new Q;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Ae(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function us(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function ds(s){return s??null}function Fe(s){return s&&s.nodeType===1}function hs(s){return s=="start"||s=="done"}function si(s,e){let t=s.style.display;return s.style.display=e??"none",t}function ri(s,e,t,n,i){let r=[];t.forEach(l=>r.push(si(l)));let a=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);d.set(u,S),(!S||S.length==0)&&(c[K]=cs,a.push(c));}),s.set(c,d);});let o=0;return t.forEach(l=>si(l,r[o++])),a}function ai(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function B(s,e){s.classList?.add(e);}function le(s,e){s.classList?.remove(e);}function ms(s,e,t){U(t).onDone(()=>s.processLeaveNode(e));}function fs(s){let e=[];return fi(s,e),e}function fi(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof re?fi(n.players,e):e.push(n);}}function ps(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function oi(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var ce=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Ct(e.body,t,n),this._timelineEngine=new kt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],d=ui(this._driver,r,l,c);if(l.length)throw Ln();o=ts(i,d,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=ot(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=ot(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function gs(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=_t(e[0]),e.length>1&&(n=_t(e[e.length-1]))):e instanceof Map&&(t=_t(e)),t||n?new ys(s,t,n):null}var ys=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function _t(s){let e=null;return s.forEach((t,n)=>{_s(n)&&(e=e||new Map,e.set(n,t));}),e}function _s(s){return s==="display"||s==="position"}var qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:De(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return lt(e,t)}getParentElement(e){return Pe(e)}query(e,t,n){return ct(e,t,n)}computeStyle(e,t,n){return De(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,d=a.filter(y=>y instanceof qe);Yn(n,i)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Wn(t).map(y=>new Map(y));u=Xn(e,u,c);let S=gs(e,u);return new qe(e,u,l,S)}};var Ie="@",pi="@.disabled",je=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ie&&t==pi?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Mt=class extends je{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pi?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ie){let r=Ss(e),a=t.slice(1),o="";return a.charAt(0)!=Ie&&([a,o]=vs(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Ss(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function vs(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var Qe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new je("",i,this.engine,u),c.set(i,d);}return d}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new Mt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var bs=(()=>{class s extends ce{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b(Q$3),b(ee),b(te))};static \u0275prov=R$2({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(p(oh),p(ce),p(J$3))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:fr,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:pI,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return it$1("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new D$1("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Rt});var ks=s=>!!s&&s.mode==="laptop"&&s.setupEnabled&&!s.setupDone,Ot=false;var Si=()=>B$1(null,null,function*(){if(Ot)return true;let s=p(R$1),e=p(It$1),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$1(null,null,function*(){return (yield p(R$1).refreshStatus())?.setupDone&&(Ot=true),true});var Ps=s=>s[0]?.path==="agentos"?{consumed:s}:null,Cs=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return p(It$1).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-D2ibs68b.js').then(s=>s.WelcomeComponent)},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-BN5SgIBg.js').then(function(n){return n.N}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$1(this,arguments,function*(s,e=Ms){yield ow(s.loadMe().pipe(mw(e),Wn$2(n=>(console.warn("Failed to load current user",n),_$3(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$1(null,null,function*(){let{UserStateService:e}=yield import('./chunk-BN5SgIBg.js').then(function(n){return n.N});yield bi(s.get(e));})}var Ti={providers:[fI(),k$({eventCoalescing:true}),uA(Ei),_N(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:Ef,useFactory:Ns,deps:[Ee$3],multi:true},Xc({basePath:"/api/agentos"}),{provide:Ve$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&($a(0,"div",0),uc(1,"div",2),$a(2,"p"),t_(3,"Loading Coday\u2026"),bf()());}function Rs(s,e){if(s&1){let t=IT();$a(0,"div",1)(1,"p"),t_(2,"Coday could not load this page."),bf(),$a(3,"button",3),lc("click",function(){ig(t);let i=_T();return sg(i.reload())}),t_(4,"Reload"),bf()();}}var Os=s=>s instanceof jn$2?"pending":s instanceof Cr?"failed":"idle",Ue=class s{title="client";phase=F$1(p(It$1).events.pipe(Ie$4(e=>e instanceof jn$2||e instanceof Ze||e instanceof at$1||e instanceof Cr||e instanceof Vt$1),j$4(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=Df({type:s,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,n){if(t&1&&(dT(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),uc(2,"router-outlet")),t&2){let i;fT((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[lA,kh],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};nN(Ue,Ti).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{$a as $,Af as A,B$1 as B,y as C,Df as D,E,FD as F,G$1 as G,w$1 as H,Iv as I,x$2 as J,lc as K,oS as L,Me$4 as M,tv as N,sS as O,P$1 as P,kh as Q,R$1 as R,Sf as S,Tf as T,U$2 as U,Ae$1 as V,W$3 as W,Xm as X,Le$2 as Y,R$2 as Z,_T as _,Ee$3 as a,Ce$4 as a$,Er as a0,W as a1,F$1 as a2,_$3 as a3,uT as a4,pT as a5,D as a6,ve$2 as a7,Ae$4 as a8,$ as a9,j$4 as aA,Pn$2 as aB,ae$1 as aC,T as aD,pw as aE,z$1 as aF,me$1 as aG,de as aH,be as aI,J$1 as aJ,ne$1 as aK,fe$2 as aL,FM as aM,_v as aN,Tv as aO,p_ as aP,h_ as aQ,v_ as aR,s_ as aS,AM as aT,F as aU,ow as aV,_$1 as aW,Ie$1 as aX,A$2 as aY,z$4 as aZ,Ce$1 as a_,Oe$1 as aa,Ee as ab,Ve$1 as ac,Rs$1 as ad,hw as ae,Wn$2 as af,Se$1 as ag,hT as ah,Te as ai,k as aj,mc as ak,M$ as al,Jy as am,OT as an,D_ as ao,N as ap,Re$1 as aq,Cv as ar,Ss$1 as as,pu as at,g_ as au,y_ as av,MC as aw,U$1 as ax,Y as ay,we as az,bf as b,Jn$1 as b$,yr as b0,Y$1 as b1,se as b2,co as b3,Ft$1 as b4,kn$2 as b5,Mm as b6,D$1 as b7,Ws as b8,_i$2 as b9,yp as bA,mt$1 as bB,ro as bC,On$2 as bD,et as bE,J$3 as bF,Ie$4 as bG,Ht as bH,_e$1 as bI,I as bJ,Mn$1 as bK,vw as bL,vn$1 as bM,Na as bN,ye$2 as bO,Nn$1 as bP,U$3 as bQ,Xn$1 as bR,_$2 as bS,Pr as bT,ft$1 as bU,Tt$1 as bV,Jr as bW,en as bX,Or as bY,Me$3 as bZ,bt$1 as b_,Dr as ba,Z$2 as bb,sn$1 as bc,Ka as bd,lo as be,tr as bf,cn$1 as bg,ae$2 as bh,Qy as bi,d_ as bj,xn$2 as bk,KS as bl,y$3 as bm,MM as bn,ov as bo,ot$1 as bp,Eo as bq,_u as br,xr as bs,Tu as bt,b as bu,Q$3 as bv,Ye as bw,pc as bx,He as by,dp as bz,av as c,W$1 as c$,ii$1 as c0,wi as c1,Yi$1 as c2,Oe$2 as c3,R$ as c4,ji$1 as c5,Ew as c6,yi$1 as c7,bn$1 as c8,Nu as c9,Oo as cA,Mu as cB,bw as cC,qt$1 as cD,vr as cE,ce$1 as cF,ye$1 as cG,he$1 as cH,qe$1 as cI,P$ as cJ,Me$1 as cK,mw as cL,L as cM,fp as cN,ne as cO,Sw as cP,Tw as cQ,_w as cR,A$ as cS,ee$1 as cT,re$1 as cU,ko as cV,Au as cW,$e as cX,Ue$1 as cY,Et$1 as cZ,Ne$2 as c_,nt$1 as ca,ge$2 as cb,N$ as cc,Zt as cd,Ii$2 as ce,ct$1 as cf,lt$1 as cg,zs as ch,MN as ci,NT as cj,RT as ck,Ni$1 as cl,ka as cm,uv as cn,Nf as co,Rf as cp,dc as cq,tM as cr,ms$1 as cs,dv as ct,xT as cu,Xy as cv,vg as cw,a_ as cx,ge$1 as cy,sA as cz,dT as d,Be$1 as d0,le$1 as d1,ww as d2,Ne$1 as d3,te$1 as d4,Of as d5,Z$1 as d6,PM as d7,xM as d8,LM as d9,Dg as da,Sv as db,x$ as dc,lv as dd,_f as de,Mf as df,pe$1 as dg,bv as dh,cc as e,fT as f,ie as g,Si$2 as h,iv as i,gT as j,mT as k,f_ as l,mb as m,nv as n,It$1 as o,p,Sg as q,IT as r,ig as s,t_ as t,uc as u,sg as v,gv as w,pv as x,$t$1 as y,zT as z};
|
|
563
|
+
`],encapsulation:2,changeDetection:1})}return n})(),Ce$2="--mat-dialog-transition-duration";function Ae$2(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?en(n.substring(0,n.length-2)):n.endsWith("s")?en(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var F$2=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(F$2||{}),W$1=class W{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new xo(1);_beforeClosed=new xo(1);_result;_closeFallbackTimeout;_state=F$2.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ce$4(i=>i.state==="opened"),He(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ce$4(i=>i.state==="closed"),He(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Dw(this.backdropClick(),this.keydownEvents().pipe(Ce$4(i=>i.keyCode===27&&!this.disableClose&&!vn$1(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je$1(this,i.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Ce$4(t=>t.state==="closing"),He(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=F$2.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=F$2.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function je$1(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new D$1("MatMdcDialogData"),Ve$2=new D$1("mat-mdc-dialog-default-options"),ze$1=new D$1("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=p(we$2);return ()=>Wn$1(n)}}),Et$1=(()=>{class n{_defaultOptions=p(Ve$2,{optional:true});_scrollStrategy=p(ze$1);_parentDialog=p(n,{optional:true,skipSelf:true});_idGenerator=p(mt$1);_injector=p(we$2);_dialog=p(be$1);_animationsDisabled=et();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;dialogConfigClass=L$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Os$1(void 0)));constructor(){this._dialogRefConstructor=W$1,this._dialogContainerType=Be$2,this._dialogDataToken=Ne$2;}open(e,t){let i;t=w$1(w$1({},this._defaultOptions||new L$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,x$2(w$1({},t),{positionStrategy:ti$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(l,s,d)=>(i=new this._dialogRefConstructor(l,t,d),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=o.componentRef,i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();function U$2(n){n||(n=p(Me$4));let e=new k$1(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(kr(e))}function T(n,e){let t=p(we$2),o=new xo(1),c=Tg(()=>{let r;try{r=n();}catch(i){W$3(()=>o.error(i));return}W$3(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Me$4).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(Me$4)??p(Me$4):null,c=h(e?.equal),r;e?.requireSync?r=se({kind:0},{equal:c}):r=se({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new y$3(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),Mi$2(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new y$3(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:l,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,l){let o=this.lookupCredential(x);return o?r.set(n,(l??"")+o):r}addCredentialToQuery(x,n,r){let l=this.lookupCredential(x);return l?r.set(n,l):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P=new D$1("basePath");var M=class{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$1=class j{basePath="http://localhost:18124";defaultHeaders=new fn;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new M;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?r:void 0,l):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,l=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var $=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,l,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",l=false,o){let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}searchAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAiProvider(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var F=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;addMessageCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}createCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}interruptCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}killCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listMineByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}markCaseRead(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reopenCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setReasoningEffortCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}starCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unstarCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var D=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var W=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new dn$1({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(l==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var we=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(we||{});var Te=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Te||{});var Ie$1=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ie$1||{});var Re$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Re$1||{});var L=class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var K$1=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K$1||{});var Q$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(Q$1||{});var Ee=K$1,Oe$1=Q$1;var Ve$1={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Se$1={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAuthSetting(n,r,l="body",o=false,t){let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var Z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ee$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}diffCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}refreshCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}retryCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;applyConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(l==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new dn$1({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$1({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$1({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var re$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ae$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;grantAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}grantMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}startPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deletePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}translateBatchPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}translatePrompt(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(l==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopCostRunRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var de=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var be=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listEffectiveSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}listPlatformSkill(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamEventsCaseEventSse(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listToolInvoke(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var he$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMeUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new dn$1({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new dn$1({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}getByIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateUserGroup(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(qe$1||{});var Me$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Me$1||{});var Be$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Be$1||{});var $e=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))($e||{}),Ue$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ue$1||{});var Ne$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Ne$1||{});function Xc(C){return ft$2([typeof C=="string"?{provide:P,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return l.addEventListener("case-event",o),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var me$1=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$1=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$1=class C{http=p(jD);config=p(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$2({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
564
|
+
var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),x="*";function Sn(s,e=null){return {type:_.Sequence,steps:s,options:e}}function nt(s){return {type:_.Style,styles:s,offset:null}}var Q=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},he="!";function vn(s){return new y$3(3e3,false)}function Ai(){return new y$3(3100,false)}function ki(){return new y$3(3101,false)}function Pi(s){return new y$3(3001,false)}function Ci(s){return new y$3(3003,false)}function Mi(s){return new y$3(3004,false)}function bn(s,e){return new y$3(3005,false)}function Tn(){return new y$3(3006,false)}function wn(){return new y$3(3007,false)}function An(s,e){return new y$3(3008,false)}function kn(s){return new y$3(3002,false)}function Pn(s,e,t,n,i){return new y$3(3010,false)}function Cn(){return new y$3(3011,false)}function Mn(){return new y$3(3012,false)}function Nn(){return new y$3(3200,false)}function Dn(){return new y$3(3202,false)}function Rn(){return new y$3(3013,false)}function On(s){return new y$3(3014,false)}function Fn(s){return new y$3(3015,false)}function In(s){return new y$3(3016,false)}function Ln(s,e){return new y$3(3404,false)}function Ni(s){return new y$3(3502,false)}function Bn(s){return new y$3(3503,false)}function xn(){return new y$3(3300,false)}function zn(s){return new y$3(3504,false)}function Kn(s){return new y$3(3301,false)}function qn(s,e){return new y$3(3302,false)}function Vn(s){return new y$3(3303,false)}function jn(s,e){return new y$3(3400,false)}function Qn(s){return new y$3(3401,false)}function Un(s){return new y$3(3402,false)}function $n(s,e){return new y$3(3505,false)}function U(s){switch(s.length){case 0:return new Q;case 1:return s[0];default:return new re(s)}}function at(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==a,u=d&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case he:g=t.get(y);break;case x:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),d||r.push(u),o=u,a=c;}),i.length)throw Ni();return r}function Ae(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&it(t,"start",s)));break;case "done":s.onDone(()=>n(t&&it(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&it(t,"destroy",s)));break}}function it(s,e,t){let n=t.totalTime,i=!!t.disabled,r=ke(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function ke(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function ot(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var Di=typeof document>"u"?null:document.documentElement;function Pe(s){let e=s.parentNode||s.host||null;return e===Di?null:e}function Ri(s){return s.substring(1,6)=="ebkit"}var Z=null,En=false;function Gn(s){Z||(Z=Oi()||{},En=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Ri(s)&&(e=s in Z.style,!e&&En&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function Oi(){return typeof document<"u"?document.body:null}function lt(s,e){for(;e;){if(e===s)return true;e=Pe(e);}return false}function ct(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var Fi=1e3,ut="{{",Ii="}}",dt="ng-enter",Ce="ng-leave",me="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function j(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:st(parseFloat(e[1]),e[2])}function st(s,e){return e==="s"?s*Fi:s}function pe(s,e,t){return s.hasOwnProperty("duration")?s:Bi(s,e,t)}var Li=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Bi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(Li);if(a===null)return e.push(vn()),{duration:0,delay:0,easing:""};n=st(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=st(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(Ai()),a=true),i<0&&(e.push(ki()),a=true),a&&e.splice(o,0,vn());}return {duration:n,delay:i,easing:r}}function Wn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ne(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function G(s,e){e.forEach((t,n)=>{let i=Ne(n);s.style[i]="";});}function ae(s){return Array.isArray(s)?s.length==1?s[0]:Sn(s):s}function Hn(s,e,t){let n=e.params||{},i=mt(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(Pi());});}var rt=new RegExp(`${ut}\\s*(.+?)\\s*${Ii}`,"g");function mt(s){let e=[];if(typeof s=="string"){let t;for(;t=rt.exec(s);)e.push(t[1]);rt.lastIndex=0;}return e}function oe(s,e,t){let n=`${s}`,i=n.replace(rt,(r,a)=>{let o=e[a];return o==null&&(t.push(Ci()),o=""),o.toString()});return i==n?s:i}var xi=/-+([a-z0-9])/g;function Ne(s){return s.replace(xi,(...e)=>e[1].toUpperCase())}function Yn(s,e){return s===0||e===0}function Xn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(s,o)));}}return e}function O(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw Mi(e.type)}}function De(s,e){return window.getComputedStyle(s)[e]}var Nt=(()=>{class s{validateStyleProperty(t){return Gn(t)}containsElement(t,n){return lt(t,n)}getParentElement(t){return Pe(t)}query(t,n,i){return ct(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new Q(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=R$2({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new Nt},te=class{};var zi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Le=class extends te{normalizePropertyName(e,t){return Ne(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(zi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(bn());}return a+r}};var Be="*";function Ki(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>qi(n,t,e)):t.push(s),t}function qi(s,e,t){if(s[0]==":"){let l=Vi(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Fn()),e;let i=n[1],r=n[2],a=n[3];e.push(Zn(i,a));let o=i==Be&&a==Be;r[0]=="<"&&!o&&e.push(Zn(a,i));}function Vi(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(In()),"* => *"}}var Re=new Set(["true","1"]),Oe=new Set(["false","0"]);function Zn(s,e){let t=Re.has(s)||Oe.has(s),n=Re.has(e)||Oe.has(e);return (i,r)=>{let a=s==Be||s==i,o=e==Be||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Re.has(s):Oe.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Re.has(e):Oe.has(e)),a&&o}}var ci=":self",ji=new RegExp(`s*${ci}s*,?`,"g");function ui(s,e,t,n){return new St(s).build(e,t,n)}var Jn="",St=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new vt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Jn,e.collectedStyles=new Map,e.collectedStyles.set(Jn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(wn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{mt(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(An(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=O(this,ae(e.animation),t),i=Ki(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>O(this,n,t)),options:J(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let n=Gi(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:nt({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=nt(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===x?n.push(o):t.errors.push(kn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=true;d&&(r!=i&&r>=d.startTime&&i<=d.endTime&&(t.errors.push(Pn(l,d.startTime,d.endTime)),u=false),r=d.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Hn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cn()),n;let i=1,r=0,a=[],o=false,l=false,c=0,d=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:$i(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(Mn()),o&&t.errors.push(Nn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(Dn()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return d.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:O(this,ae(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Qi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Rn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pe(e.timings,t.errors,true);return {type:_.Stagger,animation:O(this,ae(e.animation),t),timings:n,options:null}}};function Qi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==ci);return e&&(s=s.replace(ji,"")),s=s.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[s,e]}function Ui(s){return s?w$1({},s):null}var vt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function $i(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gi(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=pe(s,e).duration;return ft(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=pe(t,e);return ft(i.duration,i.delay,i.easing)}function J(s){return s?(s=w$1({},s),s.params&&(s.params=Ui(s.params))):s={},s}function ft(s,e,t){return {duration:s,delay:e,easing:t}}function Dt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ye=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Wi=1,Hi=":enter",Yi=new RegExp(Hi,"g"),Xi=":leave",Zi=new RegExp(Xi,"g");function di(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new Et().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var Et=class{buildKeyframes(e,t,n,i,r,a,o,l,c,d=[]){c=c||new ye;let u=new bt(e,t,c,i,r,d,[]);u.options=l;let S=l.delay?j(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:j(oe(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?j(n.duration):null,o=n.delay!=null?j(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),O(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xe);let a=j(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?j(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?oe(n,t.params,t.errors):n;return pe(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?j(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=xe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;O(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},xe={},bt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=xe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new ze(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=j(n.duration)),n.delay!=null&&(i.delay=j(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Yi,"."+this._enterClassName),e=e.replace(Zi,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),o.push(...c);}return !r&&o.length==0&&a.push(On()),o}},ze=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=Wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||x),this._currentKeyframe.set(t,x);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Ji(e,this._globalTimelineStyles);for(let[o,l]of a){let c=oe(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??x),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((d,u)=>{d===he?e.add(u):d===x&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return Dt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},Tt=class extends ze{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ei(o)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",ei(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function ei(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Ji(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,x);}else for(let[r,a]of i)t.set(r,a);}),t}function ti(s,e,t,n,i,r,a,o,l,c,d,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var pt={},Ke=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return es(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||pt,y=o&&o.params||pt,m=this.buildStyles(n,y,u),g=l&&l.params||pt,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",ne={params:hi(g,S),delay:this.ast.options?.delay},q=d?[]:di(e,t,this.ast.animation,r,a,m,b,ne,c,u),N=0;return q.forEach(D=>{N=Math.max(D.duration+D.delay,N);}),u.length?ti(t,this._triggerName,n,i,P,m,b,[],[],A,M,N,u):(q.forEach(D=>{let W=D.element,ie=R(A,W,new Set);D.preStyleProps.forEach(H=>ie.add(H));let Ft=R(M,W,new Set);D.postStyleProps.forEach(H=>Ft.add(H)),W!==t&&w.add(W);}),ti(t,this._triggerName,n,i,P,m,b,q,[...w.values()],A,M,N))}};function es(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function hi(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var wt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=hi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function ts(s,e,t){return new At(s,e,t)}var At=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new wt(i.style,r,n));}),ni(this.states,"true","1"),ni(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ke(e,i,this.states));}),this.fallbackTransition=ns(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function ns(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ke(s,r,e)}function ni(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var is=new ye,kt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=ui(this._driver,t,n,i);if(n.length)throw Bn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=at(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=di(this._driver,t,r,dt,Ce,new Map,new Map,n,is,i),a.forEach(d=>{let u=R(o,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(xn()),a=[]),i.length)throw zn();o.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,x));});});let l=a.map(d=>{let u=o.get(d.element);return this._buildPlayer(d,new Map,u)}),c=U(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kn();return t}listen(e,t,n,i){let r=ke(t,"","","");return Ae(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(n){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},ii="ng-animate-queued",ss=".ng-animate-queued",gt="ng-animate-disabled",rs=".ng-animate-disabled",as="ng-star-inserted",os=".ng-star-inserted",ls=[],mi={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},cs={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},K="__ng_removed",_e=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=ds(i),n){let r=e,{value:a}=r,o=y$4(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},ge="void",yt=new _e(ge),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,B(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw qn();if(n==null||n.length==0)throw Vn();if(!hs(n))throw jn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(B(e,me),B(e,me+"-"+t),o.set(t,yt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Qn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new Se(this.id,t,e),o=this._engine.statesByElement.get(e);o||(B(e,me),B(e,me+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new _e(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=yt),!(c.value===ge)&&l.value===c.value){if(!ps(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{G(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(B(e,ii),a.onStart(()=>{le(e,ii);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,fe,true);n.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ge,i);d&&o.push(d);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&U(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||yt,d=new _e(ge),u=new Se(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[K];(!r||r===mi)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){B(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=ke(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ae(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Ct=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Fe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),B(e,gt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,gt));}removeNode(e,t,n){if(Fe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Fe(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=mi,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(gt)&&this.markElementAsDisabled(e,false),this.driver.query(e,rs,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];B(i,as);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw Un()}_flushAnimations(e,t){let n=new ye,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,ss,true);for(let p=0;p<f.length;p++)d.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=ai(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((h,f)=>{let p=dt+g++;m.set(f,p),h.forEach(v=>B(v,p));});let b=[],w=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],p=f[K];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,os,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=ai(S,Array.from(w));P.forEach((h,f)=>{let p=Ce+g++;M.set(f,p),h.forEach(v=>B(v,p));}),e.push(()=>{y.forEach((h,f)=>{let p=m.get(f);h.forEach(v=>le(v,p));}),P.forEach((h,f)=>{let p=M.get(f);h.forEach(v=>le(v,p));}),b.forEach(h=>{this.processLeaveNode(h);});});let ne=[],q=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(ne.push(v),this.collectedEnterElements.length){let C=k[K];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let ve=L.get(p.triggerName);ve.value=Y,L.set(p.triggerName,ve);}}v.destroy();return}}let V=!u||!this.driver.containsElement(u,k),F=M.get(k),$=m.get(k),T=this._buildInstruction(p,n,$,F,V);if(T.errors&&T.errors.length){q.push(T);return}if(V){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Bt=[];T.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Bt.push(C);}),T.timelines=Bt,n.append(k,T.timelines);let wi={instruction:T,player:v,element:k};a.push(wi),T.queriedElements.forEach(C=>R(o,C,[]).push(v)),T.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));}}),T.postStyleProps.forEach((C,Y)=>{let L=c.get(Y);L||c.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));});});if(q.length){let h=[];q.forEach(f=>{h.push($n(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(h);}let N=new Map,D=new Map;a.forEach(h=>{let f=h.element;n.has(f)&&(D.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,N));}),i.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,false,h.namespaceId,h.triggerName,null).forEach(v=>{R(N,f,[]).push(v),v.destroy();});});let W=b.filter(h=>oi(h,l,c)),ie=new Map;ri(ie,this.driver,A,c,x).forEach(h=>{oi(h,l,c)&&W.push(h);});let H=new Map;y.forEach((h,f)=>{ri(H,this.driver,new Set(h),l,he);}),W.forEach(h=>{let f=ie.get(h),p=H.get(h);ie.set(h,new Map([...f?.entries()??[],...p?.entries()??[]]));});let $e=[],It=[],Lt={};a.forEach(h=>{let{element:f,player:p,instruction:v}=h;if(n.has(f)){if(d.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=Lt;if(D.size>1){let F=f,$=[];for(;F=F.parentNode;){let T=D.get(F);if(T){k=T;break}$.push(F);}$.forEach(T=>D.set(T,k));}let V=this._buildAnimation(p.namespaceId,v,N,r,H,ie);if(p.setRealPlayer(V),k===Lt)$e.push(p);else {let F=this.playersByElement.get(k);F&&F.length&&(p.parentPlayer=U(F)),i.push(p);}}else G(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),It.push(p),d.has(f)&&i.push(p);}),It.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let p=U(f);h.setRealPlayer(p);}}),i.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy();});for(let h=0;h<b.length;h++){let f=b[h],p=f[K];if(le(f,Ce),p&&p.hasAnimation)continue;let v=[];if(o.size){let V=o.get(f);V&&V.length&&v.push(...V);let F=this.driver.query(f,Me,true);for(let $=0;$<F.length;$++){let T=o.get(F[$]);T&&T.length&&v.push(...T);}}let k=v.filter(V=>!V.destroyed);k.length?ms(this,f,k):this.processLeaveNode(f);}return b.length=0,$e.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1);}),h.play();}),$e}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==ge;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,d=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,d,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}G(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;d.add(g);let b=g[K];if(b&&b.removedBeforeQueried)return new Q(m.duration,m.delay);let w=g!==l,A=fs((n.get(g)||ls).map(N=>N.getRealPlayer())).filter(N=>{let D=N;return D.element?D.element===g:false}),M=r.get(g),P=a.get(g),ne=at(this._normalizer,m.keyframes,M,P),q=this._buildPlayer(m,ne,A);if(m.subTimeline&&i&&u.add(g),w){let N=new Se(e,o,g);N.setRealPlayer(q),c.push(N);}return q});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>us(this.playersByQueriedElement,m.element,m));}),d.forEach(m=>B(m,ht));let y=U(S);return y.onDestroy(()=>{d.forEach(m=>le(m,ht)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Q(e.duration,e.delay)}},Se=class{namespaceId;triggerName;element;_player=new Q;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Ae(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function us(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function ds(s){return s??null}function Fe(s){return s&&s.nodeType===1}function hs(s){return s=="start"||s=="done"}function si(s,e){let t=s.style.display;return s.style.display=e??"none",t}function ri(s,e,t,n,i){let r=[];t.forEach(l=>r.push(si(l)));let a=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);d.set(u,S),(!S||S.length==0)&&(c[K]=cs,a.push(c));}),s.set(c,d);});let o=0;return t.forEach(l=>si(l,r[o++])),a}function ai(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function B(s,e){s.classList?.add(e);}function le(s,e){s.classList?.remove(e);}function ms(s,e,t){U(t).onDone(()=>s.processLeaveNode(e));}function fs(s){let e=[];return fi(s,e),e}function fi(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof re?fi(n.players,e):e.push(n);}}function ps(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function oi(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var ce=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Ct(e.body,t,n),this._timelineEngine=new kt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],d=ui(this._driver,r,l,c);if(l.length)throw Ln();o=ts(i,d,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=ot(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=ot(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function gs(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=_t(e[0]),e.length>1&&(n=_t(e[e.length-1]))):e instanceof Map&&(t=_t(e)),t||n?new ys(s,t,n):null}var ys=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function _t(s){let e=null;return s.forEach((t,n)=>{_s(n)&&(e=e||new Map,e.set(n,t));}),e}function _s(s){return s==="display"||s==="position"}var qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:De(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return lt(e,t)}getParentElement(e){return Pe(e)}query(e,t,n){return ct(e,t,n)}computeStyle(e,t,n){return De(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,d=a.filter(y=>y instanceof qe);Yn(n,i)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Wn(t).map(y=>new Map(y));u=Xn(e,u,c);let S=gs(e,u);return new qe(e,u,l,S)}};var Ie="@",pi="@.disabled",je=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ie&&t==pi?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Mt=class extends je{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pi?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ie){let r=Ss(e),a=t.slice(1),o="";return a.charAt(0)!=Ie&&([a,o]=vs(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Ss(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function vs(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var Qe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new je("",i,this.engine,u),c.set(i,d);}return d}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new Mt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var bs=(()=>{class s extends ce{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b(Q$3),b(ee),b(te))};static \u0275prov=R$2({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(p(ih),p(ce),p(J$3))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:hr,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:gI,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return it$1("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new D$1("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Rt});var ks=s=>!!s&&s.mode==="laptop"&&s.setupEnabled&&!s.setupDone,Ot=false;var Si=()=>B$1(null,null,function*(){if(Ot)return true;let s=p(R$1),e=p(It$1),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$1(null,null,function*(){return (yield p(R$1).refreshStatus())?.setupDone&&(Ot=true),true});var Ps=s=>s[0]?.path==="agentos"?{consumed:s}:null,Cs=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return p(It$1).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-C4HOlFhc.js').then(s=>s.WelcomeComponent)},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-Btu4vlJn.js').then(function(n){return n._}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$1(this,arguments,function*(s,e=Ms){yield iw(s.loadMe().pipe(yw(e),Wn$2(n=>(console.warn("Failed to load current user",n),_$3(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$1(null,null,function*(){let{UserStateService:e}=yield import('./chunk-Btu4vlJn.js').then(function(n){return n._});yield bi(s.get(e));})}var Ti={providers:[hI(),P$({eventCoalescing:true}),dA(Ei),NN(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:wf,useFactory:Ns,deps:[we$2],multi:true},Xc({basePath:"/api/agentos"}),{provide:Ve$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&(za(0,"div",0),lc(1,"div",2),za(2,"p"),n_(3,"Loading Coday\u2026"),Sf()());}function Rs(s,e){if(s&1){let t=CT();za(0,"div",1)(1,"p"),n_(2,"Coday could not load this page."),Sf(),za(3,"button",3),dc("click",function(){sg(t);let i=MT();return ag(i.reload())}),n_(4,"Reload"),Sf()();}}var Os=s=>s instanceof jn$2?"pending":s instanceof br?"failed":"idle",Ue=class s{title="client";phase=F$1(p(It$1).events.pipe(Ce$4(e=>e instanceof jn$2||e instanceof Ye||e instanceof at$1||e instanceof br||e instanceof Vt$1),j$4(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=Ef({type:s,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,n){if(t&1&&(fT(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),lc(2,"router-outlet")),t&2){let i;hT((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[fA,Ph],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};oN(Ue,Ti).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{$t$1 as $,jD as A,B$1 as B,CT as C,y as D,E,G$1 as F,GT as G,Me$4 as H,Iv as I,w$1 as J,x$2 as K,dc as L,Mi$2 as M,iS as N,tv as O,P$1 as P,aS as Q,R$1 as R,Sf as S,Tf as T,U$2 as U,Ph as V,W$3 as W,Ae$1 as X,Le$2 as Y,R$2 as Z,_f as _,Ef as a,be$3 as a$,wr as a0,W as a1,F$1 as a2,_$3 as a3,lT as a4,gT as a5,D as a6,De$3 as a7,Ae$4 as a8,$ as a9,j$4 as aA,Pn$2 as aB,ae$1 as aC,T as aD,gw as aE,z$1 as aF,me$1 as aG,de as aH,be as aI,J$1 as aJ,ne$1 as aK,pe$3 as aL,UM as aM,Mv as aN,_v as aO,m_ as aP,g_ as aQ,E_ as aR,c_ as aS,OM as aT,F as aU,iw as aV,_$1 as aW,Ie$1 as aX,A$2 as aY,z$4 as aZ,Ce$1 as a_,Oe$1 as aa,Ee as ab,Ve$1 as ac,Os$1 as ad,pw as ae,Wn$2 as af,Se$1 as ag,pT as ah,Te as ai,k as aj,mc as ak,N$ as al,Jy as am,kT as an,w_ as ao,N as ap,Re$1 as aq,Cv as ar,Ms$1 as as,pu as at,y_ as au,D_ as av,NC as aw,U$1 as ax,Y as ay,we as az,av as b,Jn$1 as b$,vr as b0,Y$1 as b1,ae$2 as b2,co as b3,Ft$1 as b4,kn$2 as b5,Nm as b6,D$1 as b7,Ys as b8,Ri$2 as b9,vp as bA,mt$1 as bB,ro as bC,On$2 as bD,et as bE,J$3 as bF,Ce$4 as bG,Ht as bH,_e$1 as bI,I as bJ,Mn$1 as bK,Dw as bL,vn$1 as bM,Aa as bN,ye$2 as bO,Nn$1 as bP,U$3 as bQ,Xn$1 as bR,_$2 as bS,Pr as bT,ft$1 as bU,Tt$1 as bV,Jr as bW,en as bX,kr as bY,Me$3 as bZ,bt$1 as b_,Er as ba,Z$2 as bb,sn$1 as bc,Ja as bd,lo as be,tr as bf,cn$1 as bg,ce$2 as bh,Qy as bi,h_ as bj,xn$2 as bk,JS as bl,y$3 as bm,RM as bn,ov as bo,ot$1 as bp,Eo as bq,_u as br,Or as bs,Tu as bt,b as bu,Q$3 as bv,Qe$1 as bw,pc as bx,He as by,fp as bz,nv as c,W$1 as c$,ii$1 as c0,wi as c1,Yi$1 as c2,Oe$2 as c3,A$ as c4,ji$1 as c5,ww as c6,yi$1 as c7,bn$1 as c8,Nu as c9,Oo as cA,Mu as cB,Sw as cC,qt$1 as cD,Dr as cE,ce$1 as cF,ye$1 as cG,he$1 as cH,qe$1 as cI,L$ as cJ,Me$1 as cK,yw as cL,L as cM,hp as cN,ne as cO,Tw as cP,_w as cQ,Mw as cR,x$ as cS,ee$1 as cT,re$1 as cU,ko as cV,Au as cW,$e as cX,Ue$1 as cY,Et$1 as cZ,Ne$2 as c_,nt$1 as ca,ge$2 as cb,R$ as cc,Zt as cd,bi$2 as ce,ct$1 as cf,lt$1 as cg,zs as ch,RN as ci,RT as cj,AT as ck,Ni$1 as cl,ka as cm,uv as cn,Rf as co,Af as cp,fc as cq,rM as cr,ms$1 as cs,dv as ct,OT as cu,Xy as cv,Dg as cw,u_ as cx,ge$1 as cy,cA as cz,yT as d,Be$1 as d0,le$1 as d1,Iw as d2,Ne$1 as d3,te$1 as d4,kf as d5,Z$1 as d6,FM as d7,kM as d8,jM as d9,Eg as da,Sv as db,Tv as dc,O$ as dd,lv as de,Mf as df,Nf as dg,pe$1 as dh,bv as di,p_ as e,fT as f,It$1 as g,hT as h,iv as i,Tg as j,MT as k,lc as l,mT as m,n_ as n,sg as o,p,ag as q,gv as r,se as s,ey as t,uc as u,pv as v,we$2 as w,xf as x,yb as y,za as z};
|