@whoz-oss/coday-client 0.0.0-workstream-forge.172 → 0.0.0-workstream-forge.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/browser/{chunk-DdNbpTgI.js → chunk--RuxhGbv.js} +1 -1
  2. package/browser/{chunk-CFTZLmDK.js → chunk--imgNMKh.js} +1 -1
  3. package/browser/{chunk-Df4ffgbb.js → chunk-04_sOTTU.js} +1 -1
  4. package/browser/chunk-7IEeHimQ.js +1 -0
  5. package/browser/{chunk-BCFOIPzr.js → chunk-B28h64OU.js} +1 -1
  6. package/browser/{chunk-BPkdfsYS.js → chunk-BAKVIDen.js} +1 -1
  7. package/browser/chunk-BAzrPfVo.js +1 -0
  8. package/browser/{chunk-BHRpnB0r.js → chunk-BUflawI3.js} +1 -1
  9. package/browser/chunk-BYIEWcxl.js +1 -0
  10. package/browser/chunk-BZ27AGeb.js +1 -0
  11. package/browser/{chunk-CmJpcitD.js → chunk-BhWuGdEN.js} +1 -1
  12. package/browser/{chunk-Azkube5e.js → chunk-Bl1tYksF.js} +1 -1
  13. package/browser/{chunk-DxIjlwnT.js → chunk-Bp6Gq-Dc.js} +1 -1
  14. package/browser/chunk-BuYWQnhP.js +668 -0
  15. package/browser/{chunk-DG9i3ksz.js → chunk-BzXEZzAO.js} +1 -1
  16. package/browser/{chunk-D9CvLQsC.js → chunk-C1_RDQ6a.js} +1 -1
  17. package/browser/{chunk-CbCz42Oe.js → chunk-C2YemXdZ.js} +1 -1
  18. package/browser/{chunk-DzCB16yn.js → chunk-CHfdKVCn.js} +1 -1
  19. package/browser/chunk-CKiLuQFk.js +1 -0
  20. package/browser/{chunk-JFcgVIrZ.js → chunk-ClXLPnzi.js} +1 -1
  21. package/browser/{chunk-Xi3S8PpM.js → chunk-CuQzeX42.js} +1 -1
  22. package/browser/{chunk-Dc2iz8II.js → chunk-CvNJFt8x.js} +1 -1
  23. package/browser/chunk-D9h4MuDW.js +1 -0
  24. package/browser/{chunk-DZz2LVJ1.js → chunk-DDz-Pegy.js} +1 -1
  25. package/browser/{chunk-BpmC_e5B.js → chunk-DSMyAk88.js} +1 -1
  26. package/browser/{chunk-DFeu1IE1.js → chunk-DXAEOZdK.js} +1 -1
  27. package/browser/chunk-DYJuiWfW.js +1 -0
  28. package/browser/{chunk-CmaAeOoQ.js → chunk-Df35lXxH.js} +1 -1
  29. package/browser/{chunk-qz6FbyLX.js → chunk-DlC9BBW9.js} +1 -1
  30. package/browser/{chunk-CcnD-khz.js → chunk-Dmzz40x7.js} +1 -1
  31. package/browser/{chunk-BU5NDNAL.js → chunk-DoADEwZ9.js} +1 -1
  32. package/browser/chunk-ETz6T3aD.js +1 -0
  33. package/browser/chunk-EYD9zhHn.js +1 -0
  34. package/browser/chunk-Fem-i7zu.js +1 -0
  35. package/browser/{chunk-BCFG3cAt.js → chunk-KXo9hugg.js} +1 -1
  36. package/browser/{chunk-C_2XXNbn.js → chunk-RFzc8BMm.js} +1 -1
  37. package/browser/{chunk-DNLvVWb0.js → chunk-TMdUALnf.js} +1 -1
  38. package/browser/{chunk-8GkesQ0k.js → chunk-_gpyQyb1.js} +1 -1
  39. package/browser/{chunk-Cnx9Er_d.js → chunk-cX2sgV10.js} +1 -1
  40. package/browser/chunk-knFGDN5j.js +1 -0
  41. package/browser/{chunk-C2do5buM.js → chunk-nXCMX_XM.js} +1 -1
  42. package/browser/chunk-oSPZOgi0.js +1 -0
  43. package/browser/chunk-pzVsG328.js +1 -0
  44. package/browser/{chunk-DBoYNp5Y.js → chunk-rxt7ASlY.js} +1 -1
  45. package/browser/{chunk-BAmUhuXv.js → chunk-zJN7xh5t.js} +1 -1
  46. package/browser/{chunk-Bb_Z6sgc.js → chunk-zxNRyIEC.js} +1 -1
  47. package/browser/index.html +2 -2
  48. package/browser/{main-5RLWJYOC.js → main-BDHAW6RK.js} +11 -11
  49. package/package.json +1 -1
  50. package/browser/chunk-B6Yr3RDc.js +0 -1
  51. package/browser/chunk-B7CFfwor.js +0 -668
  52. package/browser/chunk-BgvdBMGK.js +0 -1
  53. package/browser/chunk-Bk8l2wLo.js +0 -1
  54. package/browser/chunk-BlpzRg0n.js +0 -1
  55. package/browser/chunk-By0AYWlV.js +0 -1
  56. package/browser/chunk-CDfJLQb0.js +0 -1
  57. package/browser/chunk-D-Fk7tKq.js +0 -1
  58. package/browser/chunk-D84tLLZv.js +0 -1
  59. package/browser/chunk-DK_JhKAm.js +0 -1
  60. package/browser/chunk-DeRoM7DQ.js +0 -1
  61. package/browser/chunk-H7vIl5DX.js +0 -1
  62. package/browser/chunk-W06JlWhl.js +0 -1
  63. package/browser/chunk-jYaGAlaB.js +0 -1
@@ -1,9 +1,9 @@
1
- var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$2=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$2=Object.prototype.hasOwnProperty,m$2=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$2.call(b,c)&&l$1(a,c,b[c]);return a},x$2=(a,b)=>q$2(a,s(b));var y$2=(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$2.call(a,d)&&(c[d]=a[d]);return c};var z$3=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(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$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$2=(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 M$1(e){return typeof e=="function"}function Rt$3(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 Po$1=Rt$3(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$2=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$2=Object.prototype.hasOwnProperty,m$2=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$2.call(b,c)&&l$1(a,c,b[c]);return a},x$2=(a,b)=>q$2(a,s(b));var y$2=(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$2.call(a,d)&&(c[d]=a[d]);return c};var z$3=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(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$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$2=(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 M(e){return typeof e=="function"}function Rt$3(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 Po$1=Rt$3(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 Jt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$3=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M$1(r))try{r();}catch(i){t=i instanceof Po$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Wl(i);}catch(s){t=t??[],s instanceof Po$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Po$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Wl(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)&&Jt(n,t);}remove(t){let{_finalizers:n}=this;n&&Jt(n,t),t instanceof e&&t._removeParent(this);}};ee$3.EMPTY=(()=>{let e=new ee$3;return e.closed=true,e})();var ra$1=ee$3.EMPTY;function Lo$1(e){return e instanceof ee$3||e&&"closed"in e&&M$1(e.remove)&&M$1(e.add)&&M$1(e.unsubscribe)}function Wl(e){M$1(e)?e():e.unsubscribe();}var Pe$2={Promise:void 0};var Fn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function jo$1(e){Fn$3.setTimeout(()=>{throw e});}function ft$3(){}function Pn$3(e){e();}var tn$1=class tn extends ee$3{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Lo$1(t)&&t.add(this)):this.destination=ny;}static create(t,n,r){return new Le$2(t,n,r)}next(t){this.isStopped?sa$1():this._next(t);}error(t){this.isStopped?sa$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?sa$1():(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 aa$1=class aa{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Bo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Bo$1(r);}else Bo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Bo$1(n);}}},Le$2=class Le extends tn$1{constructor(t,n,r){super();let o;if(M$1(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new aa$1(o);}};function Bo$1(e){jo$1(e);}function ty(e){throw e}function sa$1(e,t){}var ny={closed:true,next:ft$3,error:ty,complete:ft$3};var Ln$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ye$4(e){return e}function ry(...e){return ca$1(e)}function ca$1(e){return e.length===0?ye$4:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$2=(()=>{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=iy(n)?n:new Le$2(n,r,o);return Pn$3(()=>{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=Kl(r),new r((o,i)=>{let s=new Le$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)}[Ln$3](){return this}pipe(...n){return ca$1(n)(this)}toPromise(n){return n=Kl(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 Kl(e){var t;return (t=e??Pe$2.Promise)!==null&&t!==void 0?t:Promise}function oy(e){return e&&M$1(e.next)&&M$1(e.error)&&M$1(e.complete)}function iy(e){return e&&e instanceof tn$1||oy(e)&&Lo$1(e)}var Xl=Rt$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ue$1=(()=>{class e extends R$2{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Vo$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xl}next(n){Pn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Pn$3(()=>{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(){Pn$3(()=>{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?ra$1:(this.currentObservers=null,i.push(n),new ee$3(()=>{this.currentObservers=null,Jt(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$2;return n.source=this,n}}return e.create=(t,n)=>new Vo$1(t,n),e})(),Vo$1=class Vo extends ue$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:ra$1}};var wr$1=class wr extends ue$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 nn$1=new R$2(e=>e.complete());function Ho$1(e){return e&&M$1(e.schedule)}function ua$1(e){return e[e.length-1]}function Uo$1(e){return M$1(ua$1(e))?e.pop():void 0}function Ze$1(e){return Ho$1(ua$1(e))?e.pop():void 0}function Jl(e,t){return typeof ua$1(e)=="number"?e.pop():t}function td(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 ed(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 rn$1(e){return this instanceof rn$1?(this.v=e,this):new rn$1(e)}function nd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(D,_){i.push([f,y,D,_])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof rn$1?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function rd(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 ed=="function"?ed(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 $o$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function zo$1(e){return M$1(e?.then)}function Go$1(e){return M$1(e[Ln$3])}function Wo$1(e){return Symbol.asyncIterator&&M$1(e?.[Symbol.asyncIterator])}function qo$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 sy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zo$1=sy();function Yo$1(e){return M$1(e?.[Zo$1])}function Qo$1(e){return nd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield rn$1(n.read());if(o)return yield rn$1(void 0);yield yield rn$1(r);}}finally{n.releaseLock();}})}function Ko$1(e){return M$1(e?.getReader)}function A$1(e){if(e instanceof R$2)return e;if(e!=null){if(Go$1(e))return ay(e);if($o$1(e))return cy(e);if(zo$1(e))return uy(e);if(Wo$1(e))return od(e);if(Yo$1(e))return ly(e);if(Ko$1(e))return dy(e)}throw qo$1(e)}function ay(e){return new R$2(t=>{let n=e[Ln$3]();if(M$1(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cy(e){return new R$2(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function uy(e){return new R$2(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,jo$1);})}function ly(e){return new R$2(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function od(e){return new R$2(t=>{fy(e,t).catch(n=>t.error(n));})}function dy(e){return od(Qo$1(e))}function fy(e,t){var n,r,o,i;return td(this,void 0,void 0,function*(){try{for(n=rd(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 oe$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 py(e){return M$1(e?.lift)}function C$1(e){return t=>{if(py(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$2(e,t,n,r,o){return new la$2(e,t,n,r,o)}var la$2=class la extends tn$1{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 Xo$1(e,t=0){return C$1((n,r)=>{n.subscribe(T$2(r,o=>oe$2(r,e,()=>r.next(o),t),()=>oe$2(r,e,()=>r.complete(),t),o=>oe$2(r,e,()=>r.error(o),t)));})}function Jo$1(e,t=0){return C$1((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function id(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function sd(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function ad(e,t){return new R$2(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function cd(e,t){return new R$2(n=>{let r;return oe$2(n,t,()=>{r=e[Zo$1](),oe$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);}),()=>M$1(r?.return)&&r.return()})}function ei$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$2(n=>{oe$2(n,t,()=>{let r=e[Symbol.asyncIterator]();oe$2(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function ud(e,t){return ei$3(Qo$1(e),t)}function ld(e,t){if(e!=null){if(Go$1(e))return id(e,t);if($o$1(e))return ad(e,t);if(zo$1(e))return sd(e,t);if(Wo$1(e))return ei$3(e,t);if(Yo$1(e))return cd(e,t);if(Ko$1(e))return ud(e,t)}throw qo$1(e)}function Ye$2(e,t){return t?ld(e,t):A$1(e)}function Cr$1(...e){let t=Ze$1(e);return Ye$2(e,t)}var on$1=Rt$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function hy(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Le$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new on$1);}});e.subscribe(i);})}function ne$2(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:gy}=Array,{getPrototypeOf:my,prototype:yy,keys:vy}=Object;function ti$3(e){if(e.length===1){let t=e[0];if(gy(t))return {args:t,keys:null};if(Dy(t)){let n=vy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Dy(e){return e&&typeof e=="object"&&my(e)===yy}var{isArray:Ey}=Array;function Iy(e,t){return Ey(t)?e(...t):e(t)}function ni$3(e){return ne$2(t=>Iy(e,t))}function ri$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wy(...e){let t=Ze$1(e),n=Uo$1(e),{args:r,keys:o}=ti$3(e);if(r.length===0)return Ye$2([],t);let i=new R$2(Cy(r,t,o?s=>ri$3(o,s):ye$4));return n?i.pipe(ni$3(n)):i}function Cy(e,t,n=ye$4){return r=>{dd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)dd(t,()=>{let u=Ye$2(e[c],t),l=false;u.subscribe(T$2(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function dd(e,t,n){e?oe$2(n,e,t):t();}function Ty(...e){let t=Uo$1(e),{args:n,keys:r}=ti$3(e),o=new R$2(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;A$1(n[l]).subscribe(T$2(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ri$3(r,a):a),i.complete());}));}});return t?o.pipe(ni$3(t)):o}function da(e){return C$1((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$2(n,void 0,void 0,s=>{i=A$1(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var oi$3=class oi extends ee$3{constructor(t,n){super();}schedule(t,n=0){return this}};var Tr$1={setInterval(e,t,...n){let{delegate:r}=Tr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ii$3=class ii extends oi$3{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 Tr$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Tr$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,Jt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var br$1={now(){return (br$1.delegate||Date).now()},delegate:void 0};var jn$3=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)}};jn$3.now=br$1.now;var si$3=class si extends jn$3{constructor(t,n=jn$3.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 pt$3=new si$3(ii$3),fd=pt$3;function pd(e,t=pt$3){return C$1((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$2(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function Ot$3(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>e.call(t,i,o++)&&r.next(i)));})}function hd(e){return Ot$3((t,n)=>e<=n)}function ai$3(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=false;A$1(n(y,l++)).subscribe(T$2(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?oe$2(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(T$2(t,f,()=>{d=true,p();})),()=>{}}function ht$3(e,t,n=1/0){return M$1(t)?ht$3((r,o)=>ne$2((i,s)=>t(r,i,o,s))(A$1(e(r,o))),n):(typeof t=="number"&&(n=t),C$1((r,o)=>ai$3(r,o,e,n)))}function Sr$1(e=1/0){return ht$3(ye$4,e)}function gd(){return Sr$1(1)}function kt$3(...e){return gd()(Ye$2(e,Ze$1(e)))}function md(...e){let t=Ze$1(e);return C$1((n,r)=>{(t?kt$3(e,n,t):kt$3(e,n)).subscribe(r);})}function fa(e,t){return C$1((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$2(r,c=>{o?.unsubscribe();let u=0,l=i++;A$1(e(c,l)).subscribe(o=T$2(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function yd(e,t,n){let r=M$1(e)||t||n?{next:e,error:t,complete:n}:e;return r?C$1((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$2(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);}));}):ye$4}var _r$1=class _r extends ue$1{constructor(t=1/0,n=1/0,r=br$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function by(e,t){let n=M$1(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function Sy(e){return !!e&&(e instanceof R$2||M$1(e.lift)&&M$1(e.subscribe))}function ci$3(e){return e instanceof Date&&!isNaN(e)}var _y=Rt$3(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function My(e,t){let{first:n,each:r,with:o=Ny,scheduler:i=pt$3,meta:s=null}=ci$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return C$1((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$2(c,i,()=>{try{u.unsubscribe(),A$1(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(T$2(c,h=>{l?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function Ny(e){throw new _y(e)}function xy(e){return new R$2(t=>{A$1(e()).subscribe(t);})}function Mr$1(e=0,t,n=fd){let r=-1;return t!=null&&(Ho$1(t)?n=t:r=t),new R$2(o=>{let i=ci$3(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 Ay(...e){let t=Ze$1(e),n=Jl(e,1/0),r=e;return r.length?r.length===1?A$1(r[0]):Sr$1(n)(Ye$2(r,t)):nn$1}function vd(e){return C$1((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$2(n,u=>{r=!0,o=u,i||A$1(e(u)).subscribe(i=T$2(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=pt$3){return vd(()=>Mr$1(e,t))}function Dd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$2(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function ui$3(e,t){return M$1(t)?ht$3(e,t,1):ht$3(e,1)}function Ed(e){return C$1((t,n)=>{let r=!1;t.subscribe(T$2(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function sn$1(e){return e<=0?()=>nn$1:C$1((t,n)=>{let r=0;t.subscribe(T$2(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function pa(){return C$1((e,t)=>{e.subscribe(T$2(t,ft$3));})}function ha(e){return ne$2(()=>e)}function ga(e,t){return t?n=>kt$3(t.pipe(sn$1(1),pa()),n.pipe(ga(e))):ht$3((n,r)=>A$1(e(n,r)).pipe(sn$1(1),ha(n)))}function Oy(e,t=pt$3){let n=Mr$1(e,t);return ga(()=>n)}function ky(e,t){return C$1((n,r)=>{let o=new Set;n.subscribe(T$2(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$1(t).subscribe(T$2(r,()=>o.clear(),ft$3));})}function Id(e,t=ye$4){return e=e??Fy,C$1((n,r)=>{let o,i=!0;n.subscribe(T$2(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Fy(e,t){return e===t}function wd(e=Py){return C$1((t,n)=>{let r=!1;t.subscribe(T$2(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Py(){return new on$1}function Ly(...e){return t=>kt$3(t,Cr$1(...e))}function ma(e,t){return t?n=>n.pipe(ma((r,o)=>A$1(e(r,o)).pipe(ne$2((i,s)=>t(r,i,o,s))))):C$1((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$2(r,a=>{i||(i=T$2(r,void 0,()=>{i=null,s&&r.complete();}),A$1(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function jy(e,t=1/0,n){return t=(t||0)<1?1/0:t,C$1((r,o)=>ai$3(r,o,e,t,void 0,!0,n))}function li$2(e){return C$1((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$3((o,i)=>e(o,i,r)):ye$4,sn$1(1),n?Ed(t):wd(()=>new on$1))}function Vy(e){return e<=0?()=>nn$1:C$1((t,n)=>{let r=[];t.subscribe(T$2(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 Hy(e,t){return C$1(Dd(e,t,arguments.length>=2,!0))}function va(e={}){let{connector:t=()=>new ue$1,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return C$1((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=ya(h,o));}),_.subscribe(D),!s&&u>0&&(s=new Le$2({next:$=>_.next($),error:$=>{d=!0,p(),a=ya(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=ya(f,r),_.complete();}}),A$1(y).subscribe(s));})(i)}}function ya(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Le$2({next:()=>{r.unsubscribe(),e();}});return A$1(t(...n)).subscribe(r)}function Uy(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,va({connector:()=>new _r$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Cd(e){return C$1((t,n)=>{A$1(e).subscribe(T$2(n,()=>n.complete(),ft$3)),!n.closed&&t.subscribe(n);})}function $y(e,t=false){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var le$4=null,di$3=false,an$1=1,q$1=Symbol("SIGNAL");function I$1(e){let t=le$4;return le$4=e,t}function fi$3(){return le$4}var Ft$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 gt$2(e){if(di$3)throw new Error("");if(le$4===null)return;le$4.consumerOnSignalRead(e);let t=le$4.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$4.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$4.producers,n!==void 0&&n.producer===e)){le$4.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=an$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$4&&(!r||o.knownValidAtEpoch===an$1))return;let i=Hn$3(le$4),s={producer:e,consumer:le$4,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:an$1,lastReadVersion:e.version,nextConsumer:void 0};le$4.producersTail=s,t!==void 0?t.nextProducer=s:le$4.producers=s,i&&_d(e,s);}function Td(){an$1++;}function ln$1(e){if(!(Hn$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===an$1)){if(!e.producerMustRecompute(e)&&!Vn$3(e)){Bn$3(e);return}e.producerRecomputeValue(e),Bn$3(e);}}function Da(e){if(e.consumers===void 0)return;let t=di$3;di$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Gy(r);}}finally{di$3=t;}}function Ea(){return le$4?.consumerAllowSignalWrites!==false}function Gy(e){e.dirty=true,Da(e),e.consumerMarkedDirty?.(e);}function Bn$3(e){e.dirty=false,e.lastCleanEpoch=an$1;}function mt$3(e){return e&&bd(e),I$1(e)}function bd(e){if(e.producersTail?.knownValidAtEpoch===an$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$3(e,t){I$1(t),e&&Sd(e);}function Sd(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Hn$3(e))do n=Ia(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Vn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ln$1(n),r!==n.version))return true}return false}function Lt$2(e){if(Hn$3(e)){let t=e.producers;for(;t!==void 0;)t=Ia(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function _d(e,t){let n=e.consumersTail,r=Hn$3(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)_d(o.producer,o);}function Ia(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,!Hn$3(t)){let i=t.producers;for(;i!==void 0;)i=Ia(i);}return n}function Hn$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function xr$1(e,t){return Object.is(e,t)}function Ar$1(e,t){let n=Object.create(Wy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ln$1(n),gt$2(n),n.value===Qe$3)throw n.error;return n.value};return r[q$1]=n,r}var cn$1=Symbol("UNSET"),un$1=Symbol("COMPUTING"),Qe$3=Symbol("ERRORED"),Wy=x$2(w$1({},Ft$1),{value:cn$1,dirty:true,error:null,equal:xr$1,kind:"computed",producerMustRecompute(e){return e.value===cn$1||e.value===un$1},producerRecomputeValue(e){if(e.value===un$1)throw new Error("");let t=e.value;e.value=un$1;let n=mt$3(e),r,o=false;try{r=e.computation(),I$1(null),o=t!==cn$1&&t!==Qe$3&&r!==Qe$3&&e.equal(t,r);}catch(i){r=Qe$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function qy(){throw new Error}var Md=qy;function Nd(e){Md(e);}function wa(e){Md=e;}function Ca(e,t){let n=Object.create(Rr$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>xd(n);return r[q$1]=n,[r,s=>jt$2(n,s),s=>pi$3(n,s)]}function xd(e){return gt$2(e),e.value}function jt$2(e,t){Ea()||Nd(e),e.equal(e.value,t)||(e.value=t,Yy(e));}function pi$3(e,t){Ea()||Nd(e),jt$2(e,t(e.value));}var Rr$1=x$2(w$1({},Ft$1),{equal:xr$1,value:void 0,kind:"signal"});function Yy(e){e.version++,Td(),Da(e);}var Ta=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ba(e){if(e.dirty=false,e.version>0&&!Vn$3(e))return;e.version++;let t=mt$3(e);try{e.cleanup(),e.fn();}finally{Pt$3(e,t);}}var Sa;function hi$3(){return Sa}function Ke$3(e){let t=Sa;return Sa=e,t}var Ad=Symbol("NotFound");function Un$3(e){return e===Ad||e?.name==="\u0275NotFound"}function _a(e,t,n){let r=Object.create(Qy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(ln$1(r),gt$2(r),r.value===Qe$3)throw r.error;return r.value};return i[q$1]=r,i}function Rd(e,t){ln$1(e),jt$2(e,t),Bn$3(e);}function Od(e,t){if(ln$1(e),e.value===Qe$3)throw e.error;pi$3(e,t),Bn$3(e);}var Qy=x$2(w$1({},Ft$1),{value:cn$1,dirty:true,error:null,equal:xr$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===cn$1||e.value===un$1},producerRecomputeValue(e){if(e.value===un$1)throw new Error("");let t=e.value;e.value=un$1;let n=mt$3(e),r,o=false;try{let i=e.source(),s=t!==cn$1&&t!==Qe$3,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I$1(null),o=s&&r!==Qe$3&&e.equal(t,r);}catch(i){r=Qe$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function kd(e){let t=I$1(null);try{return e()}finally{I$1(t);}}var Ii$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$1=class m extends Error{code;constructor(t,n){super(Xe$1(t,n)),this.code=t;}};function Ky(e){return `NG0${Math.abs(e)}`}function Xe$1(e,t){return `${Ky(e)}${t?": "+t:""}`}function k$1(e){for(let t in e)if(e[t]===k$1)return t;throw Error("")}function Bd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function jr(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(jr).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 wi$2(e,t){return e?t?`${e} ${t}`:e:t||""}var Xy=k$1({__forward_ref__:k$1});function Ci$3(e){return e.__forward_ref__=Ci$3,e}function re$2(e){return Va(e)?e():e}function Va(e){return typeof e=="function"&&e.hasOwnProperty(Xy)&&e.__forward_ref__===Ci$3}function x$1(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Br(e){return {providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return ev(e,Ti$2)}function Jy(e){return Vr(e)!==null}function ev(e,t){return e.hasOwnProperty(t)&&e[t]||null}function tv(e){let t=e?.[Ti$2]??null;return t||null}function Na(e){return e&&e.hasOwnProperty(mi$3)?e[mi$3]:null}var Ti$2=k$1({\u0275prov:k$1}),mi$3=k$1({\u0275inj:k$1}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x$1({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Ha(e){return e&&!!e.\u0275providers}var Ua=k$1({\u0275cmp:k$1}),$a=k$1({\u0275dir:k$1}),za=k$1({\u0275pipe:k$1}),Ga=k$1({\u0275mod:k$1}),kr=k$1({\u0275fac:k$1}),gn$1=k$1({__NG_ELEMENT_ID__:k$1}),Fd=k$1({__NG_ENV_ID__:k$1});function Vd(e){return bi$3(e),e[Ga]||null}function Et$3(e){return bi$3(e),e[Ua]||null}function Wa(e){return bi$3(e),e[$a]||null}function Hd(e){return bi$3(e),e[za]||null}function bi$3(e,t){if(e==null)throw new m$1(-919,false)}function Z$1(e){return typeof e=="string"?e:e==null?"":String(e)}var Ud=k$1({ngErrorCode:k$1}),nv=k$1({ngErrorMessage:k$1});k$1({ngTokenPath:k$1});function qa(e,t){return $d("",-200)}function Si$3(e,t){throw new m$1(-201,false)}function $d(e,t,n){let r=new m$1(t,e);return r[Ud]=t,r[nv]=e,r}function ov(e){return e[Ud]}var xa;function zd(){return xa}function de$3(e){let t=xa;return xa=e,t}function Za(e,t,n){let r=Vr(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;Si$3();}var _e$2=globalThis;var iv={},dn$1=iv,sv="__NG_DI_FLAG__",Aa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=fn$1(n)||0;try{return this.injector.get(t,r&8?null:dn$1,r)}catch(o){if(Un$3(o))return o;throw o}}};function av(e,t=0){let n=hi$3();if(n===void 0)throw new m$1(-203,false);if(n===null)return Za(e,void 0,t);{let r=cv(t),o=n.retrieve(e,r);if(Un$3(o)){if(r.optional)return null;throw o}return o}}function b$1(e,t=0){return (zd()||av)(re$2(e),t)}function g$1(e,t){return b$1(e,fn$1(t))}function fn$1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ra(e){let t=[];for(let n=0;n<e.length;n++){let r=re$2(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=uv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$1(o,i));}else t.push(b$1(r));}return t}function uv(e){return e[sv]}function Bt$1(e,t){let n=e.hasOwnProperty(kr);return n?e[kr]:null}function Gd(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 Wd(e){return e.flat(Number.POSITIVE_INFINITY)}function _i$3(e,t){e.forEach(n=>Array.isArray(n)?_i$3(n,t):t(n));}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Hr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Zd(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 Mi$2(e,t,n){let r=Gn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Zd(e,r,t,n)),r}function Ni$2(e,t){let n=Gn$3(e,t);if(n>=0)return e[n|1]}function Gn$3(e,t){return lv(e,t,1)}function lv(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 Ht$1={},ie$1=[],It$2=new w(""),Ur=new w("",-1),Qa=new w(""),zn$3=class zn{get(t,n=dn$1){if(n===dn$1){let o=$d("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$2(e){return {\u0275providers:e}}function Yd(e){return wt$2([{provide:It$2,multi:true,useValue:e}])}function Qd(...e){return {\u0275providers:Ka(true,e),\u0275fromNgModule:true}}function Ka(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return _i$3(t,s=>{let a=s;yi$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Kd(o,i),n}function Kd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r);});}}function yi$3(e,t,n,r){if(e=re$2(e),!e)return false;let o=null,i=Na(e),s=!i&&Et$3(e);if(!i&&!s){let c=e.ngModule;if(i=Na(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)yi$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;_i$3(i.imports,l=>{yi$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Kd(u,t);}if(!a){let u=Bt$1(o)||(()=>new o);t({provide:o,useFactory:u,deps:ie$1},o),t({provide:Qa,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Xa(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)Ha(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n);}var dv=k$1({provide:String,useValue:k$1});function Xd(e){return e!==null&&typeof e=="object"&&dv in e}function fv(e){return !!(e&&e.useExisting)}function pv(e){return !!(e&&e.useFactory)}function pn$1(e){return typeof e=="function"}function Jd(e){return !!e.useClass}var $r=new w(""),gi$3={},Pd={},Ma;function Wn$3(){return Ma===void 0&&(Ma=new zn$3),Ma}var fe$4=class fe{},hn$1=class hn extends fe$4{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,ka(t,s=>this.processProvider(s)),this.records.set(Ur,$n$3(void 0,this)),o.has("environment")&&this.records.set(fe$4,$n$3(void 0,this));let i=this.records.get($r);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qa,ie$1,{self:true}));}retrieve(t,n){let r=fn$1(n)||0;try{return this.get(t,dn$1,r)}catch(o){if(Un$3(o))return o;throw o}}destroy(){Or(this),this._destroyed=true;let t=I$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(),I$1(t);}}onDestroy(t){return Or(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Or(this);let n=Ke$3(this),r=de$3(void 0);try{return t()}finally{Ke$3(n),de$3(r);}}get(t,n=dn$1,r){if(Or(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=fn$1(r),s=Ke$3(this),a=de$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=$n$3(Oa(t),gi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Wn$3():this.parent;return n=o&8&&n===dn$1?null:n,c.get(t,n)}catch(c){let u=ov(c);throw u===-200||u===-201?new m$1(u,null):c}finally{de$3(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I$1(null),n=Ke$3(this),r=de$3(void 0);try{let i=this.get(It$2,ie$1,{self:!0});for(let s of i)s();}finally{Ke$3(n),de$3(r),I$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$2(t);let n=pn$1(t)?t:re$2(t&&t.provide),r=gv(t);if(!pn$1(t)&&t.multi===true){let o=this.records.get(n);o||(o=$n$3(void 0,gi$3,true),o.factory=()=>Ra(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=I$1(null);try{if(n.value===Pd)throw qa("");return n.value===gi$3&&(n.value=Pd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&yv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$2(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Oa(e){let t=Vr(e),n=t!==null?t.factory:Bt$1(e);if(n!==null)return n;if(e instanceof w)throw new m$1(-204,false);if(e instanceof Function)return hv(e);throw new m$1(-204,false)}function hv(e){if(e.length>0)throw new m$1(-204,false);let n=tv(e);return n!==null?()=>n.factory(e):()=>new e}function gv(e){if(Xd(e))return $n$3(void 0,e.useValue);{let t=Ja(e);return $n$3(t,gi$3)}}function Ja(e,t,n){let r;if(pn$1(e)){let o=re$2(e);return Bt$1(o)||Oa(o)}else if(Xd(e))r=()=>re$2(e.useValue);else if(pv(e))r=()=>e.useFactory(...Ra(e.deps||[]));else if(fv(e))r=(o,i)=>b$1(re$2(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$2(e&&(e.useClass||e.provide));if(mv(e))r=()=>new o(...Ra(e.deps));else return Bt$1(o)||Oa(o)}return r}function Or(e){if(e.destroyed)throw new m$1(-205,false)}function $n$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function mv(e){return !!e.deps}function yv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ka(e,t){for(let n of e)Array.isArray(n)?ka(n,t):n&&Ha(n)?ka(n.\u0275providers,t):t(n);}function qn$3(e,t){let n;e instanceof hn$1?(Or(e),n=e):n=new Aa(e);let o=Ke$3(n),i=de$3(void 0);try{return t()}finally{Ke$3(o),de$3(i);}}function ef(){return zd()!==void 0||hi$3()!=null}var Be$4=0,E=1,S$1=2,te$3=3,Me$4=4,se$1=5,mn$1=6,Zn$3=7,Y$3=8,Je$2=9,Ve$4=10,L$3=11,Yn$3=12,ec=13,Ut$2=14,ae$2=15,$t$1=16,yn$1=17,et=18,tt$1=19,tc=20,vt$2=21,xi$3=22,Vt$1=23,ve$3=24,vn$2=25,nt$1=26,H$3=27,tf=1,nc=6,zt$1=7,zr=8,Dn$3=9,W$4=10;function Ct$2(e){return Array.isArray(e)&&typeof e[tf]=="object"}function Ne$4(e){return Array.isArray(e)&&e[tf]===true}function rc(e){return (e.flags&4)!==0}function Tt$3(e){return e.componentOffset>-1}function Qn$3(e){return (e.flags&1)===1}function rt$1(e){return !!e.template}function Kn$2(e){return (e[S$1]&512)!==0}function En$3(e){return (e[S$1]&256)===256}var oc="svg",nf="math";function xe$3(e){for(;Array.isArray(e);)e=e[Be$4];return e}function ic(e,t){return xe$3(t[e])}function Ae$4(e,t){return xe$3(t[e.index])}function Ai$2(e,t){return e.data[t]}function Ri$3(e,t){return e[t]}function sc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Re$4(e,t){let n=t[e];return Ct$2(n)?n:n[Be$4]}function rf(e){return (e[S$1]&4)===4}function Oi$2(e){return (e[S$1]&128)===128}function of(e){return Ne$4(e[te$3])}function De$2(e,t){return t==null?null:e[t]}function ac(e){e[yn$1]=0;}function cc(e){e[S$1]&1024||(e[S$1]|=1024,Oi$2(e)&&In$3(e));}function sf(e,t){for(;e>0;)t=t[Ut$2],e--;return t}function Gr(e){return !!(e[S$1]&9216||e[ve$3]?.dirty)}function ki$3(e){e[Ve$4].changeDetectionScheduler?.notify(8),e[S$1]&64&&(e[S$1]|=1024),Gr(e)&&In$3(e);}function In$3(e){e[Ve$4].changeDetectionScheduler?.notify(0);let t=Dt$3(e);for(;t!==null&&!(t[S$1]&8192||(t[S$1]|=8192,!Oi$2(t)));)t=Dt$3(t);}function Fi$2(e,t){if(En$3(e))throw new m$1(911,false);e[vt$2]===null&&(e[vt$2]=[]),e[vt$2].push(t);}function af(e,t){if(e[vt$2]===null)return;let n=e[vt$2].indexOf(t);n!==-1&&e[vt$2].splice(n,1);}function Dt$3(e){let t=e[te$3];return Ne$4(t)?t[te$3]:t}function uc(e){return e[Zn$3]??=[]}function lc(e){return e.cleanup??=[]}function cf(e,t,n,r){let o=uc(t);o.push(n),e.firstCreatePass&&lc(e).push(r,o.length-1);}var N$2={lFrame:If(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Fa=false;function uf(){return N$2.lFrame.elementDepthCount}function lf(){N$2.lFrame.elementDepthCount++;}function dc(){N$2.lFrame.elementDepthCount--;}function Pi$2(){return N$2.bindingsEnabled}function fc(){return N$2.skipHydrationRootTNode!==null}function pc(e){return N$2.skipHydrationRootTNode===e}function hc(){N$2.skipHydrationRootTNode=null;}function v$1(){return N$2.lFrame.lView}function j$4(){return N$2.lFrame.tView}function df(e){return N$2.lFrame.contextLView=e,e[Y$3]}function ff(e){return N$2.lFrame.contextLView=null,e}function X$1(){let e=gc();for(;e!==null&&e.type===64;)e=e.parent;return e}function gc(){return N$2.lFrame.currentTNode}function pf(){let e=N$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Xn$3(e,t){let n=N$2.lFrame;n.currentTNode=e,n.isParent=t;}function mc(){return N$2.lFrame.isParent}function yc(){N$2.lFrame.isParent=false;}function hf(){return N$2.lFrame.contextLView}function vc(){return Fa}function Fr(e){let t=Fa;return Fa=e,t}function Jn$3(){let e=N$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wr(){return N$2.lFrame.bindingIndex}function gf(e){return N$2.lFrame.bindingIndex=e}function Gt(){return N$2.lFrame.bindingIndex++}function wn$3(e){let t=N$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mf(){return N$2.lFrame.inI18n}function yf(e,t){let n=N$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,Li$2(t);}function vf(){return N$2.lFrame.currentDirectiveIndex}function Li$2(e){N$2.lFrame.currentDirectiveIndex=e;}function Df(e){let t=N$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ji$2(){return N$2.lFrame.currentQueryIndex}function qr(e){N$2.lFrame.currentQueryIndex=e;}function Dv(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$1]:null}function Dc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Dv(i),o===null||(i=i[Ut$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$2.lFrame=Ef();return r.currentTNode=t,r.lView=e,true}function Bi$2(e){let t=Ef(),n=e[E];N$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Ef(){let e=N$2.lFrame,t=e===null?null:e.child;return t===null?If(e):t}function If(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 wf(){let e=N$2.lFrame;return N$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ec=wf;function Vi$2(){let e=wf();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 Cf(e){return (N$2.lFrame.contextLView=sf(e,N$2.lFrame.contextLView))[Y$3]}function Ee$4(){return N$2.lFrame.selectedIndex}function Wt$1(e){N$2.lFrame.selectedIndex=e;}function er$1(){let e=N$2.lFrame;return Ai$2(e.tView,e.selectedIndex)}function Tf(){N$2.lFrame.currentNamespace=oc;}function bf(){Ev();}function Ev(){N$2.lFrame.currentNamespace=null;}function Ic(){return N$2.lFrame.currentNamespace}var Sf=true;function Hi$2(){return Sf}function Zr(e){Sf=e;}function Pa(e,t=null,n=null,r){let o=wc(e,t,n);return o.resolveInjectorInitializers(),o}function wc(e,t=null,n=null,r,o=new Set){let i=[n||ie$1,Qd(e)];return new hn$1(i,t||Wn$3(),null,o)}var pe$3=class e{static THROW_IF_NOT_FOUND=dn$1;static NULL=new zn$3;static create(t,n){if(Array.isArray(t))return Pa({name:""},n,t);{let r=t.name??"";return Pa({name:r},t.parent,t.providers)}}static \u0275prov=x$1({token:e,providedIn:"any",factory:()=>b$1(Ur)});static __NG_ELEMENT_ID__=-1},U$5=new w(""),Ie$4=(()=>{class e{static __NG_ELEMENT_ID__=Iv;static __NG_ENV_ID__=n=>n}return e})(),vi$3=class vi extends Ie$4{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return En$3(this._lView)}onDestroy(t){let n=this._lView;return Fi$2(n,t),()=>af(n,t)}};function Iv(){return new vi$3(v$1())}var Cc=false,_f=new w(""),qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new wr$1(false);debugTaskTracker=g$1(_f,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$2(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=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),La=class extends ue$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,ef()&&(this.destroyRef=g$1(Ie$4,{optional:true})??void 0,this.pendingTasks=g$1(qt,{optional:true})??void 0);}emit(t){let n=I$1(null);try{super.next(t);}finally{I$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 ee$3&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},yt$2=La;function Di$2(...e){}function Tc(e){let t,n;function r(){e=Di$2;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 Mf(e){return queueMicrotask(()=>e()),()=>{e=Di$2;}}var bc="isAngularZone",Pr=bc+"_ID",wv=0,G$4=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$2(false);onMicrotaskEmpty=new yt$2(false);onStable=new yt$2(false);onError=new yt$2(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Cc}=t;if(typeof Zone>"u")throw new m$1(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,bv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$1(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,Cv,Di$2,Di$2);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)}},Cv={};function Sc(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 Tv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Tc(()=>{e.callbackScheduled=false,ja(e),e.isCheckStableRunning=true,Sc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),ja(e);}function bv(e){let t=()=>{Tv(e);},n=wv++;e._inner=e._inner.fork({name:"angular",properties:{[bc]:true,[Pr]:n,[Pr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Sv(c))return r.invokeTask(i,s,a,c);try{return Ld(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ld(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!_v(c)&&t(),jd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ja(e),Sc(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 ja(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Ld(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function jd(e){e._nesting--,Sc(e);}var Lr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$2;onMicrotaskEmpty=new yt$2;onStable=new yt$2;onError=new yt$2;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 Sv(e){return Nf(e,"__ignore_ng_zone__")}function _v(e){return Nf(e,"__scheduler_tick__")}function Nf(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$5=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$1=new w("",{factory:()=>{let e=g$1(G$4),t=g$1(fe$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$5),n.handleError(r));});}}}),xf={provide:It$2,useValue:()=>{g$1(Se$5,{optional:true});},multi:true},Mv=new w("",{factory:()=>{let e=g$1(U$5).defaultView;if(!e)return;let t=g$1(ot$1),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(),g$1(Ie$4).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function Nv(){return wt$2([Yd(()=>{g$1(Mv);})])}function Ui$2(e,t){let [n,r,o]=Ca(e,t?.equal),i=n;i[q$1];return i.set=r,i.update=o,i.asReadonly=Yr.bind(i),i}function Yr(){let e=this[q$1];if(e.readonlyFn===void 0){let t=()=>this();t[q$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Qr=new w("",{factory:()=>xv}),xv="ng";var $i$2=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Av=new w(""),Xr=new w("",{factory:()=>g$1(U$5).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var tr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Rv}return e})();function Rv(){return new tr$1(v$1(),X$1())}var je$3=class je{},nr$1=new w("",{factory:()=>true});var zi$2=new w(""),Gi$2=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new Ba})}return e})(),Ba=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}},Ei$3=class Ei{[q$1];constructor(t){this[q$1]=t;}destroy(){this[q$1].destroy();}};function Af(e,t){let n=t?.injector??g$1(pe$3),r=t?.manualCleanup!==true?n.get(Ie$4):null,o,i=n.get(tr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=Fv(i.view,s,e),r instanceof vi$3&&r._lView===i.view&&(r=null)):o=Pv(e,n.get(Gi$2),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ei$3(o)}var Rf=x$2(w$1({},Ta),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Fr(false);try{ba(this);}finally{Fr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I$1(e);}}}),Ov=x$2(w$1({},Rf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),kv=x$2(w$1({},Rf),{consumerMarkedDirty(){this.view[S$1]|=8192,In$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$1]?.delete(this);}});function Fv(e,t,n){let r=Object.create(kv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Of(r,n),e[Vt$1]??=new Set,e[Vt$1].add(r),r.consumerMarkedDirty(r),r}function Pv(e,t,n){let r=Object.create(Ov);return r.fn=Of(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 Of(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Jr(e){return typeof e=="function"&&e[q$1]!==void 0}function Wi$2(e){return Jr(e)&&typeof e.set=="function"}var eo$1=(()=>{class e{internalPendingTasks=g$1(qt);scheduler=g$1(je$3);errorHandler=g$1(ot$1);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=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$1(e){return {toString:e}.toString()}var O$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})(O$3||{}),ts$1=class ts{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function vp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Dp=null,Du=(()=>{Dp=kf;let e=()=>kf;return e.ngInherit=true,e})();function qv(){return Dp}function kf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yv),Zv}function Zv(){let e=Ep(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Yv(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Qv(e,{previous:Ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ts$1(u&&u.currentValue,n,c===Ht$1),vp(e,t,o,n);}var jc="__ngSimpleChanges__";function Ep(e){return Object.hasOwn(e,jc)&&e[jc]||null}function Qv(e,t){return e[jc]=t}var Ff=[];var F$5=function(e,t=null,n){for(let r=0;r<Ff.length;r++){let o=Ff[r];o(e,t,n);}};function Kv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qv()(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 Ip(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 Ki$2(e,t,n){wp(e,t,3,n);}function Xi$2(e,t,n,r){(e[S$1]&3)===n&&wp(e,t,n,r);}function _c(e,t){let n=e[S$1];(n&3)===t&&(n&=16383,n+=1,e[S$1]=n);}function wp(e,t,n,r){let o=r!==void 0?e[yn$1]&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[yn$1]+=65536),(a<i||i==-1)&&(Xv(e,n,t,c),e[yn$1]=(e[yn$1]&4294901760)+c+2),c++;}function Pf(e,t){F$5(O$3.LifecycleHookStart,e,t);let n=I$1(null);try{t.call(e);}finally{I$1(n),F$5(O$3.LifecycleHookEnd,e,t);}}function Xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$1]>>14<e[yn$1]>>16&&(e[S$1]&3)===t&&(e[S$1]+=16384,Pf(a,i)):Pf(a,i);}var or$1=-1,Tn$3=class Tn{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 Jv(e){return (e.flags&8)!==0}function eD(e){return (e.flags&16)!==0}function tD(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];nD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Cp(e){return e===3||e===4||e===6}function nD(e){return e.charCodeAt(0)===64}function ir$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Lf(e,n,o,null,t[++r]):Lf(e,n,o,null,null));}}return e}function Lf(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 Tp(e){return e!==or$1}function ns$1(e){return e&32767}function rD(e){return e>>16}function rs$1(e,t){let n=rD(e),r=t;for(;n>0;)r=r[Ut$2],n--;return r}var Bc=true;function os$1(e){let t=Bc;return Bc=e,t}var oD=256,bp=oD-1,Sp=5,iD=0,it$1={};function sD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gn$1)&&(r=n[gn$1]),r==null&&(r=n[gn$1]=iD++);let o=r&bp,i=1<<o;t.data[e+(o>>Sp)]|=i;}function is$1(e,t){let n=_p(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Mc(r.data,e),Mc(t,null),Mc(r.blueprint,null));let o=Eu(e,t),i=e.injectorIndex;if(Tp(o)){let s=ns$1(o),a=rs$1(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Mc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function _p(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Eu(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=Op(o),r===null)return or$1;if(n++,o=o[Ut$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return or$1}function Vc(e,t,n){sD(e,t,n);}function aD(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(Cp(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 Mp(e,t,n){if(n&8||e!==void 0)return e;Si$3();}function Np(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Je$2],i=de$3(void 0);try{return o?o.get(t,r,n&8):Za(t,r,n&8)}finally{de$3(i);}}return Mp(r,t,n)}function xp(e,t,n,r=0,o){if(e!==null){if(t[S$1]&2048&&!(r&2)){let s=dD(e,t,n,r,it$1);if(s!==it$1)return s}let i=Ap(e,t,n,r,it$1);if(i!==it$1)return i}return Np(t,n,r,o)}function Ap(e,t,n,r,o){let i=uD(n);if(typeof i=="function"){if(!Dc(t,e,r))return r&1?Mp(o,n,r):Np(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Si$3(n);else return s}finally{Ec();}}else if(typeof i=="number"){let s=null,a=_p(e,t),c=or$1,u=r&1?t[ae$2][se$1]:null;for((a===-1||r&4)&&(c=a===-1?Eu(e,t):t[a+8],c===or$1||!Bf(r,false)?a=-1:(s=t[E],a=ns$1(c),t=rs$1(c,t)));a!==-1;){let l=t[E];if(jf(i,a,l.data)){let d=cD(a,t,n,s,r,u);if(d!==it$1)return d}c=t[a+8],c!==or$1&&Bf(r,t[E].data[a+8]===u)&&jf(i,a,t)?(s=l,a=ns$1(c),t=rs$1(c,t)):a=-1;}}return o}function cD(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?Tt$3(a)&&Bc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ji$2(a,s,n,c,u);return l!==null?io$1(t,s,l,a,o):it$1}function Ji$2(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&rt$1(f)&&f.type===n)return c}return null}function io$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Tn$3){let a=i;if(a.resolving)throw qa();let c=os$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?de$3(a.injectImpl):null;Dc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kv(n,s[n],t);}finally{d!==null&&de$3(d),os$1(c),a.resolving=false,Ec();}}return i}function uD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gn$1)?e[gn$1]:void 0;return typeof t=="number"?t>=0?t&bp:lD:t}function jf(e,t,n){let r=1<<e;return !!(n[t+(e>>Sp)]&r)}function Bf(e,t){return !(e&2)&&!(e&1&&t)}var Zt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return xp(this._tNode,this._lView,t,fn$1(r),n)}};function lD(){return new Zt(X$1(),v$1())}function Rp(e){return po$1(()=>{let t=e.prototype.constructor,n=t[kr]||Hc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[kr]||Hc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Hc(e){return Va(e)?()=>{let t=Hc(re$2(e));return t&&t()}:Bt$1(e)}function dD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$1]&2048&&!Kn$2(s);){let a=Ap(i,s,n,r|2,it$1);if(a!==it$1)return a;let c=i.parent;if(!c){let u=s[tc];if(u){let l=u.get(n,it$1,r&-5);if(l!==it$1)return l}c=Op(s),s=s[Ut$2];}i=c;}return o}function Op(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se$1]:null}function Iu(e){return aD(X$1(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function fD(){return dr$1(X$1(),v$1())}function dr$1(e,t){return new xn$3(Ae$4(e,t))}var xn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=fD}return e})();function kp(e){return e instanceof xn$3?e.nativeElement:e}function pD(){return this._results[Symbol.iterator]()}var ss$1=class ss{_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 ue$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=Wd(t);(this._changesDetected=!Gd(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]=pD};function Fp(e){return (e.flags&128)===128}var wu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(wu||{}),Pp=new Map,hD=0;function gD(){return hD++}function mD(e){Pp.set(e[tt$1],e);}function Uc(e){Pp.delete(e[tt$1]);}var Vf="__ngContext__";function sr$1(e,t){Ct$2(t)?(e[Vf]=t[tt$1],mD(t)):e[Vf]=t;}function Lp(e){return Bp(e[Yn$3])}function jp(e){return Bp(e[Me$4])}function Bp(e){for(;e!==null&&!Ne$4(e);)e=e[Me$4];return e}var $c;function Cu(e){$c=e;}function Tu(){if($c!==void 0)return $c;if(typeof document<"u")return document;throw new m$1(210,false)}var Vp="r";var Hp="di";var yD=new w(""),Up=false,$p=new w("",{factory:()=>Up});var zp=new w("");var Hf=new WeakMap;function vD(e,t){if(e==null||typeof e!="object")return;let n=Hf.get(e);n||(n=new WeakSet,Hf.set(e,n)),n.add(t);}function Is(e){return (e.flags&32)===32}var ID=()=>null;function Gp(e,t,n=false){return ID()}function Wp(e,t){let n=e.contentQueries;if(n!==null){let r=I$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];qr(i),a.contentQueries(2,t[s],s);}}}finally{I$1(r);}}}function zc(e,t,n){qr(0);let r=I$1(null);try{t(e,n);}finally{I$1(r);}}function bu(e,t,n){if(rc(t)){let r=I$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{I$1(r);}}}var $e$3=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})($e$3||{});var qi$2;function wD(){if(qi$2===void 0&&(qi$2=null,_e$2.trustedTypes))try{qi$2=_e$2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return qi$2}function ws$1(e){return wD()?.createHTML(e)||e}var Zi$2;function qp(){if(Zi$2===void 0&&(Zi$2=null,_e$2.trustedTypes))try{Zi$2=_e$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Zi$2}function Uf(e){return qp()?.createHTML(e)||e}function $f(e){return qp()?.createScriptURL(e)||e}var bt$3=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ii$1})`}},Gc=class extends bt$3{getTypeName(){return "HTML"}},Wc=class extends bt$3{getTypeName(){return "Style"}},qc=class extends bt$3{getTypeName(){return "Script"}},Zc=class extends bt$3{getTypeName(){return "URL"}},Yc=class extends bt$3{getTypeName(){return "ResourceURL"}};function Te$2(e){return e instanceof bt$3?e.changingThisBreaksApplicationSecurity:e}function at$2(e,t){let n=Zp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ii$1})`)}return n===t}function Zp(e){return e instanceof bt$3&&e.getTypeName()||null}function Su(e){return new Gc(e)}function _u(e){return new Wc(e)}function Mu(e){return new qc(e)}function Nu(e){return new Zc(e)}function xu(e){return new Yc(e)}function CD(e){let t=new Kc(e);return TD()?new Qc(t):t}var Qc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ws$1(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},Kc=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=ws$1(t),n}};function TD(){try{return !!new window.DOMParser().parseFromString(ws$1(""),"text/html")}catch(e){return false}}var bD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(bD)?e:"unsafe:"+e}function St$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Yp=St$2("area,br,col,hr,img,wbr"),Qp=St$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kp=St$2("rp,rt"),SD=go$2(Kp,Qp),_D=go$2(Qp,St$2("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")),MD=go$2(Kp,St$2("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")),zf=go$2(Yp,_D,MD,SD),Xp=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ND=St$2("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"),xD=St$2("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"),AD=go$2(Xp,ND,xD),RD=St$2("script,style,template"),Xc=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=FD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Gf(t).toLowerCase();if(!zf.hasOwnProperty(n))return this.sanitizedSomething=true,!RD.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(!AD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Xp[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',Wf(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Gf(t).toLowerCase();zf.hasOwnProperty(n)&&!Yp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Wf(t));}};function OD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Jp(t);return t}function FD(e){let t=e.firstChild;if(t&&OD(e,t))throw Jp(t);return t}function Gf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Jp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LD=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&amp;").replace(PD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(LD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yi$2;function Cs$1(e,t){let n=null;try{Yi$2=Yi$2||CD(e);let r=t?String(t):"";n=Yi$2.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=Yi$2.getInertBodyElement(r);}while(r!==i);let a=new Xc().sanitizeChildren(qf(n)||n);return ws$1(a)}finally{if(n){let r=qf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function qf(e){return "content"in e&&jD(e)?e.content:null}function jD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var BD=/^>|^->|<!--|-->|--!>|<!-$/g,VD=/(<|>)/g,HD="\u200B$1\u200B";function UD(e){return e.replace(BD,t=>t.replace(VD,HD))}function $D(e,t){return e.createText(t)}function zD(e,t,n){e.setValue(t,n);}function GD(e,t){return e.createComment(UD(t))}function eh(e,t,n){return e.createElement(t,n)}function as$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function th(e,t,n){e.appendChild(t,n);}function Zf(e,t,n,r,o){r!==null?as$1(e,t,n,r,o):th(e,t,n);}function nh(e,t,n,r){e.removeChild(null,t,n,r);}function WD(e,t,n){e.setAttribute(t,"style",n);}function qD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function rh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tD(e,t,r),o!==null&&qD(e,t,o),i!==null&&WD(e,t,i);}var Oe$2=(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})(Oe$2||{});function ZD(e){let t=Au();return t?Uf(t.sanitize(Oe$2.HTML,e)||""):at$2(e,"HTML")?Uf(Te$2(e)):Cs$1(Tu(),Z$1(e))}function oh(e){let t=Au();return t?t.sanitize(Oe$2.URL,e)||"":at$2(e,"URL")?Te$2(e):ho$1(Z$1(e))}function ih(e){let t=Au();if(t)return $f(t.sanitize(Oe$2.RESOURCE_URL,e)||"");if(at$2(e,"ResourceURL"))return $f(Te$2(e));throw new m$1(904,false)}var YD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function QD(e,t){return YD[e.toLowerCase()]?.[t.toLowerCase()]===true?ih:oh}function KD(e,t,n){return QD(t,n)(e)}function Au(){let e=v$1();return e&&e[Ve$4].sanitizer}function XD(e){return e instanceof Function?e():e}function JD(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 sh="ng-template";function eE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&JD(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Ru(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 Ru(e){return e.type===4&&e.value!==sh}function tE(e,t,n){let r=e.type===4&&!n?sh:e.value;return t===r}function nE(e,t,n){let r=4,o=e.attrs,i=o!==null?iE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!He$2(r)&&!He$2(c))return false;if(s&&He$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!tE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!eE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=rE(c,o,Ru(e),n);if(l===-1){if(He$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(He$2(r))return false;s=true;}}}}return He$2(r)||s}function He$2(e){return (e&1)===0}function rE(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 sE(t,e)}function ah(e,t,n=false){for(let r=0;r<t.length;r++)if(nE(e,t[r],n))return true;return false}function oE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function iE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Cp(n))return t}return e.length}function sE(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 aE(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 Yf(e,t){return e?":not("+t.trim()+")":t}function cE(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!==""&&!He$2(s)&&(t+=Yf(i,o),o=""),r=s,i=i||!He$2(r);n++;}return o!==""&&(t+=Yf(i,o)),t}function uE(e){return e.map(cE).join(",")}function lE(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(!He$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$3={},st$2=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$2||{}),dE;function Ou(e,t){return dE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Jc=new WeakMap;function ch(e){return e?e[Ut$2]??e:null}var no$1=new WeakSet;function fE(e,t,n){let r=Jc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ch(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),no$1.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 pE(e,t,n){let r=ch(n),o=Jc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Jc.set(e,[{el:t,declarationView:r}]);}var Yt$1=new Set,Ts$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ts$1||{}),ct$2=new w(""),Qf=new Set;function ut$2(e){Qf.has(e)||(Qf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var bs$2=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),ku=[0,1,2,3],Fu=(()=>{class e{ngZone=g$1(G$4);scheduler=g$1(je$3);errorHandler=g$1(Se$5,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$1(ct$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$5(O$3.AfterRenderHooksStart),this.executing=true;for(let r of ku)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&&F$5(O$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[vn$2]??=[]).push(n),In$3(r),r[S$1]|=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(Ts$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),so$1=class so{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[vn$2];t&&(this.view[vn$2]=t.filter(n=>n!==this));}};function hE(e,t){let n=t?.injector??g$1(pe$3);return ut$2("NgAfterNextRender"),mE(e,n,t,true)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(e,t,n,r){let o=t.get(bs$2);o.impl??=t.get(Fu);let i=t.get(ct$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ie$4):null,a=t.get(tr$1,null,{optional:true}),c=new so$1(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Pu=new w("",{factory:()=>{let e=g$1(fe$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function uh(e,t,n){let r=e.get(Pu);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 yE(e,t){let n=e.get(Pu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function vE(e,t){let n=e.get(Pu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function DE(e,t){for(let[n,r]of t)uh(e,r.animateFns);}function Kf(e,t,n,r){let o=e?.[nt$1]?.enter;t!==null&&o&&o.has(n.index)&&DE(r,o);}function Xf(e,t,n,r){try{n.get(Ur);}catch(s){return r(false)}let o=e?.[nt$1];o?.enter?.has(t.index)&&yE(n,o.enter.get(t.index).animateFns);let i=EE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ss$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Yt$1.add(e[tt$1]),uh(n,()=>IE(e,t,o||void 0,i,r),o||void 0);}function EE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function IE(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&&Ss$1(e,t,i),i.length>0){let s=n||e?.[nt$1];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),CE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Yt$1.delete(e[tt$1]),o(true);});}else e&&Yt$1.delete(e[tt$1]),o(false);}function Ss$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ne$4(o))for(let i=W$4;i<o.length;i++){let s=o[i];s[E].type===2&&wE(s,n);}}let r=t.child;for(;r;)Ss$1(e,r,n),r=r.next;}function wE(e,t){let n=e[nt$1];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E].firstChild;for(;r;)Ss$1(e,r,t),r=r.next;}function CE(e,t,n){t.then(()=>{e[nt$1]?.running===t&&(e[nt$1].running=void 0,Yt$1.delete(e[tt$1])),n(true);});}function rr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$4(o)?c=o:Ct$2(o)&&(u=true,o=o[Be$4]);let l=xe$3(o);e===0&&r!==null?(Kf(a,r,i,n),s==null?th(t,r,l):as$1(t,r,l,s||null,true)):e===1&&r!==null?(Kf(a,r,i,n),as$1(t,r,l,s||null,true),fE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&pE(i,l,a),no$1.delete(l),Xf(a,i,n,d=>{if(no$1.has(l)){no$1.delete(l);return}nh(t,l,u,d);})):e===3&&(no$1.delete(l),Xf(a,i,n,()=>{t.destroyNode(l);})),c!=null&&OE(t,e,n,c,i,r,s);}}function TE(e,t){lh(e,t),t[Be$4]=null,t[se$1]=null;}function bE(e,t,n,r,o,i){r[Be$4]=o,r[se$1]=t,Ms$1(e,r,n,1,o,i);}function lh(e,t){t[Ve$4].changeDetectionScheduler?.notify(9),Ms$1(e,t,t[L$3],2,null,null);}function SE(e){let t=e[Yn$3];if(!t)return Nc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Yn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$4]&&t!==e;)Ct$2(t)&&Nc(t[E],t),t=t[te$3];t===null&&(t=e),Ct$2(t)&&Nc(t[E],t),n=t&&t[Me$4];}t=n;}}function Lu(e,t){let n=e[Dn$3],r=n.indexOf(t);n.splice(r,1);}function _s$1(e,t){if(En$3(t))return;let n=t[L$3];n.destroyNode&&Ms$1(e,t,n,3,null,null),SE(t);}function Nc(e,t){if(En$3(t))return;let n=I$1(null);try{t[S$1]&=-129,t[S$1]|=256,t[ve$3]&&Lt$2(t[ve$3]),ME(e,t),_E(e,t),t[E].type===1&&t[L$3].destroy();let r=t[$t$1];if(r!==null&&Ne$4(t[te$3])){r!==t[te$3]&&Lu(r,t);let o=t[et];o!==null&&o.detachView(e);}Uc(t);}finally{I$1(n);}}function _E(e,t){let n=e.cleanup,r=t[Zn$3];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[Zn$3]=null);let o=t[vt$2];if(o!==null){t[vt$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$1];if(i!==null){t[Vt$1]=null;for(let s of i)s.destroy();}}function ME(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 Tn$3)){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];F$5(O$3.LifecycleHookStart,a,c);try{c.call(a);}finally{F$5(O$3.LifecycleHookEnd,a,c);}}else {F$5(O$3.LifecycleHookStart,o,i);try{i.call(o);}finally{F$5(O$3.LifecycleHookEnd,o,i);}}}}}function dh(e,t,n){return NE(e,t.parent,n)}function NE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Be$4];if(Tt$3(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===$e$3.None||o===$e$3.Emulated)return null}return Ae$4(r,n)}function fh(e,t,n){return AE(e,t,n)}function xE(e,t,n){return e.type&40?Ae$4(e,n):null}var AE=xE;function ju(e,t,n,r){let o=dh(e,r,t),i=t[L$3],s=r.parent||t[se$1],a=fh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Zf(i,o,n[c],a,false);else Zf(i,o,n,a,false);}function ro$1(e,t){if(t!==null){let n=t.type;if(n&3)return Ae$4(t,e);if(n&4)return eu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ro$1(e,r);{let o=e[t.index];return Ne$4(o)?eu(-1,o):xe$3(o)}}else {if(n&128)return ro$1(e,t.next);if(n&32)return Ou(t,e)()||xe$3(e[t.index]);{let r=ph(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$3(e[ae$2]);return ro$1(o,r)}else return ro$1(e,t.next)}}}return null}function ph(e,t){if(t!==null){let r=e[ae$2][se$1],o=t.projection;return r.projection[o]}return null}function eu(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return ro$1(r,o)}return t[zt$1]}function Bu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Je$2];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&sr$1(xe$3(c),r),n.flags|=2),!Is(n))if(u&8)Bu(e,t,n.child,r,o,i,false),rr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Ou(n,r),d;for(;d=l();)rr$1(t,e,a,o,d,n,i,r);rr$1(t,e,a,o,c,n,i,r);}else u&16?hh(e,t,r,n,o,i):rr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Ms$1(e,t,n,r,o,i){Bu(n,r,e.firstChild,t,o,i,false);}function RE(e,t,n){let r=t[L$3],o=dh(e,n,t),i=n.parent||t[se$1],s=fh(i,n,t);hh(r,0,t,n,o,s);}function hh(e,t,n,r,o,i){let s=n[ae$2],c=s[se$1].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];rr$1(t,e,n[Je$2],o,l,r,i,n);}else {let u=c,l=s[te$3];Fp(r)&&(u.flags|=128),Bu(e,t,u,l,o,i,true);}}function OE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&rr$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];Ms$1(l[E],l,e,t,i,a);}}function kE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:st$2.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$2.Important),e.setStyle(n,r,o,i));}}function Vu(e,t,n,r,o,i,s,a,c,u,l){let d=H$3+r,p=d+o,f=FE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function FE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$3);return n}function PE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Vu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Be$4]=o,d[S$1]=r|4|128|8|64|1024,(u!==null||e&&e[S$1]&2048)&&(d[S$1]|=2048),ac(d),d[te$3]=d[Ut$2]=e,d[Y$3]=n,d[Ve$4]=s||e&&e[Ve$4],d[L$3]=a||e&&e[L$3],d[Je$2]=c||e&&e[Je$2]||null,d[se$1]=i,d[tt$1]=gD(),d[mn$1]=l,d[tc]=u,d[ae$2]=t.type==2?e[ae$2]:d,d}function LE(e,t,n){let r=Ae$4(t,e),o=PE(n),i=e[Ve$4].rendererFactory,s=Uu(e,Hu(e,o,null,gh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function gh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function mh(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 Uu(e,t){return e[Yn$3]?e[ec][Me$4]=t:e[Yn$3]=t,e[ec]=t,t}function jE(e=1){yh(j$4(),v$1(),Ee$4()+e);}function yh(e,t,n,r){if((t[S$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ki$2(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Xi$2(t,i,0,n);}Wt$1(n);}var Ns$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ns$1||{});function bn$3(e,t,n,r){let o=I$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ns$1.SignalBased)!==0&&(c=t[i][q$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):vp(t,c,i,r);}finally{I$1(o);}}function vh(e,t,n,r,o){let i=Ee$4(),s=r&2;try{Wt$1(-1),s&&t.length>H$3&&yh(e,t,H$3,!1);let a=s?O$3.TemplateUpdateStart:O$3.TemplateCreateStart;F$5(a,o,n),n(r,o);}finally{Wt$1(i);let a=s?O$3.TemplateUpdateEnd:O$3.TemplateCreateEnd;F$5(a,o,n);}}function xs(e,t,n){zE(e,t,n),(n.flags&64)===64&&GE(e,t,n);}function mo$1(e,t,n=Ae$4){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 BE(e,t,n,r){let i=r.get($p,Up)||n===$e$3.ShadowDom||n===$e$3.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function UE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dh(e,t,n,r,o,i){let s=t[E];if(Wu(e,s,t,n,r)){Tt$3(e)&&$E(t,e.index);return}e.type&3&&(n=UE(n)),Eh(e,t,n,r,o,i);}function Eh(e,t,n,r,o,i){if(e.type&3){let s=Ae$4(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function $E(e,t){let n=Re$4(t,e);n[S$1]&16||(n[S$1]|=64);}function zE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&LE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||is$1(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=io$1(t,e,s,n);if(sr$1(c,t),i!==null&&YE(t,s-r,c,a,n,i),rt$1(a)){let u=Re$4(n.index,t);u[Y$3]=io$1(t,e,s,n);}}}function GE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=vf();try{Wt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Li$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&WE(c,u);}}finally{Wt$1(-1),Li$2(s);}}function WE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function $u(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ah(t,i.selectors,false)&&(r??=[],rt$1(i)?r.unshift(i):r.push(i));}return r}function qE(e,t,n,r,o,i){let s=Ae$4(e,t);ZE(t[L$3],s,i,e.value,n,r,o);}function ZE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Z$1(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function YE(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];bn$3(r,n,c,u);}}function zu(e,t,n,r,o){let i=H$3+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,Xn$3(e,true);let c=e.type===2;return c?(rh(t[L$3],a,e),(uf()===0||Qn$3(e))&&sr$1(a,t),lf()):sr$1(a,t),Hi$2()&&(!c||!Is(e))&&ju(s,t,a,e),e}function Gu(e){let t=e;return mc()?yc():(t=t.parent,Xn$3(t,false)),t}function QE(e,t){let n=e[Je$2];if(!n)return;let r;try{r=n.get(ot$1,null);}catch(o){r=null;}r?.(t);}function Wu(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];bn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];bn$3(l,u,r,o),a=true;}return a}function KE(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];bn$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(bn$3(r,n[s],o,i),u=true),u}function XE(e,t){let n=Re$4(t,e),r=n[E];JE(r,n);let o=n[Be$4];o!==null&&n[mn$1]===null&&(n[mn$1]=Gp(o,n[Je$2])),F$5(O$3.ComponentStart);try{qu(r,n,n[Y$3]);}finally{F$5(O$3.ComponentEnd,n[Y$3]);}}function JE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function qu(e,t,n){Bi$2(t);try{let r=e.viewQuery;r!==null&&zc(1,r,n);let o=e.template;o!==null&&vh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[et]?.finishViewCreation(e),e.staticContentQueries&&Wp(e,t),e.staticViewQueries&&zc(2,e.viewQuery,n);let i=e.components;i!==null&&eI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$1]&=-5,Vi$2();}}function eI(e,t){for(let n=0;n<t.length;n++)XE(e,t[n]);}function yo$1(e,t,n,r){let o=I$1(null);try{let i=t.tView,a=e[S$1]&4096?4096:16,c=Hu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[$t$1]=u;let l=e[et];return l!==null&&(c[et]=l.createEmbeddedView(i)),qu(i,c,n),c}finally{I$1(o);}}function ar$1(e,t){return !t||t.firstChild===null||Fp(e)}function ao$1(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(xe$3(i)),Ne$4(i)&&Ih(i,r);let s=n.type;if(s&8)ao$1(e,t,n.child,r);else if(s&32){let a=Ou(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=ph(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$3(t[ae$2]);ao$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ih(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&ao$1(r[E],r,o,t);}e[zt$1]!==e[Be$4]&&t.push(e[zt$1]);}function wh(e){if(e[vn$2]!==null){for(let t of e[vn$2])t.impl.addSequence(t);e[vn$2].length=0;}}var Ch=[];function tI(e){return e[ve$3]??nI(e)}function nI(e){let t=Ch.pop()??Object.create(oI);return t.lView=e,t}function rI(e){e.lView[ve$3]!==e&&(e.lView=null,Ch.push(e));}var oI=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{In$3(e.lView);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function iI(e){let t=e[ve$3]??Object.create(sI);return t.lView=e,t}var sI=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$3(e.lView);for(;t&&!Th(t[E]);)t=Dt$3(t);t&&cc(t);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function Th(e){return e.type!==2}function bh(e){if(e[Vt$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$1]&8192);}}var aI=100;function Sh(e,t=0){let r=e[Ve$4].rendererFactory;r.begin?.();try{cI(e,t);}finally{r.end?.();}}function cI(e,t){let n=vc();try{Fr(!0),tu(e,t);let r=0;for(;Gr(e);){if(r===aI)throw new m$1(103,!1);r++,tu(e,1);}}finally{Fr(n);}}function uI(e,t,n,r){if(En$3(t))return;let o=t[S$1],i=false,s=false;Bi$2(t);let a=true,c=null,u=null;(Th(e)?(u=tI(t),c=mt$3(u)):fi$3()===null?(a=false,u=iI(t),c=mt$3(u)):t[ve$3]&&(Lt$2(t[ve$3]),t[ve$3]=null));try{ac(t),gf(e.bindingStartIndex),n!==null&&vh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ki$2(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Xi$2(t,f,0,null),_c(t,0);}if(s||lI(t),bh(t),_h(t,0),e.contentQueries!==null&&Wp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ki$2(t,f);}else {let f=e.contentHooks;f!==null&&Xi$2(t,f,1),_c(t,1);}fI(e,t);let d=e.components;d!==null&&Nh(t,d,0);let p=e.viewQuery;if(p!==null&&zc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ki$2(t,f);}else {let f=e.viewHooks;f!==null&&Xi$2(t,f,2),_c(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xi$3]){for(let f of t[xi$3])f();t[xi$3]=null;}i||(wh(t),t[S$1]&=-73);}catch(l){throw In$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&rI(u)),Vi$2();}}function _h(e,t){for(let n=Lp(e);n!==null;n=jp(n))for(let r=W$4;r<n.length;r++){let o=n[r];Mh(o,t);}}function lI(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[S$1]&2))continue;let n=t[Dn$3];for(let r=0;r<n.length;r++){let o=n[r];cc(o);}}}function dI(e,t,n){F$5(O$3.ComponentStart);let r=Re$4(t,e);try{Mh(r,n);}finally{F$5(O$3.ComponentEnd,r[Y$3]);}}function Mh(e,t){Oi$2(e)&&tu(e,t);}function tu(e,t){let r=e[E],o=e[S$1],i=e[ve$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Vn$3(i)),s||=false,i&&(i.dirty=false),e[S$1]&=-9217,s)uI(r,e,r.template,e[Y$3]);else if(o&8192){let a=I$1(null);try{bh(e),_h(e,1);let c=r.components;c!==null&&Nh(e,c,1),wh(e);}finally{I$1(a);}}}function Nh(e,t,n){for(let r=0;r<t.length;r++)dI(e,t[r],n);}function fI(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)Wt$1(~o);else {let i=o,s=n[++r],a=n[++r];yf(s,i);let c=t[i];F$5(O$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$5(O$3.HostBindingsUpdateEnd,c);}}}}finally{Wt$1(-1);}}function Zu(e,t){let n=vc()?64:1088;for(e[Ve$4].changeDetectionScheduler?.notify(t);e;){e[S$1]|=n;let r=Dt$3(e);if(Kn$2(e)&&!r)return e;e=r;}return null}function xh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ah(e,t){let n=W$4+t;if(n<e.length)return e[n]}function vo$1(e,t,n,r=true){let o=t[E];if(pI(o,t,e,n),r){let s=eu(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&bE(o,e[se$1],a,t,c,s);}let i=t[mn$1];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Rh(e,t){let n=co$1(e,t);return n!==void 0&&_s$1(n[E],n),n}function co$1(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n];if(r){let o=r[$t$1];o!==null&&o!==e&&Lu(o,r),t>0&&(e[n-1][Me$4]=r[Me$4]);let i=Hr(e,W$4+t);TE(r[E],r);let s=i[et];s!==null&&s.detachView(i[E]),r[te$3]=null,r[Me$4]=null,r[S$1]&=-129;}return r}function pI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$4]=t),r<i-W$4?(t[Me$4]=n[o],Ya(n,W$4+r,t)):(n.push(t),t[Me$4]=null),t[te$3]=n;let s=t[$t$1];s!==null&&n!==s&&Oh(s,t);let a=t[et];a!==null&&a.insertView(e),ki$3(t),t[S$1]|=128;}function Oh(e,t){let n=e[Dn$3],r=t[te$3];if(Ct$2(r))e[S$1]|=2;else {let o=r[te$3][ae$2];t[ae$2]!==o&&(e[S$1]|=2);}n===null?e[Dn$3]=[t]:n.push(t);}var Qt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return ao$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Y$3]}set context(t){this._lView[Y$3]=t;}get destroyed(){return En$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te$3];if(Ne$4(t)){let n=t[zr],r=n?n.indexOf(this):-1;r>-1&&(co$1(t,r),Hr(n,r));}this._attachedToViewContainer=false;}_s$1(this._lView[E],this._lView);}onDestroy(t){Fi$2(this._lView,t);}markForCheck(){Zu(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$1]&=-129;}reattach(){ki$3(this._lView),this._lView[S$1]|=128;}detectChanges(){this._lView[S$1]|=1024,Sh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Kn$2(this._lView),n=this._lView[$t$1];n!==null&&!t&&Lu(n,this._lView),lh(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$1(902,false);this._appRef=t;let n=Kn$2(this._lView),r=this._lView[$t$1];r!==null&&!n&&Oh(r,this._lView),ki$3(this._lView);}};var cr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=hI;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=yo$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt(i)}}return e})();function hI(){return As$1(X$1(),v$1())}function As$1(e,t){return e.type&4?new cr$1(t,e,dr$1(e,t)):null}function fr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=gI(e,t,n,r,o),mf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=pf();i.injectorIndex=s===null?-1:s.injectorIndex;}return Xn$3(i,true),i}function gI(e,t,n,r,o){let i=gc(),s=mc(),a=s?i:i&&i.parent,c=e.data[t]=yI(e,a,n,t,r,o);return mI(e,c,i,s),c}function mI(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 yI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return fc()&&(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:Ic(),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 vI(e){let t=e[nc]??[],r=e[te$3][L$3],o=[];for(let i of t)i.data[Hp]!==void 0?o.push(i):DI(i,r);e[nc]=o;}function DI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Vp];for(;n<o;){let i=r.nextSibling;nh(t,r,false),r=i,n++;}}}var EI=()=>null,II=()=>null;function cs$1(e,t){return EI()}function kh(e,t,n){return II()}var Fh=class{},Sn$3=class Sn{},Yu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>wI()}return e})();function wI(){let e=v$1(),t=X$1(),n=Re$4(t.index,e);return (Ct$2(n)?n:e)[L$3]}var Ph=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>null})}return e})();function Lh(e){return e.debugInfo?.className||e.type.name||null}var es$1={},us$1=class us{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,es$1,r);return o!==es$1||n===es$1?o:this.parentInjector.get(t,n,r)}};function Qu(e,t,n){return e[t]=n}function CI(e,t){return e[t]}function we$2(e,t,n){if(n===Q$3)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function uo$1(e,t,n,r){let o=we$2(e,t,n);return we$2(e,t+1,r)||o}function Ku(e,t,n,r,o,i){let s=uo$1(e,t,n,r);return uo$1(e,t+2,o,i)||s}function Cn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&vD(o,i);let s=Tt$3(e)?Re$4(e.index,t):t;Zu(s,5);let a=t[Y$3],c=ep(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=ep(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function ep(e,t,n,r){let o=I$1(null);try{return F$5(O$3.OutputStart,t,n),n(r)!==!1}catch(i){return QE(e,i),false}finally{F$5(O$3.OutputEnd,t,n),I$1(o);}}function Xu(e,t,n,r,o,i,s,a){let c=Qn$3(e),u=false,l=null;if(!r&&c&&(l=bI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Ae$4(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!TI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;jh(h,t,n,i,a,f,false);}}return u}function TI(e){return e.startsWith("animation")||e.startsWith("transition")}function bI(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[Zn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function jh(e,t,n,r,o,i,s){let a=t.firstCreatePass?lc(t):null,c=uc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function tp(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,ls$1(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ls$1(e,t,i,r,r,o)),c}function ls$1(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);jh(e.index,a,t,o,i,d,true);}function SI(){_I();}function _I(){let e=v$1(),t=j$4(),n=X$1();if(t.firstCreatePass&&xI(t,n),n.controlDirectiveIndex===-1)return;ut$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ds$1(e,t,n));}function MI(){NI();}function NI(){let e=v$1(),t=j$4(),n=er$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ds$1(e,t,n));}var ds$1=class ds{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 Ae$4(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,t,Cn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,n,Cn$3(this.tNode,this.lView,t));}listenToDom(t,n){Xu(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,Cn$3(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];bn$3(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];bn$3(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";KE(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=np(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=np(i.directive);s!==null&&r.push(...s);}}}return n}};function np(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function xI(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}AI(e,t);}function AI(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(rp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(rp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function rp(e,t){return RI(e,t)&&OI(e,t+"Change")}function RI(e,t){return t in e.inputs}function OI(e,t){return t in e.outputs}var nu=Symbol("BINDING");var An$3=new w("");function fs$1(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=wi$2(o,a);else if(i==2){let c=a,u=t[++s];r=wi$2(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ze$3(e,t=0){let n=v$1();if(n===null)return b$1(e,t);let r=X$1();return xp(r,n,re$2(e),t)}function kI(){let e="invalid";throw new Error(e)}function Bh(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}LI(e,t,n,a,i,c,u);}i!==null&&r!==null&&FI(n,r,i);}function FI(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 m$1(-301,false);r.push(t[o],i);}}function PI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function LI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&rt$1(f)&&(c=f,PI(e,n,p)),Vc(is$1(n,t),e,f.type);}$I(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=mh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ir$1(n.mergedAttrs,f.hostAttrs),BI(e,n,t,d,f),UI(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}jI(e,n,i);}function jI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))op(0,t,o,r),op(1,t,o,r),sp(t,r,false);else {let i=n.get(o);ip(0,t,i,r),ip(1,t,i,r),sp(t,r,true);}}}function op(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),Vh(t,i);}}function ip(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),Vh(t,s);}}function Vh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function sp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ru(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 BI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new Tn$3(i,rt$1(o),ze$3,null);e.blueprint[r]=s,n[r]=s,VI(e,t,r,mh(e,n,o.hostVars,Q$3),o);}function VI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HI(s)!=a&&s.push(a),s.push(n,r,i);}}function HI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function UI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;rt$1(t)&&(n[""]=e);}}function $I(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Ju(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=De$2(u,s),d=fr$1(c,e,n,r,l);return Bh(c,t,d,De$2(u,a),o),d.mergedAttrs=ir$1(d.mergedAttrs,d.attrs),d.attrs!==null&&fs$1(d,d.attrs,false),d.mergedAttrs!==null&&fs$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function el(e,t){Ip(e,t),rc(t)&&e.queries.elementEnd(t);}function zI(e,t,n,r,o,i){let s=t.consts,a=De$2(s,o),c=fr$1(t,e,n,r,a);if(c.mergedAttrs=ir$1(c.mergedAttrs,c.attrs),i!=null){let u=De$2(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&fs$1(c,c.attrs,false),c.mergedAttrs!==null&&fs$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Hh=typeof ShadowRoot<"u",GI=typeof Document<"u";function WI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ns$1.SignalBased)!==0};return o&&(i.transform=o),i})}function qI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ZI(e,t,n){let r=t instanceof fe$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new us$1(n,r):n}function YI(e){let t=e.get(Sn$3,null);if(t===null)throw new m$1(407,false);let n=e.get(Ph,null),r=e.get(je$3,null),o=e.get(ct$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function QI(e,t){let n=Uh(e);return eh(t,n,n==="svg"?oc:n==="math"?nf:null)}function KI(e){if(e?.toLowerCase()==="script")throw new m$1(905,false)}function Uh(e){return (e.selectors[0][0]||"div").toLowerCase()}var _n$2=class _n{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=WI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=qI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$5(O$3.DynamicComponentStart);let a=I$1(null);try{let c=this.componentDef,u=ZI(c,o||this.ngModule,t),l=YI(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Lh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=XI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?BE(u,o,a.encapsulation,n):QI(a,u);KI(l?.tagName);let d=n.get(An$3,null),p=JI(l,()=>n.get(U$5,null)??Tu());d&&d.addHost(p);let f=s?.some(ap)||i?.some(D=>typeof D!="function"&&D.bindings.some(ap)),h=Hu(null,c,null,512|gh(a),null,null,t,u,n,null,Gp(l,n,true));d&&Hh&&p instanceof ShadowRoot&&Fi$2(h,()=>{d.removeHost(p);}),h[H$3]=l,Bi$2(h);let y=null;try{let D=Ju(H$3,h,2,"#host",()=>c.directiveRegistry,!0,0);rh(u,l,D),sr$1(l,h),xs(c,h,D),bu(c,D,h),el(c,D),r!==void 0&&tw(D,this.ngContentSelectors,r),y=Re$4(D.index,h),h[Y$3]=y[Y$3],qu(c,h,null);}catch(D){throw y!==null&&Uc(y),Uc(h),D}finally{F$5(O$3.DynamicComponentEnd),Vi$2();}return new ps$1(this.componentType,h,!!f)}};function XI(e,t,n,r){let o=e?["ng-version","22.0.8"]:lE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[nu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[nu].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Wa(d);c.push(p);}return Vu(0,null,ew(i,s),1,a,c,null,null,null,[o],null)}function JI(e,t){let n=e.getRootNode?.();return GI&&n instanceof Document?n.head:n&&Hh&&n instanceof ShadowRoot?n:t().head}function ew(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 ap(e){let t=e[nu].kind;return t==="input"||t==="twoWay"}var ps$1=class ps extends Fh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ai$2(n[E],H$3),this.location=dr$1(this._tNode,n),this.instance=Re$4(this._tNode.index,n)[Y$3],this.hostView=this.changeDetectorRef=new Qt(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;Wu(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Re$4(r.index,o);Zu(s,1);}get injector(){return new Zt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function tw(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 pr$1=(()=>{class e{static __NG_ELEMENT_ID__=nw}return e})();function nw(){let e=X$1();return $h(e,v$1())}var ru=class e extends pr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return dr$1(this._hostTNode,this._hostLView)}get injector(){return new Zt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Eu(this._hostTNode,this._hostLView);if(Tp(t)){let n=rs$1(t,this._hostLView),r=ns$1(t),o=n[E].data[r+8];return new Zt(o,n)}else return new Zt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=cp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=cs$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ar$1(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 _n$2(Et$3(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$4,null);_&&(i=_);}let p=Et$3(l.componentType??{}),f=cs$1(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,ar$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(of(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[te$3],u=new e(c,c[se$1],c[te$3]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),Ya(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=cp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);r&&(Hr(xc(this._lContainer),n),_s$1(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);return r&&Hr(xc(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function cp(e){return e[zr]}function xc(e){return e[zr]||(e[zr]=[])}function $h(e,t){let n,r=t[e.index];return Ne$4(r)?n=r:(n=xh(r,t,null,e),t[e.index]=n,Uu(t,n)),ow(n,t,e,r),new ru(n,e,t)}function rw(e,t){let n=e[L$3],r=n.createComment(""),o=Ae$4(t,e),i=n.parentNode(o);return as$1(n,i,r,n.nextSibling(o),false),r}var ow=aw;function aw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=rw(t,n),e[zt$1]=o;}var ou=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},iu=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++)nl(t,n).matches!==null&&this.queries[n].setDirty();}},hs$1=class hs{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=fw(t):this.predicate=t;}},su=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);}},au=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,cw(n,i)),this.matchTNodeWithReadOption(t,n,Ji$2(n,t,i,false,false));}else r===cr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ji$2(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===xn$3||o===pr$1||o===cr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Ji$2(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 cw(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 uw(e,t){return e.type&11?dr$1(e,t):e.type&4?As$1(e,t):null}function lw(e,t,n,r){return n===-1?uw(t,e):n===-2?dw(e,t,r):io$1(e,e[E],n,t)}function dw(e,t,n){if(n===xn$3)return dr$1(t,e);if(n===cr$1)return As$1(t,e);if(n===pr$1)return $h(t,e)}function zh(e,t,n,r){let o=t[et].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(lw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function cu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=zh(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=W$4;d<l.length;d++){let p=l[d];p[$t$1]===p[te$3]&&cu(p[E],p,u,r);}if(l[Dn$3]!==null){let d=l[Dn$3];for(let p=0;p<d.length;p++){let f=d[p];cu(f[E],f,u,r);}}}}}return r}function tl(e,t){return e[et].queries[t].queryList}function Gh(e,t,n){let r=new ss$1((n&4)===4);return cf(e,t,r,r.destroy),(t[et]??=new iu).queries.push(new ou(r))-1}function Wh(e,t,n){let r=j$4();return r.firstCreatePass&&(Zh(r,new hs$1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Gh(r,v$1(),t)}function qh(e,t,n,r){let o=j$4();if(o.firstCreatePass){let i=X$1();Zh(o,new hs$1(t,n,r),i.index),pw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Gh(o,v$1(),n)}function fw(e){return e.split(",").map(t=>t.trim())}function Zh(e,t,n){e.queries===null&&(e.queries=new su),e.queries.track(new au(t,n));}function pw(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 nl(e,t){return e.queries.getByIndex(t)}function Yh(e,t){let n=e[E],r=nl(n,t);return r.crossesNgTemplate?cu(n,e,t,[]):zh(n,e,r,t)}function rl(e,t,n){let r,o=Ar$1(()=>{r._dirtyCounter();let i=hw(r,e);if(t&&i===void 0)throw new m$1(-951,false);return i});return r=o[q$1],r._dirtyCounter=Ui$2(0),r._flatValue=void 0,o}function ol(e){return rl(true,false)}function il(e){return rl(true,true)}function Qh(e){return rl(false,false)}function Kh(e,t){let n=e[q$1];n._lView=v$1(),n._queryIndex=t,n._queryList=tl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function hw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$1]&4)return t?void 0:ie$1;let o=tl(n,r),i=Yh(n,r);return o.reset(i,kp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Rs$1(e){return !!e&&typeof e.then=="function"}function sl(e){return !!e&&typeof e.subscribe=="function"}var Mn$3=class Mn{},Xh=class{};var gs$1=class gs extends Mn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Vd(t);this._bootstrapComponents=XD(i.bootstrap),this._r3Injector=wc(t,n,[{provide:Mn$3,useValue:this},...r],jr(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);}},ms$1=class ms extends Xh{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new gs$1(this.moduleType,t,[])}};var lo$1=class lo extends Mn$3{injector;instance=null;constructor(t){super();let n=new hn$1([...t.providers,{provide:Mn$3,useValue:this}],t.parent||Wn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Jh(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var gw=(()=>{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=Ka(false,n.type),o=r.length>0?Jh([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=x$1({token:e,providedIn:"environment",factory:()=>new e(b$1(fe$4))})}return e})();function mw(e){return po$1(()=>{let t=eg(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!==wu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(gw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$3.Emulated,styles:e.styles||ie$1,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),tg(n);let r=e.dependencies;return n.directiveDefs=up(r,yw),n.pipeDefs=up(r,Hd),n.id=Ew(n),n})}function yw(e){return Et$3(e)||Wa(e)}function Os$1(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$1,declarations:e.declarations||ie$1,imports:e.imports||ie$1,exports:e.exports||ie$1,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vw(e,t){if(e==null)return Ht$1;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=Ns$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Dw(e){if(e==null)return Ht$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function al(e){return po$1(()=>{let t=eg(e);return tg(t),t})}function hr$1(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 eg(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||Ht$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ie$1,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:vw(e.inputs,t),outputs:Dw(e.outputs),debugInfo:null}}function tg(e){e.features?.forEach(t=>t(e));}function up(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 Ew(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 cl=new w("");function Iw(e){return wt$2([{provide:cl,multi:true,useValue:e}])}var ul=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g$1(cl,{optional:true})??[];injector=g$1(pe$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=qn$3(this.injector,o);if(Rs$1(i))n.push(i);else if(sl(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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function ww(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Cw(e){return Object.getPrototypeOf(e.prototype).constructor}function ng(e){let t=Cw(e.type),n=true,r=[e];for(;t;){let o;if(rt$1(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$1(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Ac(e.inputs),s.declaredInputs=Ac(e.declaredInputs),s.outputs=Ac(e.outputs);let a=o.hostBindings;a&&Mw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Sw(e,c),u&&_w(e,u),Tw(e,o),Bd(e.outputs,o.outputs),rt$1(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===ng&&(n=false);}}t=Object.getPrototypeOf(t);}bw(r);}function Tw(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 bw(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=ir$1(o.hostAttrs,n=ir$1(n,o.hostAttrs));}}function Ac(e){return e===Ht$1?{}:e===ie$1?[]:e}function Sw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function _w(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Mw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function rg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ir$1(e.mergedAttrs,e.attrs);let l=e.tView=Vu(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),Xn$3(e,false);let c=xw(n,t);Hi$2()&&ju(n,t,c,e),sr$1(c,t);let u=xh(c,t,c,e);t[r+H$3]=u,Uu(t,u);}function Nw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$3,p;return t.firstCreatePass?(p=fr$1(t,d,4,s||null,a||null),Bh(t,e,p,De$2(t.consts,u),$u),Ip(t,p)):p=t.data[d],rg(p,e,t,n,r,o,i,c),Qn$3(p)&&xs(t,e,p),u!=null&&mo$1(e,p,l),p}function ur$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$3,p;if(t.firstCreatePass){if(p=fr$1(t,d,4,s||null,a||null),u!=null){let f=De$2(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return rg(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function og(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$2(u.consts,i);return Nw(c,u,e,t,n,r,o,l,void 0,s,a),og}function ig(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$2(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,void 0,s,a),ig}var xw=Aw;function Aw(e,t,n,r){return Zr(true),t[L$3].createComment("")}var sg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ll=new w("");var dl=new w("");function ag(){wa(()=>{let e="";throw new m$1(600,e)});}var Rw=10;var gr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$1(ot$1);afterRenderManager=g$1(bs$2);zonelessEnabled=g$1(nr$1);rootEffectScheduler=g$1(Gi$2);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$1(qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ne$2(n=>!n))}constructor(){g$1(ct$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$1(fe$4);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$3.NULL){return this._injector.get(G$4).run(()=>{if(F$5(O$3.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$1(405,_)}let a=Et$3(n),c=this._injector.get(Mn$3),u=new _n$2(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Ow(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(ll,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),oo$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),F$5(O$3.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$5(O$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ts$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$5(O$3.ChangeDetectionEnd),new m$1(101,false);let n=I$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I$1(n),this.afterTick.next(),F$5(O$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Sn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Rw;){F$5(O$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$5(O$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&&!Gr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Sh(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})=>Gr(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;oo$1(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(dl,[]).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),()=>oo$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$1(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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Ow(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function oo$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function cg(e,t,n,r){let o=v$1(),i=Gt();if(we$2(o,i,t)){j$4();let a=er$1();qE(a,o,e,t,n,r);}return cg}function kw(){return v$1()[ae$2][Y$3]}var uu=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 Rc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Fw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I$1(r);let u=t.length-1;for(I$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Rc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Rc(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),_=n(a,f),$=n(s,d);if(Object.is($,_)){let be=n(u,h);Object.is(be,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new ys$1,i??=dp(e,s,a,n),lu(e,o,s,$))e.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,e.detach(s)),a--;else {let be=e.create(s,t[s]);e.attach(s,be),s++,a++;}}for(;s<=u;)lp(e,o,n,s,t[s]),s++;}else if(t!=null){I$1(r);let u=t[Symbol.iterator]();I$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Rc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new ys$1,i??=dp(e,s,a,n);let h=n(s,p);if(lu(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)lp(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 lu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function lp(e,t,n,r,o){if(lu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function dp(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 ys$1=class ys{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 Pw(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$2(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,256,s,a),fl}function fl(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$2(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,512,s,a),fl}function Lw(e,t){ut$2("NgControlFlow");let n=v$1(),r=Gt(),o=n[r]!==Q$3?n[r]:-1,i=o!==-1?vs$1(n,H$3+o):void 0,s=0;if(we$2(n,r,e)){let a=I$1(null);try{if(i!==void 0&&Rh(i,s),e!==-1){let c=H$3+e,u=vs$1(n,c),l=hu(n[E],c),d=kh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,ar$1(l,d));}}finally{I$1(a);}}else if(i!==void 0){let a=Ah(i,s);a!==void 0&&(a[Y$3]=t);}}var du=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-W$4}};function jw(e){return e}function Bw(e,t){return t}var fu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Vw(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$2("NgControlFlow");let f=v$1(),h=j$4(),y=c!==void 0,D=v$1(),_=a?s.bind(D[ae$2][Y$3]):s,$=new fu(y,_);D[H$3+e]=$,ur$1(f,h,e+1,t,n,r,o,De$2(h.consts,i),256),y&&ur$1(f,h,e+2,c,u,l,d,De$2(h.consts,p),512);}var pu=class extends uu{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-W$4}at(t){return this.getLView(t)[Y$3].$implicit}attach(t,n){let r=n[mn$1];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,ar$1(this.templateTNode,r)),Uw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,$w(this.lContainer,t),zw(this.lContainer,t)}create(t,n){let r=cs$1(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new du(this.lContainer,n,t),{dehydratedView:r})}destroy(t){_s$1(t[E],t);}updateValue(t,n){this.getLView(t)[Y$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$3].$index=t;}getLView(t){return Gw(this.lContainer,t)}};function Hw(e){let t=I$1(null),n=Ee$4();try{let r=v$1(),o=r[E],i=r[n],s=n+1,a=vs$1(r,s);if(i.liveCollection===void 0){let u=hu(o,s);i.liveCollection=new pu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Fw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Gt(),l=c.length===0;if(we$2(r,u,l)){let d=n+2,p=vs$1(r,d);if(l){let f=hu(o,d),h=kh(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,ar$1(f,h));}else o.firstUpdatePass&&vI(p),Rh(p,0);}}}finally{I$1(t);}}function vs$1(e,t){return e[t]}function Uw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Je$2];vE(i,o),Yt$1.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}function $w(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function zw(e,t){return co$1(e,t)}function Gw(e,t){return Ah(e,t)}function hu(e,t){return Ai$2(e,t)}function ug(e,t,n){let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Dh(s,r,e,t,r[L$3],n);}return ug}function gu(e,t,n,r,o){Wu(t,e,n,o?"class":"style",r);}function Ds$1(e,t,n,r){let o=v$1(),i=o[E],s=e+H$3,a=i.firstCreatePass?Ju(s,o,2,t,$u,Pi$2(),n,r):i.data[s];if(Tt$3(a)){let c=o[Ve$4].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Lh(u),()=>(fp(e,t,o,a,r),Ds$1))}}return fp(e,t,o,a,r),Ds$1}function fp(e,t,n,r,o){if(zu(r,n,e,t,fg),Qn$3(r)){let i=n[E];xs(i,n,r),bu(i,r,n);}o!=null&&mo$1(n,r);}function pl(){let e=j$4(),t=X$1(),n=Gu(t);return e.firstCreatePass&&el(e,n),pc(n)&&hc(),dc(),n.classesWithoutHost!=null&&Jv(n)&&gu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&eD(n)&&gu(e,n,v$1(),n.stylesWithoutHost,false),pl}function lg(e,t,n,r){return Ds$1(e,t,n,r),pl(),lg}function hl(e,t,n,r){let o=v$1(),i=o[E],s=e+H$3,a=i.firstCreatePass?zI(s,i,2,t,n,r):i.data[s];return zu(a,o,e,t,fg),r!=null&&mo$1(o,a),hl}function gl(){let e=X$1(),t=Gu(e);return pc(t)&&hc(),dc(),gl}function dg(e,t,n,r){return hl(e,t,n,r),gl(),dg}var fg=(e,t,n,r,o)=>(Zr(true),eh(t[L$3],r,Ic()));function ml(e,t,n){let r=v$1(),o=r[E],i=e+H$3,s=o.firstCreatePass?Ju(i,r,8,"ng-container",$u,Pi$2(),t,n):o.data[i];if(zu(s,r,e,"ng-container",Ww),Qn$3(s)){let a=r[E];xs(a,r,s),bu(a,s,r);}return n!=null&&mo$1(r,s),ml}function yl(){let e=j$4(),t=X$1(),n=Gu(t);return e.firstCreatePass&&el(e,n),yl}function pg(e,t,n){return ml(e,t,n),yl(),pg}var Ww=(e,t,n,r,o)=>(Zr(true),GD(t[L$3],""));function qw(){return v$1()}function hg(e,t,n){let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Eh(s,r,e,t,r[L$3],n);}return hg}var to$1=void 0;function Zw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Yw=["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"]],to$1,[["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"]],to$1,[["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}",to$1,to$1,to$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Zw],Oc=Object.create(null);function he$3(e){let t=Qw(e),n=pp(t);if(n)return n;let r=t.split("-")[0];if(n=pp(r),n)return n;if(r==="en")return Yw;throw new m$1(701,false)}function pp(e){if(!(e in Oc)){let t=_e$2.ng&&_e$2.ng.common&&_e$2.ng.common.locales&&_e$2.ng.common.locales[e];return t!==void 0&&(Oc[e]=t),t}return Oc[e]}var K$3={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 Qw(e){return e.toLowerCase().replace(/_/g,"-")}var Do$2="en-US";function gg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function mg(e,t,n){let r=v$1(),o=j$4(),i=X$1();return vg(o,r,r[L$3],i,e,t,n),mg}function yg(e,t,n){let r=v$1(),o=j$4(),i=X$1();return (i.type&3||n)&&Xu(i,o,r,n,r[L$3],e,t,Cn$3(i,r,t)),yg}function vg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Cn$3(r,t,i),Xu(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=Cn$3(r,t,i),ls$1(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Cn$3(r,t,i),ls$1(r,t,d,o,o,c);}}function Xw(e=1){return Cf(e)}function Jw(e,t){let n=null,r=oE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ah(e,i,true):aE(r,i))return o}return n}function eC(e){let t=v$1()[ae$2][se$1];if(!t.projection){let n=e?e.length:1,r=t.projection=qd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?Jw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function tC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=fr$1(a,H$3+e,16,null,null);u.projection===null&&(u.projection=t),yc();let d=!s[mn$1]||fc();s[ae$2][se$1].projection[u.projection]===null&&c!==null?nC(s,a,c):d&&!Is(u)&&RE(a,s,u);}function nC(e,t,n){let r=H$3+n,o=t.data[r],i=e[r],s=cs$1(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,ar$1(o,s));}function Dg(e,t,n,r){return qh(e,t,n,r),Dg}function Eg(e,t,n){return Wh(e,t,n),Eg}function rC(e){let t=v$1(),n=j$4(),r=ji$2();qr(r+1);let o=nl(n,r);if(e.dirty&&rf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Yh(t,r);e.reset(i,kp),e.notifyOnChanges();}return true}return false}function oC(){return tl(v$1(),ji$2())}function Ig(e,t,n,r,o){return Kh(t,qh(e,n,r,o)),Ig}function wg(e,t,n,r){return Kh(e,Wh(t,n,r)),wg}function iC(e=1){qr(ji$2()+e);}function sC(e){let t=hf();return Ri$3(t,H$3+e)}function Qi$2(e,t){return e<<17|t<<2}function Nn$3(e){return e>>17&32767}function aC(e){return (e&2)==2}function cC(e,t){return e&131071|t<<17}function mu(e){return e|2}function lr$1(e){return (e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function uC(e){return (e&1)===1}function yu(e){return e|1}function lC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nn$3(s),c=lr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Gn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Nn$3(e[a+1]);e[r+1]=Qi$2(p,a),p!==0&&(e[p+1]=kc(e[p+1],r)),e[a+1]=cC(e[a+1],r);}else e[r+1]=Qi$2(a,0),a!==0&&(e[a+1]=kc(e[a+1],r)),a=r;else e[r+1]=Qi$2(c,0),a===0?a=r:e[c+1]=kc(e[c+1],r),c=r;u&&(e[r+1]=mu(e[r+1])),hp(e,l,r,true),hp(e,l,r,false),dC(t,l,e,r,i),s=Qi$2(a,c),i?t.classBindings=s:t.styleBindings=s;}function dC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Gn$3(i,t)>=0&&(n[r+1]=yu(n[r+1]));}function hp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Nn$3(o):lr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];fC(c,t)&&(a=true,e[s+1]=r?yu(u):mu(u)),s=r?Nn$3(u):lr$1(u);}a&&(e[n+1]=r?mu(o):yu(o));}function fC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Gn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function hC(e){return gC(e),Cg(e,Tg(e,0,Ue$2.textEnd))}function Cg(e,t){let n=Ue$2.textEnd;return n===t?-1:(t=Ue$2.keyEnd=mC(e,Ue$2.key=t,n),Tg(e,t,n))}function gC(e){Ue$2.key=0,Ue$2.keyEnd=0,Ue$2.value=0,Ue$2.valueEnd=0,Ue$2.textEnd=e.length;}function Tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function mC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function bg(e,t,n){return _g(e,t,n,false),bg}function Sg(e,t){return _g(e,t,null,true),Sg}function yC(e){DC(bC,vC,e,true);}function vC(e,t){for(let n=hC(t);n>=0;n=Cg(t,n))Mi$2(e,pC(t),true);}function _g(e,t,n,r){let o=v$1(),i=j$4(),s=wn$3(2);if(i.firstUpdatePass&&Ng(i,e,s,r),t!==Q$3&&we$2(o,s,t)){let a=i.data[Ee$4()];xg(i,a,o,o[L$3],e,o[s+1]=_C(t,n),r,s);}}function DC(e,t,n,r){let o=j$4(),i=wn$3(2);o.firstUpdatePass&&Ng(o,null,i,r);let s=v$1();if(n!==Q$3&&we$2(s,i,n)){let a=o.data[Ee$4()];if(Ag(a,r)&&!Mg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=wi$2(c,n||"")),gu(o,a,s,n,r);}else SC(o,a,s,s[L$3],s[i+1],s[i+1]=TC(e,t,n),r,i);}}function Mg(e,t){return t>=e.expandoStartIndex}function Ng(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ee$4()],s=Mg(e,n);Ag(i,r)&&t===null&&!s&&(t=false),t=EC(o,i,t,r),lC(o,i,t,n,s,r);}}function EC(e,t,n,r){let o=Df(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fc(null,e,t,n,r),n=fo$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fc(o,e,t,n,r),i===null){let c=IC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),wC(e,t,r,c));}else i=CC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function IC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lr$1(r)!==0)return e[Nn$3(r)]}function wC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nn$3(o)]=r;}function CC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=fo$1(r,s,n);}return fo$1(r,t.attrs,n)}function Fc(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=fo$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function fo$1(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]),Mi$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function TC(e,t,n){if(n==null||n==="")return ie$1;let r=[],o=Te$2(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 bC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Mi$2(e,r,n);}function SC(e,t,n,r,o,i,s,a){o===Q$3&&(o=ie$1);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,p!==f&&(h=d,y=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=f),h!==null&&xg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function xg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=uC(u)?gp(c,t,n,o,lr$1(u),s):void 0;if(!Es(l)){Es(i)||aC(u)&&(i=gp(c,null,n,o,a,s));let d=ic(Ee$4(),n);kE(r,s,d,o,i);}}function gp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Q$3&&(p=d?ie$1:void 0);let f=d?Ni$2(p,r):l===r?p:void 0;if(u&&!Es(f)&&(f=Ni$2(c,r)),Es(f)&&(a=f,s))return a;let h=e[o+1];o=s?Nn$3(h):lr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ni$2(c,r));}return a}function Es(e){return e!==void 0}function _C(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jr(Te$2(e)))),e}function Ag(e,t){return (e.flags&(t?8:16))!==0}function MC(e,t=""){let n=v$1(),r=j$4(),o=e+H$3,i=r.firstCreatePass?fr$1(r,o,1,t,null):r.data[o],s=NC(r,n,i,t);n[o]=s,Hi$2()&&ju(r,n,s,i),Xn$3(i,false);}var NC=(e,t,n,r)=>(Zr(true),$D(t[L$3],r));function Rg(e,t,n,r=""){return we$2(e,Gt(),n)?t+Z$1(n)+r:Q$3}function xC(e,t,n,r,o,i=""){let s=Wr(),a=uo$1(e,s,n,o);return wn$3(2),a?t+Z$1(n)+r+Z$1(o)+i:Q$3}function AC(e,t,n,r,o,i,s,a,c,u=""){let l=Wr(),d=Ku(e,l,n,o,s,c);return wn$3(4),d?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u:Q$3}function RC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Wr(),f=Ku(e,p,n,o,s,c);return f=we$2(e,p+4,l)||f,wn$3(5),f?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d:Q$3}function OC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=Wr(),y=Ku(e,h,n,o,s,c);return y=uo$1(e,h+4,l,p)||y,wn$3(6),y?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d+Z$1(p)+f:Q$3}function Og(e){return vl("",e),Og}function vl(e,t,n){let r=v$1(),o=Rg(r,e,t,n);return o!==Q$3&&Eo$1(r,Ee$4(),o),vl}function kg(e,t,n,r,o){let i=v$1(),s=xC(i,e,t,n,r,o);return s!==Q$3&&Eo$1(i,Ee$4(),s),kg}function Fg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=AC(u,e,t,n,r,o,i,s,a,c);return l!==Q$3&&Eo$1(u,Ee$4(),l),Fg}function Pg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=RC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$3&&Eo$1(d,Ee$4(),p),Pg}function Lg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=OC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$3&&Eo$1(f,Ee$4(),h),Lg}function Eo$1(e,t,n){let r=ic(t,e);zD(e[L$3],r,n);}function jg(e,t,n){Wi$2(t)&&(t=t());let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Dh(s,r,e,t,r[L$3],n);}return jg}function kC(e,t){let n=Wi$2(e);return n&&e.set(t),n}function Bg(e,t){let n=v$1(),r=j$4(),o=X$1();return vg(r,n,n[L$3],o,e,t),Bg}function FC(e,t,n=""){return Rg(v$1(),e,t,n)}function mp(e,t,n){let r=j$4();r.firstCreatePass&&Vg(t,r.data,r.blueprint,rt$1(e),n);}function Vg(e,t,n,r,o){if(e=re$2(e),Array.isArray(e))for(let i=0;i<e.length;i++)Vg(e[i],t,n,r,o);else {let i=j$4(),s=v$1(),a=X$1(),c=pn$1(e)?e:re$2(e.provide),u=Ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(pn$1(e)||!e.multi){let f=new Tn$3(u,o,ze$3,null),h=Lc(c,t,l+p,d);h===-1?(Vc(is$1(a,s),i,c),Pc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Lc(c,t,l+p,d),h=Lc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){Vc(is$1(a,s),i,c);let _=jC(PC,n.length,o,r,u);D&&(n[h].providerFactory=_),Pc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=Hg(n[f],u,r);Pc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Pc(e,t,n,r){let o=pn$1(t),i=Jd(t);if(o||i){let c=(i?re$2(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function Hg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function PC(e,t,n,r,o){return vu(this.multi,[])}function vu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function jC(e,t,n,r,o,i){let s=new Tn$3(e,n,ze$3,null);return s.multi=[],s.index=t,s.componentProviders=0,Hg(s,o,r&&!n),s}function BC(e,t){return n=>{n.providersResolver=(r,o)=>mp(r,o?o(e):e,false);}}function VC(e,t){let n=Jn$3()+e,r=v$1();return r[n]===Q$3?Qu(r,n,t()):CI(r,n)}function HC(e,t,n){return $g(v$1(),Jn$3(),e,t,n)}function UC(e,t,n,r){return zg(v$1(),Jn$3(),e,t,n,r)}function Ug(e,t){let n=e[t];return n===Q$3?void 0:n}function $g(e,t,n,r,o,i){let s=t+n;return we$2(e,s,o)?Qu(e,s+1,i?r.call(i,o):r(o)):Ug(e,s+1)}function zg(e,t,n,r,o,i,s){let a=t+n;return uo$1(e,a,o,i)?Qu(e,a+2,s?r.call(s,o,i):r(o,i)):Ug(e,a+2)}function $C(e,t){let n=j$4(),r,o=e+H$3;n.firstCreatePass?(r=zC(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=Bt$1(r.type)),a=de$3(ze$3);try{let c=os$1(!1),u=i();return os$1(c),sc(n,v$1(),o,u),u}finally{de$3(a);}}function zC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function GC(e,t,n){let r=e+H$3,o=v$1(),i=Ri$3(o,r);return Gg(o,r)?$g(o,Jn$3(),t,i.transform,n,i):i.transform(n)}function WC(e,t,n,r){let o=e+H$3,i=v$1(),s=Ri$3(i,o);return Gg(i,o)?zg(i,Jn$3(),t,s.transform,n,r,s):s.transform(n,r)}function Gg(e,t){return e[E].data[t].pure}function qC(e,t){return As$1(e,t)}var Wg=(()=>{class e{applicationErrorHandler=g$1(ot$1);appRef=g$1(gr$1);taskService=g$1(qt);ngZone=g$1(G$4);zonelessEnabled=g$1(nr$1);tracing=g$1(ct$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$3;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Pr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$1(zi$2,{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?Mf:Tc;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(Pr+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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function qg(){return [{provide:je$3,useExisting:Wg},{provide:G$4,useClass:Lr},{provide:nr$1,useValue:true}]}var ZC=(()=>{class e{compileModuleSync(n){return new ms$1(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function YC(){return typeof $localize<"u"&&$localize.locale||Do$2}var mr$1=new w("",{factory:()=>g$1(mr$1,{optional:true,skipSelf:true})||YC()});var Io$1=class Io{destroyed=false;listeners=null;errorHandler=g$1(Se$5,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g$1(Ie$4);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$1(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(Xe$1(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I$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&&QC(this.listeners)),I$1(n),this.isEmitting=false;}}};function QC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function KC(e,t){return Ar$1(e,t?.equal)}function wo$1(e){return kd(e)}var XC=e=>e;function JC(e,t){if(typeof e=="function"){let n=_a(e,XC,t?.equal);return Zg(n)}else {let n=_a(e.source,e.computation,e.equal);return Zg(n,e.debugName)}}function Zg(e,t){let n=e[q$1],r=e;return r.set=o=>Rd(n,o),r.update=o=>Od(n,o),r.asReadonly=Yr.bind(e),r}var Fs=Symbol("InputSignalNode#UNSET"),rm=x$2(w$1({},Rr$1),{transformFn:void 0,applyValueToInputSignal(e,t){jt$2(e,t);}});function om(e,t){let n=Object.create(rm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$2(n),n.value===Fs){let o=null;throw new m$1(-950,o)}return n.value}return r[q$1]=n,r}var Yg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Iu(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function yB(e){return fT(e)?e.default:e}function fT(e){return e&&typeof e=="object"&&"default"in e}function vB(e){return new Io$1}function Qg(e,t){return om(e,t)}function pT(e){return om(Fs,e)}var DB=(Qg.required=pT,Qg);function im(e,t){let n=Object.create(rm),r=new Io$1;n.value=e;function o(){return gt$2(n),Kg(n.value),n.value}return o[q$1]=n,o.asReadonly=Yr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$2(n,i),r.emit(i));},o.update=i=>{Kg(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Kg(e){if(e===Fs)throw new m$1(952,false)}function Xg(e,t){return im(e)}function hT(e){return im(Fs)}var EB=(Xg.required=hT,Xg);function Jg(e,t){return ol()}function gT(e,t){return il()}var IB=(Jg.required=gT,Jg);function wB(e,t){return Qh()}function em(e,t){return ol()}function mT(e,t){return il()}var CB=(em.required=mT,em);var sm=(()=>{class e{static __NG_ELEMENT_ID__=vT}return e})();function vT(e){return DT(X$1(),v$1(),(e&16)===16)}function DT(e,t,n){if(Tt$3(e)&&!n){let r=Re$4(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[ae$2];return new Qt(r,t)}return null}var ET=(()=>{class e{zone=g$1(G$4);changeDetectionScheduler=g$1(je$3);applicationRef=g$1(gr$1);applicationErrorHandler=g$1(ot$1);_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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),IT=new w("",{factory:()=>false});function wT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$4(x$2(w$1({},am()),{scheduleInRootZone:t})),[{provide:nr$1,useValue:false},{provide:G$4,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g$1(ET,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g$1(CT);return ()=>{n.initialize();}}},{provide:zi$2,useValue:t??Cc}]}function bB(e){let t=e?.scheduleInRootZone,n=wT({ngZoneFactory:()=>{let r=am(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$2("NgZone_CoalesceEvent"),new G$4(r)},scheduleInRootZone:t});return wt$2([{provide:IT,useValue:true},n])}function am(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var CT=(()=>{class e{subscription=new ee$3;initialized=false;zone=g$1(G$4);pendingTasks=g$1(qt);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(()=>{G$4.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$4.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var El=new w(""),TT=new w("");function Co$1(e){return !e.moduleRef}function bT(e){let t=Co$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$4);return n.run(()=>{Co$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot$1),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Co$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(El);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(El);s.add(i),e.moduleRef.onDestroy(()=>{oo$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return _T(r,n,()=>{let i=t.get(qt),s=i.add(),a=t.get(ul);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(mr$1,Do$2);if(gg(c||Do$2),!t.get(TT,!0))return Co$1(e)?t.get(gr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(gr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return ST?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var ST;function _T(e,t,n){try{let r=n();return Rs$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ks$1=null;function MT(e=[],t){return pe$3.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:El,useValue:new Set([()=>ks$1=null])},...e]})}function NT(e=[]){if(ks$1)return ks$1;let t=MT(e);return ks$1=t,ag(),xT(t),t}function xT(e){let t=e.get($i$2,null);qn$3(e,()=>{t?.forEach(n=>n());});}function cm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$5(O$3.BootstrapApplicationStart);try{let i=o?.injector??NT(r),s=[qg(),xf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return bT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$5(O$3.BootstrapApplicationEnd);}}function AT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function RT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Dl=Symbol("NOT_SET"),um=new Set,OT=x$2(w$1({},Rr$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Dl,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!==Dl&&!Vn$3(this))return this.signal;try{for(let o of this.cleanup??um)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=mt$3(this),r;try{r=this.userFn.apply(null,t);}finally{Pt$3(this,n);}return (this.value===Dl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Il=class extends so$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(Ie$4),s),this.scheduler=o;for(let a of ku){let c=n[a];if(c===void 0)continue;let u=Object.create(OT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$2(u),u.value),u.signal[q$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??um)n();}finally{Lt$2(t);}}};function SB(e,t){let n=g$1(pe$3),r=n.get(je$3),o=n.get(bs$2),i=n.get(ct$2,null,{optional:true});o.impl??=n.get(Fu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(tr$1,null,{optional:true}),c=new Il(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function _B(e,t){let n=Et$3(e),r=t.elementInjector||Wn$3();return new _n$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function MB(e){let t=Et$3(e);if(!t)return null;let n=new _n$2(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var lm=null;function _t$2(){return lm}function wl(e){lm??=e;}var To$1=class To{},Kt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:()=>g$1(dm),providedIn:"platform"})}return e})(),kT=new w(""),dm=(()=>{class e extends Kt$1{_location;_history;_doc=g$1(U$5);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$2().getBaseHref(this._doc)}onPopState(n){let r=_t$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$2().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=x$1({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ps$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function fm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ge$1(e){return e&&e[0]!=="?"?`?${e}`:e}var yr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:()=>g$1(hm),providedIn:"root"})}return e})(),Ls=new w(""),hm=(()=>{class e extends yr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$1(U$5).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 Ps$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Ge$1(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$1(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$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$1(Kt$1),b$1(Ls,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gm=(()=>{class e{_subject=new ue$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=LT(fm(pm(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+Ge$1(r))}normalize(n){return e.stripTrailingSlash(PT(this._basePath,pm(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+Ge$1(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$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=Ge$1;static joinWithSlash=Ps$1;static stripTrailingSlash=fm;static \u0275fac=function(r){return new(r||e)(b$1(yr$1))};static \u0275prov=x$1({token:e,factory:()=>FT(),providedIn:"root"})}return e})();function FT(){return new gm(b$1(yr$1))}function PT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function pm(e){return e.replace(/\/index\.html$/,"")}function LT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var jT=(()=>{class e extends yr$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=Ps$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$1(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$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$1(Kt$1),b$1(Ls,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})();var Ml=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ml||{});var ce$3=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ce$3||{}),B$1=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$1||{}),ge$4=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ge$4||{}),me$2={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function vm(e){return he$3(e)[K$3.LocaleId]}function Dm(e,t,n){let r=he$3(e),o=[r[K$3.DayPeriodsFormat],r[K$3.DayPeriodsStandalone]],i=ke$3(o,t);return ke$3(i,n)}function Em(e,t,n){let r=he$3(e),o=[r[K$3.DaysFormat],r[K$3.DaysStandalone]],i=ke$3(o,t);return ke$3(i,n)}function Im(e,t,n){let r=he$3(e),o=[r[K$3.MonthsFormat],r[K$3.MonthsStandalone]],i=ke$3(o,t);return ke$3(i,n)}function wm(e,t){let r=he$3(e)[K$3.Eras];return ke$3(r,t)}function bo$1(e,t){let n=he$3(e);return ke$3(n[K$3.DateFormat],t)}function So$1(e,t){let n=he$3(e);return ke$3(n[K$3.TimeFormat],t)}function _o$1(e,t){let r=he$3(e)[K$3.DateTimeFormat];return ke$3(r,t)}function lt$3(e,t){let n=he$3(e),r=n[K$3.NumberSymbols][t];if(typeof r>"u"){if(t===me$2.CurrencyDecimal)return n[K$3.NumberSymbols][me$2.Decimal];if(t===me$2.CurrencyGroup)return n[K$3.NumberSymbols][me$2.Group]}return r}function Cm(e,t){return he$3(e)[K$3.NumberFormats][t]}function Tm(e){if(!e[K$3.ExtraData])throw new m$1(2303,false)}function bm(e){let t=he$3(e);return Tm(t),(t[K$3.ExtraData][2]||[]).map(r=>typeof r=="string"?Cl(r):[Cl(r[0]),Cl(r[1])])}function Sm(e,t,n){let r=he$3(e);Tm(r);let o=[r[K$3.ExtraData][0],r[K$3.ExtraData][1]],i=ke$3(o,t)||[];return ke$3(i,n)||[]}function ke$3(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$1(2304,false)}function Cl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var BT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js=Object.create(null),VT=/((?:[^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]*)/,HT=256;function _m(e,t,n,r){let o=KT(e);UT(t),t=Mt$3(n,t)||t;let s=[],a;for(;t;)if(a=VT.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=Nm(r,c),o=QT(o,r));let u="";return s.forEach(l=>{let d=ZT(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function UT(e){if(e.length>HT)throw new m$1(2300,false)}function $s(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$3(e,t){let n=vm(e);if(js[n]??=Object.create(null),js[n][t])return js[n][t];let r="";switch(t){case "shortDate":r=bo$1(e,ge$4.Short);break;case "mediumDate":r=bo$1(e,ge$4.Medium);break;case "longDate":r=bo$1(e,ge$4.Long);break;case "fullDate":r=bo$1(e,ge$4.Full);break;case "shortTime":r=So$1(e,ge$4.Short);break;case "mediumTime":r=So$1(e,ge$4.Medium);break;case "longTime":r=So$1(e,ge$4.Long);break;case "fullTime":r=So$1(e,ge$4.Full);break;case "short":let o=Mt$3(e,"shortTime"),i=Mt$3(e,"shortDate");r=Bs$1(_o$1(e,ge$4.Short),[o,i]);break;case "medium":let s=Mt$3(e,"mediumTime"),a=Mt$3(e,"mediumDate");r=Bs$1(_o$1(e,ge$4.Medium),[s,a]);break;case "long":let c=Mt$3(e,"longTime"),u=Mt$3(e,"longDate");r=Bs$1(_o$1(e,ge$4.Long),[c,u]);break;case "full":let l=Mt$3(e,"fullTime"),d=Mt$3(e,"fullDate");r=Bs$1(_o$1(e,ge$4.Full),[l,d]);break}return r&&(js[n][t]=r),r}function Bs$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function We$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 $T(e,t){return We$2(e,3).substring(0,t)}function J$3(e,t,n=0,r=false,o=false){return function(i,s){let a=zT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return $T(a,t);let c=lt$3(s,me$2.MinusSign);return We$2(a,t,c,r,o)}}function zT(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 m$1(2301,false)}}function V$3(e,t,n=ce$3.Format,r=false){return function(o,i){return GT(o,i,e,t,n,r)}}function GT(e,t,n,r,o,i){switch(n){case 2:return Im(t,o,r)[e.getMonth()];case 1:return Em(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=bm(t),l=Sm(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return true}else if(y||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Dm(t,o,r)[s<12?0:1];case 3:return wm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$1(2302,false)}}function Vs(e){return function(t,n,r){let o=-1*r,i=lt$3(n,me$2.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+We$2(s,2,i)+We$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+We$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);default:throw new m$1(2310,false)}}}var WT=0,Us=4;function qT(e){let t=$s(e,WT,1).getDay();return $s(e,0,1+(t<=Us?Us:Us+7)-t)}function Mm(e){let t=e.getDay(),n=t===0?-3:Us-t;return $s(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tl(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=Mm(n),s=qT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$2(o,e,lt$3(r,me$2.MinusSign))}}function Hs(e,t=false){return function(n,r){let i=Mm(n).getFullYear();return We$2(i,e,lt$3(r,me$2.MinusSign),t)}}var bl$1=Object.create(null);function ZT(e){if(bl$1[e])return bl$1[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$3(3,B$1.Abbreviated);break;case "GGGG":t=V$3(3,B$1.Wide);break;case "GGGGG":t=V$3(3,B$1.Narrow);break;case "y":t=J$3(0,1,0,false,true);break;case "yy":t=J$3(0,2,0,true,true);break;case "yyy":t=J$3(0,3,0,false,true);break;case "yyyy":t=J$3(0,4,0,false,true);break;case "Y":t=Hs(1);break;case "YY":t=Hs(2,true);break;case "YYY":t=Hs(3);break;case "YYYY":t=Hs(4);break;case "M":case "L":t=J$3(1,1,1);break;case "MM":case "LL":t=J$3(1,2,1);break;case "MMM":t=V$3(2,B$1.Abbreviated);break;case "MMMM":t=V$3(2,B$1.Wide);break;case "MMMMM":t=V$3(2,B$1.Narrow);break;case "LLL":t=V$3(2,B$1.Abbreviated,ce$3.Standalone);break;case "LLLL":t=V$3(2,B$1.Wide,ce$3.Standalone);break;case "LLLLL":t=V$3(2,B$1.Narrow,ce$3.Standalone);break;case "w":t=Tl(1);break;case "ww":t=Tl(2);break;case "W":t=Tl(1,true);break;case "d":t=J$3(2,1);break;case "dd":t=J$3(2,2);break;case "c":case "cc":t=J$3(7,1);break;case "ccc":t=V$3(1,B$1.Abbreviated,ce$3.Standalone);break;case "cccc":t=V$3(1,B$1.Wide,ce$3.Standalone);break;case "ccccc":t=V$3(1,B$1.Narrow,ce$3.Standalone);break;case "cccccc":t=V$3(1,B$1.Short,ce$3.Standalone);break;case "E":case "EE":case "EEE":t=V$3(1,B$1.Abbreviated);break;case "EEEE":t=V$3(1,B$1.Wide);break;case "EEEEE":t=V$3(1,B$1.Narrow);break;case "EEEEEE":t=V$3(1,B$1.Short);break;case "a":case "aa":case "aaa":t=V$3(0,B$1.Abbreviated);break;case "aaaa":t=V$3(0,B$1.Wide);break;case "aaaaa":t=V$3(0,B$1.Narrow);break;case "b":case "bb":case "bbb":t=V$3(0,B$1.Abbreviated,ce$3.Standalone,true);break;case "bbbb":t=V$3(0,B$1.Wide,ce$3.Standalone,true);break;case "bbbbb":t=V$3(0,B$1.Narrow,ce$3.Standalone,true);break;case "B":case "BB":case "BBB":t=V$3(0,B$1.Abbreviated,ce$3.Format,true);break;case "BBBB":t=V$3(0,B$1.Wide,ce$3.Format,true);break;case "BBBBB":t=V$3(0,B$1.Narrow,ce$3.Format,true);break;case "h":t=J$3(3,1,-12);break;case "hh":t=J$3(3,2,-12);break;case "H":t=J$3(3,1);break;case "HH":t=J$3(3,2);break;case "m":t=J$3(4,1);break;case "mm":t=J$3(4,2);break;case "s":t=J$3(5,1);break;case "ss":t=J$3(5,2);break;case "S":t=J$3(6,1);break;case "SS":t=J$3(6,2);break;case "SSS":t=J$3(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Vs(0);break;case "ZZZZZ":t=Vs(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Vs(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Vs(2);break;default:return null}return bl$1[e]=t,t}function Nm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function YT(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function QT(e,t,n){let o=e.getTimezoneOffset(),i=Nm(t,o);return YT(e,-1*(i-o))}function KT(e){if(mm(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 $s(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(BT))return XT(r)}let t=new Date(e);if(!mm(t))throw new m$1(2311,false);return t}function XT(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 mm(e){return e instanceof Date&&!isNaN(e.valueOf())}var JT=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ym=22,zs=".",Mo$1="0",eb=";",tb=",",Sl="#";function nb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$3(n,me$2.Infinity);else {let u=ib(e);s&&(u=ob(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(JT);if($===null)throw new m$1(2306,false);let be=$[1],qe=$[3],At=$[5];be!=null&&(l=_l(be)),qe!=null&&(d=_l(qe)),At!=null?p=_l(At):qe!=null&&d>p&&(p=d);let Fe=100;if(l>Fe||d>Fe||p>Fe)throw new m$1(2306,false)}sb(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every($=>!$);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(lt$3(n,r)),D.length&&(a+=lt$3(n,o)+D.join("")),y&&(a+=lt$3(n,me$2.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function xm(e,t,n){let r=Cm(t,Ml.Decimal),o=rb(r,lt$3(t,me$2.MinusSign));return nb(e,o,t,me$2.Group,me$2.Decimal,n)}function rb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(eb),o=r[0],i=r[1],s=o.indexOf(zs)!==-1?o.split(zs):[o.substring(0,o.lastIndexOf(Mo$1)+1),o.substring(o.lastIndexOf(Mo$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Sl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Mo$1?n.minFrac=n.maxFrac=l+1:d===Sl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(tb);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(Sl);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 ob(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 ib(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(zs))>-1&&(t=t.replace(zs,"")),(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)===Mo$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Mo$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>ym&&(r=r.splice(0,ym-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function sb(e,t,n){if(t>n)throw new m$1(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,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function _l(e){let t=parseInt(e);if(isNaN(t))throw new m$1(2305,false);return t}var ab=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$1(pe$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)(ze$3(pr$1))};static \u0275dir=al({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Du]})}return e})();function Nl(e,t){return new m$1(2100,false)}var cb=(()=>{class e{transform(n){return n==null?null:(ub(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"lowercase",type:e,pure:true})}return e})();function ub(e,t){if(typeof t!="string")throw Nl()}var lb="mediumDate",Am=new w(""),Rm=new w(""),db=(()=>{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??lb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return _m(n,s,i||this.locale,a)}catch(s){throw Nl(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ze$3(mr$1,16),ze$3(Am,24),ze$3(Rm,24))};static \u0275pipe=hr$1({name:"date",type:e,pure:true})}return e})();var fb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"json",type:e,pure:false})}return e})();var pb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!hb(n))return null;o||=this._locale;try{let i=gb(n);return xm(i,o,r)}catch(i){throw Nl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$3(mr$1,16))};static \u0275pipe=hr$1({name:"number",type:e,pure:true})}return e})();function hb(e){return !(e==null||e===""||e!==e)}function gb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$1(2309,false);return e}function No$1(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 Al="browser";function XV(e){return e===Al}var JV=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new xl(g$1(U$5),window)})}return e})(),xl=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=Db(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Xe$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 Db(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 xo$1=class xo{_doc;constructor(t){this._doc=t;}manager},Gs=(()=>{class e extends xo$1{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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Zs=new w(""),Fl=(()=>{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 Gs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Gs);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 m$1(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$1(Zs),b$1(G$4))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Rl="ng-app-id";function Om(e){for(let t of e)t.remove();}function km(e,t){let n=t.createElement("style");return n.textContent=e,n}function Eb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Rl}="${t}"],link[${Rl}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Rl),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 kl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Pl=(()=>{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,Eb(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,km);r?.forEach(o=>this.addUsage(o,this.external,kl));}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&&(Om(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Om(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,km(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,kl(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$1(U$5),b$1(Qr),b$1(Xr,8),b$1(Kr))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Ol={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"},Ll=/%COMP%/g;var Pm="%COMP%",Ib=`_nghost-${Pm}`,wb=`_ngcontent-${Pm}`,Cb=true,Tb=new w("",{factory:()=>Cb});function bb(e){return wb.replace(Ll,e)}function Sb(e){return Ib.replace(Ll,e)}function Lm(e,t){return t.map(n=>n.replace(Ll,e))}var jl=(()=>{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 Ao$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof qs?o.applyToHost(n):o instanceof Ro$1&&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 $e$3.Emulated:i=new qs(c,u,r,this.appId,l,s,a,d);break;case $e$3.ShadowDom:return new Ws(c,n,r,s,a,this.nonce,d,u);case $e$3.ExperimentalIsolatedShadowDom:return new Ws(c,n,r,s,a,this.nonce,d);default:i=new Ro$1(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$1(Fl),b$1(An$3),b$1(Qr),b$1(Tb),b$1(U$5),b$1(G$4),b$1(Xr),b$1(ct$2,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Ao$1=class Ao{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(Ol[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Fm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Fm(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 m$1(-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=Ol[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Ol[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&(st$2.DashCase|st$2.Important)?t.style.setProperty(n,r,o&st$2.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$2.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=_t$2().getGlobalEventTarget(this.doc,t),!t))throw new m$1(-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 Fm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ws=class extends Ao$1{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=Lm(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=kl(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ro$1=class Ro extends Ao$1{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?Lm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Yt$1.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},qs=class extends Ro$1{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=bb(u),this.hostAttr=Sb(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 Ys=class e extends To$1{supportsDOMEvents=true;static makeCurrent(){wl(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=_b();return n==null?null:Mb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function _b(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Mb(e){return new URL(e,document.baseURI).pathname}var jm=["alt","control","meta","shift"],Nb={"\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"},xb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends xo$1{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(()=>_t$2().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."),jm.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=Nb[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"),jm.forEach(s=>{if(s!==o){let a=xb[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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})();function Ab(e,t,n){return B$2(this,null,function*(){let r=w$1({rootComponent:e},Rb(t,n));return cm(r)})}function Rb(e,t){return {platformRef:t?.platformRef,appProviders:[...Lb,...e?.providers??[]],platformProviders:Pb}}function Ob(){Ys.makeCurrent();}function kb(){return new Se$5}function Fb(){return Cu(document),document}var Pb=[{provide:Kr,useValue:Al},{provide:$i$2,useValue:Ob,multi:true},{provide:U$5,useFactory:Fb}];var Lb=[{provide:$r,useValue:"root"},{provide:Se$5,useFactory:kb},{provide:Zs,useClass:Gs,multi:true},{provide:Zs,useClass:Bm,multi:true},jl,{provide:An$3,useClass:Pl},{provide:Pl,useExisting:An$3},Fl,{provide:Sn$3,useExisting:jl},[]];var xt$1=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 Ks=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()}},Xs=class{encodeKey(t){return Vm(t)}encodeValue(t){return Vm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function jb(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 Bb=/%(\d[a-f0-9])/gi,Vb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(Bb,(t,n)=>Vb[n]??t)}function Qs(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Xs,t.fromString){if(t.fromObject)throw new m$1(2805,false);this.map=jb(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(Qs):[Qs(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(Qs(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(Qs(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 Hb(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function Hm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Um(e){return typeof Blob<"u"&&e instanceof Blob}function $m(e){return typeof FormData<"u"&&e instanceof FormData}function Ub(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bl="Content-Type",zm="Accept",Wm="text/plain",qm="application/json",$b=`${qm}, ${Wm}, */*`,vr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Hb(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 m$1(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 xt$1,this.context??=new Ks,!this.params)this.params=new Nt$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Hm(this.body)||Um(this.body)||$m(this.body)||Ub(this.body)?this.body:this.body instanceof Nt$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||$m(this.body)?null:Um(this.body)?this.body.type||null:Hm(this.body)?null:typeof this.body=="string"?Wm:this.body instanceof Nt$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,y=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,$=t.reportProgress??this.reportProgress,be=t.reportUploadProgress??this.reportUploadProgress,qe=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Fe=t.params||this.params,Fo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((kn,Xt)=>kn.set(Xt,t.setHeaders[Xt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((kn,Xt)=>kn.set(Xt,t.setParams[Xt]),Fe)),new e(n,r,D,{params:Fe,headers:At,context:Fo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:qe,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Dr$1=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Dr$1||{}),Er$1=class Er{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$1,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;}},Js=class e extends Er$1{constructor(t={}){super(t);}type=Dr$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ko$1=class e extends Er$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Dr$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},On$3=class On extends Er$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},zb=200;var Gb=/^\)\]\}',?\n/,Zm=new w("",{factory:()=>null}),ea$1=(()=>{class e{fetchImpl=g$1(Hl,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$1(G$4);destroyRef=g$1(Ie$4);maxResponseSize=g$1(Zm);handle(n){return new R$2(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Ul,s=>r.error(new On$3({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$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));Wb(D),o.next({type:Dr$1.Sent}),s=yield D;}catch(D){o.error(new On$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$1(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new Js({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),_=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(_)&&_>this.maxResponseSize&&Gm(this.maxResponseSize);let $=[],be=s.body.getReader(),qe=0,At,Fe,Fo=typeof Zone<"u"&&Zone.current,kn=false;if(yield this.ngZone.runOutsideAngular(()=>B$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),kn=true;break}let{done:Ir,value:na}=yield be.read();if(Ir)break;if($.push(na),qe+=na.length,this.maxResponseSize!==null&&qe>this.maxResponseSize&&(yield be.cancel(),Gm(this.maxResponseSize)),p){Fe=n.responseType==="text"?(Fe??"")+(At??=new TextDecoder).decode(na,{stream:true}):void 0;let Gl=()=>o.next({type:Dr$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Fo?Fo.run(Gl):Gl();}}})),kn){o.complete();return}let Xt=this.concatChunks($,qe);try{let Ir=s.headers.get(Bl)??"";d=this.parseBody(n,Xt,Ir,l);}catch(Ir){o.error(new On$3({error:Ir,headers:new xt$1(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?zb:0);let f=l>=200&&l<300,h=s.redirected,y=s.type;f?(o.next(new ko$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y})),o.complete()):o.error(new On$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(Gb,"");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 m$1(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(zm)||(r[zm]=$b),!n.headers.has(Bl)){let i=n.detectContentTypeHeader();i!==null&&(r[Bl]=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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Hl=class{};function Ul(){}function Wb(e){e.then(Ul,Ul);}function Gm(e){throw new m$1(-2825,false)}function qb(e,t){return t(e)}function Zb(e,t,n){return (r,o)=>qn$3(n,()=>t(r,i=>e(i,o)))}var Ym=new w("",{factory:()=>[]}),Qm=new w(""),Km=new w("",{factory:()=>true});var $l=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(ea$1),o},providedIn:"root"})}return e})();var ta$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g$1(eo$1);contributeToStability=g$1(Km);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Ym),...this.injector.get(Qm,[])]));this.chain=o.reduceRight((i,s)=>Zb(i,s,this.injector),qb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return wo$1(()=>r(n,i=>this.backend.handle(i))).pipe(li$2(o))}else return wo$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$1($l),b$1(fe$4))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(ta$1),o},providedIn:"root"})}return e})();function Vl(e,t){return w$1({body:t},e)}var Xm=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof vr$1)i=n;else {let c;o.headers instanceof xt$1?c=o.headers:c=new xt$1(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new vr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=Cr$1(i).pipe(ui$3(c=>this.handler.handle(c)));if(n instanceof vr$1||o.observe==="events")return s;let a=s.pipe(Ot$3(c=>c instanceof ko$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ne$2(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$1(2806,false);return c.body}));case "blob":return a.pipe(ne$2(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$1(2807,false);return c.body}));case "text":return a.pipe(ne$2(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$1(2808,false);return c.body}));default:return a.pipe(ne$2(c=>c.body))}case "response":return a;default:throw new m$1(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 Nt$3().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Vl(o,r))}post(n,r,o={}){return this.request("POST",n,Vl(o,r))}put(n,r,o={}){return this.request("PUT",n,Vl(o,r))}static \u0275fac=function(r){return new(r||e)(b$1(zl))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yb=new w("",{factory:()=>true}),Qb="XSRF-TOKEN",Kb=new w("",{factory:()=>Qb}),Xb="X-XSRF-TOKEN",Jb=new w("",{factory:()=>Xb}),eS=(()=>{class e{cookieName=g$1(Kb);doc=g$1(U$5);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=No$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Jm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(eS),o},providedIn:"root"})}return e})();function tS(e,t){if(!g$1(Yb)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g$1(Kt$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=g$1(Jm).getToken(),r=g$1(Jb);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function nS(...e){let t=[Xm,ea$1,ta$1,{provide:zl,useExisting:ta$1},{provide:$l,useFactory:()=>g$1(ea$1)},{provide:Ym,useValue:tS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$2(t)}var SH=(()=>{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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(oS),o},providedIn:"root"})}return e})(),oS=(()=>{class e extends rS{_doc=g$1(U$5);sanitize(n,r){if(r==null)return null;switch(n){case Oe$2.NONE:return r;case Oe$2.HTML:return at$2(r,"HTML")?Te$2(r):Cs$1(this._doc,String(r)).toString();case Oe$2.STYLE:return at$2(r,"Style")?Te$2(r):r;case Oe$2.SCRIPT:if(at$2(r,"Script"))return Te$2(r);throw new m$1(5200,false);case Oe$2.URL:return at$2(r,"URL")?Te$2(r):ho$1(String(r));case Oe$2.RESOURCE_URL:if(at$2(r,"ResourceURL"))return Te$2(r);throw new m$1(-5201,false);default:throw new m$1(5202,false)}}bypassSecurityTrustHtml(n){return Su(n)}bypassSecurityTrustStyle(n){return _u(n)}bypassSecurityTrustScript(n){return Mu(n)}bypassSecurityTrustUrl(n){return Nu(n)}bypassSecurityTrustResourceUrl(n){return xu(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var y$1=class y{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$2=new w("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$3=class j{basePath="http://localhost:18124";defaultHeaders=new xt$1;configuration;encoder;constructor(x,n){if(this.configuration=n||new y$1,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 $$1=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$4=class C extends j$3{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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$4=class C extends j$3{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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;listEffectiveConfiguration(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 Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/admin/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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$3=class C extends j$3{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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$2=class C extends j$3{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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{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 Nt$3({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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Te$1=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Te$1||{});var Ie$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Ie$3||{});var Re$3=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Re$3||{});var Ee$3=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ee$3||{});var Oe$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Oe$1||{});var Y$2=class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var K$2=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q$2=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(Q$2||{});var z$2=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(z$2||{});var Ve$3=Q$2,Se$4=z$2;var qe$3={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Me$3={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var X=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$2=class C extends j$3{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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$2=class C extends j$3{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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$1=class C extends j$3{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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$1=class C extends j$3{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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new Nt$3({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 Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new Nt$3({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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ae$1=class C extends j$3{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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var se=class C extends j$3{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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ce$2=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$3=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$2=class C extends j$3{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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$3=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{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 Ks,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 Ks,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 Nt$3({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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{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 Ks,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 Nt$3({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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ge$3=class C extends j$3{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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$4=class C extends j$3{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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Ks,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 Nt$3({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 Ks,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 Nt$3({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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{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 Ks,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 Ks,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 Nt$3({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 Ks,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 Ks,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 Ks,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 Ks,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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Be$3=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Be$3||{});var $e$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))($e$2||{});var Ue$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Ue$1||{});var Ne$3=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(Ne$3||{}),ke$2=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(ke$2||{});var Fe$3=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Fe$3||{});function bl(C){return wt$2([typeof C=="string"?{provide:P$2,useValue:C}:{provide:y$1,useValue:new y$1(w$1({},C))}])}(class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ye$3=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$3=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ve$2=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};
6
- var f=class s{http=g$1(Xm);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 Nt$3;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||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac,providedIn:"root"})};var C=["email","providers","folder","progress"],Y$1=s=>s==="fresh"||s==="nofresh"?s:null,j$2=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,O$2=1500,V$2=8,W$2=2e4,l=(s,e,t)=>({key:s,label:e,state:t.state,percent:t.percent,message:t.message??(s==="java"?t.version:void 0)}),P$1=(s,e)=>{if(s instanceof On$3){let t=s.error;if(t&&typeof t=="object"&&t.error)return t.error;if(s.status===0)return "Cannot reach the Coday server."}return e},R$1=class s{api=g$1(f);users=g$1(Ce$4);namespaces=g$1(_$1);destroyRef=g$1(Ie$4);status=Ui$2(null);statusError=Ui$2(null);step=Ui$2("email");email=Ui$2("");providers=Ui$2([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=Ui$2("");mode=Ui$2("wizard");preview=Ui$2(null);factoryGraceElapsed=Ui$2(false);factoryGraceTimer=null;busy=Ui$2(false);error=Ui$2(null);emailValid=KC(()=>j$2.test(this.email().trim()));enabledProviders=KC(()=>this.providers().filter(e=>e.enabled));providersValid=KC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=V$2)});folderValid=KC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=KC(()=>C.indexOf(this.step()));checklist=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",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=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),...e.factory?[l("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=KC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=KC(()=>this.status()?.steps.java.state==="blocked");ready=KC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=KC(()=>this.status()?.apply.status==="error");emailLocked=KC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=KC(()=>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),W$2));}refreshStatus(){return B$2(this,null,function*(){try{let e=yield hy(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=Mr$1(0,O$2).pipe(ma(()=>this.api.getStatus().pipe(da(()=>Cr$1(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(e=null){return B$2(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="laptop"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress");return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(C[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$2(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield hy(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(a=>a.id===e);if(!r)return t;let i=t.map(a=>a.id===e?x$2(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=i.find(p=>p.id===e);return [...i.filter(p=>p.id!==e),a]}return i});}setApiKey(e,t){this.providers.update(r=>r.map(i=>i.id===e?x$2(w$1({},i),{apiKey:t}):i));}moveProvider(e,t){this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=a+t;if(a<0||p<0||p>=i.length)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...r.filter(n=>!n.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=i.findIndex(n=>n.id===t);if(a<0||p<0)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...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 hy(this.api.browse(e,t))}mkdir(e,t){return hy(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$2(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield hy(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$2(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(){return B$2(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$2(this,null,function*(){try{let{externalId:e}=yield hy(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield hy(this.namespaces.listByExternalIdsNamespace([t]))).find(i=>i.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac,providedIn:"root"})};var le$2;try{le$2=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){le$2=false;}var v=(()=>{class i{_platformId=g$1(Kr);isBrowser=this._platformId?XV(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||le$2)&&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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function We$1(i,e=0){return Ye$1(i)?Number(i):arguments.length===2?e:0}function Ye$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof xn$3?i.nativeElement:i}var Yn$2=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g$1(U$5)}),Xn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Xe(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Xn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var at$1=(()=>{class i{get value(){return this.valueSignal()}valueSignal=Ui$2("ltr");change=new yt$2;constructor(){let t=g$1(Yn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Xe(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var V$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})();var F$3=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$3||{}),kt$2,j$1;function Rt$2(){if(j$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return j$1=false,j$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)j$1=true;else {let i=Element.prototype.scrollTo;i?j$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):j$1=false;}}return j$1}function q(){if(typeof document!="object"||!document)return F$3.NORMAL;if(kt$2==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),kt$2=F$3.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,kt$2=i.scrollLeft===0?F$3.NEGATED:F$3.INVERTED),i.remove();}return kt$2}var Zn$2=20,Dt$2=(()=>{class i{_ngZone=g$1(G$4);_platform=g$1(v);_renderer=g$1(Sn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$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=Zn$2){return this._platform.isBrowser?new R$2(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ry(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):Cr$1()}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(Ot$3(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=N(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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),go$1=(()=>{class i{elementRef=g$1(xn$3);scrollDispatcher=g$1(Dt$2);ngZone=g$1(G$4);dir=g$1(at$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ue$1;_renderer=g$1(Yu);_cleanupScroll;_elementScrolled=new ue$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&&q()!=F$3.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),q()==F$3.INVERTED?t.left=t.right:q()==F$3.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;Rt$2()?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 a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&q()==F$3.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&q()==F$3.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=al({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),Gn$2=20,st$1=(()=>{class i{_platform=g$1(v);_listeners;_viewportSize=null;_change=new ue$1;_document=g$1(U$5);constructor(){let t=g$1(G$4),n=g$1(Sn$3).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(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=Gn$2){return t>0?this._change.pipe(Ry(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=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Ke$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})(),ce$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({imports:[V$1,Ke$2,V$1,Ke$2]})}return i})();var $e$1=new Map,lt$2=class i{_appId=g$1(Qr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=$e$1.get(e);return n===void 0?n=0:n++,$e$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})};var ct$1=class ct{_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;}},de$1=class de extends ct$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ot$2=class Ot extends ct$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()}},ue=class extends ct$1{element;constructor(e){super(),this.element=e instanceof xn$3?e.nativeElement:e;}},At$2=class At{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof de$1)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ot$2)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ue)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);}},Mt$2=class Mt extends At$2{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(Mn$3,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||pe$3.NULL,r=o.get(fe$4,n.injector);t=_B(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 Do$1=(()=>{class i extends At$2{_moduleRef=g$1(Mn$3,{optional:true});_document=g$1(U$5);_viewContainerRef=g$1(pr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new yt$2;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=Rp(i)))(o||i)}})();static \u0275dir=al({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ng]})}return i})(),qe$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})();function Qe$2(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var me$1;function Je$1(){if(me$1==null){let i=typeof document<"u"?document.head:null;me$1=!!(i&&(i.createShadowRoot||i.attachShadow));}return me$1}function he$2(i){if(Je$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function $n$2(){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 D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function pe$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var It$1=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g$1(pe$3);_environmentInjector=g$1(fe$4);load(t){let n=this._appRef=this._appRef||this._injector.get(gr$1),o=It$1.get(n);o||(o={loaders:new Set,refs:[]},It$1.set(n,o),n.onDestroy(()=>{It$1.get(n)?.refs.forEach(r=>r.destroy()),It$1.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(_B(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function Q$1(i){return Array.isArray(i)?i:[i]}var tn=Rt$2();function ln(i){return new Tt$2(i.get(st$1),i.get(U$5))}var Tt$2=class Tt{_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=b(-this._previousScrollPosition.left),e.style.top=b(-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||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),tn&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tn&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_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 cn(i,e){return new Pt$2(i.get(Dt$2),i.get(G$4),i.get(st$1),e)}var Pt$2=class Pt{_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(Ot$3(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 dt$2=class dt{enable(){}disable(){}attach(){}};function fe$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function en(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function dn(i,e){return new Ft(i.get(Dt$2),i.get(st$1),i.get(G$4),e)}var Ft=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();fe$2(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;}},un=(()=>{class i{_injector=g$1(pe$3);noop=()=>new dt$2;close=t=>cn(this._injector,t);block=()=>ln(this._injector);reposition=t=>dn(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Nt$2=class Nt{positionStrategy;scrollStrategy=new dt$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Lt$1=class Lt{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var mn=(()=>{class i{_attachedOverlays=[];_document=g$1(U$5);_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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),hn=(()=>{class i extends mn{_ngZone=g$1(G$4);_renderer=g$1(Sn$3).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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),pn=(()=>{class i extends mn{_platform=g$1(v);_ngZone=g$1(G$4);_renderer=g$1(Sn$3).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=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(nn(l.overlayElement,n)||nn(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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function nn(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 fn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({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 {
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Jt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$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(M(r))try{r();}catch(i){t=i instanceof Po$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Wl(i);}catch(s){t=t??[],s instanceof Po$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Po$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Wl(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)&&Jt(n,t);}remove(t){let{_finalizers:n}=this;n&&Jt(n,t),t instanceof e&&t._removeParent(this);}};ee$2.EMPTY=(()=>{let e=new ee$2;return e.closed=true,e})();var ra$1=ee$2.EMPTY;function Lo$1(e){return e instanceof ee$2||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Wl(e){M(e)?e():e.unsubscribe();}var Pe$3={Promise:void 0};var Fn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function jo$1(e){Fn$3.setTimeout(()=>{throw e});}function ft$3(){}function Pn$3(e){e();}var tn$1=class tn extends ee$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Lo$1(t)&&t.add(this)):this.destination=ny;}static create(t,n,r){return new Le$3(t,n,r)}next(t){this.isStopped?sa$1():this._next(t);}error(t){this.isStopped?sa$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?sa$1():(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 aa$1=class aa{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Bo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Bo$1(r);}else Bo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Bo$1(n);}}},Le$3=class Le extends tn$1{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new aa$1(o);}};function Bo$1(e){jo$1(e);}function ty(e){throw e}function sa$1(e,t){}var ny={closed:true,next:ft$3,error:ty,complete:ft$3};var Ln$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ye$3(e){return e}function ry(...e){return ca$1(e)}function ca$1(e){return e.length===0?ye$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$2=(()=>{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=iy(n)?n:new Le$3(n,r,o);return Pn$3(()=>{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=Kl(r),new r((o,i)=>{let s=new Le$3({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)}[Ln$3](){return this}pipe(...n){return ca$1(n)(this)}toPromise(n){return n=Kl(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 Kl(e){var t;return (t=e??Pe$3.Promise)!==null&&t!==void 0?t:Promise}function oy(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function iy(e){return e&&e instanceof tn$1||oy(e)&&Lo$1(e)}var Xl=Rt$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ue$2=(()=>{class e extends R$2{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Vo$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xl}next(n){Pn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Pn$3(()=>{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(){Pn$3(()=>{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?ra$1:(this.currentObservers=null,i.push(n),new ee$2(()=>{this.currentObservers=null,Jt(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$2;return n.source=this,n}}return e.create=(t,n)=>new Vo$1(t,n),e})(),Vo$1=class Vo extends ue$2{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ra$1}};var wr$1=class wr extends ue$2{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var nn$1=new R$2(e=>e.complete());function Ho$1(e){return e&&M(e.schedule)}function ua$1(e){return e[e.length-1]}function Uo$1(e){return M(ua$1(e))?e.pop():void 0}function Ze$1(e){return Ho$1(ua$1(e))?e.pop():void 0}function Jl(e,t){return typeof ua$1(e)=="number"?e.pop():t}function td(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 ed(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 rn$1(e){return this instanceof rn$1?(this.v=e,this):new rn$1(e)}function nd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(D,_){i.push([f,y,D,_])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof rn$1?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function rd(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 ed=="function"?ed(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 $o$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function zo$1(e){return M(e?.then)}function Go$1(e){return M(e[Ln$3])}function Wo$1(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function qo$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 sy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zo$1=sy();function Yo$1(e){return M(e?.[Zo$1])}function Qo$1(e){return nd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield rn$1(n.read());if(o)return yield rn$1(void 0);yield yield rn$1(r);}}finally{n.releaseLock();}})}function Ko$1(e){return M(e?.getReader)}function A$1(e){if(e instanceof R$2)return e;if(e!=null){if(Go$1(e))return ay(e);if($o$1(e))return cy(e);if(zo$1(e))return uy(e);if(Wo$1(e))return od(e);if(Yo$1(e))return ly(e);if(Ko$1(e))return dy(e)}throw qo$1(e)}function ay(e){return new R$2(t=>{let n=e[Ln$3]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cy(e){return new R$2(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function uy(e){return new R$2(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,jo$1);})}function ly(e){return new R$2(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function od(e){return new R$2(t=>{fy(e,t).catch(n=>t.error(n));})}function dy(e){return od(Qo$1(e))}function fy(e,t){var n,r,o,i;return td(this,void 0,void 0,function*(){try{for(n=rd(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 oe$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 py(e){return M(e?.lift)}function C$1(e){return t=>{if(py(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$2(e,t,n,r,o){return new la$2(e,t,n,r,o)}var la$2=class la extends tn$1{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 Xo$1(e,t=0){return C$1((n,r)=>{n.subscribe(T$2(r,o=>oe$2(r,e,()=>r.next(o),t),()=>oe$2(r,e,()=>r.complete(),t),o=>oe$2(r,e,()=>r.error(o),t)));})}function Jo$1(e,t=0){return C$1((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function id(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function sd(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function ad(e,t){return new R$2(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function cd(e,t){return new R$2(n=>{let r;return oe$2(n,t,()=>{r=e[Zo$1](),oe$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);}),()=>M(r?.return)&&r.return()})}function ei$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$2(n=>{oe$2(n,t,()=>{let r=e[Symbol.asyncIterator]();oe$2(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function ud(e,t){return ei$3(Qo$1(e),t)}function ld(e,t){if(e!=null){if(Go$1(e))return id(e,t);if($o$1(e))return ad(e,t);if(zo$1(e))return sd(e,t);if(Wo$1(e))return ei$3(e,t);if(Yo$1(e))return cd(e,t);if(Ko$1(e))return ud(e,t)}throw qo$1(e)}function Ye$2(e,t){return t?ld(e,t):A$1(e)}function Cr$1(...e){let t=Ze$1(e);return Ye$2(e,t)}var on$1=Rt$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function hy(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Le$3({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new on$1);}});e.subscribe(i);})}function ne$2(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:gy}=Array,{getPrototypeOf:my,prototype:yy,keys:vy}=Object;function ti$3(e){if(e.length===1){let t=e[0];if(gy(t))return {args:t,keys:null};if(Dy(t)){let n=vy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Dy(e){return e&&typeof e=="object"&&my(e)===yy}var{isArray:Ey}=Array;function Iy(e,t){return Ey(t)?e(...t):e(t)}function ni$3(e){return ne$2(t=>Iy(e,t))}function ri$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wy(...e){let t=Ze$1(e),n=Uo$1(e),{args:r,keys:o}=ti$3(e);if(r.length===0)return Ye$2([],t);let i=new R$2(Cy(r,t,o?s=>ri$3(o,s):ye$3));return n?i.pipe(ni$3(n)):i}function Cy(e,t,n=ye$3){return r=>{dd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)dd(t,()=>{let u=Ye$2(e[c],t),l=false;u.subscribe(T$2(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function dd(e,t,n){e?oe$2(n,e,t):t();}function Ty(...e){let t=Uo$1(e),{args:n,keys:r}=ti$3(e),o=new R$2(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;A$1(n[l]).subscribe(T$2(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ri$3(r,a):a),i.complete());}));}});return t?o.pipe(ni$3(t)):o}function da(e){return C$1((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$2(n,void 0,void 0,s=>{i=A$1(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var oi$3=class oi extends ee$2{constructor(t,n){super();}schedule(t,n=0){return this}};var Tr$1={setInterval(e,t,...n){let{delegate:r}=Tr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ii$3=class ii extends oi$3{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 Tr$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Tr$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,Jt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var br$1={now(){return (br$1.delegate||Date).now()},delegate:void 0};var jn$3=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)}};jn$3.now=br$1.now;var si$3=class si extends jn$3{constructor(t,n=jn$3.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 pt$3=new si$3(ii$3),fd=pt$3;function pd(e,t=pt$3){return C$1((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$2(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function Ot$3(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>e.call(t,i,o++)&&r.next(i)));})}function hd(e){return Ot$3((t,n)=>e<=n)}function ai$3(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=false;A$1(n(y,l++)).subscribe(T$2(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?oe$2(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(T$2(t,f,()=>{d=true,p();})),()=>{}}function ht$3(e,t,n=1/0){return M(t)?ht$3((r,o)=>ne$2((i,s)=>t(r,i,o,s))(A$1(e(r,o))),n):(typeof t=="number"&&(n=t),C$1((r,o)=>ai$3(r,o,e,n)))}function Sr$1(e=1/0){return ht$3(ye$3,e)}function gd(){return Sr$1(1)}function kt$3(...e){return gd()(Ye$2(e,Ze$1(e)))}function md(...e){let t=Ze$1(e);return C$1((n,r)=>{(t?kt$3(e,n,t):kt$3(e,n)).subscribe(r);})}function fa(e,t){return C$1((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$2(r,c=>{o?.unsubscribe();let u=0,l=i++;A$1(e(c,l)).subscribe(o=T$2(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function yd(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?C$1((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$2(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);}));}):ye$3}var _r$1=class _r extends ue$2{constructor(t=1/0,n=1/0,r=br$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function by(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function Sy(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function ci$3(e){return e instanceof Date&&!isNaN(e)}var _y=Rt$3(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function My(e,t){let{first:n,each:r,with:o=Ny,scheduler:i=pt$3,meta:s=null}=ci$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return C$1((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$2(c,i,()=>{try{u.unsubscribe(),A$1(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(T$2(c,h=>{l?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function Ny(e){throw new _y(e)}function xy(e){return new R$2(t=>{A$1(e()).subscribe(t);})}function Mr$1(e=0,t,n=fd){let r=-1;return t!=null&&(Ho$1(t)?n=t:r=t),new R$2(o=>{let i=ci$3(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 Ay(...e){let t=Ze$1(e),n=Jl(e,1/0),r=e;return r.length?r.length===1?A$1(r[0]):Sr$1(n)(Ye$2(r,t)):nn$1}function vd(e){return C$1((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$2(n,u=>{r=!0,o=u,i||A$1(e(u)).subscribe(i=T$2(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=pt$3){return vd(()=>Mr$1(e,t))}function Dd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$2(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function ui$3(e,t){return M(t)?ht$3(e,t,1):ht$3(e,1)}function Ed(e){return C$1((t,n)=>{let r=!1;t.subscribe(T$2(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function sn$1(e){return e<=0?()=>nn$1:C$1((t,n)=>{let r=0;t.subscribe(T$2(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function pa(){return C$1((e,t)=>{e.subscribe(T$2(t,ft$3));})}function ha(e){return ne$2(()=>e)}function ga(e,t){return t?n=>kt$3(t.pipe(sn$1(1),pa()),n.pipe(ga(e))):ht$3((n,r)=>A$1(e(n,r)).pipe(sn$1(1),ha(n)))}function Oy(e,t=pt$3){let n=Mr$1(e,t);return ga(()=>n)}function ky(e,t){return C$1((n,r)=>{let o=new Set;n.subscribe(T$2(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$1(t).subscribe(T$2(r,()=>o.clear(),ft$3));})}function Id(e,t=ye$3){return e=e??Fy,C$1((n,r)=>{let o,i=!0;n.subscribe(T$2(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Fy(e,t){return e===t}function wd(e=Py){return C$1((t,n)=>{let r=!1;t.subscribe(T$2(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Py(){return new on$1}function Ly(...e){return t=>kt$3(t,Cr$1(...e))}function ma(e,t){return t?n=>n.pipe(ma((r,o)=>A$1(e(r,o)).pipe(ne$2((i,s)=>t(r,i,o,s))))):C$1((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$2(r,a=>{i||(i=T$2(r,void 0,()=>{i=null,s&&r.complete();}),A$1(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function jy(e,t=1/0,n){return t=(t||0)<1?1/0:t,C$1((r,o)=>ai$3(r,o,e,t,void 0,!0,n))}function li$2(e){return C$1((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$3((o,i)=>e(o,i,r)):ye$3,sn$1(1),n?Ed(t):wd(()=>new on$1))}function Vy(e){return e<=0?()=>nn$1:C$1((t,n)=>{let r=[];t.subscribe(T$2(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 Hy(e,t){return C$1(Dd(e,t,arguments.length>=2,!0))}function va(e={}){let{connector:t=()=>new ue$2,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return C$1((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=ya(h,o));}),_.subscribe(D),!s&&u>0&&(s=new Le$3({next:$=>_.next($),error:$=>{d=!0,p(),a=ya(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=ya(f,r),_.complete();}}),A$1(y).subscribe(s));})(i)}}function ya(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Le$3({next:()=>{r.unsubscribe(),e();}});return A$1(t(...n)).subscribe(r)}function Uy(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,va({connector:()=>new _r$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Cd(e){return C$1((t,n)=>{A$1(e).subscribe(T$2(n,()=>n.complete(),ft$3)),!n.closed&&t.subscribe(n);})}function $y(e,t=false){return C$1((n,r)=>{let o=0;n.subscribe(T$2(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var le$4=null,di$3=false,an$1=1,q$1=Symbol("SIGNAL");function I$1(e){let t=le$4;return le$4=e,t}function fi$3(){return le$4}var Ft$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 gt$2(e){if(di$3)throw new Error("");if(le$4===null)return;le$4.consumerOnSignalRead(e);let t=le$4.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$4.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$4.producers,n!==void 0&&n.producer===e)){le$4.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=an$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$4&&(!r||o.knownValidAtEpoch===an$1))return;let i=Hn$3(le$4),s={producer:e,consumer:le$4,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:an$1,lastReadVersion:e.version,nextConsumer:void 0};le$4.producersTail=s,t!==void 0?t.nextProducer=s:le$4.producers=s,i&&_d(e,s);}function Td(){an$1++;}function ln$1(e){if(!(Hn$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===an$1)){if(!e.producerMustRecompute(e)&&!Vn$3(e)){Bn$3(e);return}e.producerRecomputeValue(e),Bn$3(e);}}function Da(e){if(e.consumers===void 0)return;let t=di$3;di$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Gy(r);}}finally{di$3=t;}}function Ea(){return le$4?.consumerAllowSignalWrites!==false}function Gy(e){e.dirty=true,Da(e),e.consumerMarkedDirty?.(e);}function Bn$3(e){e.dirty=false,e.lastCleanEpoch=an$1;}function mt$3(e){return e&&bd(e),I$1(e)}function bd(e){if(e.producersTail?.knownValidAtEpoch===an$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$3(e,t){I$1(t),e&&Sd(e);}function Sd(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Hn$3(e))do n=Ia(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Vn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ln$1(n),r!==n.version))return true}return false}function Lt$2(e){if(Hn$3(e)){let t=e.producers;for(;t!==void 0;)t=Ia(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function _d(e,t){let n=e.consumersTail,r=Hn$3(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)_d(o.producer,o);}function Ia(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,!Hn$3(t)){let i=t.producers;for(;i!==void 0;)i=Ia(i);}return n}function Hn$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function xr$1(e,t){return Object.is(e,t)}function Ar$1(e,t){let n=Object.create(Wy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ln$1(n),gt$2(n),n.value===Qe$3)throw n.error;return n.value};return r[q$1]=n,r}var cn$1=Symbol("UNSET"),un$1=Symbol("COMPUTING"),Qe$3=Symbol("ERRORED"),Wy=x$2(w$1({},Ft$1),{value:cn$1,dirty:true,error:null,equal:xr$1,kind:"computed",producerMustRecompute(e){return e.value===cn$1||e.value===un$1},producerRecomputeValue(e){if(e.value===un$1)throw new Error("");let t=e.value;e.value=un$1;let n=mt$3(e),r,o=false;try{r=e.computation(),I$1(null),o=t!==cn$1&&t!==Qe$3&&r!==Qe$3&&e.equal(t,r);}catch(i){r=Qe$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function qy(){throw new Error}var Md=qy;function Nd(e){Md(e);}function wa(e){Md=e;}function Ca(e,t){let n=Object.create(Rr$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>xd(n);return r[q$1]=n,[r,s=>jt$2(n,s),s=>pi$3(n,s)]}function xd(e){return gt$2(e),e.value}function jt$2(e,t){Ea()||Nd(e),e.equal(e.value,t)||(e.value=t,Yy(e));}function pi$3(e,t){Ea()||Nd(e),jt$2(e,t(e.value));}var Rr$1=x$2(w$1({},Ft$1),{equal:xr$1,value:void 0,kind:"signal"});function Yy(e){e.version++,Td(),Da(e);}var Ta=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ba(e){if(e.dirty=false,e.version>0&&!Vn$3(e))return;e.version++;let t=mt$3(e);try{e.cleanup(),e.fn();}finally{Pt$3(e,t);}}var Sa;function hi$3(){return Sa}function Ke$3(e){let t=Sa;return Sa=e,t}var Ad=Symbol("NotFound");function Un$3(e){return e===Ad||e?.name==="\u0275NotFound"}function _a(e,t,n){let r=Object.create(Qy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(ln$1(r),gt$2(r),r.value===Qe$3)throw r.error;return r.value};return i[q$1]=r,i}function Rd(e,t){ln$1(e),jt$2(e,t),Bn$3(e);}function Od(e,t){if(ln$1(e),e.value===Qe$3)throw e.error;pi$3(e,t),Bn$3(e);}var Qy=x$2(w$1({},Ft$1),{value:cn$1,dirty:true,error:null,equal:xr$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===cn$1||e.value===un$1},producerRecomputeValue(e){if(e.value===un$1)throw new Error("");let t=e.value;e.value=un$1;let n=mt$3(e),r,o=false;try{let i=e.source(),s=t!==cn$1&&t!==Qe$3,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I$1(null),o=s&&r!==Qe$3&&e.equal(t,r);}catch(i){r=Qe$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function kd(e){let t=I$1(null);try{return e()}finally{I$1(t);}}var Ii$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$1=class m extends Error{code;constructor(t,n){super(Xe$1(t,n)),this.code=t;}};function Ky(e){return `NG0${Math.abs(e)}`}function Xe$1(e,t){return `${Ky(e)}${t?": "+t:""}`}function k$1(e){for(let t in e)if(e[t]===k$1)return t;throw Error("")}function Bd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function jr(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(jr).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 wi$2(e,t){return e?t?`${e} ${t}`:e:t||""}var Xy=k$1({__forward_ref__:k$1});function Ci$3(e){return e.__forward_ref__=Ci$3,e}function re$3(e){return Va(e)?e():e}function Va(e){return typeof e=="function"&&e.hasOwnProperty(Xy)&&e.__forward_ref__===Ci$3}function x$1(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Br(e){return {providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return ev(e,Ti$2)}function Jy(e){return Vr(e)!==null}function ev(e,t){return e.hasOwnProperty(t)&&e[t]||null}function tv(e){let t=e?.[Ti$2]??null;return t||null}function Na(e){return e&&e.hasOwnProperty(mi$3)?e[mi$3]:null}var Ti$2=k$1({\u0275prov:k$1}),mi$3=k$1({\u0275inj:k$1}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x$1({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Ha(e){return e&&!!e.\u0275providers}var Ua=k$1({\u0275cmp:k$1}),$a=k$1({\u0275dir:k$1}),za=k$1({\u0275pipe:k$1}),Ga=k$1({\u0275mod:k$1}),kr=k$1({\u0275fac:k$1}),gn$1=k$1({__NG_ELEMENT_ID__:k$1}),Fd=k$1({__NG_ENV_ID__:k$1});function Vd(e){return bi$3(e),e[Ga]||null}function Et$3(e){return bi$3(e),e[Ua]||null}function Wa(e){return bi$3(e),e[$a]||null}function Hd(e){return bi$3(e),e[za]||null}function bi$3(e,t){if(e==null)throw new m$1(-919,false)}function Z$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Ud=k$1({ngErrorCode:k$1}),nv=k$1({ngErrorMessage:k$1});k$1({ngTokenPath:k$1});function qa(e,t){return $d("",-200)}function Si$3(e,t){throw new m$1(-201,false)}function $d(e,t,n){let r=new m$1(t,e);return r[Ud]=t,r[nv]=e,r}function ov(e){return e[Ud]}var xa;function zd(){return xa}function de$3(e){let t=xa;return xa=e,t}function Za(e,t,n){let r=Vr(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;Si$3();}var _e$3=globalThis;var iv={},dn$1=iv,sv="__NG_DI_FLAG__",Aa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=fn$1(n)||0;try{return this.injector.get(t,r&8?null:dn$1,r)}catch(o){if(Un$3(o))return o;throw o}}};function av(e,t=0){let n=hi$3();if(n===void 0)throw new m$1(-203,false);if(n===null)return Za(e,void 0,t);{let r=cv(t),o=n.retrieve(e,r);if(Un$3(o)){if(r.optional)return null;throw o}return o}}function b$1(e,t=0){return (zd()||av)(re$3(e),t)}function g$1(e,t){return b$1(e,fn$1(t))}function fn$1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ra(e){let t=[];for(let n=0;n<e.length;n++){let r=re$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=uv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$1(o,i));}else t.push(b$1(r));}return t}function uv(e){return e[sv]}function Bt$1(e,t){let n=e.hasOwnProperty(kr);return n?e[kr]:null}function Gd(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 Wd(e){return e.flat(Number.POSITIVE_INFINITY)}function _i$3(e,t){e.forEach(n=>Array.isArray(n)?_i$3(n,t):t(n));}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Hr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Zd(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 Mi$2(e,t,n){let r=Gn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Zd(e,r,t,n)),r}function Ni$2(e,t){let n=Gn$3(e,t);if(n>=0)return e[n|1]}function Gn$3(e,t){return lv(e,t,1)}function lv(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 Ht$1={},ie$2=[],It$2=new w(""),Ur=new w("",-1),Qa=new w(""),zn$3=class zn{get(t,n=dn$1){if(n===dn$1){let o=$d("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$2(e){return {\u0275providers:e}}function Yd(e){return wt$2([{provide:It$2,multi:true,useValue:e}])}function Qd(...e){return {\u0275providers:Ka(true,e),\u0275fromNgModule:true}}function Ka(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return _i$3(t,s=>{let a=s;yi$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Kd(o,i),n}function Kd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r);});}}function yi$3(e,t,n,r){if(e=re$3(e),!e)return false;let o=null,i=Na(e),s=!i&&Et$3(e);if(!i&&!s){let c=e.ngModule;if(i=Na(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)yi$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;_i$3(i.imports,l=>{yi$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Kd(u,t);}if(!a){let u=Bt$1(o)||(()=>new o);t({provide:o,useFactory:u,deps:ie$2},o),t({provide:Qa,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Xa(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)Ha(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n);}var dv=k$1({provide:String,useValue:k$1});function Xd(e){return e!==null&&typeof e=="object"&&dv in e}function fv(e){return !!(e&&e.useExisting)}function pv(e){return !!(e&&e.useFactory)}function pn$1(e){return typeof e=="function"}function Jd(e){return !!e.useClass}var $r=new w(""),gi$3={},Pd={},Ma;function Wn$3(){return Ma===void 0&&(Ma=new zn$3),Ma}var fe$4=class fe{},hn$1=class hn extends fe$4{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,ka(t,s=>this.processProvider(s)),this.records.set(Ur,$n$3(void 0,this)),o.has("environment")&&this.records.set(fe$4,$n$3(void 0,this));let i=this.records.get($r);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qa,ie$2,{self:true}));}retrieve(t,n){let r=fn$1(n)||0;try{return this.get(t,dn$1,r)}catch(o){if(Un$3(o))return o;throw o}}destroy(){Or(this),this._destroyed=true;let t=I$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(),I$1(t);}}onDestroy(t){return Or(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Or(this);let n=Ke$3(this),r=de$3(void 0);try{return t()}finally{Ke$3(n),de$3(r);}}get(t,n=dn$1,r){if(Or(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=fn$1(r),s=Ke$3(this),a=de$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=$n$3(Oa(t),gi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Wn$3():this.parent;return n=o&8&&n===dn$1?null:n,c.get(t,n)}catch(c){let u=ov(c);throw u===-200||u===-201?new m$1(u,null):c}finally{de$3(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I$1(null),n=Ke$3(this),r=de$3(void 0);try{let i=this.get(It$2,ie$2,{self:!0});for(let s of i)s();}finally{Ke$3(n),de$3(r),I$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$3(t);let n=pn$1(t)?t:re$3(t&&t.provide),r=gv(t);if(!pn$1(t)&&t.multi===true){let o=this.records.get(n);o||(o=$n$3(void 0,gi$3,true),o.factory=()=>Ra(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=I$1(null);try{if(n.value===Pd)throw qa("");return n.value===gi$3&&(n.value=Pd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&yv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$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 Oa(e){let t=Vr(e),n=t!==null?t.factory:Bt$1(e);if(n!==null)return n;if(e instanceof w)throw new m$1(-204,false);if(e instanceof Function)return hv(e);throw new m$1(-204,false)}function hv(e){if(e.length>0)throw new m$1(-204,false);let n=tv(e);return n!==null?()=>n.factory(e):()=>new e}function gv(e){if(Xd(e))return $n$3(void 0,e.useValue);{let t=Ja(e);return $n$3(t,gi$3)}}function Ja(e,t,n){let r;if(pn$1(e)){let o=re$3(e);return Bt$1(o)||Oa(o)}else if(Xd(e))r=()=>re$3(e.useValue);else if(pv(e))r=()=>e.useFactory(...Ra(e.deps||[]));else if(fv(e))r=(o,i)=>b$1(re$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$3(e&&(e.useClass||e.provide));if(mv(e))r=()=>new o(...Ra(e.deps));else return Bt$1(o)||Oa(o)}return r}function Or(e){if(e.destroyed)throw new m$1(-205,false)}function $n$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function mv(e){return !!e.deps}function yv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ka(e,t){for(let n of e)Array.isArray(n)?ka(n,t):n&&Ha(n)?ka(n.\u0275providers,t):t(n);}function qn$3(e,t){let n;e instanceof hn$1?(Or(e),n=e):n=new Aa(e);let o=Ke$3(n),i=de$3(void 0);try{return t()}finally{Ke$3(o),de$3(i);}}function ef(){return zd()!==void 0||hi$3()!=null}var Be$4=0,E=1,S$1=2,te$3=3,Me$4=4,se$1=5,mn$1=6,Zn$3=7,Y$3=8,Je$3=9,Ve$3=10,L$3=11,Yn$3=12,ec=13,Ut$2=14,ae$1=15,$t$1=16,yn$1=17,et=18,tt$1=19,tc=20,vt$2=21,xi$3=22,Vt$1=23,ve$3=24,vn$2=25,nt$1=26,H$3=27,tf=1,nc=6,zt$1=7,zr=8,Dn$3=9,W$4=10;function Ct$2(e){return Array.isArray(e)&&typeof e[tf]=="object"}function Ne$4(e){return Array.isArray(e)&&e[tf]===true}function rc(e){return (e.flags&4)!==0}function Tt$3(e){return e.componentOffset>-1}function Qn$3(e){return (e.flags&1)===1}function rt$1(e){return !!e.template}function Kn$2(e){return (e[S$1]&512)!==0}function En$3(e){return (e[S$1]&256)===256}var oc="svg",nf="math";function xe$4(e){for(;Array.isArray(e);)e=e[Be$4];return e}function ic(e,t){return xe$4(t[e])}function Ae$3(e,t){return xe$4(t[e.index])}function Ai$2(e,t){return e.data[t]}function Ri$3(e,t){return e[t]}function sc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Re$3(e,t){let n=t[e];return Ct$2(n)?n:n[Be$4]}function rf(e){return (e[S$1]&4)===4}function Oi$2(e){return (e[S$1]&128)===128}function of(e){return Ne$4(e[te$3])}function De$3(e,t){return t==null?null:e[t]}function ac(e){e[yn$1]=0;}function cc(e){e[S$1]&1024||(e[S$1]|=1024,Oi$2(e)&&In$3(e));}function sf(e,t){for(;e>0;)t=t[Ut$2],e--;return t}function Gr(e){return !!(e[S$1]&9216||e[ve$3]?.dirty)}function ki$3(e){e[Ve$3].changeDetectionScheduler?.notify(8),e[S$1]&64&&(e[S$1]|=1024),Gr(e)&&In$3(e);}function In$3(e){e[Ve$3].changeDetectionScheduler?.notify(0);let t=Dt$3(e);for(;t!==null&&!(t[S$1]&8192||(t[S$1]|=8192,!Oi$2(t)));)t=Dt$3(t);}function Fi$2(e,t){if(En$3(e))throw new m$1(911,false);e[vt$2]===null&&(e[vt$2]=[]),e[vt$2].push(t);}function af(e,t){if(e[vt$2]===null)return;let n=e[vt$2].indexOf(t);n!==-1&&e[vt$2].splice(n,1);}function Dt$3(e){let t=e[te$3];return Ne$4(t)?t[te$3]:t}function uc(e){return e[Zn$3]??=[]}function lc(e){return e.cleanup??=[]}function cf(e,t,n,r){let o=uc(t);o.push(n),e.firstCreatePass&&lc(e).push(r,o.length-1);}var N$2={lFrame:If(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Fa=false;function uf(){return N$2.lFrame.elementDepthCount}function lf(){N$2.lFrame.elementDepthCount++;}function dc(){N$2.lFrame.elementDepthCount--;}function Pi$2(){return N$2.bindingsEnabled}function fc(){return N$2.skipHydrationRootTNode!==null}function pc(e){return N$2.skipHydrationRootTNode===e}function hc(){N$2.skipHydrationRootTNode=null;}function v$1(){return N$2.lFrame.lView}function j$4(){return N$2.lFrame.tView}function df(e){return N$2.lFrame.contextLView=e,e[Y$3]}function ff(e){return N$2.lFrame.contextLView=null,e}function X$1(){let e=gc();for(;e!==null&&e.type===64;)e=e.parent;return e}function gc(){return N$2.lFrame.currentTNode}function pf(){let e=N$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Xn$3(e,t){let n=N$2.lFrame;n.currentTNode=e,n.isParent=t;}function mc(){return N$2.lFrame.isParent}function yc(){N$2.lFrame.isParent=false;}function hf(){return N$2.lFrame.contextLView}function vc(){return Fa}function Fr(e){let t=Fa;return Fa=e,t}function Jn$3(){let e=N$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wr(){return N$2.lFrame.bindingIndex}function gf(e){return N$2.lFrame.bindingIndex=e}function Gt(){return N$2.lFrame.bindingIndex++}function wn$3(e){let t=N$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mf(){return N$2.lFrame.inI18n}function yf(e,t){let n=N$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,Li$2(t);}function vf(){return N$2.lFrame.currentDirectiveIndex}function Li$2(e){N$2.lFrame.currentDirectiveIndex=e;}function Df(e){let t=N$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ji$2(){return N$2.lFrame.currentQueryIndex}function qr(e){N$2.lFrame.currentQueryIndex=e;}function Dv(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$1]:null}function Dc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Dv(i),o===null||(i=i[Ut$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$2.lFrame=Ef();return r.currentTNode=t,r.lView=e,true}function Bi$2(e){let t=Ef(),n=e[E];N$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Ef(){let e=N$2.lFrame,t=e===null?null:e.child;return t===null?If(e):t}function If(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 wf(){let e=N$2.lFrame;return N$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ec=wf;function Vi$2(){let e=wf();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 Cf(e){return (N$2.lFrame.contextLView=sf(e,N$2.lFrame.contextLView))[Y$3]}function Ee$3(){return N$2.lFrame.selectedIndex}function Wt$1(e){N$2.lFrame.selectedIndex=e;}function er$1(){let e=N$2.lFrame;return Ai$2(e.tView,e.selectedIndex)}function Tf(){N$2.lFrame.currentNamespace=oc;}function bf(){Ev();}function Ev(){N$2.lFrame.currentNamespace=null;}function Ic(){return N$2.lFrame.currentNamespace}var Sf=true;function Hi$2(){return Sf}function Zr(e){Sf=e;}function Pa(e,t=null,n=null,r){let o=wc(e,t,n);return o.resolveInjectorInitializers(),o}function wc(e,t=null,n=null,r,o=new Set){let i=[n||ie$2,Qd(e)];return new hn$1(i,t||Wn$3(),null,o)}var pe$3=class e{static THROW_IF_NOT_FOUND=dn$1;static NULL=new zn$3;static create(t,n){if(Array.isArray(t))return Pa({name:""},n,t);{let r=t.name??"";return Pa({name:r},t.parent,t.providers)}}static \u0275prov=x$1({token:e,providedIn:"any",factory:()=>b$1(Ur)});static __NG_ELEMENT_ID__=-1},U$5=new w(""),Ie$3=(()=>{class e{static __NG_ELEMENT_ID__=Iv;static __NG_ENV_ID__=n=>n}return e})(),vi$3=class vi extends Ie$3{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return En$3(this._lView)}onDestroy(t){let n=this._lView;return Fi$2(n,t),()=>af(n,t)}};function Iv(){return new vi$3(v$1())}var Cc=false,_f=new w(""),qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new wr$1(false);debugTaskTracker=g$1(_f,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$2(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=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),La=class extends ue$2{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,ef()&&(this.destroyRef=g$1(Ie$3,{optional:true})??void 0,this.pendingTasks=g$1(qt,{optional:true})??void 0);}emit(t){let n=I$1(null);try{super.next(t);}finally{I$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 ee$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);}});}}},yt$2=La;function Di$2(...e){}function Tc(e){let t,n;function r(){e=Di$2;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 Mf(e){return queueMicrotask(()=>e()),()=>{e=Di$2;}}var bc="isAngularZone",Pr=bc+"_ID",wv=0,G$4=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$2(false);onMicrotaskEmpty=new yt$2(false);onStable=new yt$2(false);onError=new yt$2(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Cc}=t;if(typeof Zone>"u")throw new m$1(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,bv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$1(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,Cv,Di$2,Di$2);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)}},Cv={};function Sc(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 Tv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Tc(()=>{e.callbackScheduled=false,ja(e),e.isCheckStableRunning=true,Sc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),ja(e);}function bv(e){let t=()=>{Tv(e);},n=wv++;e._inner=e._inner.fork({name:"angular",properties:{[bc]:true,[Pr]:n,[Pr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Sv(c))return r.invokeTask(i,s,a,c);try{return Ld(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ld(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!_v(c)&&t(),jd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ja(e),Sc(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 ja(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Ld(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function jd(e){e._nesting--,Sc(e);}var Lr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$2;onMicrotaskEmpty=new yt$2;onStable=new yt$2;onError=new yt$2;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 Sv(e){return Nf(e,"__ignore_ng_zone__")}function _v(e){return Nf(e,"__scheduler_tick__")}function Nf(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$5=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$1=new w("",{factory:()=>{let e=g$1(G$4),t=g$1(fe$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$5),n.handleError(r));});}}}),xf={provide:It$2,useValue:()=>{g$1(Se$5,{optional:true});},multi:true},Mv=new w("",{factory:()=>{let e=g$1(U$5).defaultView;if(!e)return;let t=g$1(ot$1),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(),g$1(Ie$3).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function Nv(){return wt$2([Yd(()=>{g$1(Mv);})])}function Ui$2(e,t){let [n,r,o]=Ca(e,t?.equal),i=n;i[q$1];return i.set=r,i.update=o,i.asReadonly=Yr.bind(i),i}function Yr(){let e=this[q$1];if(e.readonlyFn===void 0){let t=()=>this();t[q$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Qr=new w("",{factory:()=>xv}),xv="ng";var $i$2=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Av=new w(""),Xr=new w("",{factory:()=>g$1(U$5).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var tr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Rv}return e})();function Rv(){return new tr$1(v$1(),X$1())}var je$4=class je{},nr$1=new w("",{factory:()=>true});var zi$2=new w(""),Gi$2=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new Ba})}return e})(),Ba=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}},Ei$3=class Ei{[q$1];constructor(t){this[q$1]=t;}destroy(){this[q$1].destroy();}};function Af(e,t){let n=t?.injector??g$1(pe$3),r=t?.manualCleanup!==true?n.get(Ie$3):null,o,i=n.get(tr$1,null,{optional:true}),s=n.get(je$4);return i!==null?(o=Fv(i.view,s,e),r instanceof vi$3&&r._lView===i.view&&(r=null)):o=Pv(e,n.get(Gi$2),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ei$3(o)}var Rf=x$2(w$1({},Ta),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Fr(false);try{ba(this);}finally{Fr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I$1(e);}}}),Ov=x$2(w$1({},Rf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),kv=x$2(w$1({},Rf),{consumerMarkedDirty(){this.view[S$1]|=8192,In$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$1]?.delete(this);}});function Fv(e,t,n){let r=Object.create(kv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Of(r,n),e[Vt$1]??=new Set,e[Vt$1].add(r),r.consumerMarkedDirty(r),r}function Pv(e,t,n){let r=Object.create(Ov);return r.fn=Of(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 Of(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Jr(e){return typeof e=="function"&&e[q$1]!==void 0}function Wi$2(e){return Jr(e)&&typeof e.set=="function"}var eo$1=(()=>{class e{internalPendingTasks=g$1(qt);scheduler=g$1(je$4);errorHandler=g$1(ot$1);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=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$1(e){return {toString:e}.toString()}var O$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})(O$3||{}),ts$1=class ts{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function vp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Dp=null,Du=(()=>{Dp=kf;let e=()=>kf;return e.ngInherit=true,e})();function qv(){return Dp}function kf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yv),Zv}function Zv(){let e=Ep(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Yv(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Qv(e,{previous:Ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ts$1(u&&u.currentValue,n,c===Ht$1),vp(e,t,o,n);}var jc="__ngSimpleChanges__";function Ep(e){return Object.hasOwn(e,jc)&&e[jc]||null}function Qv(e,t){return e[jc]=t}var Ff=[];var F$5=function(e,t=null,n){for(let r=0;r<Ff.length;r++){let o=Ff[r];o(e,t,n);}};function Kv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qv()(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 Ip(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 Ki$2(e,t,n){wp(e,t,3,n);}function Xi$2(e,t,n,r){(e[S$1]&3)===n&&wp(e,t,n,r);}function _c(e,t){let n=e[S$1];(n&3)===t&&(n&=16383,n+=1,e[S$1]=n);}function wp(e,t,n,r){let o=r!==void 0?e[yn$1]&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[yn$1]+=65536),(a<i||i==-1)&&(Xv(e,n,t,c),e[yn$1]=(e[yn$1]&4294901760)+c+2),c++;}function Pf(e,t){F$5(O$3.LifecycleHookStart,e,t);let n=I$1(null);try{t.call(e);}finally{I$1(n),F$5(O$3.LifecycleHookEnd,e,t);}}function Xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$1]>>14<e[yn$1]>>16&&(e[S$1]&3)===t&&(e[S$1]+=16384,Pf(a,i)):Pf(a,i);}var or$1=-1,Tn$3=class Tn{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 Jv(e){return (e.flags&8)!==0}function eD(e){return (e.flags&16)!==0}function tD(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];nD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Cp(e){return e===3||e===4||e===6}function nD(e){return e.charCodeAt(0)===64}function ir$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Lf(e,n,o,null,t[++r]):Lf(e,n,o,null,null));}}return e}function Lf(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 Tp(e){return e!==or$1}function ns$1(e){return e&32767}function rD(e){return e>>16}function rs$1(e,t){let n=rD(e),r=t;for(;n>0;)r=r[Ut$2],n--;return r}var Bc=true;function os$1(e){let t=Bc;return Bc=e,t}var oD=256,bp=oD-1,Sp=5,iD=0,it$1={};function sD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gn$1)&&(r=n[gn$1]),r==null&&(r=n[gn$1]=iD++);let o=r&bp,i=1<<o;t.data[e+(o>>Sp)]|=i;}function is$1(e,t){let n=_p(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Mc(r.data,e),Mc(t,null),Mc(r.blueprint,null));let o=Eu(e,t),i=e.injectorIndex;if(Tp(o)){let s=ns$1(o),a=rs$1(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Mc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function _p(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Eu(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=Op(o),r===null)return or$1;if(n++,o=o[Ut$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return or$1}function Vc(e,t,n){sD(e,t,n);}function aD(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(Cp(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 Mp(e,t,n){if(n&8||e!==void 0)return e;Si$3();}function Np(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Je$3],i=de$3(void 0);try{return o?o.get(t,r,n&8):Za(t,r,n&8)}finally{de$3(i);}}return Mp(r,t,n)}function xp(e,t,n,r=0,o){if(e!==null){if(t[S$1]&2048&&!(r&2)){let s=dD(e,t,n,r,it$1);if(s!==it$1)return s}let i=Ap(e,t,n,r,it$1);if(i!==it$1)return i}return Np(t,n,r,o)}function Ap(e,t,n,r,o){let i=uD(n);if(typeof i=="function"){if(!Dc(t,e,r))return r&1?Mp(o,n,r):Np(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Si$3(n);else return s}finally{Ec();}}else if(typeof i=="number"){let s=null,a=_p(e,t),c=or$1,u=r&1?t[ae$1][se$1]:null;for((a===-1||r&4)&&(c=a===-1?Eu(e,t):t[a+8],c===or$1||!Bf(r,false)?a=-1:(s=t[E],a=ns$1(c),t=rs$1(c,t)));a!==-1;){let l=t[E];if(jf(i,a,l.data)){let d=cD(a,t,n,s,r,u);if(d!==it$1)return d}c=t[a+8],c!==or$1&&Bf(r,t[E].data[a+8]===u)&&jf(i,a,t)?(s=l,a=ns$1(c),t=rs$1(c,t)):a=-1;}}return o}function cD(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?Tt$3(a)&&Bc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ji$2(a,s,n,c,u);return l!==null?io$1(t,s,l,a,o):it$1}function Ji$2(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&rt$1(f)&&f.type===n)return c}return null}function io$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Tn$3){let a=i;if(a.resolving)throw qa();let c=os$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?de$3(a.injectImpl):null;Dc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kv(n,s[n],t);}finally{d!==null&&de$3(d),os$1(c),a.resolving=false,Ec();}}return i}function uD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gn$1)?e[gn$1]:void 0;return typeof t=="number"?t>=0?t&bp:lD:t}function jf(e,t,n){let r=1<<e;return !!(n[t+(e>>Sp)]&r)}function Bf(e,t){return !(e&2)&&!(e&1&&t)}var Zt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return xp(this._tNode,this._lView,t,fn$1(r),n)}};function lD(){return new Zt(X$1(),v$1())}function Rp(e){return po$1(()=>{let t=e.prototype.constructor,n=t[kr]||Hc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[kr]||Hc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Hc(e){return Va(e)?()=>{let t=Hc(re$3(e));return t&&t()}:Bt$1(e)}function dD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$1]&2048&&!Kn$2(s);){let a=Ap(i,s,n,r|2,it$1);if(a!==it$1)return a;let c=i.parent;if(!c){let u=s[tc];if(u){let l=u.get(n,it$1,r&-5);if(l!==it$1)return l}c=Op(s),s=s[Ut$2];}i=c;}return o}function Op(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se$1]:null}function Iu(e){return aD(X$1(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function fD(){return dr$1(X$1(),v$1())}function dr$1(e,t){return new xn$3(Ae$3(e,t))}var xn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=fD}return e})();function kp(e){return e instanceof xn$3?e.nativeElement:e}function pD(){return this._results[Symbol.iterator]()}var ss$1=class ss{_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 ue$2}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Wd(t);(this._changesDetected=!Gd(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]=pD};function Fp(e){return (e.flags&128)===128}var wu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(wu||{}),Pp=new Map,hD=0;function gD(){return hD++}function mD(e){Pp.set(e[tt$1],e);}function Uc(e){Pp.delete(e[tt$1]);}var Vf="__ngContext__";function sr$1(e,t){Ct$2(t)?(e[Vf]=t[tt$1],mD(t)):e[Vf]=t;}function Lp(e){return Bp(e[Yn$3])}function jp(e){return Bp(e[Me$4])}function Bp(e){for(;e!==null&&!Ne$4(e);)e=e[Me$4];return e}var $c;function Cu(e){$c=e;}function Tu(){if($c!==void 0)return $c;if(typeof document<"u")return document;throw new m$1(210,false)}var Vp="r";var Hp="di";var yD=new w(""),Up=false,$p=new w("",{factory:()=>Up});var zp=new w("");var Hf=new WeakMap;function vD(e,t){if(e==null||typeof e!="object")return;let n=Hf.get(e);n||(n=new WeakSet,Hf.set(e,n)),n.add(t);}function Is(e){return (e.flags&32)===32}var ID=()=>null;function Gp(e,t,n=false){return ID()}function Wp(e,t){let n=e.contentQueries;if(n!==null){let r=I$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];qr(i),a.contentQueries(2,t[s],s);}}}finally{I$1(r);}}}function zc(e,t,n){qr(0);let r=I$1(null);try{t(e,n);}finally{I$1(r);}}function bu(e,t,n){if(rc(t)){let r=I$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{I$1(r);}}}var $e$3=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})($e$3||{});var qi$2;function wD(){if(qi$2===void 0&&(qi$2=null,_e$3.trustedTypes))try{qi$2=_e$3.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return qi$2}function ws$1(e){return wD()?.createHTML(e)||e}var Zi$2;function qp(){if(Zi$2===void 0&&(Zi$2=null,_e$3.trustedTypes))try{Zi$2=_e$3.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Zi$2}function Uf(e){return qp()?.createHTML(e)||e}function $f(e){return qp()?.createScriptURL(e)||e}var bt$3=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ii$1})`}},Gc=class extends bt$3{getTypeName(){return "HTML"}},Wc=class extends bt$3{getTypeName(){return "Style"}},qc=class extends bt$3{getTypeName(){return "Script"}},Zc=class extends bt$3{getTypeName(){return "URL"}},Yc=class extends bt$3{getTypeName(){return "ResourceURL"}};function Te$1(e){return e instanceof bt$3?e.changingThisBreaksApplicationSecurity:e}function at$2(e,t){let n=Zp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ii$1})`)}return n===t}function Zp(e){return e instanceof bt$3&&e.getTypeName()||null}function Su(e){return new Gc(e)}function _u(e){return new Wc(e)}function Mu(e){return new qc(e)}function Nu(e){return new Zc(e)}function xu(e){return new Yc(e)}function CD(e){let t=new Kc(e);return TD()?new Qc(t):t}var Qc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ws$1(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},Kc=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=ws$1(t),n}};function TD(){try{return !!new window.DOMParser().parseFromString(ws$1(""),"text/html")}catch(e){return false}}var bD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(bD)?e:"unsafe:"+e}function St$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Yp=St$2("area,br,col,hr,img,wbr"),Qp=St$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kp=St$2("rp,rt"),SD=go$2(Kp,Qp),_D=go$2(Qp,St$2("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")),MD=go$2(Kp,St$2("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")),zf=go$2(Yp,_D,MD,SD),Xp=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ND=St$2("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"),xD=St$2("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"),AD=go$2(Xp,ND,xD),RD=St$2("script,style,template"),Xc=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=FD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Gf(t).toLowerCase();if(!zf.hasOwnProperty(n))return this.sanitizedSomething=true,!RD.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(!AD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Xp[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',Wf(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Gf(t).toLowerCase();zf.hasOwnProperty(n)&&!Yp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Wf(t));}};function OD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Jp(t);return t}function FD(e){let t=e.firstChild;if(t&&OD(e,t))throw Jp(t);return t}function Gf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Jp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LD=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&amp;").replace(PD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(LD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yi$2;function Cs$1(e,t){let n=null;try{Yi$2=Yi$2||CD(e);let r=t?String(t):"";n=Yi$2.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=Yi$2.getInertBodyElement(r);}while(r!==i);let a=new Xc().sanitizeChildren(qf(n)||n);return ws$1(a)}finally{if(n){let r=qf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function qf(e){return "content"in e&&jD(e)?e.content:null}function jD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var BD=/^>|^->|<!--|-->|--!>|<!-$/g,VD=/(<|>)/g,HD="\u200B$1\u200B";function UD(e){return e.replace(BD,t=>t.replace(VD,HD))}function $D(e,t){return e.createText(t)}function zD(e,t,n){e.setValue(t,n);}function GD(e,t){return e.createComment(UD(t))}function eh(e,t,n){return e.createElement(t,n)}function as$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function th(e,t,n){e.appendChild(t,n);}function Zf(e,t,n,r,o){r!==null?as$1(e,t,n,r,o):th(e,t,n);}function nh(e,t,n,r){e.removeChild(null,t,n,r);}function WD(e,t,n){e.setAttribute(t,"style",n);}function qD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function rh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tD(e,t,r),o!==null&&qD(e,t,o),i!==null&&WD(e,t,i);}var Oe$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})(Oe$1||{});function ZD(e){let t=Au();return t?Uf(t.sanitize(Oe$1.HTML,e)||""):at$2(e,"HTML")?Uf(Te$1(e)):Cs$1(Tu(),Z$2(e))}function oh(e){let t=Au();return t?t.sanitize(Oe$1.URL,e)||"":at$2(e,"URL")?Te$1(e):ho$1(Z$2(e))}function ih(e){let t=Au();if(t)return $f(t.sanitize(Oe$1.RESOURCE_URL,e)||"");if(at$2(e,"ResourceURL"))return $f(Te$1(e));throw new m$1(904,false)}var YD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function QD(e,t){return YD[e.toLowerCase()]?.[t.toLowerCase()]===true?ih:oh}function KD(e,t,n){return QD(t,n)(e)}function Au(){let e=v$1();return e&&e[Ve$3].sanitizer}function XD(e){return e instanceof Function?e():e}function JD(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 sh="ng-template";function eE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&JD(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Ru(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 Ru(e){return e.type===4&&e.value!==sh}function tE(e,t,n){let r=e.type===4&&!n?sh:e.value;return t===r}function nE(e,t,n){let r=4,o=e.attrs,i=o!==null?iE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!He$2(r)&&!He$2(c))return false;if(s&&He$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!tE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!eE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=rE(c,o,Ru(e),n);if(l===-1){if(He$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(He$2(r))return false;s=true;}}}}return He$2(r)||s}function He$2(e){return (e&1)===0}function rE(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 sE(t,e)}function ah(e,t,n=false){for(let r=0;r<t.length;r++)if(nE(e,t[r],n))return true;return false}function oE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function iE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Cp(n))return t}return e.length}function sE(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 aE(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 Yf(e,t){return e?":not("+t.trim()+")":t}function cE(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!==""&&!He$2(s)&&(t+=Yf(i,o),o=""),r=s,i=i||!He$2(r);n++;}return o!==""&&(t+=Yf(i,o)),t}function uE(e){return e.map(cE).join(",")}function lE(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(!He$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$3={},st$2=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$2||{}),dE;function Ou(e,t){return dE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Jc=new WeakMap;function ch(e){return e?e[Ut$2]??e:null}var no$1=new WeakSet;function fE(e,t,n){let r=Jc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ch(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),no$1.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 pE(e,t,n){let r=ch(n),o=Jc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Jc.set(e,[{el:t,declarationView:r}]);}var Yt$1=new Set,Ts$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ts$1||{}),ct$2=new w(""),Qf=new Set;function ut$2(e){Qf.has(e)||(Qf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var bs$2=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),ku=[0,1,2,3],Fu=(()=>{class e{ngZone=g$1(G$4);scheduler=g$1(je$4);errorHandler=g$1(Se$5,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$1(ct$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$5(O$3.AfterRenderHooksStart),this.executing=true;for(let r of ku)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&&F$5(O$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[vn$2]??=[]).push(n),In$3(r),r[S$1]|=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(Ts$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),so$1=class so{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[vn$2];t&&(this.view[vn$2]=t.filter(n=>n!==this));}};function hE(e,t){let n=t?.injector??g$1(pe$3);return ut$2("NgAfterNextRender"),mE(e,n,t,true)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(e,t,n,r){let o=t.get(bs$2);o.impl??=t.get(Fu);let i=t.get(ct$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ie$3):null,a=t.get(tr$1,null,{optional:true}),c=new so$1(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Pu=new w("",{factory:()=>{let e=g$1(fe$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function uh(e,t,n){let r=e.get(Pu);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 yE(e,t){let n=e.get(Pu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function vE(e,t){let n=e.get(Pu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function DE(e,t){for(let[n,r]of t)uh(e,r.animateFns);}function Kf(e,t,n,r){let o=e?.[nt$1]?.enter;t!==null&&o&&o.has(n.index)&&DE(r,o);}function Xf(e,t,n,r){try{n.get(Ur);}catch(s){return r(false)}let o=e?.[nt$1];o?.enter?.has(t.index)&&yE(n,o.enter.get(t.index).animateFns);let i=EE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ss$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Yt$1.add(e[tt$1]),uh(n,()=>IE(e,t,o||void 0,i,r),o||void 0);}function EE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function IE(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&&Ss$1(e,t,i),i.length>0){let s=n||e?.[nt$1];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),CE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Yt$1.delete(e[tt$1]),o(true);});}else e&&Yt$1.delete(e[tt$1]),o(false);}function Ss$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ne$4(o))for(let i=W$4;i<o.length;i++){let s=o[i];s[E].type===2&&wE(s,n);}}let r=t.child;for(;r;)Ss$1(e,r,n),r=r.next;}function wE(e,t){let n=e[nt$1];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E].firstChild;for(;r;)Ss$1(e,r,t),r=r.next;}function CE(e,t,n){t.then(()=>{e[nt$1]?.running===t&&(e[nt$1].running=void 0,Yt$1.delete(e[tt$1])),n(true);});}function rr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$4(o)?c=o:Ct$2(o)&&(u=true,o=o[Be$4]);let l=xe$4(o);e===0&&r!==null?(Kf(a,r,i,n),s==null?th(t,r,l):as$1(t,r,l,s||null,true)):e===1&&r!==null?(Kf(a,r,i,n),as$1(t,r,l,s||null,true),fE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&pE(i,l,a),no$1.delete(l),Xf(a,i,n,d=>{if(no$1.has(l)){no$1.delete(l);return}nh(t,l,u,d);})):e===3&&(no$1.delete(l),Xf(a,i,n,()=>{t.destroyNode(l);})),c!=null&&OE(t,e,n,c,i,r,s);}}function TE(e,t){lh(e,t),t[Be$4]=null,t[se$1]=null;}function bE(e,t,n,r,o,i){r[Be$4]=o,r[se$1]=t,Ms$1(e,r,n,1,o,i);}function lh(e,t){t[Ve$3].changeDetectionScheduler?.notify(9),Ms$1(e,t,t[L$3],2,null,null);}function SE(e){let t=e[Yn$3];if(!t)return Nc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Yn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$4]&&t!==e;)Ct$2(t)&&Nc(t[E],t),t=t[te$3];t===null&&(t=e),Ct$2(t)&&Nc(t[E],t),n=t&&t[Me$4];}t=n;}}function Lu(e,t){let n=e[Dn$3],r=n.indexOf(t);n.splice(r,1);}function _s$1(e,t){if(En$3(t))return;let n=t[L$3];n.destroyNode&&Ms$1(e,t,n,3,null,null),SE(t);}function Nc(e,t){if(En$3(t))return;let n=I$1(null);try{t[S$1]&=-129,t[S$1]|=256,t[ve$3]&&Lt$2(t[ve$3]),ME(e,t),_E(e,t),t[E].type===1&&t[L$3].destroy();let r=t[$t$1];if(r!==null&&Ne$4(t[te$3])){r!==t[te$3]&&Lu(r,t);let o=t[et];o!==null&&o.detachView(e);}Uc(t);}finally{I$1(n);}}function _E(e,t){let n=e.cleanup,r=t[Zn$3];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[Zn$3]=null);let o=t[vt$2];if(o!==null){t[vt$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$1];if(i!==null){t[Vt$1]=null;for(let s of i)s.destroy();}}function ME(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 Tn$3)){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];F$5(O$3.LifecycleHookStart,a,c);try{c.call(a);}finally{F$5(O$3.LifecycleHookEnd,a,c);}}else {F$5(O$3.LifecycleHookStart,o,i);try{i.call(o);}finally{F$5(O$3.LifecycleHookEnd,o,i);}}}}}function dh(e,t,n){return NE(e,t.parent,n)}function NE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Be$4];if(Tt$3(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===$e$3.None||o===$e$3.Emulated)return null}return Ae$3(r,n)}function fh(e,t,n){return AE(e,t,n)}function xE(e,t,n){return e.type&40?Ae$3(e,n):null}var AE=xE;function ju(e,t,n,r){let o=dh(e,r,t),i=t[L$3],s=r.parent||t[se$1],a=fh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Zf(i,o,n[c],a,false);else Zf(i,o,n,a,false);}function ro$1(e,t){if(t!==null){let n=t.type;if(n&3)return Ae$3(t,e);if(n&4)return eu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ro$1(e,r);{let o=e[t.index];return Ne$4(o)?eu(-1,o):xe$4(o)}}else {if(n&128)return ro$1(e,t.next);if(n&32)return Ou(t,e)()||xe$4(e[t.index]);{let r=ph(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$3(e[ae$1]);return ro$1(o,r)}else return ro$1(e,t.next)}}}return null}function ph(e,t){if(t!==null){let r=e[ae$1][se$1],o=t.projection;return r.projection[o]}return null}function eu(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return ro$1(r,o)}return t[zt$1]}function Bu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Je$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&sr$1(xe$4(c),r),n.flags|=2),!Is(n))if(u&8)Bu(e,t,n.child,r,o,i,false),rr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Ou(n,r),d;for(;d=l();)rr$1(t,e,a,o,d,n,i,r);rr$1(t,e,a,o,c,n,i,r);}else u&16?hh(e,t,r,n,o,i):rr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Ms$1(e,t,n,r,o,i){Bu(n,r,e.firstChild,t,o,i,false);}function RE(e,t,n){let r=t[L$3],o=dh(e,n,t),i=n.parent||t[se$1],s=fh(i,n,t);hh(r,0,t,n,o,s);}function hh(e,t,n,r,o,i){let s=n[ae$1],c=s[se$1].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];rr$1(t,e,n[Je$3],o,l,r,i,n);}else {let u=c,l=s[te$3];Fp(r)&&(u.flags|=128),Bu(e,t,u,l,o,i,true);}}function OE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$4(r);a!==c&&rr$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];Ms$1(l[E],l,e,t,i,a);}}function kE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:st$2.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$2.Important),e.setStyle(n,r,o,i));}}function Vu(e,t,n,r,o,i,s,a,c,u,l){let d=H$3+r,p=d+o,f=FE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function FE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$3);return n}function PE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Vu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Be$4]=o,d[S$1]=r|4|128|8|64|1024,(u!==null||e&&e[S$1]&2048)&&(d[S$1]|=2048),ac(d),d[te$3]=d[Ut$2]=e,d[Y$3]=n,d[Ve$3]=s||e&&e[Ve$3],d[L$3]=a||e&&e[L$3],d[Je$3]=c||e&&e[Je$3]||null,d[se$1]=i,d[tt$1]=gD(),d[mn$1]=l,d[tc]=u,d[ae$1]=t.type==2?e[ae$1]:d,d}function LE(e,t,n){let r=Ae$3(t,e),o=PE(n),i=e[Ve$3].rendererFactory,s=Uu(e,Hu(e,o,null,gh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function gh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function mh(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 Uu(e,t){return e[Yn$3]?e[ec][Me$4]=t:e[Yn$3]=t,e[ec]=t,t}function jE(e=1){yh(j$4(),v$1(),Ee$3()+e);}function yh(e,t,n,r){if((t[S$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ki$2(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Xi$2(t,i,0,n);}Wt$1(n);}var Ns$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ns$1||{});function bn$3(e,t,n,r){let o=I$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ns$1.SignalBased)!==0&&(c=t[i][q$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):vp(t,c,i,r);}finally{I$1(o);}}function vh(e,t,n,r,o){let i=Ee$3(),s=r&2;try{Wt$1(-1),s&&t.length>H$3&&yh(e,t,H$3,!1);let a=s?O$3.TemplateUpdateStart:O$3.TemplateCreateStart;F$5(a,o,n),n(r,o);}finally{Wt$1(i);let a=s?O$3.TemplateUpdateEnd:O$3.TemplateCreateEnd;F$5(a,o,n);}}function xs(e,t,n){zE(e,t,n),(n.flags&64)===64&&GE(e,t,n);}function mo$1(e,t,n=Ae$3){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 BE(e,t,n,r){let i=r.get($p,Up)||n===$e$3.ShadowDom||n===$e$3.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function UE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dh(e,t,n,r,o,i){let s=t[E];if(Wu(e,s,t,n,r)){Tt$3(e)&&$E(t,e.index);return}e.type&3&&(n=UE(n)),Eh(e,t,n,r,o,i);}function Eh(e,t,n,r,o,i){if(e.type&3){let s=Ae$3(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function $E(e,t){let n=Re$3(t,e);n[S$1]&16||(n[S$1]|=64);}function zE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&LE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||is$1(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=io$1(t,e,s,n);if(sr$1(c,t),i!==null&&YE(t,s-r,c,a,n,i),rt$1(a)){let u=Re$3(n.index,t);u[Y$3]=io$1(t,e,s,n);}}}function GE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=vf();try{Wt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Li$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&WE(c,u);}}finally{Wt$1(-1),Li$2(s);}}function WE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function $u(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ah(t,i.selectors,false)&&(r??=[],rt$1(i)?r.unshift(i):r.push(i));}return r}function qE(e,t,n,r,o,i){let s=Ae$3(e,t);ZE(t[L$3],s,i,e.value,n,r,o);}function ZE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Z$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function YE(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];bn$3(r,n,c,u);}}function zu(e,t,n,r,o){let i=H$3+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,Xn$3(e,true);let c=e.type===2;return c?(rh(t[L$3],a,e),(uf()===0||Qn$3(e))&&sr$1(a,t),lf()):sr$1(a,t),Hi$2()&&(!c||!Is(e))&&ju(s,t,a,e),e}function Gu(e){let t=e;return mc()?yc():(t=t.parent,Xn$3(t,false)),t}function QE(e,t){let n=e[Je$3];if(!n)return;let r;try{r=n.get(ot$1,null);}catch(o){r=null;}r?.(t);}function Wu(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];bn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];bn$3(l,u,r,o),a=true;}return a}function KE(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];bn$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(bn$3(r,n[s],o,i),u=true),u}function XE(e,t){let n=Re$3(t,e),r=n[E];JE(r,n);let o=n[Be$4];o!==null&&n[mn$1]===null&&(n[mn$1]=Gp(o,n[Je$3])),F$5(O$3.ComponentStart);try{qu(r,n,n[Y$3]);}finally{F$5(O$3.ComponentEnd,n[Y$3]);}}function JE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function qu(e,t,n){Bi$2(t);try{let r=e.viewQuery;r!==null&&zc(1,r,n);let o=e.template;o!==null&&vh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[et]?.finishViewCreation(e),e.staticContentQueries&&Wp(e,t),e.staticViewQueries&&zc(2,e.viewQuery,n);let i=e.components;i!==null&&eI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$1]&=-5,Vi$2();}}function eI(e,t){for(let n=0;n<t.length;n++)XE(e,t[n]);}function yo$1(e,t,n,r){let o=I$1(null);try{let i=t.tView,a=e[S$1]&4096?4096:16,c=Hu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[$t$1]=u;let l=e[et];return l!==null&&(c[et]=l.createEmbeddedView(i)),qu(i,c,n),c}finally{I$1(o);}}function ar$1(e,t){return !t||t.firstChild===null||Fp(e)}function ao$1(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(xe$4(i)),Ne$4(i)&&Ih(i,r);let s=n.type;if(s&8)ao$1(e,t,n.child,r);else if(s&32){let a=Ou(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=ph(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$3(t[ae$1]);ao$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ih(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&ao$1(r[E],r,o,t);}e[zt$1]!==e[Be$4]&&t.push(e[zt$1]);}function wh(e){if(e[vn$2]!==null){for(let t of e[vn$2])t.impl.addSequence(t);e[vn$2].length=0;}}var Ch=[];function tI(e){return e[ve$3]??nI(e)}function nI(e){let t=Ch.pop()??Object.create(oI);return t.lView=e,t}function rI(e){e.lView[ve$3]!==e&&(e.lView=null,Ch.push(e));}var oI=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{In$3(e.lView);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function iI(e){let t=e[ve$3]??Object.create(sI);return t.lView=e,t}var sI=x$2(w$1({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$3(e.lView);for(;t&&!Th(t[E]);)t=Dt$3(t);t&&cc(t);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function Th(e){return e.type!==2}function bh(e){if(e[Vt$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$1]&8192);}}var aI=100;function Sh(e,t=0){let r=e[Ve$3].rendererFactory;r.begin?.();try{cI(e,t);}finally{r.end?.();}}function cI(e,t){let n=vc();try{Fr(!0),tu(e,t);let r=0;for(;Gr(e);){if(r===aI)throw new m$1(103,!1);r++,tu(e,1);}}finally{Fr(n);}}function uI(e,t,n,r){if(En$3(t))return;let o=t[S$1],i=false,s=false;Bi$2(t);let a=true,c=null,u=null;(Th(e)?(u=tI(t),c=mt$3(u)):fi$3()===null?(a=false,u=iI(t),c=mt$3(u)):t[ve$3]&&(Lt$2(t[ve$3]),t[ve$3]=null));try{ac(t),gf(e.bindingStartIndex),n!==null&&vh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ki$2(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Xi$2(t,f,0,null),_c(t,0);}if(s||lI(t),bh(t),_h(t,0),e.contentQueries!==null&&Wp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ki$2(t,f);}else {let f=e.contentHooks;f!==null&&Xi$2(t,f,1),_c(t,1);}fI(e,t);let d=e.components;d!==null&&Nh(t,d,0);let p=e.viewQuery;if(p!==null&&zc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ki$2(t,f);}else {let f=e.viewHooks;f!==null&&Xi$2(t,f,2),_c(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xi$3]){for(let f of t[xi$3])f();t[xi$3]=null;}i||(wh(t),t[S$1]&=-73);}catch(l){throw In$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&rI(u)),Vi$2();}}function _h(e,t){for(let n=Lp(e);n!==null;n=jp(n))for(let r=W$4;r<n.length;r++){let o=n[r];Mh(o,t);}}function lI(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[S$1]&2))continue;let n=t[Dn$3];for(let r=0;r<n.length;r++){let o=n[r];cc(o);}}}function dI(e,t,n){F$5(O$3.ComponentStart);let r=Re$3(t,e);try{Mh(r,n);}finally{F$5(O$3.ComponentEnd,r[Y$3]);}}function Mh(e,t){Oi$2(e)&&tu(e,t);}function tu(e,t){let r=e[E],o=e[S$1],i=e[ve$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Vn$3(i)),s||=false,i&&(i.dirty=false),e[S$1]&=-9217,s)uI(r,e,r.template,e[Y$3]);else if(o&8192){let a=I$1(null);try{bh(e),_h(e,1);let c=r.components;c!==null&&Nh(e,c,1),wh(e);}finally{I$1(a);}}}function Nh(e,t,n){for(let r=0;r<t.length;r++)dI(e,t[r],n);}function fI(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)Wt$1(~o);else {let i=o,s=n[++r],a=n[++r];yf(s,i);let c=t[i];F$5(O$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$5(O$3.HostBindingsUpdateEnd,c);}}}}finally{Wt$1(-1);}}function Zu(e,t){let n=vc()?64:1088;for(e[Ve$3].changeDetectionScheduler?.notify(t);e;){e[S$1]|=n;let r=Dt$3(e);if(Kn$2(e)&&!r)return e;e=r;}return null}function xh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ah(e,t){let n=W$4+t;if(n<e.length)return e[n]}function vo$1(e,t,n,r=true){let o=t[E];if(pI(o,t,e,n),r){let s=eu(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&bE(o,e[se$1],a,t,c,s);}let i=t[mn$1];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Rh(e,t){let n=co$1(e,t);return n!==void 0&&_s$1(n[E],n),n}function co$1(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n];if(r){let o=r[$t$1];o!==null&&o!==e&&Lu(o,r),t>0&&(e[n-1][Me$4]=r[Me$4]);let i=Hr(e,W$4+t);TE(r[E],r);let s=i[et];s!==null&&s.detachView(i[E]),r[te$3]=null,r[Me$4]=null,r[S$1]&=-129;}return r}function pI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$4]=t),r<i-W$4?(t[Me$4]=n[o],Ya(n,W$4+r,t)):(n.push(t),t[Me$4]=null),t[te$3]=n;let s=t[$t$1];s!==null&&n!==s&&Oh(s,t);let a=t[et];a!==null&&a.insertView(e),ki$3(t),t[S$1]|=128;}function Oh(e,t){let n=e[Dn$3],r=t[te$3];if(Ct$2(r))e[S$1]|=2;else {let o=r[te$3][ae$1];t[ae$1]!==o&&(e[S$1]|=2);}n===null?e[Dn$3]=[t]:n.push(t);}var Qt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return ao$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Y$3]}set context(t){this._lView[Y$3]=t;}get destroyed(){return En$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te$3];if(Ne$4(t)){let n=t[zr],r=n?n.indexOf(this):-1;r>-1&&(co$1(t,r),Hr(n,r));}this._attachedToViewContainer=false;}_s$1(this._lView[E],this._lView);}onDestroy(t){Fi$2(this._lView,t);}markForCheck(){Zu(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$1]&=-129;}reattach(){ki$3(this._lView),this._lView[S$1]|=128;}detectChanges(){this._lView[S$1]|=1024,Sh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Kn$2(this._lView),n=this._lView[$t$1];n!==null&&!t&&Lu(n,this._lView),lh(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$1(902,false);this._appRef=t;let n=Kn$2(this._lView),r=this._lView[$t$1];r!==null&&!n&&Oh(r,this._lView),ki$3(this._lView);}};var cr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=hI;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=yo$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt(i)}}return e})();function hI(){return As$1(X$1(),v$1())}function As$1(e,t){return e.type&4?new cr$1(t,e,dr$1(e,t)):null}function fr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=gI(e,t,n,r,o),mf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=pf();i.injectorIndex=s===null?-1:s.injectorIndex;}return Xn$3(i,true),i}function gI(e,t,n,r,o){let i=gc(),s=mc(),a=s?i:i&&i.parent,c=e.data[t]=yI(e,a,n,t,r,o);return mI(e,c,i,s),c}function mI(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 yI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return fc()&&(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:Ic(),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 vI(e){let t=e[nc]??[],r=e[te$3][L$3],o=[];for(let i of t)i.data[Hp]!==void 0?o.push(i):DI(i,r);e[nc]=o;}function DI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Vp];for(;n<o;){let i=r.nextSibling;nh(t,r,false),r=i,n++;}}}var EI=()=>null,II=()=>null;function cs$1(e,t){return EI()}function kh(e,t,n){return II()}var Fh=class{},Sn$3=class Sn{},Yu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>wI()}return e})();function wI(){let e=v$1(),t=X$1(),n=Re$3(t.index,e);return (Ct$2(n)?n:e)[L$3]}var Ph=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>null})}return e})();function Lh(e){return e.debugInfo?.className||e.type.name||null}var es$1={},us$1=class us{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,es$1,r);return o!==es$1||n===es$1?o:this.parentInjector.get(t,n,r)}};function Qu(e,t,n){return e[t]=n}function CI(e,t){return e[t]}function we$2(e,t,n){if(n===Q$3)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function uo$1(e,t,n,r){let o=we$2(e,t,n);return we$2(e,t+1,r)||o}function Ku(e,t,n,r,o,i){let s=uo$1(e,t,n,r);return uo$1(e,t+2,o,i)||s}function Cn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&vD(o,i);let s=Tt$3(e)?Re$3(e.index,t):t;Zu(s,5);let a=t[Y$3],c=ep(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=ep(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function ep(e,t,n,r){let o=I$1(null);try{return F$5(O$3.OutputStart,t,n),n(r)!==!1}catch(i){return QE(e,i),false}finally{F$5(O$3.OutputEnd,t,n),I$1(o);}}function Xu(e,t,n,r,o,i,s,a){let c=Qn$3(e),u=false,l=null;if(!r&&c&&(l=bI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Ae$3(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!TI(i)){let h=r?y=>r(xe$4(y[e.index])):e.index;jh(h,t,n,i,a,f,false);}}return u}function TI(e){return e.startsWith("animation")||e.startsWith("transition")}function bI(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[Zn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function jh(e,t,n,r,o,i,s){let a=t.firstCreatePass?lc(t):null,c=uc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function tp(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,ls$1(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ls$1(e,t,i,r,r,o)),c}function ls$1(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);jh(e.index,a,t,o,i,d,true);}function SI(){_I();}function _I(){let e=v$1(),t=j$4(),n=X$1();if(t.firstCreatePass&&xI(t,n),n.controlDirectiveIndex===-1)return;ut$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ds$1(e,t,n));}function MI(){NI();}function NI(){let e=v$1(),t=j$4(),n=er$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ds$1(e,t,n));}var ds$1=class ds{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 Ae$3(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,t,Cn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,n,Cn$3(this.tNode,this.lView,t));}listenToDom(t,n){Xu(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,Cn$3(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];bn$3(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];bn$3(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";KE(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=np(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=np(i.directive);s!==null&&r.push(...s);}}}return n}};function np(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function xI(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}AI(e,t);}function AI(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(rp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(rp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function rp(e,t){return RI(e,t)&&OI(e,t+"Change")}function RI(e,t){return t in e.inputs}function OI(e,t){return t in e.outputs}var nu=Symbol("BINDING");var An$3=new w("");function fs$1(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=wi$2(o,a);else if(i==2){let c=a,u=t[++s];r=wi$2(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ze$3(e,t=0){let n=v$1();if(n===null)return b$1(e,t);let r=X$1();return xp(r,n,re$3(e),t)}function kI(){let e="invalid";throw new Error(e)}function Bh(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}LI(e,t,n,a,i,c,u);}i!==null&&r!==null&&FI(n,r,i);}function FI(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 m$1(-301,false);r.push(t[o],i);}}function PI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function LI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&rt$1(f)&&(c=f,PI(e,n,p)),Vc(is$1(n,t),e,f.type);}$I(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=mh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ir$1(n.mergedAttrs,f.hostAttrs),BI(e,n,t,d,f),UI(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}jI(e,n,i);}function jI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))op(0,t,o,r),op(1,t,o,r),sp(t,r,false);else {let i=n.get(o);ip(0,t,i,r),ip(1,t,i,r),sp(t,r,true);}}}function op(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),Vh(t,i);}}function ip(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),Vh(t,s);}}function Vh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function sp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ru(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 BI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new Tn$3(i,rt$1(o),ze$3,null);e.blueprint[r]=s,n[r]=s,VI(e,t,r,mh(e,n,o.hostVars,Q$3),o);}function VI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HI(s)!=a&&s.push(a),s.push(n,r,i);}}function HI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function UI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;rt$1(t)&&(n[""]=e);}}function $I(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Ju(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=De$3(u,s),d=fr$1(c,e,n,r,l);return Bh(c,t,d,De$3(u,a),o),d.mergedAttrs=ir$1(d.mergedAttrs,d.attrs),d.attrs!==null&&fs$1(d,d.attrs,false),d.mergedAttrs!==null&&fs$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function el(e,t){Ip(e,t),rc(t)&&e.queries.elementEnd(t);}function zI(e,t,n,r,o,i){let s=t.consts,a=De$3(s,o),c=fr$1(t,e,n,r,a);if(c.mergedAttrs=ir$1(c.mergedAttrs,c.attrs),i!=null){let u=De$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&fs$1(c,c.attrs,false),c.mergedAttrs!==null&&fs$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Hh=typeof ShadowRoot<"u",GI=typeof Document<"u";function WI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ns$1.SignalBased)!==0};return o&&(i.transform=o),i})}function qI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ZI(e,t,n){let r=t instanceof fe$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new us$1(n,r):n}function YI(e){let t=e.get(Sn$3,null);if(t===null)throw new m$1(407,false);let n=e.get(Ph,null),r=e.get(je$4,null),o=e.get(ct$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function QI(e,t){let n=Uh(e);return eh(t,n,n==="svg"?oc:n==="math"?nf:null)}function KI(e){if(e?.toLowerCase()==="script")throw new m$1(905,false)}function Uh(e){return (e.selectors[0][0]||"div").toLowerCase()}var _n$2=class _n{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=WI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=qI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$5(O$3.DynamicComponentStart);let a=I$1(null);try{let c=this.componentDef,u=ZI(c,o||this.ngModule,t),l=YI(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Lh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=XI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?BE(u,o,a.encapsulation,n):QI(a,u);KI(l?.tagName);let d=n.get(An$3,null),p=JI(l,()=>n.get(U$5,null)??Tu());d&&d.addHost(p);let f=s?.some(ap)||i?.some(D=>typeof D!="function"&&D.bindings.some(ap)),h=Hu(null,c,null,512|gh(a),null,null,t,u,n,null,Gp(l,n,true));d&&Hh&&p instanceof ShadowRoot&&Fi$2(h,()=>{d.removeHost(p);}),h[H$3]=l,Bi$2(h);let y=null;try{let D=Ju(H$3,h,2,"#host",()=>c.directiveRegistry,!0,0);rh(u,l,D),sr$1(l,h),xs(c,h,D),bu(c,D,h),el(c,D),r!==void 0&&tw(D,this.ngContentSelectors,r),y=Re$3(D.index,h),h[Y$3]=y[Y$3],qu(c,h,null);}catch(D){throw y!==null&&Uc(y),Uc(h),D}finally{F$5(O$3.DynamicComponentEnd),Vi$2();}return new ps$1(this.componentType,h,!!f)}};function XI(e,t,n,r){let o=e?["ng-version","22.0.8"]:lE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[nu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[nu].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Wa(d);c.push(p);}return Vu(0,null,ew(i,s),1,a,c,null,null,null,[o],null)}function JI(e,t){let n=e.getRootNode?.();return GI&&n instanceof Document?n.head:n&&Hh&&n instanceof ShadowRoot?n:t().head}function ew(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 ap(e){let t=e[nu].kind;return t==="input"||t==="twoWay"}var ps$1=class ps extends Fh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ai$2(n[E],H$3),this.location=dr$1(this._tNode,n),this.instance=Re$3(this._tNode.index,n)[Y$3],this.hostView=this.changeDetectorRef=new Qt(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;Wu(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Re$3(r.index,o);Zu(s,1);}get injector(){return new Zt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function tw(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 pr$1=(()=>{class e{static __NG_ELEMENT_ID__=nw}return e})();function nw(){let e=X$1();return $h(e,v$1())}var ru=class e extends pr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return dr$1(this._hostTNode,this._hostLView)}get injector(){return new Zt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Eu(this._hostTNode,this._hostLView);if(Tp(t)){let n=rs$1(t,this._hostLView),r=ns$1(t),o=n[E].data[r+8];return new Zt(o,n)}else return new Zt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=cp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=cs$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ar$1(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 _n$2(Et$3(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$4,null);_&&(i=_);}let p=Et$3(l.componentType??{}),f=cs$1(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,ar$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(of(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[te$3],u=new e(c,c[se$1],c[te$3]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),Ya(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=cp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);r&&(Hr(xc(this._lContainer),n),_s$1(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);return r&&Hr(xc(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function cp(e){return e[zr]}function xc(e){return e[zr]||(e[zr]=[])}function $h(e,t){let n,r=t[e.index];return Ne$4(r)?n=r:(n=xh(r,t,null,e),t[e.index]=n,Uu(t,n)),ow(n,t,e,r),new ru(n,e,t)}function rw(e,t){let n=e[L$3],r=n.createComment(""),o=Ae$3(t,e),i=n.parentNode(o);return as$1(n,i,r,n.nextSibling(o),false),r}var ow=aw;function aw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$4(r):o=rw(t,n),e[zt$1]=o;}var ou=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},iu=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++)nl(t,n).matches!==null&&this.queries[n].setDirty();}},hs$1=class hs{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=fw(t):this.predicate=t;}},su=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);}},au=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,cw(n,i)),this.matchTNodeWithReadOption(t,n,Ji$2(n,t,i,false,false));}else r===cr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ji$2(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===xn$3||o===pr$1||o===cr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Ji$2(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 cw(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 uw(e,t){return e.type&11?dr$1(e,t):e.type&4?As$1(e,t):null}function lw(e,t,n,r){return n===-1?uw(t,e):n===-2?dw(e,t,r):io$1(e,e[E],n,t)}function dw(e,t,n){if(n===xn$3)return dr$1(t,e);if(n===cr$1)return As$1(t,e);if(n===pr$1)return $h(t,e)}function zh(e,t,n,r){let o=t[et].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(lw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function cu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=zh(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=W$4;d<l.length;d++){let p=l[d];p[$t$1]===p[te$3]&&cu(p[E],p,u,r);}if(l[Dn$3]!==null){let d=l[Dn$3];for(let p=0;p<d.length;p++){let f=d[p];cu(f[E],f,u,r);}}}}}return r}function tl(e,t){return e[et].queries[t].queryList}function Gh(e,t,n){let r=new ss$1((n&4)===4);return cf(e,t,r,r.destroy),(t[et]??=new iu).queries.push(new ou(r))-1}function Wh(e,t,n){let r=j$4();return r.firstCreatePass&&(Zh(r,new hs$1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Gh(r,v$1(),t)}function qh(e,t,n,r){let o=j$4();if(o.firstCreatePass){let i=X$1();Zh(o,new hs$1(t,n,r),i.index),pw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Gh(o,v$1(),n)}function fw(e){return e.split(",").map(t=>t.trim())}function Zh(e,t,n){e.queries===null&&(e.queries=new su),e.queries.track(new au(t,n));}function pw(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 nl(e,t){return e.queries.getByIndex(t)}function Yh(e,t){let n=e[E],r=nl(n,t);return r.crossesNgTemplate?cu(n,e,t,[]):zh(n,e,r,t)}function rl(e,t,n){let r,o=Ar$1(()=>{r._dirtyCounter();let i=hw(r,e);if(t&&i===void 0)throw new m$1(-951,false);return i});return r=o[q$1],r._dirtyCounter=Ui$2(0),r._flatValue=void 0,o}function ol(e){return rl(true,false)}function il(e){return rl(true,true)}function Qh(e){return rl(false,false)}function Kh(e,t){let n=e[q$1];n._lView=v$1(),n._queryIndex=t,n._queryList=tl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function hw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$1]&4)return t?void 0:ie$2;let o=tl(n,r),i=Yh(n,r);return o.reset(i,kp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Rs$1(e){return !!e&&typeof e.then=="function"}function sl(e){return !!e&&typeof e.subscribe=="function"}var Mn$3=class Mn{},Xh=class{};var gs$1=class gs extends Mn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Vd(t);this._bootstrapComponents=XD(i.bootstrap),this._r3Injector=wc(t,n,[{provide:Mn$3,useValue:this},...r],jr(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);}},ms$1=class ms extends Xh{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new gs$1(this.moduleType,t,[])}};var lo$1=class lo extends Mn$3{injector;instance=null;constructor(t){super();let n=new hn$1([...t.providers,{provide:Mn$3,useValue:this}],t.parent||Wn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Jh(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var gw=(()=>{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=Ka(false,n.type),o=r.length>0?Jh([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=x$1({token:e,providedIn:"environment",factory:()=>new e(b$1(fe$4))})}return e})();function mw(e){return po$1(()=>{let t=eg(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!==wu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(gw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$3.Emulated,styles:e.styles||ie$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),tg(n);let r=e.dependencies;return n.directiveDefs=up(r,yw),n.pipeDefs=up(r,Hd),n.id=Ew(n),n})}function yw(e){return Et$3(e)||Wa(e)}function Os$1(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$2,declarations:e.declarations||ie$2,imports:e.imports||ie$2,exports:e.exports||ie$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vw(e,t){if(e==null)return Ht$1;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=Ns$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Dw(e){if(e==null)return Ht$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function al(e){return po$1(()=>{let t=eg(e);return tg(t),t})}function hr$1(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 eg(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||Ht$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ie$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:vw(e.inputs,t),outputs:Dw(e.outputs),debugInfo:null}}function tg(e){e.features?.forEach(t=>t(e));}function up(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 Ew(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 cl=new w("");function Iw(e){return wt$2([{provide:cl,multi:true,useValue:e}])}var ul=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g$1(cl,{optional:true})??[];injector=g$1(pe$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=qn$3(this.injector,o);if(Rs$1(i))n.push(i);else if(sl(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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function ww(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Cw(e){return Object.getPrototypeOf(e.prototype).constructor}function ng(e){let t=Cw(e.type),n=true,r=[e];for(;t;){let o;if(rt$1(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$1(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Ac(e.inputs),s.declaredInputs=Ac(e.declaredInputs),s.outputs=Ac(e.outputs);let a=o.hostBindings;a&&Mw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Sw(e,c),u&&_w(e,u),Tw(e,o),Bd(e.outputs,o.outputs),rt$1(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===ng&&(n=false);}}t=Object.getPrototypeOf(t);}bw(r);}function Tw(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 bw(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=ir$1(o.hostAttrs,n=ir$1(n,o.hostAttrs));}}function Ac(e){return e===Ht$1?{}:e===ie$2?[]:e}function Sw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function _w(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Mw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function rg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ir$1(e.mergedAttrs,e.attrs);let l=e.tView=Vu(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),Xn$3(e,false);let c=xw(n,t);Hi$2()&&ju(n,t,c,e),sr$1(c,t);let u=xh(c,t,c,e);t[r+H$3]=u,Uu(t,u);}function Nw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$3,p;return t.firstCreatePass?(p=fr$1(t,d,4,s||null,a||null),Bh(t,e,p,De$3(t.consts,u),$u),Ip(t,p)):p=t.data[d],rg(p,e,t,n,r,o,i,c),Qn$3(p)&&xs(t,e,p),u!=null&&mo$1(e,p,l),p}function ur$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$3,p;if(t.firstCreatePass){if(p=fr$1(t,d,4,s||null,a||null),u!=null){let f=De$3(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return rg(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function og(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$3(u.consts,i);return Nw(c,u,e,t,n,r,o,l,void 0,s,a),og}function ig(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$3(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,void 0,s,a),ig}var xw=Aw;function Aw(e,t,n,r){return Zr(true),t[L$3].createComment("")}var sg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ll=new w("");var dl=new w("");function ag(){wa(()=>{let e="";throw new m$1(600,e)});}var Rw=10;var gr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$1(ot$1);afterRenderManager=g$1(bs$2);zonelessEnabled=g$1(nr$1);rootEffectScheduler=g$1(Gi$2);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$2;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$1(qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ne$2(n=>!n))}constructor(){g$1(ct$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$1(fe$4);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$3.NULL){return this._injector.get(G$4).run(()=>{if(F$5(O$3.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$1(405,_)}let a=Et$3(n),c=this._injector.get(Mn$3),u=new _n$2(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Ow(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(ll,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),oo$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),F$5(O$3.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$5(O$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ts$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$5(O$3.ChangeDetectionEnd),new m$1(101,false);let n=I$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I$1(n),this.afterTick.next(),F$5(O$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Sn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Rw;){F$5(O$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$5(O$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&&!Gr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Sh(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})=>Gr(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;oo$1(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(dl,[]).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),()=>oo$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$1(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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Ow(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function oo$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function cg(e,t,n,r){let o=v$1(),i=Gt();if(we$2(o,i,t)){j$4();let a=er$1();qE(a,o,e,t,n,r);}return cg}function kw(){return v$1()[ae$1][Y$3]}var uu=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 Rc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Fw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I$1(r);let u=t.length-1;for(I$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Rc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Rc(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),_=n(a,f),$=n(s,d);if(Object.is($,_)){let be=n(u,h);Object.is(be,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new ys$1,i??=dp(e,s,a,n),lu(e,o,s,$))e.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,e.detach(s)),a--;else {let be=e.create(s,t[s]);e.attach(s,be),s++,a++;}}for(;s<=u;)lp(e,o,n,s,t[s]),s++;}else if(t!=null){I$1(r);let u=t[Symbol.iterator]();I$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Rc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new ys$1,i??=dp(e,s,a,n);let h=n(s,p);if(lu(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)lp(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 lu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function lp(e,t,n,r,o){if(lu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function dp(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 ys$1=class ys{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 Pw(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$3(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,256,s,a),fl}function fl(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$3(u.consts,i);return ur$1(c,u,e,t,n,r,o,l,512,s,a),fl}function Lw(e,t){ut$2("NgControlFlow");let n=v$1(),r=Gt(),o=n[r]!==Q$3?n[r]:-1,i=o!==-1?vs$1(n,H$3+o):void 0,s=0;if(we$2(n,r,e)){let a=I$1(null);try{if(i!==void 0&&Rh(i,s),e!==-1){let c=H$3+e,u=vs$1(n,c),l=hu(n[E],c),d=kh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,ar$1(l,d));}}finally{I$1(a);}}else if(i!==void 0){let a=Ah(i,s);a!==void 0&&(a[Y$3]=t);}}var du=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-W$4}};function jw(e){return e}function Bw(e,t){return t}var fu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Vw(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$2("NgControlFlow");let f=v$1(),h=j$4(),y=c!==void 0,D=v$1(),_=a?s.bind(D[ae$1][Y$3]):s,$=new fu(y,_);D[H$3+e]=$,ur$1(f,h,e+1,t,n,r,o,De$3(h.consts,i),256),y&&ur$1(f,h,e+2,c,u,l,d,De$3(h.consts,p),512);}var pu=class extends uu{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-W$4}at(t){return this.getLView(t)[Y$3].$implicit}attach(t,n){let r=n[mn$1];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,ar$1(this.templateTNode,r)),Uw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,$w(this.lContainer,t),zw(this.lContainer,t)}create(t,n){let r=cs$1(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new du(this.lContainer,n,t),{dehydratedView:r})}destroy(t){_s$1(t[E],t);}updateValue(t,n){this.getLView(t)[Y$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$3].$index=t;}getLView(t){return Gw(this.lContainer,t)}};function Hw(e){let t=I$1(null),n=Ee$3();try{let r=v$1(),o=r[E],i=r[n],s=n+1,a=vs$1(r,s);if(i.liveCollection===void 0){let u=hu(o,s);i.liveCollection=new pu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Fw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Gt(),l=c.length===0;if(we$2(r,u,l)){let d=n+2,p=vs$1(r,d);if(l){let f=hu(o,d),h=kh(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,ar$1(f,h));}else o.firstUpdatePass&&vI(p),Rh(p,0);}}}finally{I$1(t);}}function vs$1(e,t){return e[t]}function Uw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Je$3];vE(i,o),Yt$1.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}function $w(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function zw(e,t){return co$1(e,t)}function Gw(e,t){return Ah(e,t)}function hu(e,t){return Ai$2(e,t)}function ug(e,t,n){let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Dh(s,r,e,t,r[L$3],n);}return ug}function gu(e,t,n,r,o){Wu(t,e,n,o?"class":"style",r);}function Ds$1(e,t,n,r){let o=v$1(),i=o[E],s=e+H$3,a=i.firstCreatePass?Ju(s,o,2,t,$u,Pi$2(),n,r):i.data[s];if(Tt$3(a)){let c=o[Ve$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Lh(u),()=>(fp(e,t,o,a,r),Ds$1))}}return fp(e,t,o,a,r),Ds$1}function fp(e,t,n,r,o){if(zu(r,n,e,t,fg),Qn$3(r)){let i=n[E];xs(i,n,r),bu(i,r,n);}o!=null&&mo$1(n,r);}function pl(){let e=j$4(),t=X$1(),n=Gu(t);return e.firstCreatePass&&el(e,n),pc(n)&&hc(),dc(),n.classesWithoutHost!=null&&Jv(n)&&gu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&eD(n)&&gu(e,n,v$1(),n.stylesWithoutHost,false),pl}function lg(e,t,n,r){return Ds$1(e,t,n,r),pl(),lg}function hl(e,t,n,r){let o=v$1(),i=o[E],s=e+H$3,a=i.firstCreatePass?zI(s,i,2,t,n,r):i.data[s];return zu(a,o,e,t,fg),r!=null&&mo$1(o,a),hl}function gl(){let e=X$1(),t=Gu(e);return pc(t)&&hc(),dc(),gl}function dg(e,t,n,r){return hl(e,t,n,r),gl(),dg}var fg=(e,t,n,r,o)=>(Zr(true),eh(t[L$3],r,Ic()));function ml(e,t,n){let r=v$1(),o=r[E],i=e+H$3,s=o.firstCreatePass?Ju(i,r,8,"ng-container",$u,Pi$2(),t,n):o.data[i];if(zu(s,r,e,"ng-container",Ww),Qn$3(s)){let a=r[E];xs(a,r,s),bu(a,s,r);}return n!=null&&mo$1(r,s),ml}function yl(){let e=j$4(),t=X$1(),n=Gu(t);return e.firstCreatePass&&el(e,n),yl}function pg(e,t,n){return ml(e,t,n),yl(),pg}var Ww=(e,t,n,r,o)=>(Zr(true),GD(t[L$3],""));function qw(){return v$1()}function hg(e,t,n){let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Eh(s,r,e,t,r[L$3],n);}return hg}var to$1=void 0;function Zw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Yw=["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"]],to$1,[["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"]],to$1,[["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}",to$1,to$1,to$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Zw],Oc=Object.create(null);function he$3(e){let t=Qw(e),n=pp(t);if(n)return n;let r=t.split("-")[0];if(n=pp(r),n)return n;if(r==="en")return Yw;throw new m$1(701,false)}function pp(e){if(!(e in Oc)){let t=_e$3.ng&&_e$3.ng.common&&_e$3.ng.common.locales&&_e$3.ng.common.locales[e];return t!==void 0&&(Oc[e]=t),t}return Oc[e]}var K$3={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 Qw(e){return e.toLowerCase().replace(/_/g,"-")}var Do$2="en-US";function gg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function mg(e,t,n){let r=v$1(),o=j$4(),i=X$1();return vg(o,r,r[L$3],i,e,t,n),mg}function yg(e,t,n){let r=v$1(),o=j$4(),i=X$1();return (i.type&3||n)&&Xu(i,o,r,n,r[L$3],e,t,Cn$3(i,r,t)),yg}function vg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Cn$3(r,t,i),Xu(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=Cn$3(r,t,i),ls$1(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Cn$3(r,t,i),ls$1(r,t,d,o,o,c);}}function Xw(e=1){return Cf(e)}function Jw(e,t){let n=null,r=oE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ah(e,i,true):aE(r,i))return o}return n}function eC(e){let t=v$1()[ae$1][se$1];if(!t.projection){let n=e?e.length:1,r=t.projection=qd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?Jw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function tC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=fr$1(a,H$3+e,16,null,null);u.projection===null&&(u.projection=t),yc();let d=!s[mn$1]||fc();s[ae$1][se$1].projection[u.projection]===null&&c!==null?nC(s,a,c):d&&!Is(u)&&RE(a,s,u);}function nC(e,t,n){let r=H$3+n,o=t.data[r],i=e[r],s=cs$1(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,ar$1(o,s));}function Dg(e,t,n,r){return qh(e,t,n,r),Dg}function Eg(e,t,n){return Wh(e,t,n),Eg}function rC(e){let t=v$1(),n=j$4(),r=ji$2();qr(r+1);let o=nl(n,r);if(e.dirty&&rf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Yh(t,r);e.reset(i,kp),e.notifyOnChanges();}return true}return false}function oC(){return tl(v$1(),ji$2())}function Ig(e,t,n,r,o){return Kh(t,qh(e,n,r,o)),Ig}function wg(e,t,n,r){return Kh(e,Wh(t,n,r)),wg}function iC(e=1){qr(ji$2()+e);}function sC(e){let t=hf();return Ri$3(t,H$3+e)}function Qi$2(e,t){return e<<17|t<<2}function Nn$3(e){return e>>17&32767}function aC(e){return (e&2)==2}function cC(e,t){return e&131071|t<<17}function mu(e){return e|2}function lr$1(e){return (e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function uC(e){return (e&1)===1}function yu(e){return e|1}function lC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nn$3(s),c=lr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Gn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Nn$3(e[a+1]);e[r+1]=Qi$2(p,a),p!==0&&(e[p+1]=kc(e[p+1],r)),e[a+1]=cC(e[a+1],r);}else e[r+1]=Qi$2(a,0),a!==0&&(e[a+1]=kc(e[a+1],r)),a=r;else e[r+1]=Qi$2(c,0),a===0?a=r:e[c+1]=kc(e[c+1],r),c=r;u&&(e[r+1]=mu(e[r+1])),hp(e,l,r,true),hp(e,l,r,false),dC(t,l,e,r,i),s=Qi$2(a,c),i?t.classBindings=s:t.styleBindings=s;}function dC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Gn$3(i,t)>=0&&(n[r+1]=yu(n[r+1]));}function hp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Nn$3(o):lr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];fC(c,t)&&(a=true,e[s+1]=r?yu(u):mu(u)),s=r?Nn$3(u):lr$1(u);}a&&(e[n+1]=r?mu(o):yu(o));}function fC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Gn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function hC(e){return gC(e),Cg(e,Tg(e,0,Ue$2.textEnd))}function Cg(e,t){let n=Ue$2.textEnd;return n===t?-1:(t=Ue$2.keyEnd=mC(e,Ue$2.key=t,n),Tg(e,t,n))}function gC(e){Ue$2.key=0,Ue$2.keyEnd=0,Ue$2.value=0,Ue$2.valueEnd=0,Ue$2.textEnd=e.length;}function Tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function mC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function bg(e,t,n){return _g(e,t,n,false),bg}function Sg(e,t){return _g(e,t,null,true),Sg}function yC(e){DC(bC,vC,e,true);}function vC(e,t){for(let n=hC(t);n>=0;n=Cg(t,n))Mi$2(e,pC(t),true);}function _g(e,t,n,r){let o=v$1(),i=j$4(),s=wn$3(2);if(i.firstUpdatePass&&Ng(i,e,s,r),t!==Q$3&&we$2(o,s,t)){let a=i.data[Ee$3()];xg(i,a,o,o[L$3],e,o[s+1]=_C(t,n),r,s);}}function DC(e,t,n,r){let o=j$4(),i=wn$3(2);o.firstUpdatePass&&Ng(o,null,i,r);let s=v$1();if(n!==Q$3&&we$2(s,i,n)){let a=o.data[Ee$3()];if(Ag(a,r)&&!Mg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=wi$2(c,n||"")),gu(o,a,s,n,r);}else SC(o,a,s,s[L$3],s[i+1],s[i+1]=TC(e,t,n),r,i);}}function Mg(e,t){return t>=e.expandoStartIndex}function Ng(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ee$3()],s=Mg(e,n);Ag(i,r)&&t===null&&!s&&(t=false),t=EC(o,i,t,r),lC(o,i,t,n,s,r);}}function EC(e,t,n,r){let o=Df(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fc(null,e,t,n,r),n=fo$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fc(o,e,t,n,r),i===null){let c=IC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),wC(e,t,r,c));}else i=CC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function IC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lr$1(r)!==0)return e[Nn$3(r)]}function wC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nn$3(o)]=r;}function CC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=fo$1(r,s,n);}return fo$1(r,t.attrs,n)}function Fc(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=fo$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function fo$1(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]),Mi$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function TC(e,t,n){if(n==null||n==="")return ie$2;let r=[],o=Te$1(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 bC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Mi$2(e,r,n);}function SC(e,t,n,r,o,i,s,a){o===Q$3&&(o=ie$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,p!==f&&(h=d,y=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=f),h!==null&&xg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function xg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=uC(u)?gp(c,t,n,o,lr$1(u),s):void 0;if(!Es(l)){Es(i)||aC(u)&&(i=gp(c,null,n,o,a,s));let d=ic(Ee$3(),n);kE(r,s,d,o,i);}}function gp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Q$3&&(p=d?ie$2:void 0);let f=d?Ni$2(p,r):l===r?p:void 0;if(u&&!Es(f)&&(f=Ni$2(c,r)),Es(f)&&(a=f,s))return a;let h=e[o+1];o=s?Nn$3(h):lr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ni$2(c,r));}return a}function Es(e){return e!==void 0}function _C(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jr(Te$1(e)))),e}function Ag(e,t){return (e.flags&(t?8:16))!==0}function MC(e,t=""){let n=v$1(),r=j$4(),o=e+H$3,i=r.firstCreatePass?fr$1(r,o,1,t,null):r.data[o],s=NC(r,n,i,t);n[o]=s,Hi$2()&&ju(r,n,s,i),Xn$3(i,false);}var NC=(e,t,n,r)=>(Zr(true),$D(t[L$3],r));function Rg(e,t,n,r=""){return we$2(e,Gt(),n)?t+Z$2(n)+r:Q$3}function xC(e,t,n,r,o,i=""){let s=Wr(),a=uo$1(e,s,n,o);return wn$3(2),a?t+Z$2(n)+r+Z$2(o)+i:Q$3}function AC(e,t,n,r,o,i,s,a,c,u=""){let l=Wr(),d=Ku(e,l,n,o,s,c);return wn$3(4),d?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u:Q$3}function RC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Wr(),f=Ku(e,p,n,o,s,c);return f=we$2(e,p+4,l)||f,wn$3(5),f?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d:Q$3}function OC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=Wr(),y=Ku(e,h,n,o,s,c);return y=uo$1(e,h+4,l,p)||y,wn$3(6),y?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d+Z$2(p)+f:Q$3}function Og(e){return vl("",e),Og}function vl(e,t,n){let r=v$1(),o=Rg(r,e,t,n);return o!==Q$3&&Eo$1(r,Ee$3(),o),vl}function kg(e,t,n,r,o){let i=v$1(),s=xC(i,e,t,n,r,o);return s!==Q$3&&Eo$1(i,Ee$3(),s),kg}function Fg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=AC(u,e,t,n,r,o,i,s,a,c);return l!==Q$3&&Eo$1(u,Ee$3(),l),Fg}function Pg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=RC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$3&&Eo$1(d,Ee$3(),p),Pg}function Lg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=OC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$3&&Eo$1(f,Ee$3(),h),Lg}function Eo$1(e,t,n){let r=ic(t,e);zD(e[L$3],r,n);}function jg(e,t,n){Wi$2(t)&&(t=t());let r=v$1(),o=Gt();if(we$2(r,o,t)){j$4();let s=er$1();Dh(s,r,e,t,r[L$3],n);}return jg}function kC(e,t){let n=Wi$2(e);return n&&e.set(t),n}function Bg(e,t){let n=v$1(),r=j$4(),o=X$1();return vg(r,n,n[L$3],o,e,t),Bg}function FC(e,t,n=""){return Rg(v$1(),e,t,n)}function mp(e,t,n){let r=j$4();r.firstCreatePass&&Vg(t,r.data,r.blueprint,rt$1(e),n);}function Vg(e,t,n,r,o){if(e=re$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)Vg(e[i],t,n,r,o);else {let i=j$4(),s=v$1(),a=X$1(),c=pn$1(e)?e:re$3(e.provide),u=Ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(pn$1(e)||!e.multi){let f=new Tn$3(u,o,ze$3,null),h=Lc(c,t,l+p,d);h===-1?(Vc(is$1(a,s),i,c),Pc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Lc(c,t,l+p,d),h=Lc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){Vc(is$1(a,s),i,c);let _=jC(PC,n.length,o,r,u);D&&(n[h].providerFactory=_),Pc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=Hg(n[f],u,r);Pc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Pc(e,t,n,r){let o=pn$1(t),i=Jd(t);if(o||i){let c=(i?re$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 Hg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function PC(e,t,n,r,o){return vu(this.multi,[])}function vu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function jC(e,t,n,r,o,i){let s=new Tn$3(e,n,ze$3,null);return s.multi=[],s.index=t,s.componentProviders=0,Hg(s,o,r&&!n),s}function BC(e,t){return n=>{n.providersResolver=(r,o)=>mp(r,o?o(e):e,false);}}function VC(e,t){let n=Jn$3()+e,r=v$1();return r[n]===Q$3?Qu(r,n,t()):CI(r,n)}function HC(e,t,n){return $g(v$1(),Jn$3(),e,t,n)}function UC(e,t,n,r){return zg(v$1(),Jn$3(),e,t,n,r)}function Ug(e,t){let n=e[t];return n===Q$3?void 0:n}function $g(e,t,n,r,o,i){let s=t+n;return we$2(e,s,o)?Qu(e,s+1,i?r.call(i,o):r(o)):Ug(e,s+1)}function zg(e,t,n,r,o,i,s){let a=t+n;return uo$1(e,a,o,i)?Qu(e,a+2,s?r.call(s,o,i):r(o,i)):Ug(e,a+2)}function $C(e,t){let n=j$4(),r,o=e+H$3;n.firstCreatePass?(r=zC(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=Bt$1(r.type)),a=de$3(ze$3);try{let c=os$1(!1),u=i();return os$1(c),sc(n,v$1(),o,u),u}finally{de$3(a);}}function zC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function GC(e,t,n){let r=e+H$3,o=v$1(),i=Ri$3(o,r);return Gg(o,r)?$g(o,Jn$3(),t,i.transform,n,i):i.transform(n)}function WC(e,t,n,r){let o=e+H$3,i=v$1(),s=Ri$3(i,o);return Gg(i,o)?zg(i,Jn$3(),t,s.transform,n,r,s):s.transform(n,r)}function Gg(e,t){return e[E].data[t].pure}function qC(e,t){return As$1(e,t)}var Wg=(()=>{class e{applicationErrorHandler=g$1(ot$1);appRef=g$1(gr$1);taskService=g$1(qt);ngZone=g$1(G$4);zonelessEnabled=g$1(nr$1);tracing=g$1(ct$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Pr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$1(zi$2,{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?Mf:Tc;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(Pr+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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function qg(){return [{provide:je$4,useExisting:Wg},{provide:G$4,useClass:Lr},{provide:nr$1,useValue:true}]}var ZC=(()=>{class e{compileModuleSync(n){return new ms$1(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function YC(){return typeof $localize<"u"&&$localize.locale||Do$2}var mr$1=new w("",{factory:()=>g$1(mr$1,{optional:true,skipSelf:true})||YC()});var Io$1=class Io{destroyed=false;listeners=null;errorHandler=g$1(Se$5,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g$1(Ie$3);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$1(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(Xe$1(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I$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&&QC(this.listeners)),I$1(n),this.isEmitting=false;}}};function QC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function KC(e,t){return Ar$1(e,t?.equal)}function wo$1(e){return kd(e)}var XC=e=>e;function JC(e,t){if(typeof e=="function"){let n=_a(e,XC,t?.equal);return Zg(n)}else {let n=_a(e.source,e.computation,e.equal);return Zg(n,e.debugName)}}function Zg(e,t){let n=e[q$1],r=e;return r.set=o=>Rd(n,o),r.update=o=>Od(n,o),r.asReadonly=Yr.bind(e),r}var Fs=Symbol("InputSignalNode#UNSET"),rm=x$2(w$1({},Rr$1),{transformFn:void 0,applyValueToInputSignal(e,t){jt$2(e,t);}});function om(e,t){let n=Object.create(rm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$2(n),n.value===Fs){let o=null;throw new m$1(-950,o)}return n.value}return r[q$1]=n,r}var Yg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Iu(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function yB(e){return fT(e)?e.default:e}function fT(e){return e&&typeof e=="object"&&"default"in e}function vB(e){return new Io$1}function Qg(e,t){return om(e,t)}function pT(e){return om(Fs,e)}var DB=(Qg.required=pT,Qg);function im(e,t){let n=Object.create(rm),r=new Io$1;n.value=e;function o(){return gt$2(n),Kg(n.value),n.value}return o[q$1]=n,o.asReadonly=Yr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$2(n,i),r.emit(i));},o.update=i=>{Kg(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Kg(e){if(e===Fs)throw new m$1(952,false)}function Xg(e,t){return im(e)}function hT(e){return im(Fs)}var EB=(Xg.required=hT,Xg);function Jg(e,t){return ol()}function gT(e,t){return il()}var IB=(Jg.required=gT,Jg);function wB(e,t){return Qh()}function em(e,t){return ol()}function mT(e,t){return il()}var CB=(em.required=mT,em);var sm=(()=>{class e{static __NG_ELEMENT_ID__=vT}return e})();function vT(e){return DT(X$1(),v$1(),(e&16)===16)}function DT(e,t,n){if(Tt$3(e)&&!n){let r=Re$3(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[ae$1];return new Qt(r,t)}return null}var ET=(()=>{class e{zone=g$1(G$4);changeDetectionScheduler=g$1(je$4);applicationRef=g$1(gr$1);applicationErrorHandler=g$1(ot$1);_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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),IT=new w("",{factory:()=>false});function wT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$4(x$2(w$1({},am()),{scheduleInRootZone:t})),[{provide:nr$1,useValue:false},{provide:G$4,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g$1(ET,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g$1(CT);return ()=>{n.initialize();}}},{provide:zi$2,useValue:t??Cc}]}function bB(e){let t=e?.scheduleInRootZone,n=wT({ngZoneFactory:()=>{let r=am(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$2("NgZone_CoalesceEvent"),new G$4(r)},scheduleInRootZone:t});return wt$2([{provide:IT,useValue:true},n])}function am(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var CT=(()=>{class e{subscription=new ee$2;initialized=false;zone=g$1(G$4);pendingTasks=g$1(qt);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(()=>{G$4.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$4.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var El=new w(""),TT=new w("");function Co$1(e){return !e.moduleRef}function bT(e){let t=Co$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$4);return n.run(()=>{Co$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot$1),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Co$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(El);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(El);s.add(i),e.moduleRef.onDestroy(()=>{oo$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return _T(r,n,()=>{let i=t.get(qt),s=i.add(),a=t.get(ul);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(mr$1,Do$2);if(gg(c||Do$2),!t.get(TT,!0))return Co$1(e)?t.get(gr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(gr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return ST?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var ST;function _T(e,t,n){try{let r=n();return Rs$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ks$1=null;function MT(e=[],t){return pe$3.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:El,useValue:new Set([()=>ks$1=null])},...e]})}function NT(e=[]){if(ks$1)return ks$1;let t=MT(e);return ks$1=t,ag(),xT(t),t}function xT(e){let t=e.get($i$2,null);qn$3(e,()=>{t?.forEach(n=>n());});}function cm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$5(O$3.BootstrapApplicationStart);try{let i=o?.injector??NT(r),s=[qg(),xf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return bT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$5(O$3.BootstrapApplicationEnd);}}function AT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function RT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Dl=Symbol("NOT_SET"),um=new Set,OT=x$2(w$1({},Rr$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Dl,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!==Dl&&!Vn$3(this))return this.signal;try{for(let o of this.cleanup??um)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=mt$3(this),r;try{r=this.userFn.apply(null,t);}finally{Pt$3(this,n);}return (this.value===Dl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Il=class extends so$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(Ie$3),s),this.scheduler=o;for(let a of ku){let c=n[a];if(c===void 0)continue;let u=Object.create(OT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$2(u),u.value),u.signal[q$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??um)n();}finally{Lt$2(t);}}};function SB(e,t){let n=g$1(pe$3),r=n.get(je$4),o=n.get(bs$2),i=n.get(ct$2,null,{optional:true});o.impl??=n.get(Fu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(tr$1,null,{optional:true}),c=new Il(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function _B(e,t){let n=Et$3(e),r=t.elementInjector||Wn$3();return new _n$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function MB(e){let t=Et$3(e);if(!t)return null;let n=new _n$2(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var lm=null;function _t$2(){return lm}function wl(e){lm??=e;}var To$1=class To{},Kt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:()=>g$1(dm),providedIn:"platform"})}return e})(),kT=new w(""),dm=(()=>{class e extends Kt$1{_location;_history;_doc=g$1(U$5);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$2().getBaseHref(this._doc)}onPopState(n){let r=_t$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$2().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=x$1({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ps$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function fm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ge$2(e){return e&&e[0]!=="?"?`?${e}`:e}var yr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:()=>g$1(hm),providedIn:"root"})}return e})(),Ls=new w(""),hm=(()=>{class e extends yr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$1(U$5).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 Ps$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Ge$2(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$2(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$2(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$1(Kt$1),b$1(Ls,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gm=(()=>{class e{_subject=new ue$2;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=LT(fm(pm(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+Ge$2(r))}normalize(n){return e.stripTrailingSlash(PT(this._basePath,pm(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+Ge$2(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$2(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=Ge$2;static joinWithSlash=Ps$1;static stripTrailingSlash=fm;static \u0275fac=function(r){return new(r||e)(b$1(yr$1))};static \u0275prov=x$1({token:e,factory:()=>FT(),providedIn:"root"})}return e})();function FT(){return new gm(b$1(yr$1))}function PT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function pm(e){return e.replace(/\/index\.html$/,"")}function LT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var jT=(()=>{class e extends yr$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=Ps$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$2(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$2(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$1(Kt$1),b$1(Ls,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})();var Ml=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ml||{});var ce$2=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ce$2||{}),B$1=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$1||{}),ge$3=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ge$3||{}),me$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function vm(e){return he$3(e)[K$3.LocaleId]}function Dm(e,t,n){let r=he$3(e),o=[r[K$3.DayPeriodsFormat],r[K$3.DayPeriodsStandalone]],i=ke$3(o,t);return ke$3(i,n)}function Em(e,t,n){let r=he$3(e),o=[r[K$3.DaysFormat],r[K$3.DaysStandalone]],i=ke$3(o,t);return ke$3(i,n)}function Im(e,t,n){let r=he$3(e),o=[r[K$3.MonthsFormat],r[K$3.MonthsStandalone]],i=ke$3(o,t);return ke$3(i,n)}function wm(e,t){let r=he$3(e)[K$3.Eras];return ke$3(r,t)}function bo$1(e,t){let n=he$3(e);return ke$3(n[K$3.DateFormat],t)}function So$1(e,t){let n=he$3(e);return ke$3(n[K$3.TimeFormat],t)}function _o$1(e,t){let r=he$3(e)[K$3.DateTimeFormat];return ke$3(r,t)}function lt$3(e,t){let n=he$3(e),r=n[K$3.NumberSymbols][t];if(typeof r>"u"){if(t===me$3.CurrencyDecimal)return n[K$3.NumberSymbols][me$3.Decimal];if(t===me$3.CurrencyGroup)return n[K$3.NumberSymbols][me$3.Group]}return r}function Cm(e,t){return he$3(e)[K$3.NumberFormats][t]}function Tm(e){if(!e[K$3.ExtraData])throw new m$1(2303,false)}function bm(e){let t=he$3(e);return Tm(t),(t[K$3.ExtraData][2]||[]).map(r=>typeof r=="string"?Cl(r):[Cl(r[0]),Cl(r[1])])}function Sm(e,t,n){let r=he$3(e);Tm(r);let o=[r[K$3.ExtraData][0],r[K$3.ExtraData][1]],i=ke$3(o,t)||[];return ke$3(i,n)||[]}function ke$3(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$1(2304,false)}function Cl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var BT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js=Object.create(null),VT=/((?:[^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]*)/,HT=256;function _m(e,t,n,r){let o=KT(e);UT(t),t=Mt$3(n,t)||t;let s=[],a;for(;t;)if(a=VT.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=Nm(r,c),o=QT(o,r));let u="";return s.forEach(l=>{let d=ZT(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function UT(e){if(e.length>HT)throw new m$1(2300,false)}function $s(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$3(e,t){let n=vm(e);if(js[n]??=Object.create(null),js[n][t])return js[n][t];let r="";switch(t){case "shortDate":r=bo$1(e,ge$3.Short);break;case "mediumDate":r=bo$1(e,ge$3.Medium);break;case "longDate":r=bo$1(e,ge$3.Long);break;case "fullDate":r=bo$1(e,ge$3.Full);break;case "shortTime":r=So$1(e,ge$3.Short);break;case "mediumTime":r=So$1(e,ge$3.Medium);break;case "longTime":r=So$1(e,ge$3.Long);break;case "fullTime":r=So$1(e,ge$3.Full);break;case "short":let o=Mt$3(e,"shortTime"),i=Mt$3(e,"shortDate");r=Bs$1(_o$1(e,ge$3.Short),[o,i]);break;case "medium":let s=Mt$3(e,"mediumTime"),a=Mt$3(e,"mediumDate");r=Bs$1(_o$1(e,ge$3.Medium),[s,a]);break;case "long":let c=Mt$3(e,"longTime"),u=Mt$3(e,"longDate");r=Bs$1(_o$1(e,ge$3.Long),[c,u]);break;case "full":let l=Mt$3(e,"fullTime"),d=Mt$3(e,"fullDate");r=Bs$1(_o$1(e,ge$3.Full),[l,d]);break}return r&&(js[n][t]=r),r}function Bs$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function We$3(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 $T(e,t){return We$3(e,3).substring(0,t)}function J$3(e,t,n=0,r=false,o=false){return function(i,s){let a=zT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return $T(a,t);let c=lt$3(s,me$3.MinusSign);return We$3(a,t,c,r,o)}}function zT(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 m$1(2301,false)}}function V$3(e,t,n=ce$2.Format,r=false){return function(o,i){return GT(o,i,e,t,n,r)}}function GT(e,t,n,r,o,i){switch(n){case 2:return Im(t,o,r)[e.getMonth()];case 1:return Em(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=bm(t),l=Sm(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return true}else if(y||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Dm(t,o,r)[s<12?0:1];case 3:return wm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$1(2302,false)}}function Vs(e){return function(t,n,r){let o=-1*r,i=lt$3(n,me$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+We$3(s,2,i)+We$3(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+We$3(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+We$3(s,2,i)+":"+We$3(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+We$3(s,2,i)+":"+We$3(Math.abs(o%60),2,i);default:throw new m$1(2310,false)}}}var WT=0,Us=4;function qT(e){let t=$s(e,WT,1).getDay();return $s(e,0,1+(t<=Us?Us:Us+7)-t)}function Mm(e){let t=e.getDay(),n=t===0?-3:Us-t;return $s(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tl(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=Mm(n),s=qT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$3(o,e,lt$3(r,me$3.MinusSign))}}function Hs(e,t=false){return function(n,r){let i=Mm(n).getFullYear();return We$3(i,e,lt$3(r,me$3.MinusSign),t)}}var bl=Object.create(null);function ZT(e){if(bl[e])return bl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$3(3,B$1.Abbreviated);break;case "GGGG":t=V$3(3,B$1.Wide);break;case "GGGGG":t=V$3(3,B$1.Narrow);break;case "y":t=J$3(0,1,0,false,true);break;case "yy":t=J$3(0,2,0,true,true);break;case "yyy":t=J$3(0,3,0,false,true);break;case "yyyy":t=J$3(0,4,0,false,true);break;case "Y":t=Hs(1);break;case "YY":t=Hs(2,true);break;case "YYY":t=Hs(3);break;case "YYYY":t=Hs(4);break;case "M":case "L":t=J$3(1,1,1);break;case "MM":case "LL":t=J$3(1,2,1);break;case "MMM":t=V$3(2,B$1.Abbreviated);break;case "MMMM":t=V$3(2,B$1.Wide);break;case "MMMMM":t=V$3(2,B$1.Narrow);break;case "LLL":t=V$3(2,B$1.Abbreviated,ce$2.Standalone);break;case "LLLL":t=V$3(2,B$1.Wide,ce$2.Standalone);break;case "LLLLL":t=V$3(2,B$1.Narrow,ce$2.Standalone);break;case "w":t=Tl(1);break;case "ww":t=Tl(2);break;case "W":t=Tl(1,true);break;case "d":t=J$3(2,1);break;case "dd":t=J$3(2,2);break;case "c":case "cc":t=J$3(7,1);break;case "ccc":t=V$3(1,B$1.Abbreviated,ce$2.Standalone);break;case "cccc":t=V$3(1,B$1.Wide,ce$2.Standalone);break;case "ccccc":t=V$3(1,B$1.Narrow,ce$2.Standalone);break;case "cccccc":t=V$3(1,B$1.Short,ce$2.Standalone);break;case "E":case "EE":case "EEE":t=V$3(1,B$1.Abbreviated);break;case "EEEE":t=V$3(1,B$1.Wide);break;case "EEEEE":t=V$3(1,B$1.Narrow);break;case "EEEEEE":t=V$3(1,B$1.Short);break;case "a":case "aa":case "aaa":t=V$3(0,B$1.Abbreviated);break;case "aaaa":t=V$3(0,B$1.Wide);break;case "aaaaa":t=V$3(0,B$1.Narrow);break;case "b":case "bb":case "bbb":t=V$3(0,B$1.Abbreviated,ce$2.Standalone,true);break;case "bbbb":t=V$3(0,B$1.Wide,ce$2.Standalone,true);break;case "bbbbb":t=V$3(0,B$1.Narrow,ce$2.Standalone,true);break;case "B":case "BB":case "BBB":t=V$3(0,B$1.Abbreviated,ce$2.Format,true);break;case "BBBB":t=V$3(0,B$1.Wide,ce$2.Format,true);break;case "BBBBB":t=V$3(0,B$1.Narrow,ce$2.Format,true);break;case "h":t=J$3(3,1,-12);break;case "hh":t=J$3(3,2,-12);break;case "H":t=J$3(3,1);break;case "HH":t=J$3(3,2);break;case "m":t=J$3(4,1);break;case "mm":t=J$3(4,2);break;case "s":t=J$3(5,1);break;case "ss":t=J$3(5,2);break;case "S":t=J$3(6,1);break;case "SS":t=J$3(6,2);break;case "SSS":t=J$3(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Vs(0);break;case "ZZZZZ":t=Vs(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Vs(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Vs(2);break;default:return null}return bl[e]=t,t}function Nm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function YT(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function QT(e,t,n){let o=e.getTimezoneOffset(),i=Nm(t,o);return YT(e,-1*(i-o))}function KT(e){if(mm(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 $s(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(BT))return XT(r)}let t=new Date(e);if(!mm(t))throw new m$1(2311,false);return t}function XT(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 mm(e){return e instanceof Date&&!isNaN(e.valueOf())}var JT=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ym=22,zs=".",Mo$1="0",eb=";",tb=",",Sl="#";function nb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$3(n,me$3.Infinity);else {let u=ib(e);s&&(u=ob(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(JT);if($===null)throw new m$1(2306,false);let be=$[1],qe=$[3],At=$[5];be!=null&&(l=_l(be)),qe!=null&&(d=_l(qe)),At!=null?p=_l(At):qe!=null&&d>p&&(p=d);let Fe=100;if(l>Fe||d>Fe||p>Fe)throw new m$1(2306,false)}sb(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every($=>!$);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(lt$3(n,r)),D.length&&(a+=lt$3(n,o)+D.join("")),y&&(a+=lt$3(n,me$3.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function xm(e,t,n){let r=Cm(t,Ml.Decimal),o=rb(r,lt$3(t,me$3.MinusSign));return nb(e,o,t,me$3.Group,me$3.Decimal,n)}function rb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(eb),o=r[0],i=r[1],s=o.indexOf(zs)!==-1?o.split(zs):[o.substring(0,o.lastIndexOf(Mo$1)+1),o.substring(o.lastIndexOf(Mo$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Sl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Mo$1?n.minFrac=n.maxFrac=l+1:d===Sl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(tb);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(Sl);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 ob(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 ib(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(zs))>-1&&(t=t.replace(zs,"")),(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)===Mo$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Mo$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>ym&&(r=r.splice(0,ym-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function sb(e,t,n){if(t>n)throw new m$1(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,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function _l(e){let t=parseInt(e);if(isNaN(t))throw new m$1(2305,false);return t}var ab=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$1(pe$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)(ze$3(pr$1))};static \u0275dir=al({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Du]})}return e})();function Nl(e,t){return new m$1(2100,false)}var cb=(()=>{class e{transform(n){return n==null?null:(ub(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"lowercase",type:e,pure:true})}return e})();function ub(e,t){if(typeof t!="string")throw Nl()}var lb="mediumDate",Am=new w(""),Rm=new w(""),db=(()=>{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??lb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return _m(n,s,i||this.locale,a)}catch(s){throw Nl(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ze$3(mr$1,16),ze$3(Am,24),ze$3(Rm,24))};static \u0275pipe=hr$1({name:"date",type:e,pure:true})}return e})();var fb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"json",type:e,pure:false})}return e})();var pb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!hb(n))return null;o||=this._locale;try{let i=gb(n);return xm(i,o,r)}catch(i){throw Nl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$3(mr$1,16))};static \u0275pipe=hr$1({name:"number",type:e,pure:true})}return e})();function hb(e){return !(e==null||e===""||e!==e)}function gb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$1(2309,false);return e}function No$1(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 Al="browser";function XV(e){return e===Al}var JV=(()=>{class e{static \u0275prov=x$1({token:e,providedIn:"root",factory:()=>new xl(g$1(U$5),window)})}return e})(),xl=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=Db(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Xe$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 Db(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 xo$1=class xo{_doc;constructor(t){this._doc=t;}manager},Gs=(()=>{class e extends xo$1{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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Zs=new w(""),Fl=(()=>{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 Gs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Gs);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 m$1(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$1(Zs),b$1(G$4))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Rl="ng-app-id";function Om(e){for(let t of e)t.remove();}function km(e,t){let n=t.createElement("style");return n.textContent=e,n}function Eb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Rl}="${t}"],link[${Rl}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Rl),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 kl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Pl=(()=>{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,Eb(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,km);r?.forEach(o=>this.addUsage(o,this.external,kl));}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&&(Om(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Om(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,km(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,kl(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$1(U$5),b$1(Qr),b$1(Xr,8),b$1(Kr))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Ol$1={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"},Ll=/%COMP%/g;var Pm="%COMP%",Ib=`_nghost-${Pm}`,wb=`_ngcontent-${Pm}`,Cb=true,Tb=new w("",{factory:()=>Cb});function bb(e){return wb.replace(Ll,e)}function Sb(e){return Ib.replace(Ll,e)}function Lm(e,t){return t.map(n=>n.replace(Ll,e))}var jl=(()=>{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 Ao$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof qs?o.applyToHost(n):o instanceof Ro$1&&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 $e$3.Emulated:i=new qs(c,u,r,this.appId,l,s,a,d);break;case $e$3.ShadowDom:return new Ws(c,n,r,s,a,this.nonce,d,u);case $e$3.ExperimentalIsolatedShadowDom:return new Ws(c,n,r,s,a,this.nonce,d);default:i=new Ro$1(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$1(Fl),b$1(An$3),b$1(Qr),b$1(Tb),b$1(U$5),b$1(G$4),b$1(Xr),b$1(ct$2,8))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})(),Ao$1=class Ao{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(Ol$1[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Fm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Fm(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 m$1(-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=Ol$1[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Ol$1[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&(st$2.DashCase|st$2.Important)?t.style.setProperty(n,r,o&st$2.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$2.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=_t$2().getGlobalEventTarget(this.doc,t),!t))throw new m$1(-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 Fm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ws=class extends Ao$1{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=Lm(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=kl(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ro$1=class Ro extends Ao$1{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?Lm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Yt$1.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},qs=class extends Ro$1{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=bb(u),this.hostAttr=Sb(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 Ys=class e extends To$1{supportsDOMEvents=true;static makeCurrent(){wl(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=_b();return n==null?null:Mb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function _b(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Mb(e){return new URL(e,document.baseURI).pathname}var jm=["alt","control","meta","shift"],Nb={"\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"},xb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends xo$1{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(()=>_t$2().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."),jm.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=Nb[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"),jm.forEach(s=>{if(s!==o){let a=xb[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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac})}return e})();function Ab(e,t,n){return B$2(this,null,function*(){let r=w$1({rootComponent:e},Rb(t,n));return cm(r)})}function Rb(e,t){return {platformRef:t?.platformRef,appProviders:[...Lb,...e?.providers??[]],platformProviders:Pb}}function Ob(){Ys.makeCurrent();}function kb(){return new Se$5}function Fb(){return Cu(document),document}var Pb=[{provide:Kr,useValue:Al},{provide:$i$2,useValue:Ob,multi:true},{provide:U$5,useFactory:Fb}];var Lb=[{provide:$r,useValue:"root"},{provide:Se$5,useFactory:kb},{provide:Zs,useClass:Gs,multi:true},{provide:Zs,useClass:Bm,multi:true},jl,{provide:An$3,useClass:Pl},{provide:Pl,useExisting:An$3},Fl,{provide:Sn$3,useExisting:jl},[]];var xt$1=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 Ks=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()}},Xs=class{encodeKey(t){return Vm(t)}encodeValue(t){return Vm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function jb(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 Bb=/%(\d[a-f0-9])/gi,Vb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(Bb,(t,n)=>Vb[n]??t)}function Qs(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Xs,t.fromString){if(t.fromObject)throw new m$1(2805,false);this.map=jb(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(Qs):[Qs(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(Qs(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(Qs(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 Hb(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function Hm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Um(e){return typeof Blob<"u"&&e instanceof Blob}function $m(e){return typeof FormData<"u"&&e instanceof FormData}function Ub(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bl="Content-Type",zm="Accept",Wm="text/plain",qm="application/json",$b=`${qm}, ${Wm}, */*`,vr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Hb(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 m$1(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 xt$1,this.context??=new Ks,!this.params)this.params=new Nt$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Hm(this.body)||Um(this.body)||$m(this.body)||Ub(this.body)?this.body:this.body instanceof Nt$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||$m(this.body)?null:Um(this.body)?this.body.type||null:Hm(this.body)?null:typeof this.body=="string"?Wm:this.body instanceof Nt$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,y=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,$=t.reportProgress??this.reportProgress,be=t.reportUploadProgress??this.reportUploadProgress,qe=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Fe=t.params||this.params,Fo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((kn,Xt)=>kn.set(Xt,t.setHeaders[Xt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((kn,Xt)=>kn.set(Xt,t.setParams[Xt]),Fe)),new e(n,r,D,{params:Fe,headers:At,context:Fo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:qe,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Dr$1=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Dr$1||{}),Er$1=class Er{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$1,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;}},Js=class e extends Er$1{constructor(t={}){super(t);}type=Dr$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ko$1=class e extends Er$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Dr$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},On$3=class On extends Er$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},zb=200;var Gb=/^\)\]\}',?\n/,Zm=new w("",{factory:()=>null}),ea$1=(()=>{class e{fetchImpl=g$1(Hl,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$1(G$4);destroyRef=g$1(Ie$3);maxResponseSize=g$1(Zm);handle(n){return new R$2(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Ul,s=>r.error(new On$3({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$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));Wb(D),o.next({type:Dr$1.Sent}),s=yield D;}catch(D){o.error(new On$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$1(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new Js({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),_=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(_)&&_>this.maxResponseSize&&Gm(this.maxResponseSize);let $=[],be=s.body.getReader(),qe=0,At,Fe,Fo=typeof Zone<"u"&&Zone.current,kn=false;if(yield this.ngZone.runOutsideAngular(()=>B$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),kn=true;break}let{done:Ir,value:na}=yield be.read();if(Ir)break;if($.push(na),qe+=na.length,this.maxResponseSize!==null&&qe>this.maxResponseSize&&(yield be.cancel(),Gm(this.maxResponseSize)),p){Fe=n.responseType==="text"?(Fe??"")+(At??=new TextDecoder).decode(na,{stream:true}):void 0;let Gl=()=>o.next({type:Dr$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Fo?Fo.run(Gl):Gl();}}})),kn){o.complete();return}let Xt=this.concatChunks($,qe);try{let Ir=s.headers.get(Bl)??"";d=this.parseBody(n,Xt,Ir,l);}catch(Ir){o.error(new On$3({error:Ir,headers:new xt$1(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?zb:0);let f=l>=200&&l<300,h=s.redirected,y=s.type;f?(o.next(new ko$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y})),o.complete()):o.error(new On$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(Gb,"");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 m$1(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(zm)||(r[zm]=$b),!n.headers.has(Bl)){let i=n.detectContentTypeHeader();i!==null&&(r[Bl]=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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Hl=class{};function Ul(){}function Wb(e){e.then(Ul,Ul);}function Gm(e){throw new m$1(-2825,false)}function qb(e,t){return t(e)}function Zb(e,t,n){return (r,o)=>qn$3(n,()=>t(r,i=>e(i,o)))}var Ym=new w("",{factory:()=>[]}),Qm=new w(""),Km=new w("",{factory:()=>true});var $l=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(ea$1),o},providedIn:"root"})}return e})();var ta$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g$1(eo$1);contributeToStability=g$1(Km);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Ym),...this.injector.get(Qm,[])]));this.chain=o.reduceRight((i,s)=>Zb(i,s,this.injector),qb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return wo$1(()=>r(n,i=>this.backend.handle(i))).pipe(li$2(o))}else return wo$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$1($l),b$1(fe$4))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(ta$1),o},providedIn:"root"})}return e})();function Vl(e,t){return w$1({body:t},e)}var Xm=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof vr$1)i=n;else {let c;o.headers instanceof xt$1?c=o.headers:c=new xt$1(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new vr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=Cr$1(i).pipe(ui$3(c=>this.handler.handle(c)));if(n instanceof vr$1||o.observe==="events")return s;let a=s.pipe(Ot$3(c=>c instanceof ko$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ne$2(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$1(2806,false);return c.body}));case "blob":return a.pipe(ne$2(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$1(2807,false);return c.body}));case "text":return a.pipe(ne$2(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$1(2808,false);return c.body}));default:return a.pipe(ne$2(c=>c.body))}case "response":return a;default:throw new m$1(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 Nt$3().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Vl(o,r))}post(n,r,o={}){return this.request("POST",n,Vl(o,r))}put(n,r,o={}){return this.request("PUT",n,Vl(o,r))}static \u0275fac=function(r){return new(r||e)(b$1(zl))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yb=new w("",{factory:()=>true}),Qb="XSRF-TOKEN",Kb=new w("",{factory:()=>Qb}),Xb="X-XSRF-TOKEN",Jb=new w("",{factory:()=>Xb}),eS=(()=>{class e{cookieName=g$1(Kb);doc=g$1(U$5);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=No$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Jm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(eS),o},providedIn:"root"})}return e})();function tS(e,t){if(!g$1(Yb)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g$1(Kt$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=g$1(Jm).getToken(),r=g$1(Jb);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function nS(...e){let t=[Xm,ea$1,ta$1,{provide:zl,useExisting:ta$1},{provide:$l,useFactory:()=>g$1(ea$1)},{provide:Ym,useValue:tS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$2(t)}var SH=(()=>{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$1(U$5))};static \u0275prov=x$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(oS),o},providedIn:"root"})}return e})(),oS=(()=>{class e extends rS{_doc=g$1(U$5);sanitize(n,r){if(r==null)return null;switch(n){case Oe$1.NONE:return r;case Oe$1.HTML:return at$2(r,"HTML")?Te$1(r):Cs$1(this._doc,String(r)).toString();case Oe$1.STYLE:return at$2(r,"Style")?Te$1(r):r;case Oe$1.SCRIPT:if(at$2(r,"Script"))return Te$1(r);throw new m$1(5200,false);case Oe$1.URL:return at$2(r,"URL")?Te$1(r):ho$1(String(r));case Oe$1.RESOURCE_URL:if(at$2(r,"ResourceURL"))return Te$1(r);throw new m$1(-5201,false);default:throw new m$1(5202,false)}}bypassSecurityTrustHtml(n){return Su(n)}bypassSecurityTrustStyle(n){return _u(n)}bypassSecurityTrustScript(n){return Mu(n)}bypassSecurityTrustUrl(n){return Nu(n)}bypassSecurityTrustResourceUrl(n){return xu(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var y$1=class y{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:c,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=c??{};}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,c){let o=this.lookupCredential(x);return o?r.set(n,(c??"")+o):r}addCredentialToQuery(x,n,r){let c=this.lookupCredential(x);return c?r.set(n,c):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$2=new w("basePath");var $$1=class ${encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$3=class j{basePath="http://localhost:18124";defaultHeaders=new xt$1;configuration;encoder;constructor(x,n){if(this.configuration=n||new y$1,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 $$1;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,c=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,c?r:void 0,c):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,c=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return c?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 U$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",c=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 Ks,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 l="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAgentConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}disableAgentConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}enableAgentConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportAgentConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAgentConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAgentConfig(n,r="body",c=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 Ks,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 l="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getDefinitionAgentConfig(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,c,"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 Ks,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",c=false,o){let t=new Nt$3({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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}searchAgentConfig(n,r="body",c=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 Ks,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 l="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateAgentConfig(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiModel(n,r="body",c=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 Ks,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 l="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAiModel(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAiModel(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAiModel(n,r="body",c=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 Ks,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 l="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByNamespaceIdAiModel(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentAiModel(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listPlatformLevelAiModel(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiProvider(n,r="body",c=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 Ks,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 l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAiProvider(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAiProvider(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAiProvider(n,r="body",c=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 Ks,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 l="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listAiProvider(n,r,c="body",o=false,t){let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;addMessageCase(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Nt$3({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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}createCase(n,r="body",c=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 Ks,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 l="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsCase(n,r="body",c=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 Ks,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 l="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}interruptCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}killCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserExternalIdCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserInNamespaceCase(n,r="body",c=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 Ks,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 l="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listMineByParentCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}markCaseRead(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}reopenCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}setReasoningEffortCase(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}starCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}unstarCase(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateCase(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/admin/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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",c=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 Ks,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 l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteIntegrationConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportIntegrationConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdIntegrationConfig(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsIntegrationConfig(n,r="body",c=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 Ks,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 l="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listIntegrationConfig(n,r,c="body",o=false,t){let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listTypesIntegrationType(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createNamespace(n,r="body",c=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 Ks,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 l="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteNamespace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deployAgentsNamespace(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsNamespace(n,r="body",c=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 Ks,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 l="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listAllNamespace(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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",c=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 Ks,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 l="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}undeployAgentsNamespace(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateNamespace(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}removeAssociationNamespaceGit(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}setAssociationNamespaceGit(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,c,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(c==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,c,"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 Ks,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}aggregateByCaseTreeUsageRecord(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}aggregateByModelUsageRecord(n,r,c,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(c==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,c,"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 Ks,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,c,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(c==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 Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,c,"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 Ks,l=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:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Se$4=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Se$4||{});var qe$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(qe$3||{});var Me$3=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Me$3||{});var Be$3=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Be$3||{});var $e$2=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))($e$2||{});var K$2=class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(r=>{let c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q$2=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var z$2=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(z$2||{});var X=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(X||{});var Ue$1=z$2,Ne$3=X;var ke$2={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Fe$3={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var Z$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",c=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 Ks,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 l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAuthSetting(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAuthSetting(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAuthSetting(n,r="body",c=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 Ks,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 l="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listAuthSetting(n,r,c="body",o=false,t){let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsCaseEventRest(n,r="body",c=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 Ks,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 l="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseCaseEventRest(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var te$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateMembersCaseMembership(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}diffCaseWorkspace(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listCaseWorkspace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}refreshCaseWorkspace(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}retryCaseWorkspace(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;applyConfigChange(n,r,c,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(c==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 Ks,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,c,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 Ks,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,c="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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var re$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,c,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 Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"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 Ks,l=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:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,c,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 Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"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 Ks,l=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:l,reportProgress:e}))}deleteCaseFileExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getNamespaceFileContentExchange(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}uploadCaseFileExchange(n,r,c="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 Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$2(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,c="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 Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$2(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createFeedback(n,r="body",c=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 Ks,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 l="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseEventFeedback(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseFeedback(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var se=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateMembersNamespaceMembership(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;grantAdmin(n,r,c="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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}grantMember(n,r,c="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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,c="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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeMember(n,r,c="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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",c=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 Ks,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 l="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",c=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 Ks,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 l="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var le$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}reloadAllAgentsPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}startPlugin(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}stopPlugin(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}unloadPlugin(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}uploadPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createPrompt(n,r="body",c=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 Ks,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 l="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deletePrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsPrompt(n,r="body",c=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 Ks,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 l="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}resolveEffectivePrompt(n,r="body",c=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 Ks,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 l="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}searchPrompt(n,r="body",c=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 Ks,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 l="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}translateBatchPrompt(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}translatePrompt(n,r,c,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(c==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 Ks,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}stopCostRunRunCost(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",c=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 Ks,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 l="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteScheduledPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}disableScheduledPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}enableScheduledPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdScheduledPrompt(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsScheduledPrompt(n,r="body",c=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 Ks,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 l="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}resolveEffectiveScheduledPrompt(n,r="body",c=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 Ks,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 l="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}searchScheduledPrompt(n,r="body",c=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 Ks,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 l="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateScheduledPrompt(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ue$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createSkill(n,r="body",c=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 Ks,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 l="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteSkill(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdSkill(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsSkill(n,r="body",c=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 Ks,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 l="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentSkill(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listEffectiveSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Nt$3({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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}listPlatformSkill(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}streamEventsCaseEventSse(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",c=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 Ks,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 l="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listToolInvoke(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ce$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUser(n,r="body",c=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 Ks,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 l="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteUser(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdUser(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsUser(n,r="body",c=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 Ks,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 l="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getGroupsByExternalIdsUser(n,r="body",c=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 Ks,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 l="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMeUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.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",c=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 Ks,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 l="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}revokeNamespaceAccessByExternalIdUser(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,c="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 Nt$3({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 Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/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}${l}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateUser(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUserGroup(n,r="body",c=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 Ks,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 l="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteUserGroup(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}findByNamespaceIdUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Nt$3({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 Ks,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}getByIdUserGroup(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMembersUserGroup(n,r="body",c=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 Ks,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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateUserGroup(n,r,c="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 Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var me$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/voice-messages/capability",{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}))}postVoiceMessage(n,r,c,o,t,e,s="body",p=false,a){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling postVoiceMessage.");if(r==null)throw new Error("Required parameter audio was null or undefined when calling postVoiceMessage.");let d=new Nt$3({encoder:this.encoder});d=this.addToHttpParams(d,c,"answerToEventId"),d=this.addToHttpParams(d,o,"durationMs");let i=this.defaultHeaders,l=a?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(i=i.set("Accept",l));let f=a?.context??new Ks,b=a?.transferCache??true,m=["multipart/form-data"],E=this.canConsumeForm(m),V,S=false;S=E,S?V=new FormData:V=new Nt$3({encoder:this.encoder}),t!==void 0&&(V=V.append("answerToEventId",t)||V),r!==void 0&&(V=V.append("audio",r)||V),e!==void 0&&(V=V.append("durationMs",e)||V);let B="json";l&&(l.startsWith("text")?B="text":this.configuration.isJsonMime(l)?B="json":B="blob");let Oe=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/voice-messages`,{basePath:Ve,withCredentials:we}=this.configuration;return this.httpClient.request("post",`${Ve}${Oe}`,x$2(w$1({context:f,body:V,params:d,responseType:B},we?{withCredentials:we}:{}),{headers:i,observe:s,transferCache:b,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y$1,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var De$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(De$2||{});var We$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(We$2||{});var Ge$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Ge$1||{});var _e$2=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(_e$2||{}),Je$2=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Je$2||{});var Le$2=(c=>(c.FREE_TEXT="FREE_TEXT",c.SINGLE_CHOICE="SINGLE_CHOICE",c.OPEN_CHOICE="OPEN_CHOICE",c.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",c))(Le$2||{});function Ol(C){return wt$2([typeof C=="string"?{provide:P$2,useValue:C}:{provide:y$1,useValue:new y$1(w$1({},C))}])}(class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(r=>{let c=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 c.addEventListener("case-event",o),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g$1(y$1);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(r=>{let c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var ve$2=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Pe$2=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var je$3=class C{http=g$1(Xm);config=g$1(y$1);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=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};
6
+ var f=class s{http=g$1(Xm);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 Nt$3;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||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac,providedIn:"root"})};var C=["email","providers","folder","progress"],Y$1=s=>s==="fresh"||s==="nofresh"?s:null,j$2=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,O$2=1500,V$2=8,W$2=2e4,l=(s,e,t)=>({key:s,label:e,state:t.state,percent:t.percent,message:t.message??(s==="java"?t.version:void 0)}),P$1=(s,e)=>{if(s instanceof On$3){let t=s.error;if(t&&typeof t=="object"&&t.error)return t.error;if(s.status===0)return "Cannot reach the Coday server."}return e},R$1=class s{api=g$1(f);users=g$1(He$1);namespaces=g$1(J$2);destroyRef=g$1(Ie$3);status=Ui$2(null);statusError=Ui$2(null);step=Ui$2("email");email=Ui$2("");providers=Ui$2([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=Ui$2("");mode=Ui$2("wizard");preview=Ui$2(null);factoryGraceElapsed=Ui$2(false);factoryGraceTimer=null;busy=Ui$2(false);error=Ui$2(null);emailValid=KC(()=>j$2.test(this.email().trim()));enabledProviders=KC(()=>this.providers().filter(e=>e.enabled));providersValid=KC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=V$2)});folderValid=KC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=KC(()=>C.indexOf(this.step()));checklist=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",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=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),...e.factory?[l("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=KC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=KC(()=>this.status()?.steps.java.state==="blocked");ready=KC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=KC(()=>this.status()?.apply.status==="error");emailLocked=KC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=KC(()=>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),W$2));}refreshStatus(){return B$2(this,null,function*(){try{let e=yield hy(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=Mr$1(0,O$2).pipe(ma(()=>this.api.getStatus().pipe(da(()=>Cr$1(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(e=null){return B$2(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="laptop"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress");return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(C[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$2(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield hy(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(a=>a.id===e);if(!r)return t;let i=t.map(a=>a.id===e?x$2(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=i.find(p=>p.id===e);return [...i.filter(p=>p.id!==e),a]}return i});}setApiKey(e,t){this.providers.update(r=>r.map(i=>i.id===e?x$2(w$1({},i),{apiKey:t}):i));}moveProvider(e,t){this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=a+t;if(a<0||p<0||p>=i.length)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...r.filter(n=>!n.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=i.findIndex(n=>n.id===t);if(a<0||p<0)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...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 hy(this.api.browse(e,t))}mkdir(e,t){return hy(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$2(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield hy(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$2(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(){return B$2(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$2(this,null,function*(){try{let{externalId:e}=yield hy(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield hy(this.namespaces.listByExternalIdsNamespace([t]))).find(i=>i.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac,providedIn:"root"})};var le$2;try{le$2=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){le$2=false;}var v=(()=>{class i{_platformId=g$1(Kr);isBrowser=this._platformId?XV(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||le$2)&&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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function We$1(i,e=0){return Ye$1(i)?Number(i):arguments.length===2?e:0}function Ye$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof xn$3?i.nativeElement:i}var Yn$2=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g$1(U$5)}),Xn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Xe(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Xn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var at$1=(()=>{class i{get value(){return this.valueSignal()}valueSignal=Ui$2("ltr");change=new yt$2;constructor(){let t=g$1(Yn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Xe(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var V$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})();var F$3=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$3||{}),kt$2,j$1;function Rt$2(){if(j$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return j$1=false,j$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)j$1=true;else {let i=Element.prototype.scrollTo;i?j$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):j$1=false;}}return j$1}function q(){if(typeof document!="object"||!document)return F$3.NORMAL;if(kt$2==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),kt$2=F$3.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,kt$2=i.scrollLeft===0?F$3.NEGATED:F$3.INVERTED),i.remove();}return kt$2}var Zn$2=20,Dt$2=(()=>{class i{_ngZone=g$1(G$4);_platform=g$1(v);_renderer=g$1(Sn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$2;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Zn$2){return this._platform.isBrowser?new R$2(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ry(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):Cr$1()}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(Ot$3(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=N(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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),go$1=(()=>{class i{elementRef=g$1(xn$3);scrollDispatcher=g$1(Dt$2);ngZone=g$1(G$4);dir=g$1(at$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ue$2;_renderer=g$1(Yu);_cleanupScroll;_elementScrolled=new ue$2;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let 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&&q()!=F$3.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),q()==F$3.INVERTED?t.left=t.right:q()==F$3.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;Rt$2()?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 a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&q()==F$3.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&q()==F$3.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=al({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),Gn$2=20,st$1=(()=>{class i{_platform=g$1(v);_listeners;_viewportSize=null;_change=new ue$2;_document=g$1(U$5);constructor(){let t=g$1(G$4),n=g$1(Sn$3).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(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=Gn$2){return t>0?this._change.pipe(Ry(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=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Ke$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})(),ce$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({imports:[V$1,Ke$2,V$1,Ke$2]})}return i})();var $e$1=new Map,lt$2=class i{_appId=g$1(Qr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=$e$1.get(e);return n===void 0?n=0:n++,$e$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})};var ct$1=class ct{_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;}},de$1=class de extends ct$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ot$2=class Ot extends ct$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()}},ue=class extends ct$1{element;constructor(e){super(),this.element=e instanceof xn$3?e.nativeElement:e;}},At$2=class At{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof de$1)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ot$2)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ue)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);}},Mt$2=class Mt extends At$2{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(Mn$3,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||pe$3.NULL,r=o.get(fe$4,n.injector);t=_B(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 Do$1=(()=>{class i extends At$2{_moduleRef=g$1(Mn$3,{optional:true});_document=g$1(U$5);_viewContainerRef=g$1(pr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new yt$2;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=Rp(i)))(o||i)}})();static \u0275dir=al({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ng]})}return i})(),qe$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({})}return i})();function Qe$2(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var me$1;function Je$1(){if(me$1==null){let i=typeof document<"u"?document.head:null;me$1=!!(i&&(i.createShadowRoot||i.attachShadow));}return me$1}function he$2(i){if(Je$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function $n$2(){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 D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function pe$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var It$1=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g$1(pe$3);_environmentInjector=g$1(fe$4);load(t){let n=this._appRef=this._appRef||this._injector.get(gr$1),o=It$1.get(n);o||(o={loaders:new Set,refs:[]},It$1.set(n,o),n.onDestroy(()=>{It$1.get(n)?.refs.forEach(r=>r.destroy()),It$1.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(_B(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function Q$1(i){return Array.isArray(i)?i:[i]}var tn=Rt$2();function ln(i){return new Tt$2(i.get(st$1),i.get(U$5))}var Tt$2=class Tt{_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=b(-this._previousScrollPosition.left),e.style.top=b(-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||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),tn&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tn&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_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 cn(i,e){return new Pt$2(i.get(Dt$2),i.get(G$4),i.get(st$1),e)}var Pt$2=class Pt{_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(Ot$3(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 dt$2=class dt{enable(){}disable(){}attach(){}};function fe$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function en(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function dn(i,e){return new Ft(i.get(Dt$2),i.get(st$1),i.get(G$4),e)}var Ft=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();fe$2(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;}},un=(()=>{class i{_injector=g$1(pe$3);noop=()=>new dt$2;close=t=>cn(this._injector,t);block=()=>ln(this._injector);reposition=t=>dn(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Nt$2=class Nt{positionStrategy;scrollStrategy=new dt$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Lt$1=class Lt{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var mn=(()=>{class i{_attachedOverlays=[];_document=g$1(U$5);_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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),hn=(()=>{class i extends mn{_ngZone=g$1(G$4);_renderer=g$1(Sn$3).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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),pn=(()=>{class i extends mn{_platform=g$1(v);_ngZone=g$1(G$4);_renderer=g$1(Sn$3).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=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(nn(l.overlayElement,n)||nn(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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function nn(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 fn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({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 {
7
7
  pointer-events: none;
8
8
  top: 0;
9
9
  left: 0;
@@ -142,7 +142,7 @@ var f=class s{http=g$1(Xm);base="/api/setup";getStatus(){return this.http.get(`$
142
142
  position: fixed;
143
143
  z-index: auto;
144
144
  }
145
- `],encapsulation:2})}return i})(),bn$2=(()=>{class i{_platform=g$1(v);_containerElement;_document=g$1(U$5);_styleLoader=g$1(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pe$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),pe$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(fn);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),be$2=class be{_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 _e$1(i){return i&&i.nodeType===1}var Bt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ue$1;_attachments=new ue$1;_detachments=new ue$1;_positionStrategy;_scrollStrategy;_locationChanges=ee$3.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ue$1;_outsidePointerEvents=new ue$1;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,x){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=x,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=hE(()=>{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=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(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;_e$1(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 be$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=Q$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=hE(()=>{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?.();}},on="cdk-overlay-connected-position-bounding-box",qn$2=/([A-Za-z%]+)$/;function _n$1(i,e){return new zt(e,i.get(st$1),i.get(U$5),i.get(v),i.get(bn$2))}var zt=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 ue$1;_resizeSubscription=ee$3.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(on),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=[],a;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}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={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(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&H$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(on),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 xn$3?this._origin.nativeElement:_e$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a: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=an(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,x=0-l,C=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,x,C),z=w*y;return {visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=rn(this._overlayRef.getConfig().minHeight),l=rn(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=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=an(t),r=this._viewportRect,a=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,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_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||!Qn$2(this._lastScrollVisibility,n)){let o=new Lt$1(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,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let C=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=C*2,a=e.y-C,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,x;if(u)x=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let C=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=C*2,m=e.x-C,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:x,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,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(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=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,H$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){H$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){H$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();H$2(n,this._getExactOverlayY(t,e,c)),H$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(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),H$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 a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(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 a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:en(e,n),isOriginOutsideView:fe$2(e,n),isOverlayClipped:en(t,n),isOverlayOutsideView:fe$2(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&&Q$1(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 xn$3)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 H$2(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function rn(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(qn$2);return !t||t==="px"?parseFloat(e):null}return i||null}function an(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 Qn$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var sn="cdk-global-overlay-wrapper";function gn(i){return new Vt}var Vt=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(sn),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:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,x=this._overlayRef.getConfig().direction==="rtl",C="",w="",y="";d?y="flex-start":c==="center"?(y="center",x?w=m:C=m):x?c==="left"||c==="end"?(y="flex-end",C=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",C=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":C,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,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(sn),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},vn$1=(()=>{class i{_injector=g$1(pe$3);global(){return gn()}flexibleConnectedTo(t){return _n$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),yn=new w("OVERLAY_DEFAULT_CONFIG");function wn$2(i,e){i.get(L$1).load(fn);let t=i.get(bn$2),n=i.get(U$5),o=i.get(lt$2),r=i.get(gr$1),a=i.get(at$1),l=i.get(Yu,null,{optional:true})||i.get(Sn$3).createRenderer(null,null),d=new Nt$2(e),u=i.get(yn,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let x=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return _e$1(x)?x.after(m):x?.type==="parent"?x.element.appendChild(m):t.getContainerElement().appendChild(m),new Bt(new Mt$2(c,r,i),m,c,d,i.get(G$4),i.get(hn),n,i.get(gm),i.get(pn),e?.disableAnimations??i.get(Av,null,{optional:true})==="NoopAnimations",i.get(fe$4),l)}var xn$2=(()=>{class i{scrollStrategies=g$1(un);_positionBuilder=g$1(vn$1);_injector=g$1(pe$3);create(t){return wn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Jn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({providers:[xn$2],imports:[V$1,qe$2,ce$1,ce$1]})}return i})();var En$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
145
+ `],encapsulation:2})}return i})(),bn$2=(()=>{class i{_platform=g$1(v);_containerElement;_document=g$1(U$5);_styleLoader=g$1(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pe$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),pe$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(fn);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),be$2=class be{_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 _e$1(i){return i&&i.nodeType===1}var Bt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ue$2;_attachments=new ue$2;_detachments=new ue$2;_positionStrategy;_scrollStrategy;_locationChanges=ee$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ue$2;_outsidePointerEvents=new ue$2;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,x){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=x,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=hE(()=>{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=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(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;_e$1(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 be$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=Q$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=hE(()=>{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?.();}},on="cdk-overlay-connected-position-bounding-box",qn$2=/([A-Za-z%]+)$/;function _n$1(i,e){return new zt(e,i.get(st$1),i.get(U$5),i.get(v),i.get(bn$2))}var zt=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 ue$2;_resizeSubscription=ee$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(on),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=[],a;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}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={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(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&H$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(on),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 xn$3?this._origin.nativeElement:_e$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a: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=an(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,x=0-l,C=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,x,C),z=w*y;return {visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=rn(this._overlayRef.getConfig().minHeight),l=rn(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=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=an(t),r=this._viewportRect,a=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,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_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||!Qn$2(this._lastScrollVisibility,n)){let o=new Lt$1(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,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let C=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=C*2,a=e.y-C,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,x;if(u)x=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let C=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=C*2,m=e.x-C,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:x,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,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(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=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,H$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){H$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){H$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();H$2(n,this._getExactOverlayY(t,e,c)),H$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(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),H$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 a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(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 a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:en(e,n),isOriginOutsideView:fe$2(e,n),isOverlayClipped:en(t,n),isOverlayOutsideView:fe$2(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&&Q$1(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 xn$3)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 H$2(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function rn(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(qn$2);return !t||t==="px"?parseFloat(e):null}return i||null}function an(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 Qn$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var sn="cdk-global-overlay-wrapper";function gn(i){return new Vt}var Vt=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(sn),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:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,x=this._overlayRef.getConfig().direction==="rtl",C="",w="",y="";d?y="flex-start":c==="center"?(y="center",x?w=m:C=m):x?c==="left"||c==="end"?(y="flex-end",C=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",C=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":C,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,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(sn),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},vn$1=(()=>{class i{_injector=g$1(pe$3);global(){return gn()}flexibleConnectedTo(t){return _n$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),yn=new w("OVERLAY_DEFAULT_CONFIG");function wn$2(i,e){i.get(L$1).load(fn);let t=i.get(bn$2),n=i.get(U$5),o=i.get(lt$2),r=i.get(gr$1),a=i.get(at$1),l=i.get(Yu,null,{optional:true})||i.get(Sn$3).createRenderer(null,null),d=new Nt$2(e),u=i.get(yn,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let x=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return _e$1(x)?x.after(m):x?.type==="parent"?x.element.appendChild(m):t.getContainerElement().appendChild(m),new Bt(new Mt$2(c,r,i),m,c,d,i.get(G$4),i.get(hn),n,i.get(gm),i.get(pn),e?.disableAnimations??i.get(Av,null,{optional:true})==="NoopAnimations",i.get(fe$4),l)}var xn$2=(()=>{class i{scrollStrategies=g$1(un);_positionBuilder=g$1(vn$1);_injector=g$1(pe$3);create(t){return wn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Jn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({providers:[xn$2],imports:[V$1,qe$2,ce$1,ce$1]})}return i})();var En$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
146
146
  border: 0;
147
147
  clip: rect(0 0 0 0);
148
148
  height: 1px;
@@ -161,7 +161,7 @@ var f=class s{http=g$1(Xm);base="/api/setup";getStatus(){return this.http.get(`$
161
161
  left: auto;
162
162
  right: 0;
163
163
  }
164
- `],encapsulation:2})}return i})(),jt$1;function ti$2(){if(jt$1===void 0&&(jt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{jt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return jt$1}function xr(i){return ti$2()?.createHTML(i)||i}var Cn$2=new Set,U$3,Ht=(()=>{class i{_platform=g$1(v);_nonce=g$1(Xr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ni$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&ei$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function ei$2(i,e){if(!Cn$2.has(i))try{U$3||(U$3=document.createElement("style"),e&&U$3.setAttribute("nonce",e),U$3.setAttribute("type","text/css"),document.head.appendChild(U$3)),U$3.sheet&&(U$3.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Cn$2.add(i));}catch(t){console.error(t);}}function ni$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var ii$2=(()=>{class i{_mediaMatcher=g$1(Ht);_zone=g$1(G$4);_queries=new Map;_destroySubject=new ue$1;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return Sn$2(Q$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=Sn$2(Q$1(t)).map(a=>this._registerQuery(a).observable),r=wy(o);return r=kt$3(r.pipe(sn$1(1)),r.pipe(hd(1),pd(0))),r.pipe(ne$2(a=>{let l={matches:false,breakpoints:{}};return a.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 R$2(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(md(n),ne$2(({matches:a})=>({query:t,matches:a})),Cd(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Sn$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function ut$1(i){return i.buttons===0||i.detail===0}function mt$2(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 ht$2;function kn$2(){if(ht$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ht$2=!0}));}finally{ht$2=ht$2||false;}return ht$2}function J$1(i){return kn$2()?i:!!i.capture}var Rn$2=new w("cdk-input-modality-detector-options"),Dn$2={ignoreKeys:[18,17,224,91,16]},On$2=650,ge$2={passive:true,capture:true},An$2=(()=>{class i{_platform=g$1(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new wr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<On$2||(this._modality.next(ut$1(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(mt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g$1(G$4),n=g$1(U$5),o=g$1(Rn$2,{optional:true});if(this._options=w$1(w$1({},Dn$2),o),this.modalityDetected=this._modality.pipe(hd(1)),this.modalityChanged=this.modalityDetected.pipe(Id()),this._platform.isBrowser){let r=g$1(Sn$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ge$2),r.listen(n,"mousedown",this._onMousedown,ge$2),r.listen(n,"touchstart",this._onTouchstart,ge$2)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),pt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(pt$2||{}),Mn$2=new w("cdk-focus-monitor-default-options"),Ut$1=J$1({passive:true,capture:true}),ve$1=(()=>{class i{_ngZone=g$1(G$4);_platform=g$1(v);_inputModalityDetector=g$1(An$2);_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=g$1(U$5);_stopInputModalityDetector=new ue$1;constructor(){let t=g$1(Mn$2,{optional:true});this._detectionMode=t?.detectionMode||pt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(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=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return Cr$1();let r=he$2(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new ue$1,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(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=N(t),a=this._document.activeElement;r===a?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===pt$2.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===pt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?On$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(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,Ut$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ut$1);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Cd(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,Ut$1),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ut$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 a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Tn$2=(()=>{class i{_platform=g$1(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ri$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=oi$2(hi$2(t));if(n&&(In$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=In$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!ui$2(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 mi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function oi$2(i){try{return i.frameElement}catch(e){return null}}function ri$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function ai$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function si$2(i){return ci$2(i)&&i.type=="hidden"}function li$1(i){return di$2(i)&&i.hasAttribute("href")}function ci$2(i){return i.nodeName.toLowerCase()=="input"}function di$2(i){return i.nodeName.toLowerCase()=="a"}function Pn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function In$2(i){if(!Pn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function ui$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function mi$2(i){return si$2(i)?false:ai$2(i)||li$1(i)||i.hasAttribute("contenteditable")||Pn$2(i)}function hi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Wt=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(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,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,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){hE(e,{injector:this._injector});}},pi$2=(()=>{class i{_checker=g$1(Tn$2);_ngZone=g$1(G$4);_document=g$1(U$5);_injector=g$1(pe$3);constructor(){g$1(L$1).load(En$2);}create(t,n=false){return new Wt(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function la$1(i){return i!=null&&`${i}`!="false"}var fi$2=new w("MATERIAL_ANIMATIONS"),Fn$2=null;function bi$2(){return g$1(fi$2,{optional:true})?.animationsDisabled||g$1(Av,{optional:true})==="NoopAnimations"?"di-disabled":(Fn$2??=g$1(Ht).matchMedia("(prefers-reduced-motion)").matches,Fn$2?"reduced-motion":"enabled")}function tt(){return bi$2()!=="enabled"}var _i$2=200,Yt=class{_letterKeyStream=new ue$1;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ue$1;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:_i$2;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(yd(t=>this._pressedLetters.push(t)),pd(e),Ot$3(()=>this._pressedLetters.length>0),ne$2(()=>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=[];});}};var Xt=class{_items;_activeItemIndex=Ui$2(-1);_activeItem=Ui$2(null);_wrap=false;_typeaheadSubscription=ee$3.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 ss$1?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jr(e)&&(this._effectRef=Af(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ue$1;change=new ue$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 Yt(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,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||Qe$2(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 Jr(this._items)?this._items():this._items instanceof ss$1?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 Xt{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var I=(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})(I||{}),we$1=class we{_renderer;element;config;_animationForciblyDisabledThroughCss;state=I.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Nn$2=J$1({passive:true,capture:true}),xe$2=class xe{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.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,Nn$2);});}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,Nn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},ft$2={enterDuration:225,exitDuration:150},gi$2=800,Ln$2=J$1({passive:true,capture:true}),Bn$2=["mousedown","touchstart"],zn$2=["mouseup","mouseleave","touchend","touchcancel"],vi$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
164
+ `],encapsulation:2})}return i})(),jt$1;function ti$2(){if(jt$1===void 0&&(jt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{jt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return jt$1}function xr(i){return ti$2()?.createHTML(i)||i}var Cn$2=new Set,U$3,Ht=(()=>{class i{_platform=g$1(v);_nonce=g$1(Xr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ni$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&ei$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function ei$2(i,e){if(!Cn$2.has(i))try{U$3||(U$3=document.createElement("style"),e&&U$3.setAttribute("nonce",e),U$3.setAttribute("type","text/css"),document.head.appendChild(U$3)),U$3.sheet&&(U$3.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Cn$2.add(i));}catch(t){console.error(t);}}function ni$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var ii$2=(()=>{class i{_mediaMatcher=g$1(Ht);_zone=g$1(G$4);_queries=new Map;_destroySubject=new ue$2;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return Sn$2(Q$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=Sn$2(Q$1(t)).map(a=>this._registerQuery(a).observable),r=wy(o);return r=kt$3(r.pipe(sn$1(1)),r.pipe(hd(1),pd(0))),r.pipe(ne$2(a=>{let l={matches:false,breakpoints:{}};return a.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 R$2(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(md(n),ne$2(({matches:a})=>({query:t,matches:a})),Cd(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Sn$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function ut$1(i){return i.buttons===0||i.detail===0}function mt$2(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 ht$2;function kn$2(){if(ht$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ht$2=!0}));}finally{ht$2=ht$2||false;}return ht$2}function J$1(i){return kn$2()?i:!!i.capture}var Rn$2=new w("cdk-input-modality-detector-options"),Dn$2={ignoreKeys:[18,17,224,91,16]},On$2=650,ge$2={passive:true,capture:true},An$2=(()=>{class i{_platform=g$1(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new wr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<On$2||(this._modality.next(ut$1(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(mt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g$1(G$4),n=g$1(U$5),o=g$1(Rn$2,{optional:true});if(this._options=w$1(w$1({},Dn$2),o),this.modalityDetected=this._modality.pipe(hd(1)),this.modalityChanged=this.modalityDetected.pipe(Id()),this._platform.isBrowser){let r=g$1(Sn$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ge$2),r.listen(n,"mousedown",this._onMousedown,ge$2),r.listen(n,"touchstart",this._onTouchstart,ge$2)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),pt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(pt$2||{}),Mn$2=new w("cdk-focus-monitor-default-options"),Ut$1=J$1({passive:true,capture:true}),ve$1=(()=>{class i{_ngZone=g$1(G$4);_platform=g$1(v);_inputModalityDetector=g$1(An$2);_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=g$1(U$5);_stopInputModalityDetector=new ue$2;constructor(){let t=g$1(Mn$2,{optional:true});this._detectionMode=t?.detectionMode||pt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(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=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return Cr$1();let r=he$2(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new ue$2,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(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=N(t),a=this._document.activeElement;r===a?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===pt$2.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===pt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?On$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(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,Ut$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ut$1);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Cd(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,Ut$1),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ut$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 a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Tn$2=(()=>{class i{_platform=g$1(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ri$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=oi$2(hi$2(t));if(n&&(In$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=In$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!ui$2(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 mi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function oi$2(i){try{return i.frameElement}catch(e){return null}}function ri$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function ai$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function si$2(i){return ci$2(i)&&i.type=="hidden"}function li$1(i){return di$2(i)&&i.hasAttribute("href")}function ci$2(i){return i.nodeName.toLowerCase()=="input"}function di$2(i){return i.nodeName.toLowerCase()=="a"}function Pn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function In$2(i){if(!Pn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function ui$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function mi$2(i){return si$2(i)?false:ai$2(i)||li$1(i)||i.hasAttribute("contenteditable")||Pn$2(i)}function hi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Wt=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(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,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,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){hE(e,{injector:this._injector});}},pi$2=(()=>{class i{_checker=g$1(Tn$2);_ngZone=g$1(G$4);_document=g$1(U$5);_injector=g$1(pe$3);constructor(){g$1(L$1).load(En$2);}create(t,n=false){return new Wt(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function la$1(i){return i!=null&&`${i}`!="false"}var fi$2=new w("MATERIAL_ANIMATIONS"),Fn$2=null;function bi$2(){return g$1(fi$2,{optional:true})?.animationsDisabled||g$1(Av,{optional:true})==="NoopAnimations"?"di-disabled":(Fn$2??=g$1(Ht).matchMedia("(prefers-reduced-motion)").matches,Fn$2?"reduced-motion":"enabled")}function tt(){return bi$2()!=="enabled"}var _i$2=200,Yt=class{_letterKeyStream=new ue$2;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ue$2;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:_i$2;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(yd(t=>this._pressedLetters.push(t)),pd(e),Ot$3(()=>this._pressedLetters.length>0),ne$2(()=>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=[];});}};var Xt=class{_items;_activeItemIndex=Ui$2(-1);_activeItem=Ui$2(null);_wrap=false;_typeaheadSubscription=ee$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 ss$1?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jr(e)&&(this._effectRef=Af(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ue$2;change=new ue$2;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 Yt(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,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||Qe$2(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 Jr(this._items)?this._items():this._items instanceof ss$1?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 Xt{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var I=(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})(I||{}),we$1=class we{_renderer;element;config;_animationForciblyDisabledThroughCss;state=I.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Nn$2=J$1({passive:true,capture:true}),xe$2=class xe{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.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,Nn$2);});}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,Nn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},ft$2={enterDuration:225,exitDuration:150},gi$2=800,Ln$2=J$1({passive:true,capture:true}),Bn$2=["mousedown","touchstart"],zn$2=["mouseup","mouseleave","touchend","touchcancel"],vi$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=mw({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
165
165
  overflow: hidden;
166
166
  position: relative;
167
167
  }
@@ -364,14 +364,14 @@ var f=class s{http=g$1(Xm);base="/api/setup";getStatus(){return this.http.get(`$
364
364
  outline: solid 1px;
365
365
  }
366
366
  }
367
- `],encapsulation:2})}return i})();var Bs=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({imports:[V$1]})}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$1=(()=>{class n extends At$2{_elementRef=g$1(xn$3);_focusTrapFactory=g$1(pi$2);_config;_interactivityChecker=g$1(Tn$2);_ngZone=g$1(G$4);_focusMonitor=g$1(ve$1);_renderer=g$1(Yu);_changeDetectorRef=g$1(sm);_injector=g$1(pe$3);_platform=g$1(v);_document=g$1(U$5);_portalOutlet;_focusTrapped=new ue$1;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$1(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||hE(()=>{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=$n$2(),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=$n$2();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$n$2()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=mw({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&Eg(Do$1,7),t&2){let o;rC(o=oC())&&(i._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&cg("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:[ng],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&og(0,Se$2,0,0,"ng-template",0);},dependencies:[Do$1],styles:[`.cdk-dialog-container {
367
+ `],encapsulation:2})}return i})();var Bs=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$1({type:i});static \u0275inj=Br({imports:[V$1]})}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$1=(()=>{class n extends At$2{_elementRef=g$1(xn$3);_focusTrapFactory=g$1(pi$2);_config;_interactivityChecker=g$1(Tn$2);_ngZone=g$1(G$4);_focusMonitor=g$1(ve$1);_renderer=g$1(Yu);_changeDetectorRef=g$1(sm);_injector=g$1(pe$3);_platform=g$1(v);_document=g$1(U$5);_portalOutlet;_focusTrapped=new ue$2;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$1(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||hE(()=>{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=$n$2(),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=$n$2();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$n$2()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=mw({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&Eg(Do$1,7),t&2){let o;rC(o=oC())&&(i._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&cg("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:[ng],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&og(0,Se$2,0,0,"ng-template",0);},dependencies:[Do$1],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=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ue$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&&!Qe$2(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 w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=g$1(pe$3);return ()=>ln(n)}}),Ee$1=new w("DialogData"),Fe$2=new w("DefaultDialogConfig");function Le$1(n){let a=Ui$2(n),e=new yt$2;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var be$1=(()=>{class n{_injector=g$1(pe$3);_defaultOptions=g$1(Fe$2,{optional:true});_parentDialog=g$1(n,{optional:true,skipSelf:true});_overlayContainer=g$1(bn$2);_idGenerator=g$1(lt$2);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$1;_afterOpenedAtThisLevel=new ue$1;_ariaHiddenElements=new Map;_scrollStrategy=g$1(Ie$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=xy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(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=wn$2(this._injector,o),s=new y(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(sn$1(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$1(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){z$1(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),z$1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Nt$2({positionStrategy:e.positionStrategy||gn().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,useValue:t},{provide:Bt,useValue:e}],s;i.container?typeof i.container=="function"?s=i.container:(s=i.container.type,l.push(...i.container.providers(i))):s=H$1;let d=new de$1(s,i.viewContainerRef,pe$3.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,i,o){if(e instanceof cr$1){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 Ot$2(e,null,s,l));}else {let l=this._createInjector(o,t,i,this._injector),s=i.attachComponentPortal(new de$1(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,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(at$1,null,{optional:true}))&&s.push({provide:at$1,useValue:Le$1(e.direction)}),pe$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=Ce$5({token:n,factory:n.\u0275fac})}return n})();function z$1(n,a){let e=n.length;for(;e--;)a(n[e]);}function Re$2(n,a){}var L=class{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$1{_animationStateChanged=new yt$2;_animationsEnabled=!tt();_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=Rp(n)))(i||n)}})();static \u0275cmp=mw({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(hg("id",i._config.id),cg("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),Sg("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[ng],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&&(Ds$1(0,"div",0)(1,"div",1),og(2,Re$2,0,0,"ng-template",2),pl()());},dependencies:[Do$1],styles:[`.mat-mdc-dialog-container {
374
+ `],encapsulation:2,changeDetection:1})}return n})(),y=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ue$2;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&&!Qe$2(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 w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=g$1(pe$3);return ()=>ln(n)}}),Ee$1=new w("DialogData"),Fe$2=new w("DefaultDialogConfig");function Le$1(n){let a=Ui$2(n),e=new yt$2;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var be$1=(()=>{class n{_injector=g$1(pe$3);_defaultOptions=g$1(Fe$2,{optional:true});_parentDialog=g$1(n,{optional:true,skipSelf:true});_overlayContainer=g$1(bn$2);_idGenerator=g$1(lt$2);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$2;_afterOpenedAtThisLevel=new ue$2;_ariaHiddenElements=new Map;_scrollStrategy=g$1(Ie$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=xy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(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=wn$2(this._injector,o),s=new y(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(sn$1(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$1(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){z$1(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),z$1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Nt$2({positionStrategy:e.positionStrategy||gn().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,useValue:t},{provide:Bt,useValue:e}],s;i.container?typeof i.container=="function"?s=i.container:(s=i.container.type,l.push(...i.container.providers(i))):s=H$1;let d=new de$1(s,i.viewContainerRef,pe$3.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,i,o){if(e instanceof cr$1){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 Ot$2(e,null,s,l));}else {let l=this._createInjector(o,t,i,this._injector),s=i.attachComponentPortal(new de$1(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,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(at$1,null,{optional:true}))&&s.push({provide:at$1,useValue:Le$1(e.direction)}),pe$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=Ce$5({token:n,factory:n.\u0275fac})}return n})();function z$1(n,a){let e=n.length;for(;e--;)a(n[e]);}function Re$2(n,a){}var L=class{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$1{_animationStateChanged=new yt$2;_animationsEnabled=!tt();_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=Rp(n)))(i||n)}})();static \u0275cmp=mw({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(hg("id",i._config.id),cg("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),Sg("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[ng],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&&(Ds$1(0,"div",0)(1,"div",1),og(2,Re$2,0,0,"ng-template",2),pl()());},dependencies:[Do$1],styles:[`.mat-mdc-dialog-container {
375
375
  width: 100%;
376
376
  height: 100%;
377
377
  display: block;
@@ -560,5 +560,5 @@ var f=class s{http=g$1(Xm);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")?We$1(n.substring(0,n.length-2)):n.endsWith("s")?We$1(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 _r$1(1);_beforeClosed=new _r$1(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(Ot$3(i=>i.state==="opened"),sn$1(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ot$3(i=>i.state==="closed"),sn$1(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Ay(this.backdropClick(),this.keydownEvents().pipe(Ot$3(i=>i.keyCode===27&&!this.disableClose&&!Qe$2(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je$2(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(Ot$3(t=>t.state==="closing"),sn$1(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$2(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new w("MatMdcDialogData"),Ve$2=new w("mat-mdc-dialog-default-options"),ze$2=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$1(pe$3);return ()=>ln(n)}}),Et$2=(()=>{class n{_defaultOptions=g$1(Ve$2,{optional:true});_scrollStrategy=g$1(ze$2);_parentDialog=g$1(n,{optional:true,skipSelf:true});_idGenerator=g$1(lt$2);_injector=g$1(pe$3);_dialog=g$1(be$1);_animationsDisabled=tt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$1;_afterOpenedAtThisLevel=new ue$1;dialogConfigClass=L;_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=xy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(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),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:gn(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=Ce$5({token:n,factory:n.\u0275fac})}return n})();function U$2(n){n||(n=g$1(Ie$4));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Cd(e))}function T$1(n,e){let t=g$1(pe$3),o=new _r$1(1),c=Af(()=>{let r;try{r=n();}catch(i){wo$1(()=>o.error(i));return}wo$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Ie$4).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(Ie$4)??g$1(Ie$4):null,c=h(e?.equal),r;e?.requireSync?r=Ui$2({kind:0},{equal:c}):r=Ui$2({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 m$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),KC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(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 p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(By()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei$1(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return Sy(t)?t:Rs$1(t)?Ye$2(Promise.resolve(t)):Cr$1(t)}function Nn$1(t){return Sy(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return KC(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui$1.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li$1(n.queryParams),i=typeof n.fragment=="string"?`#${Oi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ui$1=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi$1(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji$1=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji$1);return n?n[0]:""}var xi$1=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi$1);return n?n[0]:""}var $i$1=/^[^=?&#]+/;function zi$1(t){let n=t.match($i$1);return n?n[0]:""}var Hi$1=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi$1);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$1(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$1(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$1(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$1(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi$1(e)}function qi$1(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi$1(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi$1(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$1(4003,false);let i=r.find(He);if(i&&i!==Ei$1(r))throw new m$1(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi$1(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi$1(e,i,t.numberOfDoubleDots)}function Gi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$1(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi$1(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki$1(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se$1="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O$1=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O$1{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O$1{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$=class extends O$1{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G$1=class G extends O$1{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de=class extends O$1{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O$1{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O$1{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt$1=class Rt extends O$1{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O$1{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O$1{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi$1(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$1(fe$4))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi$1(t,n),r=new wr$1([new ee$1("",{})]),i=new wr$1({}),o=new wr$1({}),a=new wr$1({}),c=new wr$1(""),s=new W(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi$1(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$2(u=>u[Qe$1]))??Cr$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$2(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$2(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji$1="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}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??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new w(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$2;deactivateEvents=new yt$2;attachEvents=new yt$2;detachEvents=new yt$2;routerOutletData=DB();parentContexts=g$1(pe$1);location=g$1(pr$1);changeDetector=g$1(sm);inputBinder=g$1(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$1(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=al({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Du]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new w(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=wy([this.options.queryParams?r.queryParams:Cr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Cr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=MB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&lg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$2(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi$1(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W(new wr$1(t.url),new wr$1(t.params),new wr$1(t.queryParams),new wr$1(t.fragment),new wr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe$1(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Jy(t)?t:n.get(t):r}function xe$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe$1(t,n,c?c.children:null,r,i):xe$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe$1(t,null,c?c.children:null,r,i):xe$1(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return qn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e(a,n.children.getContext(o),e):$e(a,null,e):$e(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof on$1||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return fa(t=>wy(t.map(n=>n.pipe(sn$1(1),md(ht$1)))).pipe(ne$2(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$3(n=>n!==ht$1),sn$1(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Cr$1(void 0).pipe(sn$1(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Cd(Jn$1(t))}function go(t){return ht$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Cr$1(x$2(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(ht$3(a=>a&&so(a)?mo(e,i,t):Cr$1(a)),ne$2(a=>x$2(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$2(t).pipe(ht$3(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$2(n).pipe(ui$3(r=>kt$3(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),By(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),Cr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Cr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Cr$1(true);let r=e.map(i=>xy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):qn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Cr$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>xy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):qn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Cr$1(a).pipe(Ne$1())}));return Cr$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Cr$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):qn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Cr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Cr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):qn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Cr$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return ry(yd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$2(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Cr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):qn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Cr$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$1(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$2(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$2(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$1(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(qn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=Jh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return Cr$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$2(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn$1(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot$1(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot$1(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot$1(t,n,r))}function Ot$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$2(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(this,null,function*(){let n=bn$1(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$2(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$2(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$2(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$2(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$2(this,null,function*(){if(H(r)!==a&&(a===p||!Ot$1(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn$1(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$2(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return ht$3(c=>B$2(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$2(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return ht$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Cr$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ye$2(o).pipe(ui$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Cr$1(void 0))),yd(()=>a++),Vy(1),ht$3(c=>a===o.size?Cr$1(n):nn$1))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),xy(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$2(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return Cr$1({});let i={};return Ye$2(r).pipe(ht$3(o=>Go(t[o],n,e).pipe(By(),yd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Vy(1),ne$2(()=>i),da(o=>Zn$1(o)?nn$1:by(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):qn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$2(e).pipe(ne$2(()=>n)):Cr$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$1(SH))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new w("",{factory:()=>({})}),ge$1=new w(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$1(ZC);loadComponent(e,r){return B$2(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 i=B$2(this,null,function*(){try{let o=yield Nn$1(qn$3(e,()=>r.loadComponent())),a=yield si$1(yB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$2(this,null,function*(){let i=yield Nn$1(qn$3(e,()=>t.loadChildren())),o=yield si$1(yB(i)),a;o instanceof Xh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$2(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new w(""),Nr=new w("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&qn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{hE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new w(""),Ko=()=>{},Mr=new w(""),jt=(()=>{class t{currentNavigation=Ui$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$2(null);events=new ue$1;transitionAbortWithErrorSubject=new ue$1;configLoader=g$1(Pt$1);environmentInjector=g$1(fe$4);destroyRef=g$1(Ie$4);urlSerializer=g$1(ne);rootContexts=g$1(pe$1);location=g$1(gm);inputBindingEnabled=g$1(Ke$1,{optional:true})!==null;titleStrategy=g$1(Er);options=g$1(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji$1;urlHandlingStrategy=g$1(Lt);createViewTransition=g$1(Tr,{optional:true});navigationErrorHandler=g$1(Mr,{optional:true});activatedRouteInjectorFeature=g$1(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Cr$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;wo$1(()=>{this.transitions?.next(x$2(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new wr$1(null),this.transitions.pipe(Ot$3(r=>r!==null),fa(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Cr$1(r).pipe(fa(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),nn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),nn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Cr$1(s).pipe(fa(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?nn$1:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),yd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),fa(g=>Ye$2(r.routesRecognizeHandler.deferredHandle??Cr$1(void 0)).pipe(ne$2(()=>g))),yd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$2(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Cr$1(r)}else return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),nn$1}),ne$2(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),fa(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return nn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),nn$1;if(s.guards.canActivateChecks.length===0)return Cr$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return nn$1;let v=false;return Cr$1(s).pipe(qo(this.paramsInheritanceStrategy),yd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Cr$1(s):Ye$2(Promise.all(d).then(()=>s))}),fa(s=>{let{newlyCreatedRoutes:u,state:d}=Xi$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$2(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Cr$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),fa(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ye$2(d).pipe(ne$2(()=>r)):Cr$1(r)}),sn$1(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$2(u.then(()=>s)):Cr$1(s)}),yd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(wo$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Cd(Jn$1(a.signal).pipe(Ot$3(()=>!o&&i),yd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),yd({complete:()=>{o=true;}}),Cd(this.transitionAbortWithErrorSubject.pipe(yd(s=>{throw s}))),li$2(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),da(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),nn$1;if(Yn$1(s))this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=qn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return nn$1}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=wo$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se$1}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li=new w("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g$1(ne);options=g$1(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$1(gm);urlHandlingStrategy=g$1(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g$1(fe$4));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G$1?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $&&!Fn$1(e)?this.restoreHistory(r):e instanceof de?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt$1(t,n){t.events.pipe(Ot$3(e=>e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(e=>e instanceof P||e instanceof G$1?0:(e instanceof $?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$3(e=>e!==2),sn$1(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$1(sg);stateManager=g$1(xt);options=g$1(ie,{optional:true})||{};pendingTasks=g$1(qt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$1(jt);urlSerializer=g$1(ne);location=g$1(gm);urlHandlingStrategy=g$1(Lt);injector=g$1(fe$4);_events=new ue$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$1(hi$1);injectorCleanup=g$1(li,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$1(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$1(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$3;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=wo$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se$1,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se$1,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$2(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(ot$1)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wo$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$1,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Xe$1(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$1(4008,false)}var ea=(()=>{class t{router=g$1(F);stateManager=g$1(xt);fragment=Ui$2("");queryParams=Ui$2({});path=Ui$2("");serializer=g$1(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$1(new Yg("href"),{optional:true});reactiveHref=JC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return wo$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return wo$1(this._target)}_target=Ui$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return wo$1(this._queryParams)}_queryParams=Ui$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return wo$1(this._fragment)}_fragment=Ui$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return wo$1(this._queryParamsHandling)}_queryParamsHandling=Ui$2(void 0);set state(e){this._state.set(e);}get state(){return wo$1(this._state)}_state=Ui$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return wo$1(this._info)}_info=Ui$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return wo$1(this._relativeTo)}_relativeTo=Ui$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return wo$1(this._preserveFragment)}_preserveFragment=Ui$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return wo$1(this._skipLocationChange)}_skipLocationChange=Ui$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return wo$1(this._replaceUrl)}_replaceUrl=Ui$2(false);browserUrl=DB(void 0);isAnchorElement;onChanges=new ue$1;applicationErrorHandler=g$1(ot$1);options=g$1(ie,{optional:true});reactiveRouterState=g$1(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Ui$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=KC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$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:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return wo$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(W),Iu("tabindex"),ze$3(Yu),ze$3(xn$3),ze$3(yr$1))};static \u0275dir=al({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&mg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&cg("href",i.reactiveHref(),KD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",AT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",AT],replaceUrl:[2,"replaceUrl","replaceUrl",AT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Du]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$2;link=g$1($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){Cr$1(this.links.changes,Cr$1(null)).pipe(Sr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ye$2(e).pipe(Sr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?wo$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(xn$3),ze$3(Yu),ze$3(sm))};static \u0275dir=al({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Dg(o,$t,5),r&2){let a;rC(a=oC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Du]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$3(e=>e instanceof P),ui$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Jh(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ye$2(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Cr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$2(this.loader.loadChildren(e,r)):i=Cr$1(null);let o=i.pipe(ht$3(a=>a===null?Cr$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ye$2([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$1(F),b$1(fe$4),b$1(Ze),b$1(Pt$1))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new w(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$1;restoredId=0;store={};isHydrating=g$1(yD,{optional:true})??false;urlSerializer=g$1(ne);zone=g$1(G$4);viewportScroller=g$1(JV);transitions=g$1(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$1(gr$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(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G$1&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=wo$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$2(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$2([{provide:ge$1,multi:true,useValue:t},{provide:W,useFactory:pi$1},{provide:dl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g$1(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g$1(pe$3);return n=>{let e=t.get(gr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new w("",{factory:()=>new ue$1}),_r=new w("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},Iw(()=>{let n=g$1(pe$3);return n.get(kT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt$1(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?Cr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Iw(()=>{g$1(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new w("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi(t){ut$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[gm,{provide:ne,useClass:Y},F,pe$1,{provide:W,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Os$1({type:t});static \u0275inj=Br({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g$1(JV),n=g$1(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:yr$1,useClass:jT}}function ca(){return {provide:yr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new w("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:dl,multi:true,useExisting:Dr}]}
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 m$1(3e3,false)}function Ai(){return new m$1(3100,false)}function ki(){return new m$1(3101,false)}function Pi(s){return new m$1(3001,false)}function Ci(s){return new m$1(3003,false)}function Mi(s){return new m$1(3004,false)}function bn(s,e){return new m$1(3005,false)}function Tn(){return new m$1(3006,false)}function wn(){return new m$1(3007,false)}function An(s,e){return new m$1(3008,false)}function kn(s){return new m$1(3002,false)}function Pn(s,e,t,n,i){return new m$1(3010,false)}function Cn(){return new m$1(3011,false)}function Mn(){return new m$1(3012,false)}function Nn(){return new m$1(3200,false)}function Dn(){return new m$1(3202,false)}function Rn(){return new m$1(3013,false)}function On(s){return new m$1(3014,false)}function Fn(s){return new m$1(3015,false)}function In(s){return new m$1(3016,false)}function Ln(s,e){return new m$1(3404,false)}function Ni(s){return new m$1(3502,false)}function Bn(s){return new m$1(3503,false)}function xn(){return new m$1(3300,false)}function zn(s){return new m$1(3504,false)}function Kn(s){return new m$1(3301,false)}function qn(s,e){return new m$1(3302,false)}function Vn(s){return new m$1(3303,false)}function jn(s,e){return new m$1(3400,false)}function Qn(s){return new m$1(3401,false)}function Un(s){return new m$1(3402,false)}function $n(s,e){return new m$1(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=x$1({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$2(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$1(U$5),b$1(ee),b$1(te))};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(g$1(jl),g$1(ce),g$1(G$4))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:Sn$3,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return ut$2("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new w("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$2(null,null,function*(){if(Ot)return true;let s=g$1(R$1),e=g$1(F),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$2(null,null,function*(){return (yield g$1(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 g$1(F).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-CcnD-khz.js').then(s=>s.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-B7CFfwor.js').then(function(n){return n.aa}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$2(this,arguments,function*(s,e=Ms){yield hy(s.loadMe().pipe(My(e),da(n=>(console.warn("Failed to load current user",n),Cr$1(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-B7CFfwor.js').then(function(n){return n.aa});yield bi(s.get(e));})}var Ti={providers:[Nv(),bB({eventCoalescing:true}),ia(Ei),nS(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:cl,useFactory:Ns,deps:[pe$3],multi:true},bl({basePath:"/api/agentos"}),{provide:Ve$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&(Ds$1(0,"div",0),lg(1,"div",2),Ds$1(2,"p"),MC(3,"Loading Coday\u2026"),pl()());}function Rs(s,e){if(s&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let i=Xw();return ff(i.reload())}),MC(4,"Reload"),pl()();}}var Os=s=>s instanceof re$1?"pending":s instanceof de?"failed":"idle",Ue=class s{title="client";phase=F$1(g$1(F).events.pipe(Ot$3(e=>e instanceof re$1||e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=mw({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&&(Pw(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),lg(2,"router-outlet")),t&2){let i;Lw((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[oa,br],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})};Ab(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{wr$1 as $,Af as A,B$2 as B,C,Ds$1 as D,x$2 as E,F,ug as G,Hw as H,Ie$4 as I,mg as J,KC as K,Lw as L,MC as M,SI as N,Og as O,Pw as P,MI as Q,R$1 as R,Sg as S,br as T,Ui$2 as U,Vw as V,W,Xw as X,Y$1 as Y,D$1 as Z,_$1 as _,pl as a,sC as a$,Re$3 as a0,fa as a1,da as a2,nn$1 as a3,ve$2 as a4,yd as a5,x$1 as a6,On$3 as a7,G$3 as a8,F$1 as a9,se as aA,T$1 as aB,Uy as aC,X as aD,ye$3 as aE,be$3 as aF,fe$3 as aG,L$2 as aH,ue$1 as aI,pb as aJ,Bg as aK,jg as aL,UC as aM,HC as aN,WC as aO,kC as aP,F$4 as aQ,hy as aR,J$2 as aS,Ee$3 as aT,A$2 as aU,z$3 as aV,He$1 as aW,xn$3 as aX,Yu as aY,al as aZ,yt$2 as a_,Cr$1 as aa,kw as ab,Bw as ac,W$3 as ad,$$1 as ae,Se$4 as af,Ve$3 as ag,qe$3 as ah,md as ai,Ty as aj,Me$3 as ak,jw as al,Ie$3 as am,k as an,N$1 as ao,Oe$1 as ap,kg as aq,wy as ar,$t as as,$C as at,GC as au,ZD as av,U$4 as aw,K$2 as ax,Te$1 as ay,ne$2 as az,gl as b,G$4 as b$,Eg as b0,rC as b1,oC as b2,DB as b3,AT as b4,eC as b5,tC as b6,vB as b7,Ri$2 as b8,ii$2 as b9,ye$2 as bA,Ay as bB,Qe$2 as bC,ig as bD,BC as bE,Dg as bF,U$5 as bG,ve$1 as bH,L$1 as bI,Hn$2 as bJ,bs$1 as bK,mt$2 as bL,ut$1 as bM,We$1 as bN,go$1 as bO,ng as bP,_t$2 as bQ,Ce$5 as bR,Oe$2 as bS,xr as bT,by as bU,li$2 as bV,va as bW,b$1 as bX,Tf as bY,pr$1 as bZ,at$1 as b_,EB as ba,IB as bb,wg as bc,iC as bd,pd as be,Id as bf,w as bg,Os$1 as bh,Br as bi,ze$3 as bj,Rp as bk,gr$1 as bl,sm as bm,hE as bn,la$1 as bo,Se$5 as bp,ee$3 as bq,Yg as br,sn$1 as bs,Bs as bt,Jn$2 as bu,V$1 as bv,Ke$2 as bw,tt as bx,ss$1 as by,lt$2 as bz,hg as c,db as c$,Cd as c0,wn$2 as c1,Nt$2 as c2,_n$1 as c3,Ot$3 as c4,Ot$2 as c5,kI as c6,pi$2 as c7,v as c8,Tn$2 as c9,Be$3 as cA,fb as cB,SB as cC,$e$2 as cD,My as cE,Y$2 as cF,hd as cG,oe$1 as cH,jy as cI,Hy as cJ,$y as cK,wB as cL,de$2 as cM,ky as cN,Mr$1 as cO,ma as cP,cb as cQ,Fe$3 as cR,ne$1 as cS,JC as cT,te$2 as cU,ae$1 as cV,Ue$1 as cW,bf as cX,Ne$3 as cY,ke$2 as cZ,Et$2 as c_,ha as ca,st$1 as cb,Oy as cc,Rs$1 as cd,Ye$2 as ce,dn as cf,Ci$3 as cg,Du as ch,ww as ci,rS as cj,cr$1 as ck,m$1 as cl,ab as cm,og as cn,pg as co,qC as cp,Ce$4 as cq,ta as cr,xy as cs,pa as ct,Ly as cu,ui$3 as cv,hr$1 as cw,le$3 as cx,Ae$3 as cy,ge$3 as cz,dg as d,ee$2 as d0,Ne$2 as d1,W$1 as d2,FC as d3,Pg as d4,Lg as d5,CB as d6,Ig as d7,ce$2 as d8,Fg as d9,cg as e,P$1 as f,g$1 as g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$3 as p,qw as q,yC as r,bg as s,Xm as t,y$1 as u,vl as v,wo$1 as w,U$2 as x,yg as y,w$1 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")?We$1(n.substring(0,n.length-2)):n.endsWith("s")?We$1(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 _r$1(1);_beforeClosed=new _r$1(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(Ot$3(i=>i.state==="opened"),sn$1(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ot$3(i=>i.state==="closed"),sn$1(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Ay(this.backdropClick(),this.keydownEvents().pipe(Ot$3(i=>i.keyCode===27&&!this.disableClose&&!Qe$2(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je$2(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(Ot$3(t=>t.state==="closing"),sn$1(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$2(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new w("MatMdcDialogData"),Ve$2=new w("mat-mdc-dialog-default-options"),ze$2=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$1(pe$3);return ()=>ln(n)}}),Et$2=(()=>{class n{_defaultOptions=g$1(Ve$2,{optional:true});_scrollStrategy=g$1(ze$2);_parentDialog=g$1(n,{optional:true,skipSelf:true});_idGenerator=g$1(lt$2);_injector=g$1(pe$3);_dialog=g$1(be$1);_animationsDisabled=tt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$2;_afterOpenedAtThisLevel=new ue$2;dialogConfigClass=L;_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=xy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(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),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:gn(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=Ce$5({token:n,factory:n.\u0275fac})}return n})();function U$2(n){n||(n=g$1(Ie$3));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Cd(e))}function T$1(n,e){let t=g$1(pe$3),o=new _r$1(1),c=Af(()=>{let r;try{r=n();}catch(i){wo$1(()=>o.error(i));return}wo$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Ie$3).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(Ie$3)??g$1(Ie$3):null,c=h(e?.equal),r;e?.requireSync?r=Ui$2({kind:0},{equal:c}):r=Ui$2({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 m$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),KC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(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 p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(By()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei$1(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return Sy(t)?t:Rs$1(t)?Ye$2(Promise.resolve(t)):Cr$1(t)}function Nn$1(t){return Sy(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return KC(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui$1.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li$1(n.queryParams),i=typeof n.fragment=="string"?`#${Oi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ui$1=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi$1(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji$1=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji$1);return n?n[0]:""}var xi$1=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi$1);return n?n[0]:""}var $i$1=/^[^=?&#]+/;function zi$1(t){let n=t.match($i$1);return n?n[0]:""}var Hi$1=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi$1);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$1(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$1(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$1(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$1(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi$1(e)}function qi$1(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi$1(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi$1(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$1(4003,false);let i=r.find(He);if(i&&i!==Ei$1(r))throw new m$1(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi$1(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi$1(e,i,t.numberOfDoubleDots)}function Gi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$1(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi$1(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki$1(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se$1="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O$1=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O$1{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O$1{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$=class extends O$1{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G$1=class G extends O$1{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de=class extends O$1{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O$1{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O$1{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt$1=class Rt extends O$1{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O$1{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O$1{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi$1(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$1(fe$4))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi$1(t,n),r=new wr$1([new ee$1("",{})]),i=new wr$1({}),o=new wr$1({}),a=new wr$1({}),c=new wr$1(""),s=new W(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi$1(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$2(u=>u[Qe$1]))??Cr$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$2(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$2(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji$1="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}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??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new w(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$2;deactivateEvents=new yt$2;attachEvents=new yt$2;detachEvents=new yt$2;routerOutletData=DB();parentContexts=g$1(pe$1);location=g$1(pr$1);changeDetector=g$1(sm);inputBinder=g$1(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$1(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=al({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Du]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new w(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=wy([this.options.queryParams?r.queryParams:Cr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Cr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=MB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&lg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$2(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi$1(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W(new wr$1(t.url),new wr$1(t.params),new wr$1(t.queryParams),new wr$1(t.fragment),new wr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe$1(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Jy(t)?t:n.get(t):r}function xe$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe$1(t,n,c?c.children:null,r,i):xe$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe$1(t,null,c?c.children:null,r,i):xe$1(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return qn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e(a,n.children.getContext(o),e):$e(a,null,e):$e(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof on$1||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return fa(t=>wy(t.map(n=>n.pipe(sn$1(1),md(ht$1)))).pipe(ne$2(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$3(n=>n!==ht$1),sn$1(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Cr$1(void 0).pipe(sn$1(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Cd(Jn$1(t))}function go(t){return ht$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Cr$1(x$2(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(ht$3(a=>a&&so(a)?mo(e,i,t):Cr$1(a)),ne$2(a=>x$2(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$2(t).pipe(ht$3(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$2(n).pipe(ui$3(r=>kt$3(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),By(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),Cr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Cr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Cr$1(true);let r=e.map(i=>xy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):qn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Cr$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>xy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):qn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Cr$1(a).pipe(Ne$1())}));return Cr$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Cr$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):qn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Cr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Cr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):qn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Cr$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return ry(yd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$2(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Cr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):qn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Cr$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$1(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$2(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$2(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$1(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(qn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=Jh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return Cr$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$2(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn$1(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot$1(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot$1(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot$1(t,n,r))}function Ot$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$2(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(this,null,function*(){let n=bn$1(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$2(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$2(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$2(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$2(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$2(this,null,function*(){if(H(r)!==a&&(a===p||!Ot$1(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn$1(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$2(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return ht$3(c=>B$2(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$2(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return ht$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Cr$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ye$2(o).pipe(ui$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Cr$1(void 0))),yd(()=>a++),Vy(1),ht$3(c=>a===o.size?Cr$1(n):nn$1))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),xy(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$2(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return Cr$1({});let i={};return Ye$2(r).pipe(ht$3(o=>Go(t[o],n,e).pipe(By(),yd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Vy(1),ne$2(()=>i),da(o=>Zn$1(o)?nn$1:by(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):qn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$2(e).pipe(ne$2(()=>n)):Cr$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$1(SH))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new w("",{factory:()=>({})}),ge$1=new w(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$1(ZC);loadComponent(e,r){return B$2(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 i=B$2(this,null,function*(){try{let o=yield Nn$1(qn$3(e,()=>r.loadComponent())),a=yield si$1(yB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$2(this,null,function*(){let i=yield Nn$1(qn$3(e,()=>t.loadChildren())),o=yield si$1(yB(i)),a;o instanceof Xh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$2(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new w(""),Nr=new w("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&qn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{hE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new w(""),Ko=()=>{},Mr=new w(""),jt=(()=>{class t{currentNavigation=Ui$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$2(null);events=new ue$2;transitionAbortWithErrorSubject=new ue$2;configLoader=g$1(Pt$1);environmentInjector=g$1(fe$4);destroyRef=g$1(Ie$3);urlSerializer=g$1(ne);rootContexts=g$1(pe$1);location=g$1(gm);inputBindingEnabled=g$1(Ke$1,{optional:true})!==null;titleStrategy=g$1(Er);options=g$1(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji$1;urlHandlingStrategy=g$1(Lt);createViewTransition=g$1(Tr,{optional:true});navigationErrorHandler=g$1(Mr,{optional:true});activatedRouteInjectorFeature=g$1(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Cr$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;wo$1(()=>{this.transitions?.next(x$2(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new wr$1(null),this.transitions.pipe(Ot$3(r=>r!==null),fa(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Cr$1(r).pipe(fa(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),nn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),nn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Cr$1(s).pipe(fa(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?nn$1:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),yd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),fa(g=>Ye$2(r.routesRecognizeHandler.deferredHandle??Cr$1(void 0)).pipe(ne$2(()=>g))),yd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$2(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Cr$1(r)}else return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),nn$1}),ne$2(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),fa(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return nn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),nn$1;if(s.guards.canActivateChecks.length===0)return Cr$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return nn$1;let v=false;return Cr$1(s).pipe(qo(this.paramsInheritanceStrategy),yd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Cr$1(s):Ye$2(Promise.all(d).then(()=>s))}),fa(s=>{let{newlyCreatedRoutes:u,state:d}=Xi$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$2(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Cr$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),fa(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ye$2(d).pipe(ne$2(()=>r)):Cr$1(r)}),sn$1(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$2(u.then(()=>s)):Cr$1(s)}),yd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(wo$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Cd(Jn$1(a.signal).pipe(Ot$3(()=>!o&&i),yd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),yd({complete:()=>{o=true;}}),Cd(this.transitionAbortWithErrorSubject.pipe(yd(s=>{throw s}))),li$2(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),da(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),nn$1;if(Yn$1(s))this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=qn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return nn$1}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=wo$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se$1}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li=new w("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g$1(ne);options=g$1(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$1(gm);urlHandlingStrategy=g$1(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g$1(fe$4));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G$1?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $&&!Fn$1(e)?this.restoreHistory(r):e instanceof de?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt$1(t,n){t.events.pipe(Ot$3(e=>e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(e=>e instanceof P||e instanceof G$1?0:(e instanceof $?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$3(e=>e!==2),sn$1(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$1(sg);stateManager=g$1(xt);options=g$1(ie,{optional:true})||{};pendingTasks=g$1(qt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$1(jt);urlSerializer=g$1(ne);location=g$1(gm);urlHandlingStrategy=g$1(Lt);injector=g$1(fe$4);_events=new ue$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$1(hi$1);injectorCleanup=g$1(li,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$1(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$1(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$2;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=wo$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se$1,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se$1,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$2(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(ot$1)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wo$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$1,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Xe$1(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$1(4008,false)}var ea=(()=>{class t{router=g$1(F);stateManager=g$1(xt);fragment=Ui$2("");queryParams=Ui$2({});path=Ui$2("");serializer=g$1(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$1(new Yg("href"),{optional:true});reactiveHref=JC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return wo$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return wo$1(this._target)}_target=Ui$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return wo$1(this._queryParams)}_queryParams=Ui$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return wo$1(this._fragment)}_fragment=Ui$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return wo$1(this._queryParamsHandling)}_queryParamsHandling=Ui$2(void 0);set state(e){this._state.set(e);}get state(){return wo$1(this._state)}_state=Ui$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return wo$1(this._info)}_info=Ui$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return wo$1(this._relativeTo)}_relativeTo=Ui$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return wo$1(this._preserveFragment)}_preserveFragment=Ui$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return wo$1(this._skipLocationChange)}_skipLocationChange=Ui$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return wo$1(this._replaceUrl)}_replaceUrl=Ui$2(false);browserUrl=DB(void 0);isAnchorElement;onChanges=new ue$2;applicationErrorHandler=g$1(ot$1);options=g$1(ie,{optional:true});reactiveRouterState=g$1(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Ui$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=KC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$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:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return wo$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(W),Iu("tabindex"),ze$3(Yu),ze$3(xn$3),ze$3(yr$1))};static \u0275dir=al({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&mg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&cg("href",i.reactiveHref(),KD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",AT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",AT],replaceUrl:[2,"replaceUrl","replaceUrl",AT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Du]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$2;link=g$1($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){Cr$1(this.links.changes,Cr$1(null)).pipe(Sr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ye$2(e).pipe(Sr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?wo$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(xn$3),ze$3(Yu),ze$3(sm))};static \u0275dir=al({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Dg(o,$t,5),r&2){let a;rC(a=oC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Du]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$3(e=>e instanceof P),ui$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Jh(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ye$2(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Cr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$2(this.loader.loadChildren(e,r)):i=Cr$1(null);let o=i.pipe(ht$3(a=>a===null?Cr$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ye$2([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$1(F),b$1(fe$4),b$1(Ze),b$1(Pt$1))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new w(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$1;restoredId=0;store={};isHydrating=g$1(yD,{optional:true})??false;urlSerializer=g$1(ne);zone=g$1(G$4);viewportScroller=g$1(JV);transitions=g$1(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$1(gr$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(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G$1&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=wo$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$2(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$2([{provide:ge$1,multi:true,useValue:t},{provide:W,useFactory:pi$1},{provide:dl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g$1(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g$1(pe$3);return n=>{let e=t.get(gr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new w("",{factory:()=>new ue$2}),_r=new w("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},Iw(()=>{let n=g$1(pe$3);return n.get(kT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt$1(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?Cr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Iw(()=>{g$1(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new w("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi(t){ut$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[gm,{provide:ne,useClass:Y},F,pe$1,{provide:W,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Os$1({type:t});static \u0275inj=Br({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g$1(JV),n=g$1(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:yr$1,useClass:jT}}function ca(){return {provide:yr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new w("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:dl,multi:true,useExisting:Dr}]}
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 m$1(3e3,false)}function Ai(){return new m$1(3100,false)}function ki(){return new m$1(3101,false)}function Pi(s){return new m$1(3001,false)}function Ci(s){return new m$1(3003,false)}function Mi(s){return new m$1(3004,false)}function bn(s,e){return new m$1(3005,false)}function Tn(){return new m$1(3006,false)}function wn(){return new m$1(3007,false)}function An(s,e){return new m$1(3008,false)}function kn(s){return new m$1(3002,false)}function Pn(s,e,t,n,i){return new m$1(3010,false)}function Cn(){return new m$1(3011,false)}function Mn(){return new m$1(3012,false)}function Nn(){return new m$1(3200,false)}function Dn(){return new m$1(3202,false)}function Rn(){return new m$1(3013,false)}function On(s){return new m$1(3014,false)}function Fn(s){return new m$1(3015,false)}function In(s){return new m$1(3016,false)}function Ln(s,e){return new m$1(3404,false)}function Ni(s){return new m$1(3502,false)}function Bn(s){return new m$1(3503,false)}function xn(){return new m$1(3300,false)}function zn(s){return new m$1(3504,false)}function Kn(s){return new m$1(3301,false)}function qn(s,e){return new m$1(3302,false)}function Vn(s){return new m$1(3303,false)}function jn(s,e){return new m$1(3400,false)}function Qn(s){return new m$1(3401,false)}function Un(s){return new m$1(3402,false)}function $n(s,e){return new m$1(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=x$1({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$2(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$1(U$5),b$1(ee),b$1(te))};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(g$1(jl),g$1(ce),g$1(G$4))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:Sn$3,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return ut$2("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new w("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$2(null,null,function*(){if(Ot)return true;let s=g$1(R$1),e=g$1(F),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$2(null,null,function*(){return (yield g$1(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 g$1(F).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-Dmzz40x7.js').then(s=>s.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-BuYWQnhP.js').then(function(n){return n.aa}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$2(this,arguments,function*(s,e=Ms){yield hy(s.loadMe().pipe(My(e),da(n=>(console.warn("Failed to load current user",n),Cr$1(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-BuYWQnhP.js').then(function(n){return n.aa});yield bi(s.get(e));})}var Ti={providers:[Nv(),bB({eventCoalescing:true}),ia(Ei),nS(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:cl,useFactory:Ns,deps:[pe$3],multi:true},Ol({basePath:"/api/agentos"}),{provide:Ve$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&(Ds$1(0,"div",0),lg(1,"div",2),Ds$1(2,"p"),MC(3,"Loading Coday\u2026"),pl()());}function Rs(s,e){if(s&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let i=Xw();return ff(i.reload())}),MC(4,"Reload"),pl()();}}var Os=s=>s instanceof re$1?"pending":s instanceof de?"failed":"idle",Ue=class s{title="client";phase=F$1(g$1(F).events.pipe(Ot$3(e=>e instanceof re$1||e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=mw({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&&(Pw(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),lg(2,"router-outlet")),t&2){let i;Lw((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[oa,br],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})};Ab(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{wr$1 as $,Af as A,B$2 as B,C,Ds$1 as D,x$2 as E,F,ug as G,Hw as H,Ie$3 as I,J$2 as J,KC as K,Lw as L,MC as M,mg as N,Og as O,Pw as P,SI as Q,R$1 as R,Sg as S,MI as T,Ui$2 as U,Vw as V,W,Xw as X,Y$1 as Y,br as Z,W$3 as _,pl as a,sC as a$,Me$3 as a0,fa as a1,da as a2,nn$1 as a3,je$3 as a4,yd as a5,x$1 as a6,On$3 as a7,_$1 as a8,F$1 as a9,ie$1 as aA,T$1 as aB,Uy as aC,Z$1 as aD,ve$2 as aE,fe$3 as aF,ue$1 as aG,Y$2 as aH,ue$2 as aI,pb as aJ,Bg as aK,jg as aL,UC as aM,HC as aN,WC as aO,kC as aP,D$1 as aQ,hy as aR,L$2 as aS,Be$3 as aT,A$2 as aU,z$3 as aV,xe$3 as aW,xn$3 as aX,Yu as aY,al as aZ,yt$2 as a_,Cr$1 as aa,kw as ab,Bw as ac,G$3 as ad,U$4 as ae,Ne$3 as af,Ue$1 as ag,ke$2 as ah,md as ai,Ty as aj,Fe$3 as ak,jw as al,qe$3 as am,F$4 as an,k as ao,$e$2 as ap,kg as aq,wy as ar,$t as as,$C as at,GC as au,ZD as av,N$1 as aw,Q$2 as ax,Se$4 as ay,ne$2 as az,gl as b,G$4 as b$,Eg as b0,rC as b1,oC as b2,DB as b3,AT as b4,eC as b5,tC as b6,vB as b7,Ri$2 as b8,ii$2 as b9,ye$2 as bA,Ay as bB,Qe$2 as bC,ig as bD,BC as bE,Dg as bF,U$5 as bG,ve$1 as bH,L$1 as bI,Hn$2 as bJ,bs$1 as bK,mt$2 as bL,ut$1 as bM,We$1 as bN,go$1 as bO,ng as bP,_t$2 as bQ,Ce$5 as bR,Oe$1 as bS,xr as bT,by as bU,li$2 as bV,va as bW,b$1 as bX,Tf as bY,pr$1 as bZ,at$1 as b_,EB as ba,IB as bb,wg as bc,iC as bd,pd as be,Id as bf,w as bg,Os$1 as bh,Br as bi,ze$3 as bj,Rp as bk,gr$1 as bl,sm as bm,hE as bn,la$1 as bo,Se$5 as bp,ee$2 as bq,Yg as br,sn$1 as bs,Bs as bt,Jn$2 as bu,V$1 as bv,Ke$2 as bw,tt as bx,ss$1 as by,lt$2 as bz,hg as c,Et$2 as c$,Cd as c0,wn$2 as c1,Nt$2 as c2,_n$1 as c3,Ot$3 as c4,Ot$2 as c5,kI as c6,pi$2 as c7,v as c8,Tn$2 as c9,re$2 as cA,De$2 as cB,fb as cC,SB as cD,We$2 as cE,My as cF,K$2 as cG,hd as cH,jy as cI,Hy as cJ,$y as cK,me$2 as cL,wB as cM,be$3 as cN,ky as cO,Mr$1 as cP,ma as cQ,cb as cR,Le$2 as cS,oe$1 as cT,JC as cU,ne$1 as cV,se as cW,Ge$1 as cX,bf as cY,_e$2 as cZ,Je$2 as c_,ha as ca,st$1 as cb,Oy as cc,Rs$1 as cd,Ye$2 as ce,dn as cf,Ci$3 as cg,Du as ch,ww as ci,rS as cj,cr$1 as ck,m$1 as cl,ab as cm,og as cn,pg as co,qC as cp,He$1 as cq,ta as cr,xy as cs,pa as ct,Ly as cu,ui$3 as cv,hr$1 as cw,de$2 as cx,Pe$2 as cy,Ce$4 as cz,dg as d,db as d0,te$2 as d1,Ne$2 as d2,W$1 as d3,FC as d4,Pg as d5,Lg as d6,CB as d7,Ig as d8,le$3 as d9,Fg as da,cg as e,P$1 as f,g$1 as g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$3 as p,qw as q,yC as r,bg as s,Xm as t,y$1 as u,vl as v,wo$1 as w,U$2 as x,yg as y,w$1 as z};